/* ==========================================================================
   Poker Analytics — homepage stylesheet
   Design 01 "Clean Performance" (v2), extracted from 01-clean-v2.html.

   Structure: cascade layers `reset < base < components`. Shared primitives
   (.ck, .av, .picto, the lifting cards) sit at the top of `components`
   wrapped in :where(), so any later component rule overrides them without
   specificity games. Every brand-color alpha is derived with color-mix()
   from the :root palette — re-tinting the site is a :root edit. Plain
   rgba(255,255,255,x) is kept on the dark bands: those really are
   "white at x%", not palette-derived.
   ========================================================================== */

@layer reset, base, components;

/* ---------- design tokens ---------- */
:root{
  /* palette */
  --canvas:#FAFAF7;
  --white:#FFFFFF;
  --ink:#14201B;
  --ink-soft:#5B6B63;
  --emerald:#0E9F6E;
  --emerald-deep:#0A7E58;
  --mint:#34E0A1;
  --line:#ECECE8;
  --line-strong:#E2E2DC;
  --pine:#0C1410;      /* darkest surface: device bezels, dark-band gradients */
  --pine-soft:#0D1611; /* hand-histories band, chart frames */

  /* elevation */
  --shadow-sm:0 1px 2px rgba(20,32,27,.04), 0 4px 14px rgba(20,32,27,.05);
  --shadow-md:0 10px 30px rgba(20,32,27,.08), 0 2px 8px rgba(20,32,27,.04);
  --shadow-lg:0 30px 70px rgba(20,32,27,.14), 0 8px 24px rgba(20,32,27,.08);
  /* The two directional layers are offset +50/+20px with a negative spread, so
     on their own they hug the sides and bottom and evaporate before the top
     edge — the fade-out lands right on the top corner arcs, which then read as
     shaded while the straight top border reads as cut out. The leading
     zero-offset layer is the even ambient halo that closes that gap. */
  --shadow-phone:0 0 24px rgba(20,32,27,.10),
                 0 50px 90px -30px rgba(11,80,56,.35),
                 0 20px 50px -20px rgba(20,32,27,.25);

  /* radii */
  --r-sm:14px;
  --r:24px;
  --r-lg:34px;

  /* type */
  --display:'Schibsted Grotesk', sans-serif;
  --body:'Hanken Grotesk', sans-serif;
  --mono:'Spline Sans Mono', monospace;

  /* layout & motion */
  --maxw:1180px;
  --ease:cubic-bezier(.2,.8,.2,1);
}

/* ---------- reset ---------- */
@layer reset{
  *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
  html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
  /* `height:auto` is what lets every <img> carry width/height attributes:
     the attributes reserve the right aspect ratio before the bytes land
     (no layout shift) while CSS still drives the rendered size. */
  img{display:block;max-width:100%;height:auto}
  a{color:inherit;text-decoration:none}
}

/* skip link — first focusable element on the page, visible only on focus */
.skip-link{
  position:absolute;
  left:12px;
  top:-60px;
  z-index:100;
  padding:.7rem 1.1rem;
  background:var(--ink);
  color:var(--canvas);
  border-radius:10px;
  font-weight:600;
  transition:top .2s var(--ease);
}
.skip-link:focus{top:12px}

/* visually hidden but read by assistive tech and text extractors */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

/* ---------- base ---------- */
@layer base{
  body{
    font-family:var(--body);
    font-size:17px;
    line-height:1.55;
    color:var(--ink);
    background:var(--canvas);
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  h1,h2,h3{
    font-family:var(--display);
    font-weight:700;
    letter-spacing:-.02em;
    line-height:1.02;
    text-wrap:balance;
  }
  ::selection{background:var(--mint);color:var(--ink)}

  .wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:24px}
}

@layer components{

/* ============ PRIMITIVES ============ */
.eyebrow{
  font-family:var(--mono);
  font-size:.72rem;
  font-weight:500;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--emerald-deep);
}

.tag{
  display:inline-block;
  margin-bottom:18px;
  padding:.35rem .7rem;
  border-radius:8px;
  font-family:var(--mono);
  font-size:.72rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--emerald-deep);
  background:color-mix(in srgb, var(--mint) 12%, transparent);
}

/* round check/dash bullet used by lists, the spec table and plans */
.ck{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:50%;
  vertical-align:middle;
  background:color-mix(in srgb, var(--emerald) 12%, transparent);
}
.ck svg{width:12px;height:12px}
.ck.muted{background:color-mix(in srgb, var(--ink-soft) 14%, transparent)}

/* icon chip */
.picto{
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:13px;
  margin-bottom:16px;
  background:color-mix(in srgb, var(--emerald) 8%, transparent);
}
.picto img{width:28px;height:28px;opacity:.85}

/* avatar disc (hero social proof + review bylines) */
.av{
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:#fff;
  font-family:var(--display);
  font-weight:700;
}
.av.a1{background:linear-gradient(135deg,var(--emerald),var(--mint))}
.av.a2{background:linear-gradient(135deg,var(--ink),#3a5247)}
.av.a3{background:linear-gradient(135deg,var(--emerald-deep),var(--emerald))}
.av.a4{background:linear-gradient(135deg,var(--ink-soft),#8aa399)}

/* every tile/card on the page shares one surface. These are content blocks,
   not controls, so they stay put under the pointer — no lift, no shadow. */
:where(.b-tile,.icard,.mod-card,.review-card,.value-card,.plan){
  position:relative;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r);
  transition:border-color .35s;
}

/* ============ BUTTONS / BADGES ============ */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.85rem 1.4rem;
  border:none;
  border-radius:999px;
  cursor:pointer;
  font-family:var(--body);
  font-weight:600;
  font-size:.95rem;
  transition:transform .25s var(--ease), box-shadow .25s, background .25s;
}
.btn-primary{
  background:linear-gradient(135deg,var(--emerald),var(--emerald-deep));
  color:#fff;
  box-shadow:0 10px 24px -8px color-mix(in srgb, var(--emerald) 60%, transparent);
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 32px -8px color-mix(in srgb, var(--emerald) 70%, transparent);
}
.btn-ghost{
  background:var(--white);
  color:var(--ink);
  border:1px solid var(--line-strong);
  box-shadow:var(--shadow-sm);
}
.btn-ghost:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}

.store-badge{display:inline-block;transition:transform .25s var(--ease), filter .25s}
.store-badge img{height:52px;width:auto}
.store-badge:hover{transform:translateY(-3px)}
.store-badge.apple img{filter:drop-shadow(0 12px 22px rgba(20,32,27,.22))}
.store-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}

