/* ============================================================================
   Shikara marketing site
   Design tokens, type scale and motion curves come from shikara-site/README.md
   and design/Shikara Website.dc.html. Both are the authority; if this file and
   the design disagree, the design wins.
   ========================================================================== */

:root {
  --paper:      #F4F3F1;
  --ink:        #1A1A1A;
  --red:        #FF3B30;
  --red-tint:   #FFE3E1;
  --night:      #0E1113;
  --night-2:    #171B1E;
  --night-line: #23282B;
  --night-line-2:#2A2E31;
  --error-dark: #2A1715;
  --white:      #FFFFFF;
  --stone-50:   #FBFAF9;
  --stone-100:  #EDEAE6;
  --stone-200:  #E4E1DC;
  --stone-300:  #DCD8D3;
  --stone-400:  #A39D95;
  --stone-500:  #8A857E;
  --stone-600:  #6B6660;
  --stone-700:  #55514C;

  --wrap: 1280px;
  --pad: 28px;

  /* expo-out: the primary curve for everything scroll- and reveal-driven */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* used only by the looping cue + marquee animations */
  --ease-loop: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

/* The header is fixed, so without this every #anchor lands under it and the
   section heading is hidden (header is 64px+; the rest is breathing room). */
html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Jost, 'Century Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--ink); text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; height: auto; }

/* Keyboard users get a visible ring everywhere. Mouse users never see it. */
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.muted { color: var(--stone-500); }
.mono  { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--stone-700); white-space: nowrap; }
.num   { font-variant-numeric: tabular-nums; }
.ta-r  { text-align: end; }

.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.h2 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; font-weight: 500; text-wrap: balance; }
.h3 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.03em; font-weight: 500; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; white-space: nowrap; font-size: 14px; padding: 10px 18px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-lg { font-size: 16px; padding: 15px 28px; }
.btn-block { display: flex; width: 100%; font-size: 17px; padding: 16px; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--red); color: var(--white); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-white { border: 1px solid var(--white); color: var(--white); }
.btn-white:hover { background: var(--white); color: var(--red); }

/* ------------------------------------------------------------ status pill */
.pill { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.pill--paid      { background: var(--stone-100); color: var(--ink);   border-color: var(--stone-100); }
.pill--issued    { background: var(--ink);       color: var(--white); border-color: var(--ink); }
.pill--validated { background: var(--white);     color: var(--ink);   border-color: var(--ink); }
.pill--draft     { background: var(--white);     color: var(--stone-600); border-color: var(--stone-300); }
.pill--rejected  { background: var(--red-tint);  color: var(--red);   border-color: var(--red-tint); }

/* ============================================================== HEADER === */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  background: rgba(244,243,241,0);
  border-bottom: 1px solid rgba(228,225,220,0);
  /* No transition on backdrop-filter: fading the blur out while the big logo
     un-docks on the way back up would smear it, just as the 0.34 switch avoids. */
  transition: background .4s ease, border-color .4s ease;
}
/* Set by main.js once the hero logo has docked (34%), and whenever the mobile sheet opens. */
.hdr.is-solid {
  /* Glass: thinner tint, stronger blur and saturation so the page reads
     through, and a soft top highlight in place of a hard bottom rule. */
  background: rgba(244,243,241,.55);
  border-bottom-color: rgba(228,225,220,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
}
.hdr-in {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 20px; min-height: 64px;
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; gap: 16px;
}
.hdr-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; justify-self: start; }
.hdr-nav a { color: var(--stone-700); }
.hdr-nav a:hover { color: var(--ink); }
.hdr-logo-link { display: flex; align-items: center; justify-self: center; }
/* Hidden until the hero logo finishes docking into this slot (main.js). */
.hdr-logo { height: 28px; width: auto; opacity: 0; }
.hdr-act { display: flex; align-items: center; gap: 10px; justify-self: end; }
.hdr-signin { font-size: 15px; padding: 10px 16px; }

/* Language switcher: the product tabs' track and pill. Links, not buttons,
   since each side is the same page in the other language. */
