/* =========================================================
   Design tokens — generated from Figma «SEO-landing»
   Collections: color (Light / Dark), responsive (Desktop / Tablet / Mobile)
   Light/Dark switch automatically via prefers-color-scheme.
   ========================================================= */

@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;

  /* ---------- color · Light ---------- */
  --color-bg-page: #ffffff;
  --color-bg-surface: #ffffff;
  --color-fill-muted: rgba(28, 28, 30, 0.04);
  --color-fill-subtle: rgba(28, 28, 30, 0.10);
  --color-fill-subtle-hover: #dde4ea;
  --color-text-primary: #1c1c1e;
  --color-text-secondary: rgba(28, 28, 30, 0.72);
  --color-text-tertiary: rgba(28, 28, 30, 0.56);
  --color-border-default: rgba(28, 28, 30, 0.10);
  --color-border-strong: rgba(28, 28, 30, 0.56);
  --color-border-hover: rgba(28, 28, 30, 0.72);
  --color-border-focus: #1c1c1e;
  --color-accent-base: #00a3f4;
  --color-accent-strong: #0088cc;
  --color-accent-subtle: rgba(0, 163, 244, 0.08);
  --color-success-base: #12b76a;
  --color-success-strong: #0e9b5a;
  --color-success-subtle: rgba(18, 183, 106, 0.08);
  --color-danger-base: #e01d10;
  --color-danger-subtle: rgba(224, 29, 16, 0.08);
  --color-progress-done: #df7e51;
  --color-progress-current: rgba(200, 84, 48, 0.16);

  /* static — identical in both themes (content on photo) */
  --color-static-white: #ffffff;
  --color-static-white-72: rgba(255, 255, 255, 0.72);
  --color-static-white-40: rgba(255, 255, 255, 0.40);
  --color-static-white-10: rgba(255, 255, 255, 0.10);
  --color-static-white-4: rgba(255, 255, 255, 0.04);
  --color-static-white-hover: #edf2f6;
  --color-static-black: #1c1c1e;
  --color-static-black-72: rgba(28, 28, 30, 0.72);
  --color-static-black-56: rgba(28, 28, 30, 0.56);
  --color-static-black-10: rgba(28, 28, 30, 0.10);
  --color-static-black-4: rgba(28, 28, 30, 0.04);

  /* scrim — pure black for backings over the photo (panels, shades, modal overlay):
     gives more contrast than #1C1C1E and no “haze” */
  --color-scrim: #000000;
  --color-scrim-56: rgba(0, 0, 0, 0.56);
  --color-scrim-40: rgba(0, 0, 0, 0.40);

  /* rating stars (not tokenized in Figma) */
  --color-rating: #ffa500;

  /* ---------- responsive · Mobile (base) ---------- */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-adaptive-16: 8px;
  --space-adaptive-24: 16px;
  --space-adaptive-32: 24px;
  --space-adaptive-40: 32px;
  --space-adaptive-64: 48px;
  --section-padding-x: 16px;
  --section-padding-y: 32px;

  --radius-2: 2px;
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-20: 20px;
  --radius-full: 999px;

  --control-height-md: 36px;
  --control-height-lg: 48px;
  --icon-size-sm: 16px;
  --icon-size-md: 20px;
  --icon-stroke-regular: 1;
  --icon-stroke-bold: 1.5;
  --max-width-text: 620px;
  --container-max: 1440px;

  --font-family-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* type in rem (1rem = 16px by default): follows the font size set in the browser / OS.
     Fluid sizes scale between breakpoints and stop at the Figma values.
     Spacing, radii, borders and icons stay in px on purpose. */
  --font-size-display: clamp(2.5rem, calc(2.5rem + 24 * (100vw - 768px) / 512), 4rem);
  --font-size-heading-xl: clamp(1.375rem, calc(1.375rem + 4 * (100vw - 768px) / 512), 1.625rem);
  --font-size-body-l: clamp(1.125rem, calc(1.125rem + 2 * (100vw - 768px) / 512), 1.25rem);
  --font-size-lead: clamp(1rem, calc(1rem + 4 * (100vw - 390px) / 890), 1.25rem);
  --font-size-body-m: 1rem;
  --font-size-body-s: 0.875rem;
  --font-size-body-xs: 0.75rem;

  /* effects (Figma blur values ÷ 2 ≈ CSS blur) */
  --blur-glass: 20px;
  --blur-strong: 50px;
  --shadow-md: 0 1px 8px rgba(0, 0, 0, 0.15);
  --shadow-bar: 0 -1px 8px rgba(0, 0, 0, 0.15);
  --shadow-floating: 0 8px 24px var(--color-static-black-10);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);   /* calm, “luxury” easing for hovers and reveals */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- responsive · Tablet ---------- */
@media (min-width: 768px) {
  :root {
    --section-padding-x: 24px;
    --space-adaptive-64: 64px;
    --max-width-text: 720px;
  }
}

/* ---------- responsive · Desktop ---------- */
@media (min-width: 1024px) {
  :root {
    --space-adaptive-16: 16px;
    --space-adaptive-24: 24px;
    --space-adaptive-32: 32px;
    --space-adaptive-40: 40px;
    --section-padding-x: 32px;
    --control-height-md: 40px;
    --max-width-text: 620px;
  }
}

/* ---------- color · Dark ----------
   follows the device; [data-theme] on <html> can force a theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg-page: #121214;
    --color-bg-surface: #1c1c1e;
    --color-fill-muted: rgba(255, 255, 255, 0.04);
    --color-fill-subtle: rgba(255, 255, 255, 0.10);
    --color-fill-subtle-hover: rgba(255, 255, 255, 0.16);
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.72);
    --color-text-tertiary: rgba(255, 255, 255, 0.48);
    --color-border-default: rgba(255, 255, 255, 0.10);
    --color-border-strong: rgba(255, 255, 255, 0.40);
    --color-border-hover: rgba(255, 255, 255, 0.72);
    --color-border-focus: #ffffff;
    --color-accent-subtle: rgba(0, 163, 244, 0.16);
    --color-danger-subtle: rgba(224, 29, 16, 0.16);
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg-page: #121214;
  --color-bg-surface: #1c1c1e;
  --color-fill-muted: rgba(255, 255, 255, 0.04);
  --color-fill-subtle: rgba(255, 255, 255, 0.10);
  --color-fill-subtle-hover: rgba(255, 255, 255, 0.16);
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.72);
  --color-text-tertiary: rgba(255, 255, 255, 0.48);
  --color-border-default: rgba(255, 255, 255, 0.10);
  --color-border-strong: rgba(255, 255, 255, 0.40);
  --color-border-hover: rgba(255, 255, 255, 0.72);
  --color-border-focus: #ffffff;
  --color-accent-subtle: rgba(0, 163, 244, 0.16);
  --color-danger-subtle: rgba(224, 29, 16, 0.16);
}