/* ============ NAV ============ */
.nav{
  position:sticky;
  top:0;
  z-index:60;
  backdrop-filter:saturate(140%) blur(14px);
  background:rgba(250,250,247,.78);
  border-bottom:1px solid transparent;
  transition:border-color .3s, background .3s;
}
.nav.scrolled{border-bottom-color:var(--line);background:rgba(250,250,247,.92)}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
  max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  font-family:var(--display);
  font-weight:700;
  font-size:1.12rem;
  letter-spacing:-.02em;
}
.brand img{width:34px;height:34px;border-radius:9px;box-shadow:var(--shadow-sm)}
/* six nav items + the Download CTA is a wide row — let the gap breathe on
   large screens and tighten before the hamburger takes over at 820px */
.nav-links{display:flex;align-items:center;gap:clamp(18px,2.2vw,32px)}
.nav-links a.link{
  font-weight:500;
  font-size:.94rem;
  color:var(--ink-soft);
  position:relative;
  transition:color .2s;
}
.nav-links a.link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  height:2px;
  width:0;
  background:var(--emerald);
  transition:width .28s var(--ease);
}
.nav-links a.link:hover{color:var(--ink)}
.nav-links a.link:hover::after{width:100%}
.nav-cta{padding:.6rem 1.15rem;font-size:.9rem}
.menu-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  background:none;
  border:1px solid var(--line-strong);
  border-radius:10px;
  cursor:pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after{
  content:"";
  display:block;
  width:18px;
  height:2px;
  background:var(--ink);
  position:relative;
  transition:.25s;
}
.menu-toggle span::before{position:absolute;top:-6px}
.menu-toggle span::after{position:absolute;top:6px}

/* ============ HERO ============ */
.hero{position:relative;padding:64px 0 90px;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  margin-bottom:26px;
  padding:.45rem .85rem;
  border-radius:999px;
  background:var(--white);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
  font-size:.82rem;
  font-weight:600;
  color:var(--ink-soft);
}
.hero-badge .dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--mint);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--mint) 25%, transparent);
}
.hero h1{
  font-size:clamp(2.7rem,6.4vw,4.8rem);
  font-weight:800;
  letter-spacing:-.035em;
  margin-bottom:22px;
}
.hero h1 .accent{color:var(--emerald);position:relative;white-space:nowrap}
.hero h1 .accent::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:.08em;
  height:.14em;
  background:var(--mint);
  opacity:.55;
  border-radius:3px;
  z-index:-1;
}
.hero .sub{font-size:1.15rem;color:var(--ink-soft);max-width:30ch;margin-bottom:32px}
.hero-cta{margin-bottom:30px}

.social-cluster{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.avatars{display:flex}
.avatars .av{
  width:34px;
  height:34px;
  margin-left:-10px;
  border:2px solid var(--canvas);
  font-size:.72rem;
}
.avatars .av:first-child{margin-left:0}
.social-text{font-size:.86rem;color:var(--ink-soft);line-height:1.35}
.social-text strong{color:var(--ink);font-weight:700}
.stars{color:var(--emerald);letter-spacing:1px}

/* hero phone */
.hero-phone-zone{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:520px;
}
.glow-blob{
  position:absolute;
  width:520px;
  height:520px;
  border-radius:50%;
  background:radial-gradient(circle at 50% 45%,
    color-mix(in srgb, var(--mint) 55%, transparent),
    color-mix(in srgb, var(--mint) 12%, transparent) 45%,
    transparent 70%);
  filter:blur(10px);
  z-index:0;
  animation:pulse 7s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{transform:scale(1);opacity:.9}
  50%{transform:scale(1.08);opacity:1}
}

.phone{
  position:relative;
  z-index:2;
  width:300px;
  transform:perspective(1500px) rotateY(-8deg) rotateX(1deg);
  transform-style:preserve-3d;
  animation:floaty 6s ease-in-out infinite;
}
@keyframes floaty{
  0%,100%{transform:perspective(1500px) rotateY(-8deg) rotateX(1deg) translateY(0)}
  50%{transform:perspective(1500px) rotateY(-8deg) rotateX(1deg) translateY(-14px)}
}
.device{
  position:relative;
  border-radius:46px;
  background:var(--pine);
  padding:10px;
  box-shadow:var(--shadow-phone);
}
/* Hero phone frame: neutral silver-gray bezel, like a real phone's metal edge —
   light enough to read against the near-white canvas, cool-toned so it doesn't
   fight the emerald scheme. */
.hero .device{
  border:2px solid #a4abb2;                      /* outer silver band */
  box-shadow:inset 0 0 0 1px #7f868d,            /* 1px darker inner ring (iPhone edge) */
             var(--shadow-phone);                /* re-declared so the drop shadow survives */
}
.device-screen{
  border-radius:38px;
  overflow:hidden;
  background:#000;
  aspect-ratio:1260/2550;
  position:relative;
}
.device-screen img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
}

/* ============ TRUST STRIP ============ */
.strip{border-block:1px solid var(--line);background:var(--white)}
.strip-inner{
  display:flex;
  align-items:center;
  justify-content:space-around;
  gap:18px;
  list-style:none;
  flex-wrap:wrap;
  padding:26px 24px;
  max-width:var(--maxw);
  margin-inline:auto;
}
.strip-item{display:flex;align-items:baseline;gap:.5rem}
.strip-item .n{font-family:var(--display);font-weight:800;font-size:1.7rem;letter-spacing:-.02em}
.strip-item .n .gr{color:var(--emerald)}
.strip-item .t{font-size:.85rem;color:var(--ink-soft)}
.strip-sep{width:1px;height:34px;background:var(--line);align-self:center}