.lang-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--stone-100); }
.lang-seg a { font-size: 13px; line-height: 1.2; padding: 6px 12px; border-radius: 999px; color: var(--stone-600); transition: background .25s var(--ease), color .2s ease, box-shadow .25s ease; }
.lang-seg a:hover { color: var(--ink); }
.lang-seg a[aria-current] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(26,26,26,.12); }
.lang-seg [lang="ar"] { font-family: 'IBM Plex Sans Arabic', Jost, sans-serif; font-weight: 500; }
.lang-seg [lang="en"] { font-family: Jost, 'Century Gothic', sans-serif; letter-spacing: .04em; }
/* Full-width version in the mobile sheet. */
.lang-seg--block { display: flex; padding: 4px; }
.lang-seg--block a { flex: 1; text-align: center; font-size: 15px; padding: 11px 16px; }
.lbl-tight { display: none; }

.burger {
  display: none; justify-self: start;
  width: 44px; height: 44px; margin-inline-start: -10px; padding: 0;
  border: none; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger-bar { width: 20px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.burger[aria-expanded="true"] .burger-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-bar:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.sheet {
  border-top: 1px solid var(--stone-200); background: var(--paper);
  height: calc(100svh - 64px); padding: 28px 20px 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.sheet[hidden] { display: none; }
.sheet-nav { display: flex; flex-direction: column; }
.sheet-nav a {
  font-size: 36px; font-weight: 500; letter-spacing: -.03em;
  padding: 14px 0; border-bottom: 1px solid var(--stone-200);
  display: flex; justify-content: space-between; align-items: center;
}
.sheet-nav a span { font-size: 18px; color: var(--red); }
.sheet-act { display: flex; flex-direction: column; gap: 10px; }

/* ================================================================ HERO === */
.hero { position: relative; height: 440vh; }
.hero-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }

.hero-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(70% 55% at 50% 100%, rgba(255,59,48,.16), rgba(255,59,48,0) 70%);
}

/* Fades up from blur on load; main.js adds .is-in on the next frame. */
.hero-intro {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px; padding: 0 6vw;
  opacity: 0; filter: blur(14px); transform: scale(1.04);
  transition: opacity 1.6s var(--ease), filter 1.6s var(--ease), transform 1.8s var(--ease);
}
.hero-intro.is-in { opacity: 1; filter: none; transform: none; }
/* transform-origin 0 0 is what makes the FLIP arithmetic in main.js work. */
.hero-logo { width: min(84vw, 1080px); height: auto; transform-origin: 0 0; will-change: transform; }
.hero-tagline { font-size: clamp(13px, 1.2vw, 17px); letter-spacing: .34em; text-transform: uppercase; color: var(--stone-600); }

.hero-copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 24px; padding: 72px 20px 0;
  will-change: transform, opacity; pointer-events: none;
}
/* Direct children are staggered in by index — keep this list to exactly four. */
.hero-copy > * { opacity: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border: 1px solid var(--stone-300); border-radius: 999px;
  background: var(--stone-50); font-size: 14px; color: var(--stone-700);
}
.badge-new { padding: 3px 9px; border-radius: 999px; background: var(--red-tint); color: var(--red); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.hero-h1 { margin: 0; font-weight: 500; font-size: clamp(44px, 8.4vw, 116px); line-height: .96; letter-spacing: -.045em; max-width: 1080px; text-wrap: balance; }
.dot { color: var(--red); }
.hero-lede { margin: 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; font-weight: 300; color: var(--stone-700); max-width: 620px; text-wrap: pretty; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Decorative, and its layout box covers .hero-copy for the whole timeline even
   while the mock is invisible, which swallowed clicks on the hero buttons. */
.mock-wrap { position: absolute; left: 0; right: 0; top: 84px; padding: 0 16px; pointer-events: none; }
.mock-max { max-width: var(--wrap); margin: 0 auto; }
.mock {
  position: relative; overflow: hidden;
  border-radius: clamp(16px, 3vw, 28px); background: var(--night);
  padding: clamp(16px, 4vw, 56px);
  transform-origin: 50% 0%; transform: translateY(100vh); opacity: 0;
  will-change: transform, opacity;
}
.mock-orb { position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: var(--red); opacity: .16; filter: blur(80px); }

.app { position: relative; background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.35); }
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--stone-100); }
.app-dots { display: flex; gap: 7px; }
.app-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--stone-300); }
.app-url { font-size: 13px; color: var(--stone-500); }
.app-bar-pad { width: 45px; }
.app-body { display: grid; grid-template-columns: minmax(0,170px) minmax(0,1fr); min-height: 460px; }
.app-side { border-right: 1px solid var(--stone-100); background: var(--stone-50); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.app-side-logo { height: 20px; width: auto; align-self: flex-start; margin: 0 10px 18px; }
.app-side-item { padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--stone-600); }
.app-side-item.is-on { background: var(--stone-100); color: var(--ink); font-weight: 500; }
.app-main { padding: clamp(16px, 3vw, 28px); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.app-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.app-head-t { display: flex; flex-direction: column; gap: 4px; }
.app-title { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.app-sub { font-size: 13px; color: var(--stone-500); }
.app-head-a { display: flex; gap: 8px; }
.chip { font-size: 13px; padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.chip-outline { border: 1px solid var(--stone-300); color: var(--stone-700); }
.chip-ink { background: var(--ink); color: var(--white); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--stone-100); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.kpi-l { font-size: 12px; color: var(--stone-500); letter-spacing: .02em; }
.kpi-v { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }

.tbl-scroll { overflow-x: auto; }
.tbl { min-width: 520px; display: flex; flex-direction: column; }
.tbl-hd, .tbl-row { display: grid; grid-template-columns: 1.3fr 1.8fr .7fr 1.2fr .9fr; gap: 12px; }
.tbl-hd { padding: 10px 4px; font-size: 12px; color: var(--stone-500); letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--stone-100); }
.tbl-row { padding: 13px 4px; font-size: 14px; border-bottom: 1px solid var(--paper); align-items: center; }
.tbl-row .muted { color: var(--stone-600); }
.tbl-row .ta-r:last-child { display: flex; justify-content: flex-end; }

.cue { position: absolute; z-index: 5; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; pointer-events: none; }
.cue-btn {
  pointer-events: auto; font-family: inherit; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 999px; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: background .5s ease, box-shadow .5s ease, padding .5s ease;
}
/* Once the dark mock is behind it, the cue needs its own surface to stay legible. */
.cue-btn.is-chip { background: rgba(251,250,249,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(14,17,19,.25); padding: 12px 18px; }
/* A hairline that drains downward: says "scroll" without competing with the hero. */
.cue-line { width: 1px; height: 28px; background: var(--stone-500); transform-origin: top; animation: shk-drip 2.2s var(--ease-loop) infinite; }
.cue-label { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--stone-600); }

@keyframes shk-drip { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes shk-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================ MARQUEE === */
.mq-sec { padding: 56px 0 8px; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.mq-cap { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--stone-500); }
.mq-mask {
  width: 100%; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.mq-track { display: flex; width: max-content; animation: shk-marquee 40s linear infinite; }
.mq-row { display: flex; gap: 56px; padding-inline-end: 56px; flex: none; }
.mq-item { font-size: 26px; font-weight: 400; letter-spacing: -.02em; color: var(--stone-700); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.mq-item::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ========================================================== STATEMENT === */
.stmt { max-width: var(--wrap); margin: 0 auto; padding: 120px var(--pad) 40px; }
.stmt-p { margin: 0; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -.03em; font-weight: 400; max-width: 1100px; text-wrap: pretty; }

/* ============================================================ PRODUCT === */
.prod { max-width: var(--wrap); margin: 0 auto; padding: 80px var(--pad); }
.prod-hd { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.prod-hd-t { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.tabs-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs { display: flex; flex-wrap: nowrap; width: max-content; gap: 4px; padding: 5px; border-radius: 999px; background: var(--stone-100); }
.tab {
  font-family: inherit; font-size: 15px; white-space: nowrap; flex: none;
  padding: 10px 16px; border: none; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--stone-600);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.tab.is-on { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(26,26,26,.12); }

.panels { display: grid; }
.panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.panel[hidden] { display: none; }
/* Content swaps are instant otherwise, which reads as a glitch rather than a change. */
.panel.is-on { animation: shk-fade .35s var(--ease); }
@keyframes shk-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.p-card { border-radius: 24px; background: var(--white); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 420px; }
.p-card-t { display: flex; flex-direction: column; gap: 18px; }
.p-body { margin: 0; font-size: 18px; line-height: 1.55; font-weight: 300; color: var(--stone-700); text-wrap: pretty; }
.p-points { display: flex; flex-direction: column; }
.p-point { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--stone-100); font-size: 16px; }
.p-n { color: var(--red); font-size: 13px; font-family: ui-monospace, Menlo, monospace; }

.p-stage { border-radius: 24px; background: var(--stone-200); padding: clamp(20px, 3vw, 40px); display: flex; align-items: center; justify-content: center; min-height: 420px; }
.doc { width: 100%; max-width: 440px; background: var(--white); border-radius: 16px; box-shadow: 0 24px 48px rgba(26,26,26,.12); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.doc-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.doc-hd-t { display: flex; flex-direction: column; gap: 4px; }
.doc-type { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone-500); }
.doc-no { font-family: ui-monospace, Menlo, monospace; font-size: 15px; }
.doc-rows { display: flex; flex-direction: column; }
.doc-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--paper); font-size: 14px; }
.doc-row > span:first-child { color: var(--stone-600); }
.doc-row > span:last-child { text-align: end; }
.doc-tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
.doc-tot-l { font-size: 14px; color: var(--stone-600); }
.doc-tot-v { font-size: 26px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ========================================================= VALIDATION === */
.val-sec { padding: 0 var(--pad); }
.val {
  max-width: var(--wrap); margin: 0 auto; border-radius: 32px;
  background: var(--night); color: var(--white);
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 56px; align-items: center;
}
.val-l { display: flex; flex-direction: column; gap: 22px; }
.val-body { margin: 0; font-size: 18px; line-height: 1.55; font-weight: 300; color: var(--stone-400); max-width: 480px; text-wrap: pretty; }
.val-r { display: flex; flex-direction: column; gap: 12px; }
.chk { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--night-line); }
.chk-i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--stone-700); color: var(--white); font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.chk-t { font-size: 16px; font-weight: 500; color: var(--white); }
.chk-x { font-size: 14px; line-height: 1.5; color: var(--stone-400); margin-top: 4px; }
.chk--bad { background: var(--error-dark); border-color: var(--red); }
.chk--bad .chk-i { background: var(--red); }

/* ============================================================ HOW IT === */
.how { max-width: var(--wrap); margin: 0 auto; padding: 120px var(--pad) 80px; }
.how-hd { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.step { border-radius: 20px; background: var(--white); padding: 28px; display: flex; flex-direction: column; gap: 56px; min-height: 280px; transition: background .2s ease; }
.step:hover { background: var(--stone-50); }
.step-n { font-size: 64px; line-height: 1; font-weight: 300; letter-spacing: -.04em; color: var(--stone-300); }
.step-t { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.step-x { font-size: 15px; line-height: 1.55; color: var(--stone-600); font-weight: 300; margin-top: 10px; }

/* ========================================================== FEATURES === */
.feat-sec { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--pad) 120px; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--stone-300); }
.feat { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--stone-300); display: flex; flex-direction: column; gap: 10px; }
.feat-t { font-size: 20px; font-weight: 500; letter-spacing: -.015em; }
.feat-x { font-size: 15px; line-height: 1.55; color: var(--stone-600); font-weight: 300; max-width: 340px; }

/* =============================================================== CTA === */
.cta-sec { padding: 0 var(--pad) var(--pad); }
.cta {
  max-width: var(--wrap); margin: 0 auto; border-radius: 32px;
  background: var(--red); color: var(--white);
  padding: clamp(48px, 8vw, 112px) clamp(24px, 6vw, 80px);
  display: flex; flex-direction: column; gap: 32px; align-items: flex-start;
  position: relative; overflow: hidden;
}
.cta-mark { position: absolute; inset-inline-end: -40px; bottom: -30px; width: min(62%, 640px); opacity: .14; pointer-events: none; }
.cta-h2 { position: relative; margin: 0; font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -.045em; font-weight: 500; max-width: 900px; text-wrap: balance; }
.cta-p { position: relative; margin: 0; font-size: 20px; line-height: 1.5; font-weight: 300; max-width: 520px; }
.cta-btns { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-ink:hover { background: var(--white); color: var(--ink); }

/* ============================================================ FOOTER === */
.ftr { background: var(--night); color: var(--white); }
.ftr-in { max-width: var(--wrap); margin: 0 auto; padding: 80px var(--pad) 40px; display: flex; flex-direction: column; gap: 64px; }
.ftr-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.ftr-brand { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ftr-logo { height: 30px; width: auto; align-self: flex-start; }
.ftr-tag { font-size: 15px; color: var(--stone-400); font-weight: 300; letter-spacing: .02em; }
.ftr-cols { display: flex; flex-wrap: wrap; gap: 64px; }
.ftr-col { display: flex; flex-direction: column; gap: 12px; }
.ftr-h { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone-500); }
.ftr-col a { font-size: 15px; color: var(--stone-100); }
.ftr-col a:hover { color: var(--red); }
.ftr-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--night-line-2); font-size: 13px; color: var(--stone-500); }
.ftr-legal { display: flex; gap: 24px; }
.ftr-legal a { color: var(--stone-500); }
.ftr-legal a:hover { color: var(--white); }

/* ============================================================ REVEAL === */
/* main.js adds .is-in via IntersectionObserver. Without JS these stay visible. */
.js [data-reveal] { opacity: 0; transform: translateY(48px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ======================================================== RESPONSIVE === */
@media (max-width: 899px) {
  .hdr-nav, .hdr-signin, .hdr-act .lang-seg { display: none; }
  .burger { display: flex; }
  .app-body { grid-template-columns: minmax(0,1fr); }
  .app-side { display: none; }
}
@media (max-width: 599px) {
  .hdr-logo { height: 22px; }
}
@media (max-width: 419px) {
  .lbl-wide { display: none; }
  .lbl-tight { display: inline; }
}

/* =================================================== REDUCED MOTION === */
/* The pinned hero is the whole point of the page, and also the thing most
   likely to make a motion-sensitive visitor ill. Under `reduce` the section
   collapses to an ordinary stacked layout: nav logo present, headline and mock
   simply there. main.js checks the same query and never runs the timeline. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero-stage { position: static; height: auto; overflow: visible; padding: 120px 0 0; }
  .hero-intro { display: none; }
  .hero-copy { position: static; padding: 0 20px 56px; }
  .hero-copy > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hdr-logo { opacity: 1 !important; }
  .mock-wrap { position: static; padding: 0 16px 40px; }
  .mock { transform: none !important; opacity: 1 !important; }
  .hero-glow { opacity: 1; }
  .cue, .cue-btn--inline { display: none; }
  .mq-track, .cue-line { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .panel.is-on { animation: none; }
  .hdr { background: rgba(244,243,241,.82); border-bottom-color: var(--stone-200); }
}

/* ========================================================== SUB-PAGES === */
/* About / Contact / Support / Privacy / Terms. These have no hero timeline, so
   main.js never reaches the header code that sets .is-solid — body.sub pins the
   header to its solid state and reveals the nav logo from CSS instead. */
.sub .hdr {
  background: rgba(244,243,241,.82);
  border-bottom-color: var(--stone-200);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.sub .hdr-logo { opacity: 1; }

.pg-hd { max-width: var(--wrap); margin: 0 auto; padding: 152px var(--pad) 56px; display: flex; flex-direction: column; gap: 20px; }
.pg-h1 { margin: 0; font-size: clamp(40px, 6.5vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 500; max-width: 900px; text-wrap: balance; }
.pg-lede { margin: 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; font-weight: 300; color: var(--stone-700); max-width: 640px; text-wrap: pretty; }
.pg-meta { font-size: 14px; color: var(--stone-500); }

.pg-sec { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad) 96px; }
.pg-sec--tint { max-width: none; background: var(--stone-100); margin-bottom: 96px; padding: 88px var(--pad); }
.pg-sec--tint > * { max-width: var(--wrap); margin-inline: auto; }

/* Long-form body copy: About narrative, Privacy, Terms. */
.prose { max-width: 720px; display: flex; flex-direction: column; }
.prose h2 { margin: 48px 0 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -.03em; font-weight: 500; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; font-weight: 300; color: var(--stone-700); text-wrap: pretty; }
.prose p { margin: 14px 0 0; }
.prose ul { margin: 14px 0 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 500; color: var(--ink); }

/* Card grid shared by About values, Contact routes and Support topics. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.card { border-radius: 20px; background: var(--white); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.card-k { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.card-t { font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.card-x { font-size: 15px; line-height: 1.6; color: var(--stone-600); font-weight: 300; margin: 0; }
.card-a { margin-top: auto; padding-top: 8px; font-size: 16px; font-weight: 500; }
.card-a:not(:hover) { color: var(--ink); }

/* Contact / support address blocks and Q&A rows. */
.rows { display: flex; flex-direction: column; max-width: 860px; border-top: 1px solid var(--stone-300); }
.row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px 40px; padding: 26px 0; border-bottom: 1px solid var(--stone-300); }
.row-k { font-size: 15px; font-weight: 500; }
.row-v { font-size: 16px; line-height: 1.6; color: var(--stone-700); font-weight: 300; }
.row-v p { margin: 0 0 8px; }
.row-v p:last-child { margin-bottom: 0; }
.row-v a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 599px) {
  .pg-hd { padding-top: 116px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ========================================================== DEMO FORM === */
.form-card {
  border-radius: 24px; background: var(--white);
  padding: clamp(28px, 4vw, 48px);
  max-width: 720px; display: flex; flex-direction: column; gap: 22px;
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field > label { font-size: 14px; font-weight: 500; }
.field > label .opt { color: var(--stone-500); font-weight: 300; }

.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--stone-300); border-radius: 12px;
  background: var(--stone-50); width: 100%;
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--stone-400); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
/* Only after the browser has judged it — :invalid alone would flag empty
   required fields the moment the page loads. */
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); background: var(--red-tint); }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--stone-600) 50%), linear-gradient(135deg, var(--stone-600) 50%, transparent 50%); background-position: right 20px center, right 15px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }

