/* Asarec shared stylesheet. One file for every page.
   Fonts (put in each <head>):
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400..600&family=Inter:wght@400;500&family=JetBrains+Mono:wght@400&display=swap">
*/

/* ---------- Tokens ---------- */
:root {
  --navy:  #182B49;
  --teal:  #007F86;
  --gold:  #D49A46;
  --paper: #F4EFE6;
  --ink:   #0F1C30;
  --muted: #6B7685;

  /* AA-safe companions (brand teal/muted fail 4.5:1 as TEXT on paper/navy) */
  --teal-deep:  #00666D;  /* teal text/links on paper: 5.9:1 */
  --muted-ink:  #566170;  /* secondary text on paper: 5.5:1 */
  --paper-dim:  #B4BBC7;  /* secondary text on navy: 7.3:1 */
  --gold-hover: #E2AC5E;

  --hair-dark:  rgba(24, 43, 73, .2);
  --hair-light: rgba(244, 239, 230, .16);

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 3px;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 10vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* context tokens, overridden per band */
  --fg: var(--paper); --fg2: var(--paper-dim); --line: var(--hair-light); --num: var(--gold); --card-line: var(--hair-light);
}
.section--paper, .band--paper { --fg: var(--navy); --fg2: var(--muted-ink); --line: var(--hair-dark); --num: var(--teal-deep); --card-line: var(--hair-dark); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--navy); color: var(--paper); font: 400 clamp(17px, .4vw + 15.5px, 18px)/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 .55em; font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.25; letter-spacing: 0; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
strong { font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: var(--radius); font-weight: 500; }
.skip:focus { top: 12px; }

