/* =====================================================================
   Taijiyin Biotech — Design Tokens
   ---------------------------------------------------------------------
   All colours, type, spacing, radii, shadows and motion live here.
   Change a value once and it updates across the whole site.

   PALETTE
   Clinical blue #0284C7 is the only brand colour. Deep navy carries the
   footer and data band; a small amount of yellow marks highlights.
   ===================================================================== */

/* ---------- Self-hosted web fonts (Inter + Plus Jakarta Sans, SIL OFL) ----------
   Same families as Google Fonts, served locally so pages never wait on
   fonts.googleapis.com (often blocked or slow in mainland China). */
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations'), url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'), url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/inter-greek-wght-normal.woff2') format('woff2-variations'), url('../fonts/inter-greek-wght-normal.woff2') format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations'), url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  /* ---------- Brand colours ---------- */
  --c-primary:        #0284C7;   /* clinical blue: buttons, links, hero line 2 */
  --c-primary-hover:  #0369A1;   /* hover / pressed                        */
  --c-primary-ink:    #0369A1;   /* blue text at body size (AA on white)   */
  --c-primary-deep:   #075985;   /* blue text on light-blue panels         */
  --c-primary-50:     #F0F9FF;   /* light blue section background          */
  --c-primary-100:    #E0F2FE;
  --c-primary-200:    #BAE6FD;
  --c-primary-rgb:    2, 132, 199;

  --c-accent:         #FACC15;   /* signal yellow: small highlights only   */
  --c-accent-soft:    #FEF9C3;
  --c-accent-ink:     #422006;
  --c-slate:          #1E3A5F;   /* deep blue-grey secondary               */
  --c-success:        #15803D;
  --c-danger:         #DC2626;
  --c-whatsapp:       #18B26F;

  /* ---------- Neutrals ---------- */
  --c-ink:            #0F172A;   /* headings                               */
  --c-text:           #334155;   /* body copy                              */
  --c-text-2:         #475569;   /* secondary copy                         */
  --c-muted:          #64748B;   /* captions, meta                         */
  --c-line:           #E2E8F0;   /* 1px hairlines                          */
  --c-line-strong:    #CBD5E1;   /* input borders                          */
  --c-bg:             #FFFFFF;
  --c-bg-soft:        #F7F9FC;   /* section alternate background           */
  --c-bg-media:       #E9EEF4;   /* behind product renders                 */
  --c-dark:           #0A2540;   /* data band                              */
  --c-footer:         #071A2E;   /* footer                                 */
  --c-on-dark:        #FFFFFF;
  --c-on-dark-2:      rgba(255, 255, 255, 0.72);
  --c-overlay:        rgba(7, 26, 46, 0.52);

  /* ---------- Typography (sans-serif only, never serif / SimSun) ---------- */
  --font-sans: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
               'Segoe UI', 'Helvetica Neue', Helvetica, Arial,
               'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-display: var(--font-sans);

  --fs-display: clamp(2.5rem, 1.55rem + 2.7vw, 3.5rem);     /* 40 → 56  page H1 (home hero) */
  --fs-h1:      clamp(2.25rem, 1.5rem + 2.2vw, 3.25rem);    /* 36 → 52  page H1 (inner pages) */
  --fs-h2:      clamp(1.75rem, 1.3rem + 1.4vw, 2.625rem);   /* 28 → 42  section H2 */
  --fs-h3:      clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); /* 18 → 21  card / step H3 */
  --fs-h4:      1.0625rem;                                   /* 17       small headings */
  --fs-lead:    clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);  /* 17 → 19  intro paragraphs */
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.75rem;

  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-body:  1.65;

  --ls-tight: -0.015em;
  --ls-nav:    0.02em;
  --ls-btn:    0.04em;
  --ls-eyebrow: 0.16em;

  /* ---------- Spacing (4px base) ---------- */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-7: 32px;  --sp-8: 40px;
  --sp-9: 48px;  --sp-10: 64px; --sp-11: 80px; --sp-12: 96px;
  --section-pad: clamp(64px, 7.5vw, 112px);
  --gutter: clamp(20px, 4vw, 40px);

  /* ---------- Layout ---------- */
  --container: 1240px;
  --container-narrow: 860px;
  --header-h: 84px;
  --header-shrink: 10px;              /* how much the bar tucks up on scroll */

  /* ---------- Radii ---------- */
  --r-xs:   5px;     /* buttons (reference uses 5–6px) */
  --r-sm:   8px;     /* inputs, chips                   */
  --r-md:   15px;    /* panels                          */
  --r-lg:   20px;    /* product cards                   */
  --r-xl:   30px;    /* large feature panels            */
  --r-pill: 300px;

  /* ---------- Shadows (light, airy) ---------- */
  --sh-xs:     0 1px 2px rgba(16, 18, 24, 0.06);
  --sh-card:   0 1px 3px rgba(16, 18, 24, 0.10), 0 1px 2px rgba(16, 18, 24, 0.04);
  --sh-hover:  0 22px 44px -20px rgba(50, 65, 88, 0.30), 0 2px 6px rgba(16, 18, 24, 0.06);
  --sh-pop:    0 12px 32px -8px rgba(16, 18, 24, 0.18);
  --sh-drawer: -3px 0 30px 3px rgba(0, 0, 0, 0.14);
  --sh-fab:    0 10px 24px -6px rgba(var(--c-primary-rgb), 0.55);

  /* ---------- Motion ---------- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);   /* main easing      */
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);   /* page transitions */
  --ease-std:    ease;
  --dur-fast:    200ms;
  --dur-base:    300ms;
  --dur-slow:    600ms;
  --dur-xslow:   850ms;
  --reveal-distance: 20px;
  --stagger: 70ms;

  /* ---------- Layers ---------- */
  --z-header: 50;
  --z-fab:    60;
  --z-drawer: 80;
  --z-modal:  90;
  --z-toast:  100;
}