/* ============ SECTION SCAFFOLDING ============ */
.sec{padding:96px 0}
.sec.slim{padding:0 0 96px}
.sec.snug{padding-top:48px}
.sec.flush{padding-top:0}
.sec-head{max-width:640px;margin-bottom:56px}
.sec-head.center{margin-inline:auto;text-align:center}
.sec-head h2{font-size:clamp(2rem,4.4vw,3.2rem);margin:14px 0 16px;letter-spacing:-.03em}
.sec-head p{color:var(--ink-soft);font-size:1.1rem}

/* masthead for sub-pages (reviews, etc.) — the hero's job on a page with no phone */
.page-hero{padding:72px 0 60px;text-align:center}
.page-hero h1{font-size:clamp(2.1rem,5vw,3.4rem);margin:16px 0 18px;letter-spacing:-.03em}
.page-hero p{max-width:600px;margin-inline:auto;color:var(--ink-soft);font-size:1.1rem}

/* ============ FEATURE ROWS ============ */
.feature-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
  margin-bottom:120px;
}
.feature-row:last-child{margin-bottom:0}
.feature-row.tight{margin-bottom:24px;align-items:flex-start}
.feature-row.flip .f-media{order:1}
.feature-row.flip .f-text{order:2}
.f-text.intro{max-width:640px;margin-bottom:14px}
/* feature rows are top-level page sections, so their heading is an <h2>;
   :is() keeps the styling for the <h3> sub-headings that sit inside one. */
.f-text :is(h2,h3){font-size:clamp(1.7rem,3vw,2.4rem);margin-bottom:16px;letter-spacing:-.03em}
.f-text p{color:var(--ink-soft);font-size:1.08rem;margin-bottom:22px}
.f-list{list-style:none;display:flex;flex-direction:column;gap:11px}
.f-list li{display:flex;align-items:center;gap:11px;font-weight:500;font-size:.98rem}

/* spec table (tracking checklist) */
.spec-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin-top:6px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-sm);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.spec-table th{
  font-family:var(--mono);
  font-size:.66rem;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ink-soft);
  text-align:left;
  padding:12px 18px;
  background:var(--canvas);
  border-bottom:1px solid var(--line);
}
.spec-table th:last-child{text-align:right}
.spec-table td{padding:12px 18px;font-weight:500;font-size:.97rem;border-top:1px solid var(--line)}
.spec-table tbody tr:first-child td{border-top:0}
.spec-table tbody tr{transition:background .2s}
.spec-table tbody tr:hover{background:var(--canvas)}
.spec-table td.ok{text-align:right;width:64px}
.spec-table td .hl{color:var(--emerald-deep);font-weight:600}
/* caption under the spec table: the table carries the visual weight, so this
   sentence sits a notch smaller than a body paragraph and closes the block —
   no bottom margin, the .tight row already spaces itself from the next one. */
.spec-table + p{margin:18px 0 0;font-size:1rem}

.f-media{display:flex;justify-content:center}
.media-card{
  position:relative;
  width:100%;
  max-width:484px;
  display:flex;
  justify-content:center;
  overflow:hidden;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:12px;
  box-shadow:var(--shadow-md);
}
.media-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 70% 0%, color-mix(in srgb, var(--mint) 10%, transparent), transparent 55%);
  pointer-events:none;
}
.device.sm{width:230px;transform:none;animation:none;border-radius:38px}
.device.sm .device-screen{border-radius:30px}

.wide-shot{width:100%;border-radius:14px;border:1px solid var(--line)}
.widget-shot{width:100%;border-radius:14px}

