/* ============================================================
   DESIGN TOKENS — V2 "Apple edition".
   Light-first, typography-led, hairline dividers, soft tiles.
   ============================================================ */
:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-card: #f5f5f7;
  --bg-dark: #000000;
  --bg-dark-2: #161617;

  /* Ink */
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --ink-inverse: #f5f5f7;
  --ink-inverse-2: #a1a1a6;

  /* Accent */
  --blue: #0a7cff;
  --blue-hover: #006ee6;
  --link: #006ee6;
  --brand-obsidian: #111820;
  --green: #03805c;
  --orange: #b64400;

  /* Lines */
  --hairline: #d2d2d7;
  --hairline-dark: #424245;

  /* Type — the system stack renders SF on Apple hardware */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Scale */
  --t-hero: clamp(2.7rem, 1.6rem + 5vw, 5rem);        /* 80px */
  --t-h2:   clamp(2rem, 1.4rem + 3vw, 3.5rem);        /* 56px */
  --t-h3:   clamp(1.5rem, 1.2rem + 1.6vw, 2.2rem);    /* 35px */
  --t-h4:   1.3rem;
  --t-sub:  clamp(1.15rem, 1rem + .8vw, 1.7rem);      /* 27px subheads */
  --t-body: 1.0625rem;                                 /* 17px */
  --t-small:.875rem;                                   /* 14px */
  --t-nav:  .75rem;                                    /* 12px */

  /* Layout */
  --container: 1040px;
  --container-wide: 1440px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-pad: clamp(5rem, 11vw, 9.5rem);
  --tile-radius: 18px;
  --tile-radius-lg: 28px;

  /* Motion */
  --ease: cubic-bezier(.32,.08,.24,1);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.47;
  letter-spacing: -.017em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
::selection { background: #b3d7ff; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.07; letter-spacing: -.021em; text-wrap: balance; }
h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); letter-spacing: -.01em; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--blue); color: #fff; padding: .7rem 1.2rem; font-weight: 600; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: var(--ink-inverse); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.center { text-align: center; }
.muted { color: var(--ink-2); }
.section--dark .muted { color: var(--ink-inverse-2); }
.measure { max-width: 42em; }
.center .measure, .center p { margin-inline: auto; }

/* Section intro: centered headline + grey subhead — the core Apple move */
.intro { text-align: center; max-width: 760px; margin-inline: auto; }
.intro .kicker {
  display: block; font-size: var(--t-small); font-weight: 600;
  color: var(--orange); margin-bottom: .9rem; letter-spacing: -.01em;
}
.intro .kicker--green { color: var(--green); }
.intro .kicker--blue { color: var(--link); }
.intro h2 + .sub, .intro h1 + .sub { margin-top: 1.1rem; }
.sub { font-size: var(--t-sub); line-height: 1.35; color: var(--ink-2); font-weight: 400; letter-spacing: -.016em; }
.section--dark .sub { color: var(--ink-inverse-2); }