/* The honeypot: off-screen rather than display:none, which some bots skip. */
.botcheck { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-submit { border: none; cursor: pointer; font-family: inherit; }
.form-submit:disabled { opacity: .55; cursor: default; }
.form-note { font-size: 13px; line-height: 1.5; color: var(--stone-500); max-width: 340px; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--stone-500); }

.form-status { font-size: 15px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-ok  { color: var(--ink); padding: 14px 16px; border-radius: 12px; background: var(--stone-100); }
.form-status.is-bad { color: var(--red); padding: 14px 16px; border-radius: 12px; background: var(--red-tint); }

/* hCaptcha renders a 303x78 iframe into this box. Reserving the height stops
   the submit button jumping down when the widget finally loads. */
.h-captcha { min-height: 78px; }

/* ------------------------------------------------- footer: who makes this */
.ftr-maker { display: inline-flex; flex-direction: column; gap: 10px; margin-top: 12px; align-self: flex-start; }
.ftr-maker-l { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone-500); transition: color .2s ease; }
.ftr-maker:hover .ftr-maker-l { color: var(--stone-100); }
.ftr-maker-logo { height: 44px; width: auto; max-width: 100%; }

/* Avanor's mark is gold on dark, so it needs a dark panel wherever it appears
   on the light pages. Same night surface as the validation block. */