/* ============ BENTO GRIDS ============ */
.bento{display:grid;grid-template-columns:repeat(12,1fr);gap:20px}
.b-tile{padding:28px;display:flex;flex-direction:column;gap:10px;overflow:hidden}
.b-tile h3{font-family:var(--display);font-weight:700;font-size:1.28rem;letter-spacing:-.02em}
.b-tile p{color:var(--ink-soft);font-size:.98rem;line-height:1.55}
.b-tile .picto{margin-bottom:6px}
.t-half{grid-column:span 6}
.t-third{grid-column:span 4}
.tool-list{list-style:none;margin-top:2px;display:flex;flex-direction:column}
.tool-list li{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.tool-list li:last-child{border-bottom:0;padding-bottom:0}
.tool-list strong{font-family:var(--display);font-weight:700;font-size:1rem;letter-spacing:-.01em}
.tool-list span{font-size:.88rem;color:var(--ink-soft)}

/* ============ MORE THAN POKER (modules) ============ */
.modules{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.mod-card{padding:32px 30px 30px;display:flex;flex-direction:column}
.mod-card:hover{border-color:var(--line-strong)}
.mod-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px}
.mod-card .picto{width:56px;height:56px;border-radius:16px;margin:0}
.mod-card .picto img{width:32px;height:32px}
.mod-card h3{
  font-family:var(--display);
  font-weight:700;
  font-size:1.5rem;
  letter-spacing:-.02em;
  margin-bottom:8px;
}
.mod-lead{
  font-family:var(--display);
  font-weight:600;
  color:var(--ink);
  font-size:1.05rem;
  line-height:1.35;
  letter-spacing:-.01em;
  margin-bottom:10px;
}
.mod-desc{color:var(--ink-soft);font-size:.96rem;line-height:1.55;flex:1}
.mod-unify{
  margin-top:26px;
  padding:24px 32px;
  border-radius:var(--r);
  background:linear-gradient(100deg,
    color-mix(in srgb, var(--emerald) 6%, transparent),
    color-mix(in srgb, var(--mint) 5%, transparent));
  border:1px solid color-mix(in srgb, var(--emerald) 18%, transparent);
  font-size:1.06rem;
  color:var(--ink-soft);
  line-height:1.55;
  text-align:center;
}
.mod-unify strong{color:var(--ink);font-weight:700;font-family:var(--display);letter-spacing:-.01em}

/* dark-band variant — reuses the reporting band's surface conventions */
.dark-band .modules,
.dark-band .mod-unify{position:relative;z-index:2}
.dark-band .mod-card{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.1)}
.dark-band .mod-card:hover{border-color:rgba(255,255,255,.22)}
.dark-band .mod-card .picto{background:color-mix(in srgb, var(--mint) 14%, transparent)}
.dark-band .mod-card .picto img{opacity:1;filter:brightness(1.35) saturate(1.05)}
.dark-band .mod-card h3,
.dark-band .mod-lead{color:#fff}
.dark-band .mod-desc{color:rgba(255,255,255,.6)}
.dark-band .mod-unify{
  background:color-mix(in srgb, var(--mint) 7%, transparent);
  border-color:color-mix(in srgb, var(--mint) 22%, transparent);
  color:rgba(255,255,255,.66);
}
.dark-band .mod-unify strong{color:#fff}

/* ============ REPORTING DARK BAND ============ */
.dark-band{
  background:linear-gradient(170deg, var(--pine) 0%, #122b21 55%, #0c1a14 100%);
  color:#fff;
  border-top:1px solid var(--line);
  border-bottom:1px solid rgba(255,255,255,.08);
  position:relative;
  overflow:hidden;
}
.dark-band::before{
  content:"";
  position:absolute;
  top:-220px;
  right:-140px;
  width:640px;
  height:640px;
  border-radius:50%;
  background:radial-gradient(circle, color-mix(in srgb, var(--mint) 16%, transparent), transparent 65%);
  pointer-events:none;
}
.dark-band .sec-head h2{color:#fff}
.dark-band .sec-head p{color:rgba(255,255,255,.64)}
.dark-band .eyebrow{color:var(--mint)}
.head-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:26px;
  margin-bottom:52px;
  position:relative;
  z-index:2;
}
.head-row .sec-head{margin-bottom:0}
.car-nav{display:flex;gap:10px;flex:none;padding-bottom:6px}
.car-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  transition:.25s;
}
.car-btn:hover{background:var(--mint);border-color:var(--mint);color:var(--ink)}
.car-btn svg{width:18px;height:18px}
.carousel{
  display:flex;
  gap:26px;
  overflow-x:auto;
  overflow-y:hidden;
  touch-action:pan-x pan-y;
  scroll-snap-type:x proximity;
  scroll-behavior:auto;
  padding:8px max(24px, calc((100vw - var(--maxw))/2 + 24px)) 10px;
  scrollbar-width:none;
  cursor:grab;
  position:relative;
  z-index:2;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.carousel::-webkit-scrollbar{display:none}
.carousel.drag{cursor:grabbing}
.carousel img{-webkit-user-drag:none;user-select:none}
.slide{flex:none;width:248px;scroll-snap-align:center;margin:0}
.slide .device{
  width:100%;
  border-radius:40px;
  padding:9px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 34px 70px -24px rgba(0,0,0,.65);
}
.slide .device-screen{border-radius:32px}
.slide .cap{margin-top:16px;text-align:center;display:flex;flex-direction:column;gap:3px}
.slide .cap .cl{
  font-family:var(--mono);
  font-size:.7rem;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--mint);
}
.slide .cap .cs{font-size:.85rem;color:rgba(255,255,255,.55)}

/* ============ INSIGHTS (white band) ============ */
.insights{background:var(--white);border-block:1px solid var(--line)}
.icard-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.icard{background:var(--canvas);padding:28px;display:flex;flex-direction:column;gap:10px}
.icard h3{font-family:var(--display);font-weight:700;font-size:1.22rem;letter-spacing:-.02em}
.icard p{color:var(--ink-soft);font-size:.95rem;flex:1}
.icard .visual{
  margin-top:14px;
  background:var(--pine-soft);
  border-radius:16px;
  padding:10px;
  box-shadow:var(--shadow-sm);
}
.icard .visual img{width:100%;border-radius:10px}
.bars{display:flex;flex-direction:column;gap:14px;padding:14px 8px}
.bar{display:flex;align-items:center;gap:12px;font-family:var(--mono);font-size:.72rem}
.bar .bl{
  width:92px;
  flex:none;
  color:rgba(255,255,255,.55);
  text-transform:uppercase;
  letter-spacing:.06em;
}
.bar .track{flex:1;height:10px;border-radius:99px;background:rgba(255,255,255,.09);overflow:hidden}
.bar .fill{
  display:block;
  height:100%;
  width:var(--w,0%);
  border-radius:99px;
  background:linear-gradient(90deg,var(--emerald),var(--mint));
}
.bar .fill.dim{background:#FF5F57}
.bar .bv{color:#fff;font-weight:600;flex:none}

/* ============ HAND HISTORIES BAND ============ */
.hh-band{
  background:var(--pine-soft);
  color:#fff;
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.hh-band::before{
  content:"";
  position:absolute;
  inset:0;
  background:url("../img/cardback.svg") 0 0/120px 120px repeat;
  opacity:.26;
  pointer-events:none;
  -webkit-mask-image:linear-gradient(105deg, rgba(0,0,0,.3), #000 60%);
  mask-image:linear-gradient(105deg, rgba(0,0,0,.3), #000 60%);
}
.hh-band .wrap{position:relative;z-index:2}
.hh-band .tag{background:color-mix(in srgb, var(--mint) 14%, transparent);color:var(--mint)}
.hh-band .f-text :is(h2,h3){color:#fff}
.hh-band .f-text p{color:rgba(255,255,255,.66)}
.hh-band .f-list li{color:rgba(255,255,255,.88)}
.hh-band .f-list li .ck{background:color-mix(in srgb, var(--mint) 16%, transparent)}
.hh-frame{
  position:relative;
  width:min(400px,100%);
  background:#17251E;
  border:1px solid rgba(255,255,255,.09);
  border-radius:var(--r);
  padding:12px;
  box-shadow:0 50px 90px -30px rgba(11,80,56,.45), 0 20px 50px -20px rgba(0,0,0,.5);
}
.hh-frame img{width:100%;border-radius:14px}

/* ============ IMPORT STRIP ============ */
.import-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  flex-wrap:wrap;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:38px 42px;
  box-shadow:var(--shadow-sm);
}
.import-card :is(h2,h3){font-size:clamp(1.4rem,2.6vw,1.9rem);letter-spacing:-.02em;margin:10px 0 8px}
.import-card p{color:var(--ink-soft);max-width:56ch}

/* ============ TESTIMONIALS ============ */
.reviews{background:var(--white);border-block:1px solid var(--line)}
.review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.review-card{background:var(--canvas);padding:30px;display:flex;flex-direction:column;gap:14px}
.review-card .rstars{color:var(--emerald);font-size:1rem;letter-spacing:2px}
.review-card .rtitle{font-family:var(--display);font-weight:700;font-size:1.22rem;letter-spacing:-.02em}
.review-card .rbody{color:var(--ink-soft);font-size:1rem;line-height:1.6;flex:1}
.review-card .rby{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:.9rem;
  font-weight:600;
  padding-top:6px;
  border-top:1px solid var(--line);
}
.review-card .rby .av{width:30px;height:30px;font-size:.7rem}
.review-card .rby span:not(.av){color:var(--ink-soft);font-weight:500}

/* centered link out of a section (e.g. "read more reviews") */
.more-row{display:flex;justify-content:center;margin-top:44px}

/* reviews page: masonry wall, so short and long reviews pack tightly */
.review-wall{columns:3;column-gap:24px}
.review-wall .review-card{break-inside:avoid;margin-bottom:24px}
.review-wall .review-card .rbody{flex:none}

/* ============ VALUES ============ */
.values-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;max-width:920px;margin-inline:auto}
.value-card{padding:28px 24px;text-align:left}
.value-card h3{
  font-family:var(--display);
  font-weight:700;
  font-size:1.12rem;
  margin-bottom:7px;
  letter-spacing:-.02em;
}
.value-card p{font-size:.92rem;color:var(--ink-soft);line-height:1.5}

/* ============ PLANS ============ */
.plans-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:840px;margin-inline:auto}
.plan{padding:34px}
.plan.pro{
  background:linear-gradient(165deg, var(--pine), #143028);
  color:#fff;
  border-color:transparent;
  overflow:hidden;
}
.plan.pro::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 85% 5%, color-mix(in srgb, var(--mint) 22%, transparent), transparent 55%);
  pointer-events:none;
}
.plan .pname{
  font-family:var(--display);
  font-weight:700;
  font-size:1.5rem;
  letter-spacing:-.02em;
  display:flex;
  align-items:center;
  gap:10px;
}
.plan .pnote{font-size:.86rem;opacity:.75;margin-bottom:22px}
.plan .pro-sub{color:rgba(255,255,255,.7)}
.plan ul{list-style:none;display:flex;flex-direction:column;gap:13px;margin-bottom:26px}
.plan li{display:flex;align-items:flex-start;gap:11px;font-size:.97rem}
.plan li .ck{margin-top:1px;background:color-mix(in srgb, var(--emerald) 14%, transparent)}
.plan.pro li .ck{background:color-mix(in srgb, var(--mint) 20%, transparent)}
.plan .btn{width:100%;justify-content:center}
.plan.pro .btn-primary{
  background:var(--mint);
  color:var(--ink);
  box-shadow:0 10px 24px -8px color-mix(in srgb, var(--mint) 50%, transparent);
}

/* ============ FINAL CTA ============ */
.cta-band{position:relative;overflow:hidden}
.cta-inner{
  background:linear-gradient(150deg, var(--emerald) 0%, var(--emerald-deep) 55%, #0c2a20 100%);
  border-radius:var(--r-lg);
  padding:70px 50px;
  text-align:center;
  color:#fff;
  position:relative;
  overflow:hidden;
  box-shadow:var(--shadow-lg);
}
.cta-inner::before{
  content:"";
  position:absolute;
  top:-40%;
  right:-10%;
  width:520px;
  height:520px;
  border-radius:50%;
  background:radial-gradient(circle, color-mix(in srgb, var(--mint) 55%, transparent), transparent 65%);
}
.cta-inner::after{
  content:"";
  position:absolute;
  bottom:-50%;
  left:-15%;
  width:480px;
  height:480px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.14), transparent 65%);
}
.cta-inner > *{position:relative;z-index:2}
.cta-inner .eyebrow{color:rgba(255,255,255,.8)}
.cta-inner h2{font-size:clamp(2.1rem,5vw,3.4rem);margin:14px 0 16px;color:#fff;letter-spacing:-.03em}
.cta-inner p{color:rgba(255,255,255,.85);font-size:1.12rem;max-width:46ch;margin:0 auto 32px}
.cta-inner .store-row{justify-content:center}
.cta-inner .store-badge img{height:56px}

/* ============ ANDROID CALLOUT ============ */
/* Sits directly under the iOS CTA as its quieter companion: a light
   emerald-tinted card on the canvas (vs. the CTA's saturated gradient) so it
   reads as a secondary, platform-specific note, not a competing CTA. */
.android-band{padding:48px 0 8px}
.android-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
  background:linear-gradient(100deg,
    color-mix(in srgb, var(--emerald) 7%, transparent),
    color-mix(in srgb, var(--mint) 5%, transparent));
  border:1px solid color-mix(in srgb, var(--emerald) 18%, transparent);
  border-radius:var(--r-lg);
  padding:34px 44px;
  box-shadow:var(--shadow-sm);
}
.android-main{display:flex;align-items:center;gap:24px;min-width:0}
.android-glyph{
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  width:62px;
  height:62px;
  border-radius:18px;
  background:color-mix(in srgb, var(--emerald) 10%, transparent);
  color:var(--emerald-deep);
}
.android-glyph svg{width:36px;height:36px}
.android-copy :is(h2,h3){font-size:clamp(1.4rem,2.6vw,1.9rem);letter-spacing:-.02em;margin:0 0 8px}
.android-copy p{color:var(--ink-soft);max-width:54ch}
.android-band .store-badge img{height:56px}
/* below ~880px the card's flex row wraps and the badge drops to its own
   line — center it there instead of leaving it ragged-left */
@media (width <= 880px){
  .android-band .store-badge{margin-inline:auto}
}

/* ============ FOOTER ============ */
footer{padding:64px 0 50px}
.foot-top{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap;margin-bottom:42px}
.foot-brand{max-width:300px}
.foot-brand .brand{margin-bottom:14px}
.foot-brand p{color:var(--ink-soft);font-size:.92rem}
.foot-cols{display:flex;gap:64px;flex-wrap:wrap}
.foot-col h5{
  font-family:var(--mono);
  font-size:.7rem;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ink-soft);
  margin-bottom:16px;
}
.foot-col a{
  display:block;
  color:var(--ink);
  font-size:.94rem;
  margin-bottom:11px;
  font-weight:500;
  transition:color .2s;
}
.foot-col a:hover{color:var(--emerald)}
.foot-bottom{
  border-top:1px solid var(--line);
  padding-top:26px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  font-size:.86rem;
  color:var(--ink-soft);
}
.foot-meta{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.foot-lang{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding-left:20px;
  border-left:1px solid var(--line);
  color:var(--ink);
  font-weight:500;
  transition:color .2s;
}
.foot-lang:hover{color:var(--emerald)}
.foot-lang svg{width:15px;height:15px;flex:none}
.foot-social{display:flex;gap:12px}
.foot-social a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid var(--line-strong);
  color:var(--ink-soft);
  transition:.25s;
}
.foot-social a:hover{background:var(--ink);color:#fff;border-color:var(--ink);transform:translateY(-2px)}
.foot-social svg{width:17px;height:17px}

/* ============ RESPONSIVE ============ */
@media (width <= 980px){
  .hero{padding:40px 0 60px}
  .hero-grid{grid-template-columns:1fr;gap:8px}
  .hero .sub{max-width:46ch}
  .hero-phone-zone{min-height:560px;margin-top:30px}
  .feature-row{grid-template-columns:1fr;gap:34px;margin-bottom:80px}
  .feature-row.flip .f-media{order:0}
  .feature-row.flip .f-text{order:0}
  .review-grid{grid-template-columns:1fr}
  .review-wall{columns:2}
  .values-grid{grid-template-columns:1fr 1fr}
  .page-hero{padding:56px 0 44px}
  .sec{padding:72px 0}
  .sec.slim{padding:0 0 72px}
  .bento{display:flex;flex-direction:column}
  .modules{grid-template-columns:1fr}
  .head-row{flex-direction:column;align-items:flex-start;margin-bottom:40px}
  .icard-grid{grid-template-columns:1fr}
  .slide{width:224px}
}
/* The nav collapses earlier than the rest of the layout: the full link set
   (Home / Features / Philosophy / FAQ / Contact / Blog) plus the CTA stops
   fitting well before the 680px body breakpoint. */
@media (width <= 820px){
  .nav-links{
    position:fixed;
    inset:72px 0 auto 0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:var(--canvas);
    border-bottom:1px solid var(--line);
    padding:8px 0;
    transform:translateY(-130%);
    transition:transform .35s var(--ease);
    z-index:55;
  }
  .nav-links.open{transform:none;box-shadow:var(--shadow-md)}
  .nav-links a.link{padding:14px 24px;font-size:1rem}
  .nav-links a.link::after{display:none}
  .nav-links .nav-cta{margin:8px 24px}
  .menu-toggle{display:flex}
}

@media (width <= 680px){
  body{font-size:16px}
  .plans-grid{grid-template-columns:1fr}
  .values-grid{grid-template-columns:1fr}
  .review-wall{columns:1}
  .strip-sep{display:none}
  .strip-inner{justify-content:center;gap:14px 28px}
  .cta-inner{padding:50px 26px}
  .android-card{padding:28px 24px;gap:22px}
  .android-main{gap:18px}
  .android-glyph{width:52px;height:52px;border-radius:15px}
  .android-glyph svg{width:30px;height:30px}
  .foot-cols{gap:40px}
  .foot-meta{gap:10px}
  .foot-lang{padding-left:0;border-left:0;flex-basis:100%}
  .import-card{padding:30px 24px}
  .import-card .btn{width:100%;justify-content:center}
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}

} /* @layer components */

/* ==========================================================================
   SUB-PAGE COMPONENTS
   Added for the Features and FAQ pages. Everything here is built from the
   tokens above so the sub-pages read as the same system as the homepage —
   mono uppercase labels, emerald checkmarks, hairline cards on white.
   ========================================================================== */
@layer components{

  /* the sticky header is 72px tall; without this, jump-nav anchors land with
     the target heading tucked underneath it */
  section[id],div[id]{scroll-margin-top:92px}

  /* visible keyboard focus — the base sheet only styled the skip link */
  :where(a,button,summary,[tabindex]):focus-visible{
    outline:2px solid var(--emerald);
    outline-offset:3px;
    border-radius:4px;
  }

  /* ---------- pills: section index on Features, language list, chips ---------- */
  .pill-row{display:flex;flex-wrap:wrap;gap:9px}
  .pill-row.center{justify-content:center}
  .pill{
    font-family:var(--mono);
    font-size:.72rem;
    font-weight:500;
    letter-spacing:.11em;
    text-transform:uppercase;
    padding:.5rem .9rem;
    border:1px solid var(--line-strong);
    border-radius:999px;
    color:var(--ink-soft);
    background:var(--white);
    white-space:nowrap;
  }
  a.pill{transition:color .2s, border-color .2s, transform .2s var(--ease)}
  a.pill:hover{color:var(--ink);border-color:var(--emerald);transform:translateY(-2px)}
  .dark-band .pill{
    background:transparent;
    border-color:rgba(255,255,255,.18);
    color:rgba(255,255,255,.72);
  }

  /* ---------- dense feature columns ---------- */
  .spec-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:16px;
  }
  .spec-col{
    background:var(--white);
    border:1px solid var(--line);
    border-radius:var(--r-sm);
    padding:24px 22px;
  }
  .spec-col h3{
    font-family:var(--mono);
    font-size:.72rem;
    font-weight:500;
    letter-spacing:.13em;
    text-transform:uppercase;
    color:var(--ink-soft);
    margin-bottom:14px;
    padding-bottom:12px;
    border-bottom:1px solid var(--line);
  }
  .spec-col ul{list-style:none;display:flex;flex-direction:column;gap:9px}
  .spec-col li{
    display:flex;
    align-items:flex-start;
    gap:9px;
    font-size:.93rem;
    line-height:1.45;
  }
  .spec-col li .ck{flex:none}
  .spec-col li strong{font-weight:600}
  /* Scoped to the description span inside the text <div>. A bare
     `.spec-col li span` also matches the .ck bullet — which is a <span> —
     and would override its display:inline-flex, breaking the centring of
     the tick inside its disc. */
  .spec-col li > div span{display:block;color:var(--ink-soft);font-size:.86rem;margin-top:2px}

  /* ---------- FAQ disclosure ---------- */
  /* Native <details> so the answers work with no JS, stay in the HTML for
     crawlers, and expand when the browser searches the page. */
  .faq-list{display:flex;flex-direction:column;gap:10px;max-width:820px}
  .faq-list.center{margin-inline:auto}
  .faq-item{
    background:var(--white);
    border:1px solid var(--line);
    border-radius:var(--r-sm);
    box-shadow:var(--shadow-sm);
    transition:border-color .25s, box-shadow .25s;
  }
  .faq-item[open]{border-color:var(--line-strong);box-shadow:var(--shadow-md)}
  .faq-item summary{
    position:relative;
    cursor:pointer;
    list-style:none;
    padding:19px 62px 19px 24px;
    font-family:var(--display);
    font-weight:600;
    font-size:1.03rem;
    letter-spacing:-.01em;
    line-height:1.4;
  }
  .faq-item summary::-webkit-details-marker{display:none}
  /* two bars crossed = "+", the vertical one collapses on open = "−" */
  .faq-item summary::before,
  .faq-item summary::after{
    content:"";
    position:absolute;
    right:24px;
    top:50%;
    width:13px;
    height:2px;
    border-radius:2px;
    background:var(--emerald);
    transition:transform .3s var(--ease);
  }
  .faq-item summary::before{transform:translateY(-50%)}
  .faq-item summary::after{transform:translateY(-50%) rotate(90deg)}
  .faq-item[open] summary::after{transform:translateY(-50%) rotate(0)}
  .faq-item summary:focus-visible{outline-offset:-3px}
  .faq-answer{padding:0 24px 22px;color:var(--ink-soft);font-size:1rem;line-height:1.62}
  .faq-answer > * + *{margin-top:12px}
  .faq-answer a{color:var(--emerald);font-weight:600;text-decoration:underline;text-underline-offset:2px}
  .faq-answer ul{list-style:none;display:flex;flex-direction:column;gap:9px}
  .faq-answer ul li{display:flex;align-items:flex-start;gap:10px}
  .faq-answer ul li .ck{margin-top:.15em;flex:none}

  /* ---------- group label above a run of FAQ items ---------- */
  .faq-group{margin-bottom:46px}
  .faq-group:last-child{margin-bottom:0}
  .faq-group > h2{
    font-family:var(--mono);
    font-size:.74rem;
    font-weight:500;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:var(--ink-soft);
    margin-bottom:16px;
  }
  .faq-group.center > h2{text-align:center}

  @media (width <= 680px){
    .faq-item summary{padding:17px 54px 17px 18px;font-size:.98rem}
    .faq-item summary::before,.faq-item summary::after{right:18px}
    .faq-answer{padding:0 18px 20px}
    .spec-col{padding:20px 18px}
  }

} /* @layer components */

/* ==========================================================================
   FEATURES SPEC SHEET
   The Features page is a catalog, not a second pitch: no product shots, no
   carousels, no alternating hero rows — those belong to the homepage. Here
   the mono face carries the structure (section numbers, group labels, the
   index rail) and the whole page is one dense, scannable grid.
   ========================================================================== */
@layer components{

  /* The masthead is a document title, not a marketing hero: flush left with
     the index rail below it, and short enough to get out of the way. */
  .spec-hero{padding-bottom:34px;text-align:left}
  .spec-hero p{margin-inline:0;max-width:56ch}
  .sec.spec-sheet{padding:0 0 96px}

  /* ---------- layout: index rail + content column ---------- */
  .spec-layout{display:grid;grid-template-columns:186px 1fr;gap:52px;align-items:start}
  /* min-width:0 — without it the auto-fit card grid can push the column
     wider than its track and force the page to scroll sideways */
  .spec-body{min-width:0}

  /* ---------- index rail ---------- */
  /* 96px = the 72px sticky header plus a little air */
  .spec-rail{position:sticky;top:96px;display:flex;flex-direction:column;gap:2px}
  .spec-rail a{
    display:flex;
    align-items:baseline;
    gap:10px;
    padding:7px 12px;
    border-left:2px solid transparent;
    border-radius:0 9px 9px 0;
    font-size:.92rem;
    font-weight:500;
    color:var(--ink-soft);
    transition:color .2s, background .2s, border-color .2s;
  }
  .spec-rail a .rn{
    font-family:var(--mono);
    font-size:.7rem;
    letter-spacing:.08em;
    opacity:.55;
    transition:color .2s, opacity .2s;
  }
  .spec-rail a:hover{color:var(--ink);background:var(--white)}
  .spec-rail a.on{
    color:var(--ink);
    font-weight:600;
    background:var(--white);
    border-left-color:var(--emerald);
  }
  .spec-rail a.on .rn{color:var(--emerald);opacity:1}

  /* ---------- numbered section ---------- */
  /* The number sits ON the rule, technical-drawing style: the rule is the
     section's border-top and the canvas-colored padding behind the number
     punches a gap in it. */
  section.fsec{
    position:relative;
    margin-top:58px;
    padding-top:38px;
    border-top:1px solid var(--line-strong);
    scroll-margin-top:104px;
  }
  section.fsec:first-child{margin-top:0}
  .fnum{
    position:absolute;
    top:-.6em;
    left:0;
    padding-right:14px;
    background:var(--canvas);
    font-family:var(--mono);
    font-size:.78rem;
    font-weight:600;
    letter-spacing:.18em;
    color:var(--emerald);
  }
  .fsec-head{margin-bottom:22px}
  .fsec-head h2{font-size:clamp(1.5rem,3vw,2.05rem);letter-spacing:-.025em;margin-bottom:9px}
  .fsec-head p{color:var(--ink-soft);font-size:1.02rem;max-width:62ch}

  /* sub-heading for a run of pills inside a section */
  .fsub{
    font-family:var(--mono);
    font-size:.7rem;
    font-weight:500;
    letter-spacing:.13em;
    text-transform:uppercase;
    color:var(--ink-soft);
    margin:30px 0 14px;
  }
  .fnote{margin-top:16px;font-size:.92rem;color:var(--ink-soft)}
  .fnote a{color:var(--emerald-deep);font-weight:600;text-decoration:underline;text-underline-offset:2px}

  /* ---------- capability cards ---------- */
  /* auto-FILL, not auto-fit: fit would collapse the empty tracks in a
     two-card section and blow those cards up to half the page, so card
     width would change section to section. One width throughout. */
  /* align-items:start so a card ends where its list ends — stretching them to
     the tallest card in the row leaves dead space inside the short ones */
  .fgrid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(248px,1fr));
    align-items:start;
    gap:16px;
  }
  /* The four modules are peers, so they match: grid-auto-rows equalises across
     rows too, not just within one, for when they wrap on narrower screens. */
  .fgrid.mods{
    grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
    grid-auto-rows:1fr;
    align-items:stretch;
  }
  /* A section with a single group shouldn't leave two tracks of dead grid.
     Opt in by width rather than spanning by default: on a one-track grid,
     `span 2` would add an implicit column and push the page sideways. Two
     248px tracks plus the gap need 512px of content, i.e. a 560px viewport —
     600px here leaves room for a classic scrollbar, which the media query
     counts but the content box doesn't. */
  .fcard.wide{grid-column:auto}
  @media (width >= 600px){
    .fcard.wide{grid-column:span 2}
  }
  .fcard{
    background:var(--white);
    border:1px solid var(--line);
    border-radius:var(--r-sm);
    padding:22px 20px;
    transition:border-color .3s;
  }
  .fcard:hover{border-color:var(--line-strong)}
  .fcard > h3{
    font-family:var(--mono);
    font-size:.7rem;
    font-weight:500;
    letter-spacing:.13em;
    text-transform:uppercase;
    color:var(--ink-soft);
    margin-bottom:13px;
    padding-bottom:11px;
    border-bottom:1px solid var(--line);
  }
  /* module cards (section 01) lead with a name rather than a group label */
  .fcard.mod > h3{
    font-family:var(--display);
    font-size:1.06rem;
    font-weight:700;
    letter-spacing:-.015em;
    text-transform:none;
    color:var(--ink);
    margin-bottom:6px;
    padding-bottom:0;
    border-bottom:0;
  }
  .fcard.mod p{color:var(--ink-soft);font-size:.88rem;line-height:1.5}

  /* hairline rows, no bullets: at ~150 items a disc per line is noise, and
     the rules already do the separating */
  .cap-list{list-style:none;display:flex;flex-direction:column}
  .cap-list li{
    padding:9px 0;
    border-top:1px solid var(--line);
    font-size:.93rem;
    font-weight:500;
    line-height:1.45;
  }
  .cap-list li:first-child{border-top:0;padding-top:0}
  .cap-list li:last-child{padding-bottom:0}
  .cap-list li span{
    display:block;
    margin-top:2px;
    font-size:.85rem;
    font-weight:400;
    line-height:1.4;
    color:var(--ink-soft);
  }

  /* ---------- responsive ---------- */
  /* Below the two-column breakpoint the rail becomes a horizontal strip that
     sticks under the header — same component, same active marker, rotated. */
  @media (width <= 980px){
    .spec-layout{grid-template-columns:1fr;gap:0}
    .spec-rail{
      top:72px;
      z-index:40;
      flex-direction:row;
      gap:4px;
      margin:0 -24px 34px;
      padding:9px 24px;
      overflow-x:auto;
      scrollbar-width:none;
      background:color-mix(in srgb, var(--canvas) 92%, transparent);
      backdrop-filter:saturate(140%) blur(12px);
      border-bottom:1px solid var(--line);
    }
    .spec-rail::-webkit-scrollbar{display:none}
    .spec-rail a{
      flex:none;
      white-space:nowrap;
      border-left:0;
      border-bottom:2px solid transparent;
      border-radius:8px 8px 0 0;
      padding:6px 10px;
    }
    .spec-rail a.on{border-left-color:transparent;border-bottom-color:var(--emerald)}
    /* clears the sticky header and the strip */
    section.fsec{scroll-margin-top:150px}
  }

  @media (width <= 680px){
    .spec-hero{padding-bottom:26px}
    .sec.spec-sheet{padding-bottom:72px}
    section.fsec{margin-top:46px;padding-top:32px}
    .fcard{padding:20px 18px}
  }

} /* @layer components */

