/*
  Synchrotech design tokens
  Sources: SynchroTech-Brand-Pack usage guide (logo, production colours, Montserrat, motion)
           Synchrotech-Design-Brief.md sections 5 and 7.7 (neutrals, functional colours, scale, shape)
  Rule: never hard-code a value in a component that exists here.
*/
:root {
  /* Production colours (usage guide) */
  --purple: #7B16FF;          /* identifying colour: primary buttons, links, bars, step numbers */
  --purple-hover: #6A0FE0;    /* primary button hover */
  --purple-deep: #5A0FC4;     /* purple text on purple tint */
  --purple-tint: #F0E6FF;     /* icon tile tint, badges */
  --accent-violet: #A638FF;   /* restrained accent only: icons on ink tiles */
  --ink: #11141D;             /* headings and body on white, dark sections */
  --black: #000000;           /* hero, footer, presentation backgrounds */
  --white: #FFFFFF;

  /* Supporting neutrals */
  --ink-2: #3B3F4A;           /* secondary text, 10.5:1 on white */
  --ink-3: #5E626D;           /* muted text and form borders, 6.1:1 on white */
  --paper: #F5F5F8;           /* alternate section background */
  --line: #DCDDE3;            /* 1.5px borders and dividers (decorative) */
  --mist: #C8CAD3;            /* body text on black and ink */
  --steel: #9A9DA8;           /* captions on black */
  --placeholder: #6E727C;     /* form placeholder text, 4.8:1 on white */

  /* Functional colours: system states only, never decoration */
  --amber: #FFB547;
  --amber-tint: #FFF3DF;
  --amber-text: #7A4A00;
  --amber-label: #9A5B00;
  --green: #1FA463;
  --green-tint: #E3F6EC;
  --green-text: #127A48;
  --red: #E5484D;
  --red-text: #C62A2F;
  --whatsapp: #1FA855;        /* WhatsApp icon only */

  /* Dark surface lines */
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-dark-strong: rgba(255, 255, 255, 0.28);

  /* Typography: Montserrat (usage guide) */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --weight-body: 400;
  --weight-label: 500;
  --weight-heading: 600;
  --tracking-label: 0.18em;

  --fs-h1: clamp(2.5rem, 1.75rem + 2.8vw, 4.25rem);        /* 40 to 68px */
  --fs-h1-page: clamp(2.125rem, 1.55rem + 2vw, 3.25rem);   /* 34 to 52px */
  --fs-h2: clamp(1.8125rem, 1.45rem + 1.25vw, 2.5rem);     /* 29 to 40px */
  --fs-h3: 1.15625rem;                                      /* 18.5px */
  --fs-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.15625rem);  /* 17 to 18.5px */
  --fs-body: clamp(1rem, 0.97rem + 0.1vw, 1.03125rem);     /* 16 to 16.5px */
  --fs-small: 0.9375rem;                                    /* 15px */
  --fs-label: 0.8125rem;                                    /* 13px */
  --fs-caption: 0.75rem;                                    /* 12px */

  --lh-display: 1.05;
  --lh-heading: 1.15;
  --lh-card: 1.3;
  --lh-body: 1.65;

  /* Space (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 48px;
  --s-9: 64px;
  --s-10: 96px;

  /* Shape */
  --r-label: 6px;
  --r-btn: 8px;
  --r-card: 10px;
  --border-width: 1.5px;
  --border: 1.5px solid var(--line);
  --bar-heading-width: 44px;
  --bar-heading-height: 6px;
  --bar-cell: 4px;
  --bar-story: 5px;

  /* Engineering grid */
  --grid-line-hero: rgba(255, 255, 255, 0.055);
  --grid-size-hero: 56px;
  --grid-line-band: rgba(255, 255, 255, 0.07);
  --grid-size-band: 40px;

  /* Elevation: story cards only */
  --shadow-story: 0 20px 40px rgba(0, 0, 0, 0.35);

  /* Controls */
  --btn-height: 52px;
  --btn-height-sm: 42px;
  --field-height: 48px;
  --tap-min: 44px;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur-hover: 150ms;

  /* Layout */
  --container: 1240px;
  --pad: clamp(18px, 3vw, 24px);
  --section-y: clamp(64px, 5vw + 40px, 96px);
  --logo-header: 190px;      /* wordmark in the header */
  --logo-min: 180px;         /* usage guide minimum, wordmark without tagline */
  --lockup-min: 400px;       /* usage guide minimum, wordmark with tagline */
  --icon-min: 24px;          /* usage guide minimum, standalone icon */
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-hover: 0ms;
  }
}