.mono, .label, .eyebrow, .meta, .hero-meta, .section-label, .scale__label {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5;
}
.eyebrow, .section-label { display: block; margin-bottom: 16px; color: var(--gold); }
.section--paper .eyebrow, .section--paper .section-label, .band--paper .section-label { color: var(--teal-deep); }
.meta, .hero-meta { margin-top: 20px; color: var(--fg2); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--prose { max-width: calc(70ch + var(--gutter) * 2); margin-inline: auto; }
.section, .band { position: relative; padding-block: var(--section-y); overflow: hidden; color: var(--fg); }
.section--navy, .band--navy { background: var(--navy); }
.section--paper, .band--paper { background: var(--paper); }
.section--navy::before, .band--navy::before, .hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 0H0V64' fill='none' stroke='%23F4EFE6' stroke-opacity='.04' stroke-width='1'/%3E%3C/svg%3E");
}
.section > .wrap, .band > .wrap, .hero > .wrap, .page-hero > .wrap { position: relative; }
.split { display: grid; gap: clamp(32px, 6vw, 64px); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- Section divider ---------- */
.scale { display: flex; align-items: center; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.scale__label { flex: none; color: var(--gold); }
.section--paper .scale__label, .band--paper .scale__label { color: var(--muted-ink); }
.scale__ticks {
  flex: 1; height: 14px; min-width: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='14'%3E%3Cpath d='M.5 14V7M12.5 14v-4M24.5 14v-4M36.5 14v-4M48.5 14v-4' stroke='%23D49A46' stroke-width='1' fill='none'/%3E%3Cpath d='M.5 14V3' stroke='%23D49A46' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: left bottom; border-bottom: 1px solid rgba(212, 154, 70, .55);
}

/* ---------- Links ---------- */
a { color: var(--teal-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .2s var(--ease); }
a:hover { color: var(--navy); text-decoration-color: var(--teal); }
.section--navy a:not(.btn):not(.btn-ghost):not(.play-badge), .band--navy a:not(.btn):not(.btn-ghost):not(.play-badge), .hero a:not(.btn):not(.btn-ghost), .page-hero a:not(.btn):not(.btn-ghost):not(.play-badge), .site-header a, .site-footer a { color: var(--paper); text-decoration-color: rgba(212, 154, 70, .7); }
.section--navy a:not(.btn):not(.btn-ghost):not(.play-badge):hover, .band--navy a:not(.btn):not(.btn-ghost):not(.play-badge):hover, .site-header a:hover, .site-footer a:hover, .hero a:not(.btn):not(.btn-ghost):hover, .page-hero a:not(.btn):not(.btn-ghost):not(.play-badge):hover { color: var(--gold); text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 3px; border-radius: 2px; }
.section--navy :focus-visible, .band--navy :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

/* ---------- Buttons ---------- */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  font: 500 .95rem/1 var(--font-body); letter-spacing: .01em; text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
/* Primary (gold): the single main action in a hero. Navy on gold = 5.8:1 */
.btn--primary, .hero .btn, .page-hero .btn { background: var(--gold); color: var(--navy); }
.btn--primary:hover, .hero .btn:hover, .page-hero .btn:hover { background: var(--gold-hover); color: var(--navy); }
/* Secondary (teal outline). Label text is paper/navy, never teal on navy */
.btn--secondary, .btn-ghost, .btn { background: transparent; color: var(--fg); border-color: var(--teal-deep); }
.section--navy .btn, .section--navy .btn-ghost, .band--navy .btn, .band--navy .btn-ghost, .hero .btn--secondary, .page-hero .btn-ghost, .btn--secondary { border-color: var(--teal); }
.hero .btn--primary, .hero .btn, .page-hero .btn { border-color: transparent; }
.btn--secondary:hover, .btn-ghost:hover, .btn:hover { background: rgba(0, 127, 134, .22); color: var(--fg); border-color: #1F9BA3; }
.section--paper .btn:hover, .section--paper .btn-ghost:hover, .band--paper .btn:hover, .band--paper .btn-ghost:hover { background: rgba(0, 102, 109, .08); }
.hero .btn:hover, .page-hero .btn:hover { background: var(--gold-hover); color: var(--navy); border-color: transparent; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.actions, .btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.btn-text { font-weight: 500; }

/* Store badge (store logo colours kept on purpose) */
.play-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 18px 6px 12px; background: #000; color: #fff !important; border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius); text-decoration: none !important; line-height: 1.1; max-width: 100%; }
.play-badge:hover { border-color: #fff; color: #fff; }
.play-badge span { font: 500 1.05rem/1.2 var(--font-body); color: #fff; }
.play-badge small { display: block; font: 400 .625rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid var(--hair-light); color: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; flex-wrap: wrap; }
.wordmark { justify-self: start; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font: 500 1.6rem/1 var(--font-display); letter-spacing: -.01em; text-decoration: none; }
.wordmark img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { font-size: .95rem; font-weight: 500; text-decoration: none; padding: 10px 0; }
.nav-links a[aria-current="page"] { color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold); }
.header-tag { color: var(--paper-dim); padding-left: 26px; border-left: 1px solid var(--hair-light); white-space: nowrap; }
.nav-toggle { display: none; align-items: center; min-height: 44px; margin-left: auto; padding: 0 14px; background: transparent; color: var(--paper); border: 1px solid var(--hair-light); border-radius: var(--radius); font: 400 .75rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.nav-toggle[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
@media (max-width: 1180px) { .header-tag { display: none; } }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0 0 12px; border-top: 1px solid var(--hair-light); }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--hair-light); }
  .nav-links a { display: flex; align-items: center; min-height: 48px; }
}

/* ---------- Hero + dial ---------- */
.hero { position: relative; background: var(--navy); color: var(--paper); overflow: hidden; padding-block: clamp(64px, 11vw, 140px) clamp(88px, 12vw, 150px); }
.hero h1 { max-width: 12ch; margin-bottom: .45em; }
.hero h1 .accent { box-shadow: inset 0 -2px 0 rgba(212, 154, 70, .8); }
.hero .lead, .hero-sub { color: var(--paper-dim); max-width: 44ch; margin-bottom: 2em; font-size: clamp(1.05rem, 1.2vw + .6rem, 1.25rem); }
.hero .hero-label { display: block; margin-bottom: 24px; color: var(--gold); }
.hero-scroll-hint { margin-top: clamp(40px, 7vw, 72px); color: var(--paper-dim); display: flex; align-items: center; gap: 14px; font: 400 .75rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.hero-scroll-hint .scroll-line { width: 1px; height: 36px; background: rgba(212, 154, 70, .7); }
.hero__stage { position: absolute; width: min(1000px, 150vw); aspect-ratio: 1; right: -52%; top: 50%; transform: translateY(-50%); pointer-events: none; }
@media (min-width: 900px) { .hero__stage { right: -14%; width: 960px; } }
.hero__stage .dial, .hero__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__stage canvas { opacity: 0; transition: opacity .3s var(--ease); }
.hero__stage.is-3d canvas { opacity: 1; }
.hero__stage.is-3d .dial { opacity: 0; transition: opacity .3s var(--ease); }
.dial__hand { transform-origin: 400px 400px; animation: sweep 90s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.accent-stage { position: absolute; width: 240px; height: 240px; right: clamp(8px, 4vw, 48px); top: clamp(24px, 4vw, 56px); pointer-events: none; opacity: .9; }
.accent-stage canvas { width: 100%; height: 100%; }
@media (max-width: 700px) { .accent-stage { width: 120px; height: 120px; top: auto; bottom: 20px; right: 16px; } }

/* ticker (original text, calm slow pass) */
.ticker-wrap { background: var(--navy); border-block: 1px solid var(--hair-light); overflow: hidden; white-space: nowrap; padding-block: 14px; }
.ticker-inner { display: inline-flex; gap: 22px; padding-left: 22px; animation: tick 120s linear infinite; }
.ticker-item { font: 400 .75rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); }
.ticker-sep { color: var(--gold); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Home sections (original class names) ---------- */
.section-title { margin-bottom: .5em; }
.about-card { border: 1px solid var(--card-line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.about-card p { color: var(--fg2); }
.about-stat-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 28px; border-top: 1px solid var(--line); }
.about-stat { padding: 20px 16px 4px 0; }
.about-stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.about-stat-value { font: 500 1.5rem/1.1 var(--font-display); color: var(--fg); margin-bottom: 6px; }
.about-stat-label { font-size: .875rem; color: var(--fg2); line-height: 1.45; }
.about-text p { color: var(--fg2); }
.about-pill-row, .horizon-tags-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill, .horizon-tag { font: 400 .75rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 9px 12px; border: 1px solid var(--card-line); border-radius: 2px; color: var(--fg); }

.services-header { display: grid; gap: 20px; margin-bottom: clamp(28px, 5vw, 48px); }
.services-header p { color: var(--paper-dim); max-width: 40ch; margin: 0; }
@media (min-width: 900px) { .services-header { grid-template-columns: 1fr 1fr; align-items: end; } }
.services-grid { display: grid; border: 1px solid var(--hair-light); border-radius: var(--radius); }
.service-card { padding: clamp(24px, 3vw, 36px); border-top: 1px solid var(--hair-light); }
.service-card:first-child { border-top: 0; }
.service-number, .step-num, .expertise-icon, .horizon-tags-title { font: 400 .75rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--num); }
.service-number { display: block; margin-bottom: 20px; }
.service-icon { width: 40px; height: 40px; margin-bottom: 18px; }
.service-desc, .step-body, .expertise-note { color: var(--fg2); font-size: .95rem; }
@media (min-width: 700px) { .services-grid { grid-template-columns: 1fr 1fr; } .service-card { border-left: 1px solid var(--hair-light); } .service-card:nth-child(-n+2) { border-top: 0; } .service-card:nth-child(odd) { border-left: 0; } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } .service-card:nth-child(-n+3) { border-top: 0; } .service-card:nth-child(odd) { border-left: 1px solid var(--hair-light); } .service-card:nth-child(3n+1) { border-left: 0; } .service-card:nth-child(4), .service-card:nth-child(5), .service-card:nth-child(6) { border-top: 1px solid var(--hair-light); } }

.home-app { display: grid; gap: 20px 28px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--card-line); border-radius: var(--radius); margin-bottom: 20px; }
.home-app-icon { width: 72px; height: 72px; border-radius: 4px; border: 1px solid var(--card-line); }
.home-app-meta { font: 400 .75rem/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); margin-bottom: 6px; }
.home-app-title { margin-bottom: .4em; }
.home-app-title a { color: inherit; text-decoration: none; }
.home-app-title a:hover { color: var(--teal-deep); }
.home-app-body p { max-width: 56ch; color: var(--fg); }
.home-app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.home-app-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--teal-deep); border-radius: var(--radius); text-decoration: none; font-weight: 500; font-size: .875rem; }
.home-app-shots { display: flex; gap: 12px; }
.home-app-shots img { border-radius: 6px; border: 1px solid var(--card-line); width: 110px; height: auto; }
.home-app-shots img.home-app-wide { width: 240px; max-width: 100%; }
@media (min-width: 900px) { .home-app { grid-template-columns: 88px minmax(0, 1fr) max-content; align-items: start; } .home-app-icon { width: 88px; height: 88px; } }
@media (max-width: 899px) { .home-app-shots { grid-column: 1; } }

.approach-desc { color: var(--fg2); max-width: 44ch; }
.approach-steps { display: grid; border-top: 1px solid var(--line); }
.step { padding: 24px 0; border-bottom: 1px solid var(--line); }
.step-header { margin-bottom: 10px; }
.step-title { margin-bottom: .35em; }
.step-body { margin: 0; }

.expertise-intro { max-width: 52ch; margin-bottom: clamp(32px, 5vw, 56px); }
.expertise-intro p { color: var(--fg2); }
.expertise-hex-grid { display: grid; border: 1px solid var(--card-line); border-radius: var(--radius); }
.expertise-item { padding: 24px; border-top: 1px solid var(--card-line); }
.expertise-item:first-child { border-top: 0; }
.expertise-icon { margin-bottom: 14px; }
.expertise-name { margin-bottom: .3em; font-size: 1.2rem; }
.expertise-note { margin: 0; }
@media (min-width: 640px) { .expertise-hex-grid { grid-template-columns: 1fr 1fr; } .expertise-item:nth-child(2) { border-top: 0; } .expertise-item:nth-child(even) { border-left: 1px solid var(--card-line); } }
@media (min-width: 1000px) { .expertise-hex-grid { grid-template-columns: repeat(4, 1fr); } .expertise-item { border-top: 0; border-left: 1px solid var(--card-line); } .expertise-item:nth-child(4n+1) { border-left: 0; } .expertise-item:nth-child(n+5) { border-top: 1px solid var(--card-line); } .expertise-item:nth-child(even) { border-left: 1px solid var(--card-line); } .expertise-item:nth-child(4n+1) { border-left: 0; } }

.horizon-band .horizon-text p { color: var(--fg2); max-width: 48ch; margin-bottom: 1.6em; }
.horizon-tags-title { display: block; margin-bottom: 4px; color: var(--gold); }
.horizon-tag { color: var(--paper); }

.contact-inner { max-width: 60ch; }
.contact-inner p { color: var(--fg2); }
.contact-lead { font: 400 .75rem/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin: 2em 0 .3em; }
.contact-email { display: inline-block; font: 500 clamp(1.5rem, 4.4vw, 2.5rem)/1.15 var(--font-display); letter-spacing: -.01em; word-break: break-word; margin-bottom: .6em; }
.contact-help { margin: 0; }

/* ---------- Inner-page hero ---------- */
.page-hero { position: relative; background: var(--navy); color: var(--paper); padding-block: clamp(52px, 8vw, 104px) clamp(48px, 7vw, 88px); overflow: hidden; border-bottom: 1px solid var(--hair-light); }
.page-head { max-width: 70ch; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-head .lede { color: var(--paper-dim); max-width: 60ch; font-size: clamp(1.05rem, 1vw + .7rem, 1.2rem); margin-bottom: 0; }
.page-head .lede strong { color: var(--paper); }
.page-head .meta, .page-head .hero-meta { color: var(--paper-dim); }
.hero-icon { width: 72px; height: 72px; border-radius: 4px; margin-bottom: 20px; border: 1px solid var(--hair-light); }

/* ---------- Body content (legal + product pages) ---------- */
.band .wrap > section, .prose > section { margin-bottom: 0; scroll-margin-top: 90px; }
.prose > section + section, .prose > * + section { margin-top: 2.4em; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 0; padding-top: 1em; border-top: 1px solid var(--hair-dark); }
.prose section:first-of-type h2 { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul, .prose ol, .band ul, .band ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li, .band li { margin-bottom: .45em; }
.prose a, .band a { overflow-wrap: anywhere; }
.band h2 { margin-bottom: .7em; }
.band--navy a:not(.btn):not(.btn-ghost):not(.play-badge) { color: var(--paper); }

.box { border: 1px solid var(--card-line); border-left: 2px solid var(--gold); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); margin: 0 0 1.6em; }
.box p:last-child { margin-bottom: 0; }
.note { font-size: .9rem; color: var(--fg2); border: 1px dashed var(--card-line); border-radius: var(--radius); padding: 14px 18px; margin: 1em 0; }
.ident { border: 1px solid var(--card-line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin: 0 0 2.4em; }
.ident-title { font: 400 .75rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 14px; }
.ident table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ident td { padding: 8px 0; vertical-align: top; border-top: 1px solid var(--hair-dark); overflow-wrap: anywhere; }
.ident tr:first-child td { border-top: 0; }
.ident td:first-child { width: 42%; padding-right: 16px; font: 400 .72rem/1.5 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-ink); }
.table-wrap { overflow-x: auto; margin-bottom: 1.2em; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
table.data th { font: 400 .72rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-ink); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair-dark); }
table.data td { padding: 12px; border-bottom: 1px solid var(--hair-dark); vertical-align: top; overflow-wrap: anywhere; }
table.data tr:last-child td { border-bottom: 0; }

.feat-grid { display: grid; gap: 0; border: 1px solid var(--card-line); border-radius: var(--radius); }
.feat { padding: 24px; border-top: 1px solid var(--card-line); }
.feat:first-child { border-top: 0; }
.feat h3 { margin-bottom: .35em; }
.feat p { font-size: .95rem; color: var(--fg2); margin: 0; }
@media (min-width: 700px) { .feat-grid { grid-template-columns: 1fr 1fr; } .feat { border-left: 1px solid var(--card-line); } .feat:nth-child(-n+2) { border-top: 0; } .feat:nth-child(odd) { border-left: 0; } }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } .feat:nth-child(-n+3) { border-top: 0; } .feat:nth-child(odd) { border-left: 1px solid var(--card-line); } .feat:nth-child(3n+1) { border-left: 0; } .feat:nth-child(n+4) { border-top: 1px solid var(--card-line); } }
.steps { list-style: none; padding: 0 !important; counter-reset: s; max-width: 70ch; }
.steps li { counter-increment: s; position: relative; padding-left: 56px; margin-bottom: 24px; color: var(--fg2); }
.steps li h3 { color: var(--fg); margin-bottom: .2em; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .1em; font: 400 .75rem/1 var(--font-mono); letter-spacing: .08em; color: var(--num); border: 1px solid var(--card-line); border-radius: 2px; padding: 8px 7px; }
.shots { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots figure { flex: 0 0 auto; width: min(220px, 62vw); scroll-snap-align: start; margin: 0; }
.shots img, .shots-wide img { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--card-line); }
.shots figcaption, .shots-wide figcaption { font: 400 .72rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); margin-top: 10px; }
.shots-wide { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.shots-wide figure { margin: 0; }

.app-grid { display: grid; gap: 20px; }
.app-card { border: 1px solid var(--card-line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.app-icon { width: 72px; height: 72px; border-radius: 4px; flex-shrink: 0; border: 1px solid var(--card-line); }
.app-body { flex: 1 1 280px; min-width: 0; }
.app-meta { font: 400 .75rem/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); margin-bottom: 10px; }
.app-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.app-thumbs img { width: 96px; height: auto; border-radius: 4px; border: 1px solid var(--card-line); }
.app-thumbs-wide img { width: 200px; align-self: flex-start; }
.app-actions { margin-bottom: 18px; }
.app-card .links { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 400 .75rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.app-card .links a { display: inline-flex; align-items: center; min-height: 44px; }
.app-list { display: grid; gap: 16px; }
.app-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border: 1px solid var(--card-line); border-radius: var(--radius); padding: 22px 26px; }
.app-row .name { font: 500 1.3rem/1.2 var(--font-display); }
.app-row .name a { color: inherit; text-decoration: none; }
.app-row .name a:hover { color: var(--teal-deep); }
.app-row .sub { font-size: .875rem; color: var(--fg2); margin-top: 4px; }
.app-row .cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--teal-deep); border-radius: var(--radius); text-decoration: none; font-weight: 500; font-size: .875rem; color: var(--fg); white-space: nowrap; }
.app-row .cta:hover { background: rgba(0, 102, 109, .08); color: var(--fg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper-dim); padding-block: 56px 36px; }
.site-footer .wrap { display: grid; gap: 32px; }
.site-footer .wordmark { color: var(--paper); display: inline-flex; }
.foot-cols { display: grid; gap: 28px; }
@media (min-width: 640px) { .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-footer h2 { font: 400 .75rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; padding: 0; border: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; }
.site-footer a[aria-current="page"] { color: var(--gold); }
.site-footer .copyright { border-top: 1px solid var(--hair-light); padding-top: 20px; font: 400 .75rem/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Motion: fade/rise on scroll, <=300ms ---------- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dial__hand, .ticker-inner { animation: none; }
  .ticker-inner > :nth-child(n+17) { display: none; }
  .ticker-wrap { white-space: normal; }
  .ticker-inner { flex-wrap: wrap; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* Legal and help hub: one block per app, same fixed rows (generated by tools/build_site.py) */
.hub-app { border: 1px solid var(--card-line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 16px; }
.hub-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hub-head img { width: 48px; height: 48px; border-radius: 10px; flex: none; }
.hub-head h2 { margin: 0; padding: 0; border: 0; font: 500 1.3rem/1.2 var(--font-display); }
.hub-head h2 a { color: inherit; text-decoration: none; }
.hub-head h2 a:hover { color: var(--teal-deep); }
.hub-head .sub { font-size: .875rem; color: var(--fg2); }
.hub-rows { margin: 0; }
.hub-rows > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--card-line); }
.hub-rows dt { font-weight: 500; }
.hub-rows dd { margin: 0; color: var(--fg2); overflow-wrap: anywhere; }
@media (max-width: 520px) { .hub-rows > div { grid-template-columns: 1fr; } .hub-app { padding: 18px 16px; } }
.hub-link { margin-top: 28px; }