.maker {
  max-width: var(--wrap); margin: 0 auto; border-radius: 32px;
  background: var(--night); color: var(--white);
  padding: clamp(36px, 5vw, 72px) clamp(24px, 5vw, 72px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px; align-items: center;
}
.maker-logo { width: min(400px, 100%); height: auto; }
.maker-t { display: flex; flex-direction: column; gap: 16px; }
.maker-x { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 300; color: var(--stone-400); text-wrap: pretty; }
.maker-x a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.maker-x a:hover { color: var(--red); }

/* Starting price under the hero buttons. Full width so it wraps below them. */
.hero-price { flex-basis: 100%; margin: 4px 0 0; font-size: 15px; color: var(--stone-600); }
.hero-price strong { font-weight: 500; color: var(--ink); }
.cue-btn--inline { flex-basis: 100%; margin-top: 20px; }

/* ============================================================== ARABIC === */
/* The /ar/ pages: <html lang="ar" dir="rtl">. Layout mirrors through dir and
   the logical properties above; what is left is type. */
html[lang="ar"] body { font-family: 'IBM Plex Sans Arabic', Jost, sans-serif; }
/* Any tracking, positive or negative, breaks the joins between Arabic letters. */
html[lang="ar"] * { letter-spacing: 0 !important; }
/* Arabic needs room above and below for dots and descenders; the Latin
   display settings (line-height under 1) clip and collide. */
html[lang="ar"] .cta-h2, html[lang="ar"] .pg-h1 { line-height: 1.3; }
/* Arabic glyphs read larger than Latin at the same size, and two lines at the
   Latin size pushed the hero copy under the header on a 772px viewport. */
html[lang="ar"] .hero-h1 { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.25; }
html[lang="ar"] .h2, html[lang="ar"] .h3 { line-height: 1.3; }
html[lang="ar"] .stmt-p { line-height: 1.5; }
html[lang="ar"] .prose p, html[lang="ar"] .prose li { line-height: 1.85; }
/* The chevron of the native select sits at the inline end. */
html[dir="rtl"] .field select { background-position: left 15px center, left 20px center; }