/* ==========================================================================
   LEGAL DOCUMENTS
   Terms and privacy are read start to finish rather than scanned, so they get
   one narrow column instead of the Features sheet's rail-plus-grid. The
   numbered rules (section.fsec / .fnum) are reused verbatim — same system,
   different payload — and nothing here sits on a card: lifted surfaces read
   as marketing, which is the one thing a legal page must not do.
   ========================================================================== */
@layer components{

  /* One measure for the masthead and the body, so the h1 and the prose share
     a left edge. ~68ch at 1rem: long enough that legal sentences don't go
     ragged, short enough to stay readable. */
  .legal-doc{max-width:760px;margin-inline:auto}

  /* The Features masthead sits tight against its index rail; here the gap
     below the title should match the gap between two sections, so the first
     numbered rule doesn't read as belonging to the title. */
  .legal-hero{padding-bottom:56px}

  .legal-prose p{color:var(--ink-soft);font-size:1rem;line-height:1.7}
  .legal-prose p + p{margin-top:14px}
  .legal-prose strong{color:var(--ink);font-weight:600}
  .legal-prose a{
    color:var(--emerald-deep);
    font-weight:600;
    text-decoration:underline;
    text-underline-offset:2px;
  }

  /* Conditions, not benefits. The emerald checkmark used everywhere else
     reads as a selling point; these are obligations, so the marker is a bare
     rule and the separators do the rest of the work.
     The marker is an empty flex item aligned on the baseline — its bottom
     edge lands on the text baseline, and the nudge lifts it to x-height. */
  .legal-list{list-style:none;display:flex;flex-direction:column;margin-top:20px}
  .legal-list li{
    display:flex;
    align-items:baseline;
    gap:14px;
    padding:11px 0;
    border-top:1px solid var(--line);
    color:var(--ink-soft);
    font-size:.95rem;
    line-height:1.55;
  }
  .legal-list li:first-child{border-top:0;padding-top:0}
  .legal-list li:last-child{padding-bottom:0}
  .legal-list li::before{
    content:"";
    flex:none;
    width:11px;
    height:1px;
    background:var(--emerald);
    transform:translateY(-.36em);
  }

} /* @layer components */