/* ============================================================
   BUTTONS & LINKS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  background: var(--blue); color: #fff;
  font-size: 1.0625rem; font-weight: 400; letter-spacing: -.01em;
  padding: .72rem 1.4rem; border-radius: 980px;
  transition: background .25s, transform .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--blue-hover); }
.btn--secondary {
  background: transparent; color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.btn--secondary:hover { background: var(--blue); color: #fff; }
.btn--small { font-size: var(--t-small); padding: .45rem 1rem; }
.btn--large { font-size: 1.2rem; padding: .9rem 1.9rem; }
.section--dark .btn--secondary { color: #2997ff; box-shadow: inset 0 0 0 1px #2997ff; }
.section--dark .btn--secondary:hover { background: #2997ff; color: #000; }

/* "Learn more ›" */
.link {
  color: var(--link); font-size: inherit; display: inline-flex; align-items: center; gap: .18em;
}
.link::after { content: "›"; font-size: 1.1em; line-height: 1; transform: translateY(-.04em); transition: transform .2s var(--ease); }
.link:hover { text-decoration: underline; }
.link:hover::after { transform: translate(.15em, -.04em); }
.section--dark .link { color: #2997ff; }
.cta-row { display: flex; gap: 1.4rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ============================================================
   GLOBAL NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(251,251,253,.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.header-inner {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  height: 48px; display: flex; align-items: center; gap: .5rem;
}
.wordmark {
  font-size: 1rem; font-weight: 650; letter-spacing: -.025em;
  display: flex; align-items: center; gap: .55rem; color: var(--brand-obsidian);
  margin-right: auto;
}
.wordmark .mark { width: 19px; height: 24px; object-fit: contain; flex: none; }
.wordmark span { transform: translateY(-.01em); }
.main-nav { display: flex; align-items: center; gap: .3rem; margin-right: auto; margin-left: auto; }
.main-nav a, .main-nav .nav-toggle-btn {
  font-size: var(--t-nav); color: rgba(29,29,31,.8); padding: .5rem .75rem;
  letter-spacing: -.01em; transition: color .2s; border-radius: 6px;
}
.main-nav a:hover, .main-nav .nav-toggle-btn:hover,
.main-nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.lang-switch { display: flex; gap: 0; font-size: .68rem; font-weight: 600; border: 1px solid var(--hairline); border-radius: 980px; overflow: hidden; }
.lang-switch button { padding: .25rem .6rem; color: var(--ink-3); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Solutions flyout — full-width white panel, Apple style */
.flyout {
  position: fixed; top: 48px; left: 0; right: 0; z-index: 99;
  background: rgba(251,251,253,.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  pointer-events: none;
}
body.flyout-open .flyout { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.flyout-inner {
  max-width: var(--container); margin-inline: auto; padding: 2.4rem var(--gutter) 2.8rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.flyout-col .fl-label { font-size: .7rem; color: var(--ink-3); margin-bottom: .9rem; display: block; }
.flyout-col a { display: block; font-size: 1.05rem; font-weight: 600; padding: .32rem 0; color: var(--ink); letter-spacing: -.015em; }
.flyout-col a:hover { color: var(--link); }
.flyout-col .fl-desc { font-size: .78rem; color: var(--ink-3); margin-top: .1rem; line-height: 1.4; }
.flyout-col .fl-small { font-size: .85rem; font-weight: 400; color: var(--ink-2); }
.flyout-col .fl-small:hover { color: var(--link); }

/* Announcement ribbon */
.announce {
  background: var(--bg-soft); text-align: center;
  padding: .8rem var(--gutter); font-size: var(--t-small); color: var(--ink);
}
.announce a { color: var(--link); white-space: nowrap; }
.announce a:hover { text-decoration: underline; }
body main { padding-top: 48px; }

/* Mobile nav */
.nav-burger { display: none; width: 40px; height: 40px; position: relative; }
.nav-burger span {
  position: absolute; left: 11px; width: 17px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s; border-radius: 2px;
}
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { top: 23px; }
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: rgba(251,251,253,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 5.5rem var(--gutter) 3rem;
  display: none; flex-direction: column; overflow-y: auto;
}
body.nav-open .mobile-nav { display: flex; }
body.nav-open { overflow: hidden; }
.mobile-nav a {
  font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em;
  padding: .55rem 0; color: var(--ink);
}
.mobile-nav .sub-link { font-size: 1.05rem; font-weight: 400; color: var(--ink-2); padding: .4rem 0 .4rem 1rem; }
.mobile-nav .btn { margin-top: 2rem; }
.mobile-nav hr { border: 0; border-top: 1px solid var(--hairline); margin: 1rem 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(4rem, 9vw, 7rem) 0 0; text-align: center; }
.hero-brand {
  display: inline-flex; align-items: center; gap: .9rem; margin: 0 auto 2.1rem;
  color: var(--brand-obsidian); text-align: left;
}
.hero-brand img { width: 30px; height: 38px; object-fit: contain; flex: none; }
.hero-brand span { display: grid; gap: .12rem; }
.hero-brand strong { font-size: 1.28rem; line-height: 1; letter-spacing: -.035em; }
.hero-brand small { color: var(--ink-2); font-size: .76rem; letter-spacing: .005em; }
.hero .kicker { font-size: 1.05rem; font-weight: 600; color: var(--orange); display: block; margin-bottom: 1rem; }
.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero .sub { max-width: 34em; margin: 1.4rem auto 0; }
.hero-canvas-wrap { max-width: 980px; margin: clamp(3rem, 6vw, 4.5rem) auto 0; padding-inline: var(--gutter); }

/* Trust microline under CTAs */
.trust-line {
  display: flex; gap: .5rem 2rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.6rem; font-size: var(--t-small); color: var(--ink-3);
}

/* ============================================================
   WORKFLOW CANVAS — dark "product shot" on light page
   ============================================================ */
.wf-canvas {
  background: var(--bg-dark);
  border-radius: var(--tile-radius-lg);
  padding: clamp(1rem, 2.5vw, 1.8rem);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.35);
  text-align: left;
}
.wf-tabs { display: inline-flex; background: #1d1d1f; border-radius: 980px; padding: 3px; margin-bottom: 1rem; }
.wf-tabs button {
  font-size: .8rem; font-weight: 500; color: #a1a1a6;
  padding: .42rem 1.05rem; border-radius: 980px; transition: all .25s var(--ease);
}
.wf-tabs button[aria-selected="true"] { background: #f5f5f7; color: #1d1d1f; }
.wf-svg { width: 100%; height: auto; display: block; }
.wf-svg .wf-link { stroke: rgba(255,255,255,.16); stroke-width: 1.5; fill: none; }
.wf-svg .wf-pulse {
  stroke: #2997ff; stroke-width: 2; fill: none;
  stroke-dasharray: 34 460; stroke-dashoffset: 494;
}
.wf-svg .node-box { fill: #161617; stroke: rgba(255,255,255,.22); stroke-width: 1; transition: stroke .3s; }
.wf-svg .wf-node.is-active .node-box { stroke: #2997ff; }
.wf-svg .wf-node.is-human .node-box { stroke: rgba(255,214,10,.45); }
.wf-svg .wf-node.is-human.is-active .node-box { stroke: #ffd60a; }
.wf-svg .node-label { font-family: var(--font); font-size: 11.5px; font-weight: 600; fill: #f5f5f7; }
.wf-svg .node-sub { font-family: var(--font); font-size: 9px; fill: #a1a1a6; }
.wf-svg .node-dot { fill: #6e6e73; transition: fill .3s; }
.wf-svg .wf-node.is-active .node-dot { fill: #2997ff; }
.wf-svg .wf-node.is-human.is-active .node-dot { fill: #ffd60a; }
.wf-status { display: flex; align-items: center; gap: .55rem; margin-top: .9rem; font-size: .8rem; color: #a1a1a6; min-height: 1.4rem; }
.wf-status .dot { width: 6px; height: 6px; border-radius: 50%; background: #2997ff; animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: .3; } }

/* ============================================================
   TILE SYSTEM (Apple homepage grid)
   ============================================================ */
.tile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .9rem;
  max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter);
}
.tile {
  background: var(--bg-card); border-radius: var(--tile-radius);
  padding: clamp(2.6rem, 5vw, 3.8rem) clamp(1.6rem, 3vw, 2.6rem);
  text-align: center; overflow: hidden; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
}
.tile--full { grid-column: 1 / -1; }
.tile--dark { background: var(--bg-dark); color: var(--ink-inverse); }
.tile--dark h3 { color: #fff; }
.tile--dark p { color: var(--ink-inverse-2); }
.tile .t-kicker { font-size: var(--t-small); font-weight: 600; color: var(--orange); }
.tile h3 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.5rem); }
.tile p { color: var(--ink-2); max-width: 34em; font-size: var(--t-body); }
.tile .cta-row { margin-top: .6rem; }
.tile .price-line { font-size: var(--t-small); color: var(--ink-3); }
.tile-visual { margin-top: 1.6rem; width: 100%; display: flex; justify-content: center; }

/* mini tag rows inside tiles */
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: .4rem; }
.tag-row li {
  font-size: .75rem; color: var(--ink-2); background: rgba(0,0,0,.05);
  padding: .3rem .75rem; border-radius: 980px;
}
.tile--dark .tag-row li { background: rgba(255,255,255,.12); color: var(--ink-inverse-2); }

/* ============================================================
   BEFORE / AFTER — two soft cards
   ============================================================ */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 3rem; }
.ba-card { background: var(--bg-card); border-radius: var(--tile-radius); padding: 2.2rem 2rem; }
.ba-card--after { background: var(--bg-dark); color: var(--ink-inverse); }
.ba-card h3 { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.3rem; }
.ba-card--after h3 { color: #2997ff; }
.ba-card ol { display: grid; }
.ba-card li {
  display: flex; gap: .85rem; padding: .55rem 0; font-size: .95rem; color: var(--ink-2);
  border-bottom: 1px solid rgba(0,0,0,.06); align-items: baseline;
}
.ba-card--after li { color: #d2d2d7; border-bottom-color: rgba(255,255,255,.1); }
.ba-card li:last-of-type { border-bottom: 0; }
.ba-card .n { font-size: .72rem; font-weight: 600; color: var(--ink-3); min-width: 1.1rem; }
.ba-card--after .n { color: #2997ff; }
.ba-total { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid rgba(0,0,0,.1); font-size: var(--t-small); color: var(--ink-2); }
.ba-total strong { display: block; font-size: 1.5rem; color: var(--ink); letter-spacing: -.02em; }
.ba-card--after .ba-total { border-top-color: rgba(255,255,255,.14); color: var(--ink-inverse-2); }
.ba-card--after .ba-total strong { color: #fff; }

/* ============================================================
   SEGMENTED CONTROL (use-case explorer, mode selector)
   ============================================================ */
.segmented {
  display: inline-flex; background: rgba(0,0,0,.05); border-radius: 980px; padding: 3px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button {
  font-size: .85rem; font-weight: 500; color: var(--ink-2);
  padding: .5rem 1.15rem; border-radius: 980px; white-space: nowrap;
  transition: all .25s var(--ease);
}
.segmented button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.section--dark .segmented { background: rgba(255,255,255,.12); }
.section--dark .segmented button { color: var(--ink-inverse-2); }
.section--dark .segmented button[aria-selected="true"] { background: #f5f5f7; color: #1d1d1f; }
.seg-wrap { display: flex; justify-content: center; margin: 2.6rem 0 0; }

/* use-case panels */
.uc-panel { display: none; margin-top: 2.6rem; }
.uc-panel.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; animation: fade-in .5s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } }
.uc-flow-card, .uc-facts { background: #fff; border-radius: var(--tile-radius); padding: 2.1rem 2rem; }
.section--soft .uc-flow-card, .section--soft .uc-facts { background: #fff; }
.uc-flow-card h3 { font-size: 1.35rem; margin-bottom: 1.1rem; }
.uc-flow { display: grid; }
.uc-flow li {
  display: flex; gap: .8rem; align-items: baseline; padding: .48rem 0;
  font-size: .95rem; color: var(--ink); border-bottom: 1px solid rgba(0,0,0,.05);
}
.uc-flow li:last-child { border-bottom: 0; }
.uc-flow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hairline); flex: none; transform: translateY(-1px); }
.uc-flow li.ai .dot { background: var(--blue); }
.uc-flow li.human .dot { background: #ff9f0a; }
.uc-flow .tag { font-size: .7rem; font-weight: 600; margin-left: auto; white-space: nowrap; }
.uc-flow li.ai .tag { color: var(--blue); }
.uc-flow li.human .tag { color: #c93400; }
.uc-facts { display: grid; gap: 1.2rem; align-content: start; }
.uc-facts h4 { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .3rem; }
.uc-facts p { font-size: .92rem; color: var(--ink-2); }
.uc-facts .sys { display: flex; flex-wrap: wrap; gap: .35rem; }
.uc-facts .sys li { font-size: .75rem; background: var(--bg-soft); padding: .28rem .7rem; border-radius: 980px; color: var(--ink-2); }

/* ============================================================
   FIVE LAYERS — clean numbered feature rows
   ============================================================ */
.layers { max-width: 720px; margin: 3.4rem auto 0; }
.layer {
  display: grid; grid-template-columns: 84px 1fr; gap: 1.6rem;
  padding: 2rem 0; border-top: 1px solid var(--hairline); align-items: start;
}
.layer:last-child { border-bottom: 1px solid var(--hairline); }
.layer .num { font-size: 2.6rem; font-weight: 600; letter-spacing: -.03em; color: var(--hairline); line-height: 1; transition: color .4s; }
.layer.is-active .num, .layer:hover .num { color: var(--blue); }
.layer h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.layer p { color: var(--ink-2); font-size: .98rem; max-width: 46em; }
.quote-band { max-width: 700px; margin: 3.2rem auto 0; text-align: center; font-size: var(--t-sub); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.quote-band em { font-style: normal; color: var(--ink-3); }

/* ============================================================
   PRIVATE AI — black "Pro" section
   ============================================================ */
.mode-stage {
  background: var(--bg-dark-2); border-radius: var(--tile-radius-lg);
  padding: clamp(1.2rem, 3vw, 2rem); margin-top: 2rem;
}
.mode-svg { width: 100%; height: auto; }
.mode-svg .boundary { fill: none; stroke: #2997ff; stroke-width: 1.5; stroke-dasharray: 6 6; transition: opacity .5s; }
.mode-svg .ext-link { stroke: rgba(255,159,10,.75); stroke-width: 1.5; stroke-dasharray: 4 5; fill: none; transition: opacity .6s; }
.mode-svg .ext-node rect { fill: #1d1d1f; stroke: rgba(255,159,10,.5); transition: opacity .6s; }
.mode-svg .in-node rect { fill: #1d1d1f; stroke: rgba(255,255,255,.25); }
.mode-svg text { font-family: var(--font); font-size: 11px; fill: #f5f5f7; font-weight: 600; }
.mode-svg .sub { font-size: 8.5px; fill: #a1a1a6; font-weight: 400; }
.mode-svg .faded { opacity: .12; }
.mode-desc { margin: 1.4rem auto 0; font-size: .95rem; color: var(--ink-inverse-2); max-width: 62em; text-align: center; min-height: 3em; }
.mode-desc strong { color: #fff; }

/* dark feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 3rem; }
.feature-grid li {
  background: var(--bg-dark-2); border-radius: var(--tile-radius);
  padding: 1.5rem 1.4rem; font-size: .92rem; color: var(--ink-inverse-2);
  display: flex; flex-direction: column; gap: .5rem;
}
.feature-grid svg { color: #2997ff; }

/* ============================================================
   PROCESS — numbered, minimal
   ============================================================ */
.process { max-width: 760px; margin: 3rem auto 0; }
.process-step {
  display: grid; grid-template-columns: 64px 180px 1fr; gap: 1.4rem;
  padding: 1.8rem 0; border-top: 1px solid var(--hairline); align-items: baseline;
}
.process-step:last-of-type { border-bottom: 1px solid var(--hairline); }
.process-step .pnum { font-size: 1rem; font-weight: 600; color: var(--ink-3); }
.process-step h3 { font-size: 1.5rem; }
.process-step p { color: var(--ink-2); font-size: .98rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; margin-top: 2.6rem; }
.pill-row li { font-size: .8rem; color: var(--ink-2); background: #fff; border: 1px solid var(--hairline); padding: .4rem .95rem; border-radius: 980px; }
.section:not(.section--soft) .pill-row li { background: var(--bg-soft); border-color: transparent; }

/* ============================================================
   WHY — icon feature grid
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem 2rem; margin-top: 3.4rem; text-align: center; }
.why-item { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.why-item svg { color: var(--blue); margin-bottom: .3rem; }
.why-item h3 { font-size: 1.15rem; }
.why-item p { font-size: .92rem; color: var(--ink-2); max-width: 30em; }

/* ============================================================
   ENGINEERING PANEL
   ============================================================ */
.gh-panel { background: #fff; border: 1px solid var(--hairline); border-radius: var(--tile-radius); overflow: hidden; margin-top: 2.8rem; }
.section:not(.section--soft) .gh-panel { background: var(--bg-soft); border-color: transparent; }
.gh-head { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid rgba(0,0,0,.08); font-size: .9rem; flex-wrap: wrap; }
.gh-head .repo { font-weight: 600; }
.gh-head .repo span { color: var(--ink-3); font-weight: 400; }
.gh-badges { margin-left: auto; display: flex; gap: .4rem; }
.gh-badges span { font-size: .7rem; font-weight: 600; color: var(--green); background: rgba(3,128,92,.08); padding: .28rem .7rem; border-radius: 980px; }
.gh-body { display: grid; grid-template-columns: 1.4fr 1fr; }
.gh-desc { padding: 1.8rem; text-align: left; }
.gh-desc h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.gh-desc p { font-size: .93rem; color: var(--ink-2); }
.gh-topics { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }
.gh-topics li { font-size: .72rem; color: var(--link); background: rgba(0,102,204,.08); padding: .26rem .65rem; border-radius: 980px; }
.gh-files { border-left: 1px solid rgba(0,0,0,.08); font-size: .82rem; text-align: left; }
.gh-files li { display: flex; gap: .6rem; padding: .7rem 1.5rem; border-bottom: 1px solid rgba(0,0,0,.06); color: var(--ink-2); align-items: center; }
.gh-files li:last-child { border-bottom: 0; }
.gh-files .fn { color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .76rem; }

.cs-empty {
  background: var(--bg-soft); border-radius: var(--tile-radius);
  padding: 2.4rem 2rem; text-align: center; color: var(--ink-2); font-size: .92rem; margin-top: .9rem;
}
.section--soft .cs-empty { background: #fff; }
.cs-empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .35rem; }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc {
  background: var(--bg-soft); border-radius: var(--tile-radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.4rem);
  margin-top: 3rem; text-align: left;
}
.section--soft .calc { background: #fff; }
.calc-inputs { display: grid; gap: 1.5rem; align-content: start; }
.calc-field label { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; font-weight: 500; margin-bottom: .5rem; }
.calc-field output { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-field input[type="range"] {
  width: 100%; appearance: none; -webkit-appearance: none; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue) var(--fill, 50%), rgba(0,0,0,.12) var(--fill, 50%));
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: .5px solid rgba(0,0,0,.1); box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: grab;
}
.calc-field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: .5px solid rgba(0,0,0,.15); box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: grab;
}
.calc-out { display: grid; gap: 1.15rem; align-content: start; }
.calc-stat .l { font-size: .78rem; color: var(--ink-3); font-weight: 500; }
.calc-stat .v { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-stat .v.hl { color: var(--blue); }
.calc-note { font-size: .75rem; color: var(--ink-3); border-top: 1px solid var(--hairline); padding-top: .9rem; }

/* ============================================================
   ENGAGEMENT — compare columns
   ============================================================ */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 3rem; align-items: stretch; }
.offer {
  background: #fff; border-radius: var(--tile-radius);
  padding: 2.2rem 1.9rem; display: flex; flex-direction: column; text-align: center;
}
.section:not(.section--soft) .offer { background: var(--bg-soft); }
.offer--featured { outline: 2px solid var(--blue); outline-offset: -2px; position: relative; }
.offer .flag { font-size: .72rem; font-weight: 600; color: var(--blue); margin-bottom: .6rem; letter-spacing: .04em; text-transform: uppercase; }
.offer h3 { font-size: 1.4rem; }
.offer .for { font-size: .88rem; color: var(--ink-2); margin-top: .5rem; min-height: 3.4em; }
.offer ul { text-align: left; margin: 1.4rem 0; display: grid; gap: .4rem; flex: 1; }
.offer ul li { font-size: .88rem; color: var(--ink-2); display: flex; gap: .55rem; align-items: baseline; }
.offer ul li::before { content: "✓"; color: var(--blue); font-weight: 600; flex: none; }
.offer .price { font-weight: 600; font-size: 1.05rem; margin-bottom: 1.2rem; }
.offer .btn { align-self: center; }
.offer-retainer {
  margin-top: .9rem; background: #fff; border-radius: var(--tile-radius);
  padding: 1.5rem 2rem; display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
  font-size: .92rem; color: var(--ink-2); text-align: left;
}
.section:not(.section--soft) .offer-retainer { background: var(--bg-soft); }
.offer-retainer strong { color: var(--ink); }
.offer-retainer .link { margin-left: auto; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 760px; margin: 3rem auto 0; border-top: 1px solid var(--hairline); text-align: left; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  display: flex; justify-content: space-between; gap: 1.4rem; align-items: center;
  padding: 1.3rem .1rem; cursor: pointer; list-style: none;
  font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { flex: none; color: var(--ink-3); font-size: 1.4rem; font-weight: 300; line-height: 1; transition: transform .3s var(--ease); }
.faq-item[open] summary .ico { transform: rotate(45deg); color: var(--blue); }
.faq-a { padding: 0 .1rem 1.4rem; color: var(--ink-2); font-size: .95rem; max-width: 64ch; }
.faq-a p + p { margin-top: .6rem; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { text-align: center; padding-block: clamp(6rem, 13vw, 10rem); }
.final-cta h2 { max-width: 20ch; margin-inline: auto; }
.final-cta .sub { max-width: 36em; margin: 1.3rem auto 0; }

/* ============================================================
   FOOTER — Apple style with footnotes
   ============================================================ */
.site-footer { background: var(--bg-soft); font-size: var(--t-nav); color: #424245; }
.footer-inner { max-width: var(--container); margin-inline: auto; padding: 1rem var(--gutter) 2.4rem; }
.footer-brand {
  display: inline-flex; align-items: center; gap: .8rem; margin: 1rem 0 1.35rem;
  color: var(--brand-obsidian);
}
.footer-brand .mark { width: 26px; height: 33px; object-fit: contain; flex: none; }
.footer-brand span { display: grid; gap: .08rem; }
.footer-brand strong { font-size: 1.1rem; line-height: 1.05; letter-spacing: -.025em; }
.footer-brand small { color: var(--ink-2); font-size: .68rem; letter-spacing: .01em; }
.footnotes { padding: 1.4rem 0; border-bottom: 1px solid var(--hairline); color: var(--ink-3); line-height: 1.5; }
.footnotes p { margin-bottom: .5rem; max-width: none; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; padding: 1.6rem 0; border-bottom: 1px solid var(--hairline); }
.footer-cols h4 { font-size: var(--t-nav); font-weight: 600; color: var(--ink); margin-bottom: .7rem; }
.footer-cols li { margin-bottom: .5rem; }
.footer-cols a { color: #424245; }
.footer-cols a:hover { text-decoration: underline; color: var(--ink); }
.footer-legal { display: flex; gap: .6rem 1.8rem; flex-wrap: wrap; padding-top: 1.2rem; color: var(--ink-3); align-items: center; }
.footer-legal a { color: #424245; }
.footer-legal a:hover { text-decoration: underline; }
.footer-legal .copyright { margin-right: auto; }

/* ============================================================
   PAGE HERO (interior)
   ============================================================ */
.page-hero { padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); text-align: center; }
.page-hero .kicker { font-size: 1rem; font-weight: 600; color: var(--orange); display: block; margin-bottom: .9rem; }
.page-hero h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); max-width: 17ch; margin-inline: auto; }
.page-hero .sub { max-width: 36em; margin: 1.3rem auto 0; }
.page-hero .cta-row { margin-top: 1.8rem; }

/* prose blocks */
.prose { max-width: 680px; margin-inline: auto; text-align: left; }
.prose h2 { font-size: 1.9rem; margin: 2.6rem 0 .8rem; }
.prose h3 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.prose p { color: var(--ink-2); margin-bottom: 1rem; }
.prose strong { color: var(--ink); }
.prose ul { margin: 1rem 0 1.4rem; display: grid; gap: .55rem; }
.prose ul li { color: var(--ink-2); padding-left: 1.2rem; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

/* two-up split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; text-align: left; }

/* anatomy */
.anatomy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3rem); align-items: center; margin-top: 3rem; text-align: left; }
.anatomy-list { display: grid; gap: .5rem; }
.anatomy-list button {
  text-align: left; padding: 1.05rem 1.25rem; border-radius: 14px; background: var(--bg-soft);
  transition: all .25s var(--ease); display: grid; gap: .2rem;
}
.section--soft .anatomy-list button { background: #fff; }
.anatomy-list button[aria-selected="true"] { background: var(--ink); }
.anatomy-list button[aria-selected="true"] .t, .anatomy-list button[aria-selected="true"] .d { color: #fff; }
.anatomy-list button[aria-selected="true"] .d { color: var(--ink-inverse-2); }
.anatomy-list .t { font-weight: 600; font-size: .98rem; }
.anatomy-list .d { font-size: .82rem; color: var(--ink-2); }
.anatomy-visual { background: var(--bg-dark); border-radius: var(--tile-radius-lg); padding: 1.4rem; }
.anatomy-svg .a-part { opacity: .35; transition: opacity .35s; }
.anatomy-svg .a-part.is-active { opacity: 1; }
.anatomy-svg .a-box { fill: #161617; stroke: rgba(255,255,255,.25); transition: stroke .3s; }
.anatomy-svg .a-part.is-active .a-box { stroke: #2997ff; }
.anatomy-svg text { font-family: var(--font); font-size: 11px; fill: #f5f5f7; font-weight: 600; }
.anatomy-svg .sub { font-size: 8.5px; fill: #a1a1a6; font-weight: 400; }
.anatomy-svg .a-line { stroke: rgba(255,255,255,.18); stroke-width: 1.2; fill: none; }

/* integrations */
.int-search { display: flex; flex-direction: column; gap: 1rem; align-items: center; margin: 2.4rem 0 2rem; }
.int-search input {
  width: min(520px, 100%); background: var(--bg-soft); border: 0; border-radius: 12px;
  padding: .9rem 1.2rem; font-size: 1rem; color: var(--ink);
}
.int-search input:focus { outline: 2px solid var(--blue); }
.int-filters { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; }
.int-filters button {
  font-size: .8rem; font-weight: 500; color: var(--ink-2); background: var(--bg-soft);
  padding: .42rem .95rem; border-radius: 980px; transition: all .2s;
}
.int-filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.int-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.int-card { background: var(--bg-soft); border-radius: 14px; padding: 1.15rem 1.2rem; text-align: left; transition: transform .2s var(--ease); }
.int-card:hover { transform: translateY(-2px); }
.int-card .n { font-weight: 600; font-size: .95rem; }
.int-card .c { font-size: .72rem; color: var(--ink-3); margin-top: .2rem; }
.int-card.is-hidden { display: none; }

/* insights */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-top: 3rem; }
.post-card {
  background: var(--bg-soft); border-radius: var(--tile-radius); padding: 2rem;
  display: flex; flex-direction: column; gap: .7rem; text-align: left;
  transition: transform .25s var(--ease);
}
.post-card:hover { transform: translateY(-3px); }
.post-card .cat { font-size: .72rem; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: .05em; }
.post-card h3 { font-size: 1.35rem; }
.post-card p { font-size: .9rem; color: var(--ink-2); flex: 1; }
.post-card .meta { font-size: .75rem; color: var(--ink-3); display: flex; gap: .9rem; }
.post-card--featured { grid-column: 1 / -1; background: var(--bg-dark); color: var(--ink-inverse); }
.post-card--featured h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.post-card--featured p { color: var(--ink-inverse-2); }
.post-card--featured .cat { color: #ff9f0a; }

.post-card-link { color: inherit; text-decoration: none; display: block; }
.post-card-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 18px; }
.article-page { background: #fff; }
.article-container { max-width: 780px; }
.article-hero { padding: clamp(7rem, 13vw, 11rem) 0 clamp(3rem, 7vw, 5rem); background: var(--bg-soft); }
.article-back { display: inline-block; margin-bottom: 2rem; color: var(--blue); text-decoration: none; font-size: .9rem; }
.article-hero .kicker { display: block; margin-bottom: 1rem; }
.article-hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: .98; letter-spacing: -.055em; max-width: 15ch; }
.article-hero h1 { overflow-wrap: anywhere; }
.article-hero .sub { max-width: 58ch; margin-top: 1.5rem; }
.article-meta { display: flex; gap: 1.25rem; margin-top: 1.5rem; color: var(--ink-3); font-size: .82rem; }
.article-body { padding-block: clamp(3rem, 8vw, 6rem); font-size: 1.08rem; line-height: 1.75; }
.article-body > p, .article-body > ul, .article-body > ol { margin-top: 1.2rem; }
.article-body > h2 { margin-top: 3.2rem; font-size: clamp(1.65rem, 3vw, 2.2rem); letter-spacing: -.025em; }
.article-body li + li { margin-top: .65rem; }
.article-sources { margin-top: 4rem; padding: 1.5rem; background: var(--bg-soft); border-radius: 18px; font-size: .9rem; }
.article-sources h2 { font-size: 1.15rem; margin-bottom: .75rem; }
.article-sources a { color: var(--blue); }
.article-next { margin-top: 3rem; padding: clamp(1.5rem, 5vw, 2.5rem); color: #fff; background: var(--bg-dark); border-radius: 22px; }
.article-next h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.article-next p { color: var(--ink-inverse-2); margin: .7rem 0 1.4rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-shell { background: var(--bg-soft); border-radius: var(--tile-radius-lg); padding: clamp(1.8rem, 4vw, 2.8rem); text-align: left; }
.form-steps { display: flex; gap: .5rem; margin-bottom: 1.8rem; font-size: .75rem; font-weight: 600; }
.form-steps span { padding: .35rem .9rem; border-radius: 980px; background: rgba(0,0,0,.05); color: var(--ink-3); }
.form-steps span.is-active { background: var(--ink); color: #fff; }
.form-steps span.is-done { background: rgba(0,113,227,.12); color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: grid; gap: .4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .85rem; font-weight: 500; }
.form-field .hint { font-size: .75rem; color: var(--ink-3); }
.form-field input, .form-field select, .form-field textarea {
  background: #fff; border: 1px solid var(--hairline); border-radius: 12px;
  padding: .8rem 1rem; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.18);
}
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: #e30000; }
.field-error { font-size: .76rem; color: #e30000; display: none; }
.form-field.has-error .field-error { display: block; }
.form-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); grid-column: 1 / -1; }
.form-check input { width: 1.05rem; height: 1.05rem; margin-top: .18rem; accent-color: var(--blue); }
.form-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; align-items: center; }
.form-success { text-align: center; padding: 1.6rem .6rem; }
.form-success h3 { margin-bottom: .7rem; }
.form-success p { color: var(--ink-2); }
.calendar-embed {
  margin-top: 1.5rem; background: #fff; border-radius: 14px; min-height: 280px;
  display: grid; place-items: center; color: var(--ink-3); font-size: .88rem; text-align: center; padding: 2rem;
}

/* 404 */
.err-hero { min-height: 88svh; display: grid; place-items: center; text-align: center; padding: 5rem var(--gutter) 4rem; }
.err-code { font-size: clamp(5rem, 20vw, 12rem); font-weight: 600; letter-spacing: -.04em; color: var(--bg-soft); -webkit-text-stroke: 1.5px var(--hairline); line-height: 1; }

/* legal */
.legal { max-width: 680px; margin-inline: auto; text-align: left; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .7rem; }
.legal p, .legal li { color: var(--ink-2); font-size: .95rem; margin-bottom: .8rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; }
.legal .updated { font-size: .8rem; color: var(--ink-3); margin-bottom: 2rem; }

/* reveal on scroll — subtle, Apple-like */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }

/* utilities */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fine { font-size: .75rem; color: var(--ink-3); }
sup a { color: var(--ink-3); text-decoration: none; font-size: .7em; }

/* mobile sticky CTA */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(251,251,253,.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,.08);
  display: none; transform: translateY(110%); transition: transform .4s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { width: 100%; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .int-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .flyout-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 840px) {
  .main-nav, .site-header .lang-switch, .site-header .header-actions .btn { display: none; }
  .nav-burger { display: block; }
  .tile-grid, .ba-grid, .offers, .post-grid, .split, .anatomy,
  .uc-panel.is-active, .calc, .gh-body { grid-template-columns: 1fr; }
  .gh-files { border-left: 0; border-top: 1px solid rgba(0,0,0,.08); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .int-grid, .form-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .process-step { grid-template-columns: 48px 1fr; }
  .process-step p { grid-column: 2; }
  .layer { grid-template-columns: 56px 1fr; gap: 1rem; }
  .layer .num { font-size: 1.9rem; }
  .mobile-cta { display: block; }
  .seg-wrap { justify-content: flex-start; overflow-x: auto; }
}
@media (max-width: 560px) {
  .why-grid, .int-grid, .form-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hero-brand { margin-bottom: 1.75rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .wf-svg .wf-pulse { display: none; }
}
