/* NordTell marketing site — one stylesheet, no framework.
   Palette and type follow the product (cream, deep green, mint; Inter + Ubuntu). */

:root {
  --cream: #FFF4E1;
  --cream-2: #F6E8CF;
  --sand: #E9DCC3;
  --ink: #1A312C;
  --ink-2: #0E2E28;
  --ink-3: #24443D;
  --green: #428475;
  --green-2: #2F6B5E;
  --moss: #5FAE93;
  --mint: #89D7B7;
  --mint-2: #B7ECD3;
  --gold: #E3B54B;
  --coral: #E07A5F;
  --sky: #7FB5D6;
  --text: var(--ink);
  --muted: #556760;
  --line: rgba(26, 49, 44, 0.12);
  --line-strong: rgba(26, 49, 44, 0.22);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Ubuntu', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 24px 70px rgba(26, 49, 44, 0.14), 0 2px 10px rgba(26, 49, 44, 0.06);
  --shadow-soft: 0 10px 30px rgba(26, 49, 44, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%;  overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 12px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Type scale ---------- */
.display { font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: 1.02; letter-spacing: -0.03em; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-3); line-height: 1.55; max-width: 60ch; }
.dark .lede, .dark .muted { color: rgba(255, 244, 225, 0.72); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-2);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--green); border-radius: 2px; }
.dark .eyebrow { color: var(--mint); }
.dark .eyebrow::before { background: var(--mint); }
.grad { background: linear-gradient(100deg, var(--green) 0%, var(--moss) 45%, var(--mint) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dark .grad { background: linear-gradient(100deg, var(--mint-2) 0%, var(--mint) 50%, #DDF5EA 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1;
  border: 1.5px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--ink); color: var(--cream); box-shadow: 0 8px 24px rgba(26, 49, 44, 0.22); }
.btn.primary:hover { background: var(--green-2); }
.btn.accent { background: var(--green-2); color: #fff; box-shadow: 0 8px 24px rgba(47, 107, 94, 0.35); }
.btn.accent:hover { background: #255A4E; }
.btn.ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, 0.35); }
.btn.ghost:hover { background: #fff; }
.dark .btn.ghost { color: var(--cream); border-color: rgba(255, 244, 225, 0.35); background: rgba(255, 244, 225, 0.06); }
.dark .btn.ghost:hover { background: rgba(255, 244, 225, 0.12); }
.dark .btn.primary { background: var(--cream); color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.dark .btn.primary:hover { background: #fff; }
.btn.lg { padding: 16px 26px; font-size: 16px; }
.btn.sm { padding: 9px 14px; font-size: 13px; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link { color: var(--green-2); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; }
.dark .link { color: var(--mint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 244, 225, 0.72);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255, 244, 225, 0.88); }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.wordmark .n { color: var(--green); }
.wordmark .t { color: var(--ink); }
.dark .wordmark .t, .site-footer .wordmark .t { color: var(--cream); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--ink); transition: background .2s;
}
.nav-link:hover, .nav-item.open > .nav-link { background: rgba(26, 49, 44, 0.06); }
.nav-link.active { color: var(--green-2); }
.nav-link.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--green); }
.nav-link .chev { transition: transform .2s; }
.nav-item.open > .nav-link .chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 14px; opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top left;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  min-width: 560px;
}
.nav-item.open > .mega { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.mega-grid { display: grid; gap: 4px 18px; }
.mega-grid.cols-4 { grid-template-columns: repeat(4, minmax(190px, 1fr)); min-width: 860px; }
.mega-grid.cols-2 { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
.mega-grid.narrow { min-width: 520px; }
.mega-title { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 6px; }
.mega a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; transition: background .15s; }
.mega a:hover { background: rgba(66, 132, 117, 0.08); }
.mega a b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.mega a small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.ic { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; background: var(--mint-2); }
.ic-b { background: #FBE9C6; } .ic-c { background: #DCEBF7; } .ic-d { background: #F6DCD4; } .ic-e { background: #E5DEF7; } .ic-f { background: #DDF1EA; }
.ic-g { background: #FBE9C6; } .ic-h { background: #DCEBF7; } .ic-i { background: #F6DCD4; } .ic-j { background: #E5DEF7; } .ic-k { background: #DDF1EA; } .ic-l { background: #FBE9C6; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-actions .btn.ghost { display: none; }
  .burger { display: inline-flex; }
  .mobile-menu { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--cream); overflow-y: auto; padding: 8px 20px 40px; z-index: 99; }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu details { border-bottom: 1px solid var(--line); }
  .mobile-menu summary { list-style: none; cursor: pointer; padding: 16px 0; font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary::after { content: '+'; color: var(--green); font-size: 22px; }
  .mobile-menu details[open] summary::after { content: '–'; }
  .mobile-menu details a { display: block; padding: 10px 0 10px 8px; font-size: 16px; color: var(--ink-3); }
  .mobile-menu .mobile-plain { display: block; padding: 16px 0; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .mobile-cta { display: flex; gap: 10px; padding-top: 20px; }
  .mobile-cta .btn { flex: 1; }
}
@media (max-width: 480px) { .header-actions .btn.primary { padding: 10px 14px; font-size: 14px; } }

/* ---------- Intro ---------- */
#intro {
  position: fixed; inset: 0; z-index: 300; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .45s var(--ease), visibility .45s;
}
#intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
#intro.off { display: none; }
.intro-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; transform: scale(1); transition: transform .5s var(--ease); }
#intro.done .intro-stage { transform: scale(.72); }
.intro-logo { width: clamp(120px, 24vw, 200px); height: auto; }
.intro-ring { stroke-dasharray: 604; stroke-dashoffset: 604; }
.intro-fill { opacity: 0; }
.intro-wave { transform-origin: center; transform: translateX(-8%); }
.intro-star { transform-origin: 100px 100px; transform: scale(0) rotate(-30deg); opacity: 0; }
.intro-word { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 4vw, 34px); letter-spacing: -0.02em; opacity: 0; transform: translateY(8px); }
.intro-word .n { color: var(--green); } .intro-word .t { color: var(--ink); }
#intro.play .intro-ring { animation: draw .75s var(--ease) forwards; }
#intro.play .intro-fill { animation: fadeIn .45s ease .55s forwards; }
#intro.play .intro-wave { animation: waveIn .7s var(--ease) .55s forwards; }
#intro.play .intro-star { animation: glint .6s var(--ease) .8s forwards; }
#intro.play .intro-word { animation: wordIn .5s var(--ease) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes waveIn { to { transform: translateX(0); } }
@keyframes glint { 0% { transform: scale(0) rotate(-30deg); opacity: 0; } 60% { transform: scale(1.15) rotate(8deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section.dark { background: var(--ink); color: var(--cream); }
.section.dark2 { background: var(--ink-2); color: var(--cream); }
.section.cream2 { background: var(--cream-2); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lede { margin-top: 14px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.section-head .h2 { margin-top: 14px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.card h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
.dark .card { background: rgba(255, 244, 225, 0.05); border-color: rgba(255, 244, 225, 0.12); color: var(--cream); }
.dark .card p { color: rgba(255, 244, 225, 0.7); }
.icon {
  flex: none; width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--mint-2); color: var(--ink);
}
.icon svg { width: 22px; height: 22px; }
.icon.gold { background: #FBE9C6; } .icon.sky { background: #DCEBF7; } .icon.coral { background: #F6DCD4; } .icon.violet { background: #E5DEF7; } .icon.sand { background: var(--sand); }
.dark .icon { background: rgba(255, 244, 225, 0.12); color: var(--mint-2); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento > * { grid-column: span 2; }
.bento .wide { grid-column: span 3; }
.bento .full { grid-column: span 6; }
@media (max-width: 960px) { .bento > *, .bento .wide { grid-column: span 3; } }
@media (max-width: 640px) { .bento > *, .bento .wide, .bento .full { grid-column: span 6; } }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 280px; }
.tile .demo { margin-top: auto; padding-top: 18px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > :nth-child(1) { transition-delay: .05s; } .stagger.in > :nth-child(2) { transition-delay: .12s; }
.stagger.in > :nth-child(3) { transition-delay: .19s; } .stagger.in > :nth-child(4) { transition-delay: .26s; }
.stagger.in > :nth-child(5) { transition-delay: .33s; } .stagger.in > :nth-child(6) { transition-delay: .40s; }
.stagger.in > :nth-child(7) { transition-delay: .47s; } .stagger.in > :nth-child(8) { transition-delay: .54s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .display { margin-top: 18px; }
.hero .lede { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 14px; height: 14px; color: var(--green); }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .55; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: multiply; animation: drift 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: 8%; top: 10%; background: var(--mint-2); }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; right: 4%; top: 0; background: #DCEBF7; animation-duration: 22s; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; right: 22%; top: 35%; background: #FBE9C6; animation-duration: 26s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-6%, 8%) scale(1.12); } }
.dark .aurora { opacity: .35; mix-blend-mode: normal; }
.dark .aurora span { mix-blend-mode: screen; }

/* Phone mockup */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(360px, 100%); background: #fff; border-radius: 34px; border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 18px; position: relative; animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.phone-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.phone-agent { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: var(--mint-2); color: var(--ink); flex-shrink: 0; }
.avatar.ink { background: var(--ink); color: var(--cream); }
.avatar.gold { background: #FBE9C6; }
.phone-agent b { display: block; font-size: 14px; }
.phone-agent small { color: var(--muted); font-size: 12px; }
.waveform { display: flex; align-items: center; gap: 3px; height: 30px; margin-left: auto; }
.waveform i { width: 3px; border-radius: 3px; background: var(--green); height: 30%; animation: bars 1.1s ease-in-out infinite; }
.waveform i:nth-child(2) { animation-delay: .1s; } .waveform i:nth-child(3) { animation-delay: .2s; } .waveform i:nth-child(4) { animation-delay: .3s; } .waveform i:nth-child(5) { animation-delay: .15s; } .waveform i:nth-child(6) { animation-delay: .05s; } .waveform i:nth-child(7) { animation-delay: .25s; }
@keyframes bars { 0%, 100% { height: 25%; } 50% { height: 95%; } }
.transcript { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 236px; }
.bubble { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.bubble.show { opacity: 1; transform: none; }
.bubble.agent { background: var(--ink); color: var(--cream); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.caller { background: var(--cream-2); color: var(--ink); border-bottom-right-radius: 6px; align-self: flex-end; }
.bubble .cursor { display: inline-block; width: 6px; height: 13px; background: currentColor; margin-left: 2px; vertical-align: -2px; animation: blink .8s steps(1) infinite; }
.phone-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--cream-2); color: var(--ink); }
.chip.green { background: var(--mint-2); }
.chip.pulse { animation: pulseChip 2.4s ease-in-out infinite; }
@keyframes pulseChip { 0%, 100% { box-shadow: 0 0 0 0 rgba(66, 132, 117, .35); } 50% { box-shadow: 0 0 0 8px rgba(66, 132, 117, 0); } }
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-soft);
  font-size: 12.5px; display: flex; align-items: center; gap: 10px; animation: floaty 9s ease-in-out infinite; z-index: 5;
}
.float-card b { display: block; font-size: 13px; }
.float-card.a { left: -18px; top: 16%; animation-delay: -3s; }
.float-card.b { right: -18px; bottom: 14%; animation-delay: -5s; }
@media (max-width: 1100px) { .float-card { display: none; } }

/* ---------- Logos / marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; white-space: nowrap; }
.dark .pill { background: rgba(255, 244, 225, 0.06); border-color: rgba(255, 244, 225, 0.14); color: var(--cream); }
.pill .flag { font-size: 16px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; }
.step .num { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--green-2); letter-spacing: .1em; }
.step h3 { margin: 10px 0 8px; font-size: 1.25rem; }
.step p { color: var(--muted); font-size: 15px; }
.step-art { height: 150px; border-radius: 18px; background: #fff; border: 1px solid var(--line); margin-bottom: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.dark .step-art { background: rgba(255, 244, 225, 0.05); border-color: rgba(255, 244, 225, 0.12); }

/* ---------- SVG animation helpers ---------- */
.dash { stroke-dasharray: 8 6; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.drawn { stroke-dasharray: 600; stroke-dashoffset: 600; }
.in .drawn, .drawn.go { animation: draw 1.6s var(--ease) forwards; }
.pulse-dot { transform-origin: center; animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .35; } }
.spin-slow { transform-origin: center; animation: spin 40s linear infinite; }
.spin-slow-r { transform-origin: center; animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit { position: relative; width: 100%; aspect-ratio: 1; max-width: 320px; margin: 0 auto; }
.orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-strong); }
.orbit .ring.r2 { inset: 22%; }
.orbit .core { position: absolute; inset: 38%; border-radius: 50%; background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 13px; box-shadow: 0 10px 30px rgba(26, 49, 44, .25); }
.orbit .sat { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; box-shadow: var(--shadow-soft); animation: orbit 24s linear infinite; }
.orbit .sat.r2 { animation-duration: 16s; animation-direction: reverse; }
@keyframes orbit { from { transform: rotate(var(--a, 0deg)) translateX(var(--r, 150px)) rotate(calc(-1 * var(--a, 0deg))); } to { transform: rotate(calc(var(--a, 0deg) + 360deg)) translateX(var(--r, 150px)) rotate(calc(-1 * (var(--a, 0deg) + 360deg))); } }

/* ---------- Mockups (rebuilt UI) ---------- */
.ui { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); font-size: 13px; }
.dark .ui { background: #F8F1E4; color: var(--ink); }
.ui-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FBF6EC; }
.ui-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--sand); }
.ui-bar i:nth-child(1) { background: #F2B3A5; } .ui-bar i:nth-child(2) { background: #F3D98E; } .ui-bar i:nth-child(3) { background: #A9E0C6; }
.ui-bar span { margin-left: 8px; color: var(--muted); font-size: 12px; }
.ui-body { padding: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: #FBF6EC; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat b { display: block; font-family: var(--display); font-size: 22px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .trend { color: var(--green-2); font-size: 11px; font-weight: 600; }
.rows { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: #FBF6EC; border: 1px solid var(--line); }
.row .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row .who b { font-size: 12.5px; }
.row .who small { display: block; color: var(--muted); font-size: 11px; }
.row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.tag { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--mint-2); color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
.tag.gold { background: #FBE9C6; } .tag.coral { background: #F6DCD4; } .tag.sky { background: #DCEBF7; } .tag.ink { background: var(--ink); color: var(--cream); }
.mini-progress { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.mini-progress i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width 1.6s var(--ease); }
.in .mini-progress i { width: var(--w, 70%); }

/* Screenshot tabs */
.shots { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }
.shot-tabs { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 860px) { .shot-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; } }
.shot-tab { text-align: left; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--muted); border: 1px solid transparent; transition: background .2s, color .2s; white-space: nowrap; }
.shot-tab small { display: block; font-weight: 400; font-size: 12.5px; margin-top: 2px; }
.shot-tab.active { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-soft); }
.dark .shot-tab.active { background: rgba(255, 244, 225, 0.08); color: var(--cream); border-color: rgba(255, 244, 225, 0.14); }
.dark .shot-tab { color: rgba(255, 244, 225, 0.6); }
.shot-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; aspect-ratio: 16 / 10; position: relative; }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; position: absolute; inset: 0; opacity: 0; transition: opacity .4s var(--ease); }
.shot-frame img.active { opacity: 1; }

/* ---------- Feature rows (product page) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip .feature-text { order: 2; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-text { order: 0; } }
.feature-text .h2 { margin-top: 12px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.feature-text .lede { margin-top: 14px; font-size: 1.05rem; }
.feature-text ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature-text li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-3); }
.feature-text li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; background: var(--mint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A312C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.dark .feature-text li { color: rgba(255, 244, 225, .85); }
.dark .feature { border-top-color: rgba(255, 244, 225, 0.12); }
.feature-art { position: relative; }

/* ---------- Use cases / industries ---------- */
.usecase { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); scroll-margin-top: 90px; }
.usecase h3 { font-size: 1.25rem; margin: 2px 0 8px; }
.usecase p { color: var(--muted); font-size: 15px; }
.usecase .script { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--cream-2); font-size: 13.5px; color: var(--ink-3); border-left: 3px solid var(--green); }
.usecase .script b { color: var(--ink); }
.usecase .meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.dark .usecase { background: rgba(255, 244, 225, 0.05); border-color: rgba(255, 244, 225, 0.12); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.plan.featured { border-color: var(--green); box-shadow: 0 20px 60px rgba(66, 132, 117, 0.18); }
.plan .ribbon { position: absolute; top: -12px; left: 24px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.35rem; }
.plan .tagline { color: var(--muted); font-size: 14px; margin-top: 4px; min-height: 2.6em; }
.plan .price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-family: var(--display); font-size: 2.4rem; letter-spacing: -0.03em; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .minutes { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.plan .minutes b { color: var(--green-2); }
.plan ul { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--ink-3); }
.plan li { display: flex; gap: 9px; }
.plan li::before { content: '✓'; color: var(--green); font-weight: 700; }
.plan .btn { margin-top: auto; }
.pricing-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 0 0 30px; }
.toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.toggle button { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.toggle button.active { background: var(--ink); color: var(--cream); }
.toggle button .save { font-size: 11px; color: var(--green); margin-left: 6px; }
.toggle button.active .save { color: var(--mint); }
select.currency { padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); }
.cur[data-ready] select.currency { display: none; }
.dark .plan { background: rgba(255, 244, 225, 0.06); border-color: rgba(255, 244, 225, 0.14); color: var(--cream); }
.dark .plan ul, .dark .plan .minutes, .dark .plan .tagline { color: rgba(255, 244, 225, .78); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--green); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 15px; }
.dark .faq details { background: rgba(255, 244, 225, 0.05); border-color: rgba(255, 244, 225, 0.12); }

/* ---------- Code ---------- */
.code { background: var(--ink-2); color: #DDF5EA; border-radius: 18px; padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.6; overflow-x: auto; border: 1px solid rgba(255, 244, 225, 0.1); }
.code .c { color: #7FA89C; } .code .k { color: var(--mint); } .code .s { color: #F3D98E; }
.code-head { display: flex; gap: 6px; margin-bottom: 12px; }
.code-head span { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(255, 244, 225, 0.08); color: rgba(255, 244, 225, .7); }
.code-head span.active { background: var(--mint); color: var(--ink); }

/* ---------- North section ---------- */
.north { position: relative; overflow: hidden; }
.north .wrap { position: relative; z-index: 1; }
.north-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .north-grid { grid-template-columns: 1fr; } }
.principles { display: grid; gap: 14px; margin-top: 26px; }
.principle { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 244, 225, 0.05); border: 1px solid rgba(255, 244, 225, 0.12); }
.principle b { display: block; font-size: 15px; }
.principle p { color: rgba(255, 244, 225, .7); font-size: 14px; margin-top: 2px; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; opacity: .5; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .8; } }

/* ---------- Article ---------- */
.article { max-width: 700px; margin: 0 auto; }
.article h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.article .meta { color: var(--muted); font-size: 14px; margin: 14px 0 34px; }
.article h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.article h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.article p, .article li { font-size: 17px; line-height: 1.7; color: var(--ink-3); }
.article p { margin: 0 0 18px; }
.article ul { padding-left: 22px; margin: 0 0 18px; }
.article blockquote { margin: 26px 0; padding: 18px 22px; border-left: 3px solid var(--green); background: #fff; border-radius: 0 16px 16px 0; font-size: 18px; }
.post-card { display: flex; flex-direction: column; }
.post-card .kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green-2); }
.post-card h3 { margin: 10px 0 8px; font-size: 1.3rem; }
.post-card .meta { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------- Changelog ---------- */
.timeline { max-width: 820px; margin: 0; display: grid; gap: 0; }
.entry { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .entry { grid-template-columns: 1fr; gap: 6px; } }
.entry time { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 4px; }
.entry h3 { font-size: 1.15rem; margin-bottom: 6px; }
.entry p { color: var(--muted); font-size: 15px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea, .form select { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.form .note { font-size: 13px; color: var(--muted); }
.form .hp { position: absolute; left: -9999px; }
.form-ok { padding: 18px; border-radius: 14px; background: var(--mint-2); color: var(--ink); font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: 32px; background: var(--ink); color: var(--cream); padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; text-align: center; }
.cta-band .h2 { max-width: 16ch; margin: 0 auto; }
.cta-band .lede { margin: 16px auto 0; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .glow { position: absolute; width: 60%; height: 140%; left: 20%; top: -40%; background: radial-gradient(closest-side, rgba(137, 215, 183, .35), transparent); filter: blur(30px); pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: rgba(255, 244, 225, .82); padding: 64px 0 36px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: span 1; } }
.footer-brand p { margin: 16px 0; font-size: 14.5px; max-width: 34ch; color: rgba(255, 244, 225, .7); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { font-size: 12.5px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 244, 225, 0.07); border: 1px solid rgba(255, 244, 225, 0.12); }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 244, 225, .55); margin-bottom: 14px; }
.site-footer a:not(.brand) { display: block; font-size: 14.5px; padding: 5px 0; color: rgba(255, 244, 225, .85); }
.site-footer a:not(.brand):hover { color: var(--mint); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 244, 225, 0.12); font-size: 13px; color: rgba(255, 244, 225, .6); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { display: inline !important; padding: 0 !important; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); }
.page-hero .display { font-size: clamp(2.3rem, 5vw, 4.2rem); margin-top: 14px; }
.page-hero .lede { margin-top: 18px; }

/* ---------- Number stats ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
.number { padding: 22px; border-radius: 18px; background: rgba(255, 244, 225, 0.05); border: 1px solid rgba(255, 244, 225, 0.12); }
.number b { display: block; font-family: var(--display); font-size: clamp(2.6rem, 4.6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.03em; color: var(--mint-2); font-variant-numeric: tabular-nums; }
.number > span { font-size: 14px; color: rgba(255, 244, 225, .7); }

/* ---------- Inner pages (product, developers, industries) ---------- */
.screen { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.screen img { display: block; width: 100%; height: auto; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lang { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.lang .flag { font-size: 22px; line-height: 1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--cream-2); }
.table tr:last-child td { border-bottom: 0; }
.table td.mono { font-size: 13px; white-space: nowrap; }
.card.on-dark { background: rgba(255, 244, 225, 0.06); border-color: rgba(255, 244, 225, 0.14); color: var(--cream); }
.card.on-dark h3 { color: var(--cream); }
.card.on-dark p { color: rgba(255, 244, 225, 0.72); }
.usecase .meta { margin-top: 12px; }
.post-card .meta .btn { margin-top: 4px; }
@media (max-width: 720px) {
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .usecase { grid-template-columns: 1fr; }
}

/* ---------- Support chat bubble (chat.js) ---------- */
.nt-chat { position: fixed; right: 20px; bottom: 20px; z-index: 120; font-family: var(--font); color: var(--ink); }
.nt-chat-btn {
  position: relative; width: 58px; height: 58px; border-radius: 999px;
  background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(26, 49, 44, 0.32); transition: transform .2s var(--ease), background .2s;
}
.nt-chat-btn:hover { transform: translateY(-2px) scale(1.03); background: var(--green-2); }
.nt-chat.open .nt-chat-btn { display: none; }
.nt-dot { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 999px; background: var(--coral); border: 2.5px solid var(--cream); }
.nt-chat.online .nt-dot { background: #2FBF7F; }
.nt-badge { position: absolute; top: -4px; left: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.nt-badge[hidden] { display: none; }
/* `hidden` must win over the display rules above (the browser's own [hidden] rule loses to any class). */
.nt-chat [hidden] { display: none !important; }
.nt-panel {
  width: 400px; height: 640px; max-height: calc(100dvh - 40px);
  background: var(--cream); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.nt-panel[hidden] { display: none; }
.nt-chat.drag .nt-panel { outline: 2px dashed var(--green); outline-offset: -6px; }
.nt-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: var(--ink); color: var(--cream); }
.nt-back { display: none; color: var(--cream); padding: 6px; border-radius: 8px; }
.nt-avatar { position: relative; width: 36px; height: 36px; border-radius: 999px; background: var(--cream); display: flex; align-items: center; justify-content: center; flex: none; }
.nt-avatar img { width: 28px; height: 28px; }
.nt-dot-sm { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 999px; background: var(--coral); border: 2px solid var(--ink); }
.nt-dot-sm.on { background: #2FBF7F; }
.nt-who { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.nt-who b { font-family: var(--display); font-size: 15px; }
.nt-who small { font-size: 12px; color: rgba(255, 244, 225, 0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-close { color: var(--cream); padding: 6px; border-radius: 8px; }
.nt-close:hover, .nt-back:hover { background: rgba(255, 244, 225, 0.12); }
.nt-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.nt-msg { display: flex; flex-direction: column; max-width: 84%; }
.nt-msg.me { align-self: flex-end; align-items: flex-end; }
.nt-msg.them { align-self: flex-start; }
.nt-meta { font-size: 11px; color: var(--muted); margin: 0 6px 3px; }
.nt-bubble { padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.45; word-break: break-word; background: #fff; border: 1px solid var(--line); }
.nt-msg.me .nt-bubble { background: var(--green); color: #fff; border-color: transparent; border-bottom-right-radius: 6px; }
.nt-msg.them .nt-bubble { border-bottom-left-radius: 6px; }
.nt-att { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.nt-att img { max-height: 150px; max-width: 220px; border-radius: 10px; border: 1px solid rgba(0,0,0,.08); }
.nt-file { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; padding: 4px 8px; border-radius: 8px; background: rgba(0,0,0,.06); }
.nt-msg.me .nt-file { background: rgba(255,255,255,.18); color: #fff; }
.nt-error { align-self: center; font-size: 12px; color: var(--coral); }
.nt-form { border-top: 1px solid var(--line); padding: 10px; background: var(--cream); }
.nt-identify { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; margin-bottom: 8px; }
.nt-identify[hidden] { display: none; }
.nt-identify input, .nt-text { width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; outline: none; }
.nt-identify input:focus, .nt-text:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(66, 132, 117, .18); }
.nt-text { resize: none; line-height: 1.45; min-height: 86px; max-height: 200px; }
.nt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nt-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.nt-files[hidden] { display: none; }
.nt-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 8px; border-radius: 8px; background: var(--sand); }
.nt-chip button { font-size: 14px; line-height: 1; padding: 0 2px; color: var(--muted); }
.nt-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.nt-attach { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); cursor: pointer; }
.nt-attach:hover { background: var(--sand); color: var(--ink); }
.nt-hint { flex: 1; font-size: 11px; color: var(--muted); }
.nt-send { padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 600; font-size: 14px; }
.nt-send:hover { background: var(--green-2); }
.nt-send:disabled { opacity: .5; cursor: default; }
@media (max-width: 640px) {
  .nt-chat { right: 14px; bottom: 14px; }
  .nt-chat.open { inset: 0; right: 0; bottom: 0; }
  .nt-panel { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; border: 0; }
  .nt-back { display: flex; }
  .nt-close { display: none; }
  .nt-hint { display: none; }
  .nt-identify { grid-template-columns: 1fr; }
  .nt-identify input, .nt-text { font-size: 16px; }
  .nt-form { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  html.nt-chat-open { overflow: hidden; }
  /* The cookie choice and the chat bubble share the bottom-right corner on
     a phone. While the one-time banner is open (and the chat is closed),
     step the bubble aside so it never covers the buttons. */
  body:has(#cookie:not([hidden])) .nt-chat:not(.open) { display: none; }
}

/* ---------- Languages, cookies, blog topics (2026-09-08) ---------- */
[hidden] { display: none !important; }
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .5); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lang-btn:hover { border-color: var(--line-strong); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); padding: 6px; display: none; z-index: 60; }
.lang-switch.open .lang-menu { display: grid; }
.lang-menu a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.lang-menu a:hover { background: var(--cream-2); }
.lang-menu a.active { background: var(--mint-2); font-weight: 600; }
.mobile-langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
.mobile-langs a { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.mobile-langs a.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
@media (max-width: 1080px) { .header-actions .lang-switch, .header-actions .login { display: none; } }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.cookie-box { pointer-events: auto; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 20px; animation: fadeIn .4s var(--ease) both; }
.cookie-box b { display: block; font-family: var(--display); font-size: 16px; margin-bottom: 6px; }
.cookie-box p { font-size: 14px; color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cookie-actions .btn { padding: 9px 14px; font-size: 14px; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.blog-filter button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--muted); }
.blog-filter button.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.post-card p { flex: 0 0 auto; }
.section.tight .section-head { margin-bottom: 24px; }

/* ---------- Audit fixes (2026-09-08): focus, no-js, contrast, menu overflow ---------- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.dark2 .lede, .north .lede { color: rgba(255, 244, 225, 0.78); }
.dark2 .muted, .north .muted { color: rgba(255, 244, 225, 0.68); }
.no-js .reveal, .no-js .stagger > * { opacity: 1 !important; transform: none !important; }
.no-js #intro { display: none !important; }
.mega { max-width: calc(100vw - 32px); }
.nav-item:nth-last-of-type(1) .mega, .nav-item:nth-last-of-type(2) .mega { left: auto; right: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; }
.badge svg, .flag-svg { width: 18px; height: 13px; border-radius: 2px; display: inline-block; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.lang-btn .flag-svg, .lang-menu .flag-svg { width: 18px; height: 13px; }
.number .flag-svg { width: 40px; height: 29px; box-shadow: 0 0 0 1px rgba(255,244,225,.15); }

/* Mobile header: keep it to logo + burger so a long localized CTA never pushes the burger off-screen */
@media (max-width: 640px) { .header-actions .btn.primary { display: none; } }

/* ---------- CTA band: a dark card, so light text (fixes the faint 'Start today') ---------- */
.cta-band .eyebrow { color: var(--mint); }
.cta-band .eyebrow::before { background: var(--mint); }
.cta-band .lede { color: rgba(255, 244, 225, 0.82); }
.cta-band .muted { color: rgba(255, 244, 225, 0.68); }

/* ---------- Currency dropdown with flags (site.js upgrades the native select) ---------- */
.cur { position: relative; display: inline-block; }
.cur-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cur-btn:hover { border-color: var(--green); }
.cur-btn .flag-svg { width: 20px; height: auto; aspect-ratio: 3/2; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.07); }
.cur-btn .chev { margin-left: 2px; transition: transform .2s var(--ease); }
.cur.open .cur-btn .chev { transform: rotate(180deg); }
.cur-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); padding: 6px; display: none; z-index: 60; }
.cur.open .cur-menu { display: grid; gap: 2px; }
.cur-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink); text-align: left; cursor: pointer; }
.cur-opt:hover { background: var(--cream-2); }
.cur-opt[aria-selected="true"] { background: var(--mint-2); font-weight: 600; }
.cur-opt .flag-svg { width: 22px; height: auto; aspect-ratio: 3/2; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.07); flex: none; }
.cur-opt .code { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.lang-grid .flag-svg, .lang .flag-svg { width: 26px; height: auto; aspect-ratio: 3/2; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.07); }
.float-card .flag-svg { width: 26px; height: auto; aspect-ratio: 3/2; border-radius: 3px; }
.number b .flag-svg { width: 52px; height: auto; aspect-ratio: 3/2; border-radius: 4px; display: inline-block; margin: 0 auto; }

/* ============================================================================
   PARTNER PROGRAMME PAGE  (src/pages/referral.html)  — added 2026-09-09
   Everything below is prefixed .ref- and is used by that page only.
   Six pictures carry the story:
     1 the route ......... a boat sails a dotted line between three harbours
     3 aurora intensity .. green blobs behind the calculator grow with --glow
     2 the constellation . five stars, the line drawn on scroll
     4 the fjord split ... green water fills the bottom of the bill
     7 the ledger card ... three payout rows arriving one after another
     6 lighthouse sweep .. a slow cone of light behind the last button
   All of it is CSS + inline SVG. prefers-reduced-motion is honoured at the end.
   ============================================================================ */

/* ---------- Hero ---------- */
.ref-hero .display { font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.06; }
.ref-hero-art { position: relative; }
.ref-linkcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); box-shadow: var(--shadow); }
.ref-linkcard-head { display: flex; align-items: center; gap: 12px; }
.ref-linkcard-head b { display: block; font-size: 15px; }
.ref-linkcard-head small { display: block; color: var(--muted); font-size: 12.5px; }
.ref-link { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--cream-2); font-family: var(--mono); font-size: 13px; word-break: break-word; }
.ref-link em { font-style: normal; font-weight: 700; color: var(--green-2); background: #fff; border-radius: 6px; padding: 1px 6px; }
.ref-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.ref-facts li { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.ref-facts b { color: var(--ink); font-weight: 600; }
.ref-facts-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--mint-2); color: var(--ink); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.ref-rail { position: relative; display: flex; justify-content: space-between; gap: 4px; margin-top: 22px; padding-top: 14px; }
.ref-rail-line { position: absolute; left: 6px; right: 6px; top: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--mint-2), var(--green)); }
.ref-rail > span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted); text-align: center; }
.ref-rail i { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--green); }
.ref-rail > span:last-child i { width: 13px; height: 13px; background: var(--green); box-shadow: 0 0 0 4px rgba(66, 132, 117, .16); margin-top: -2px; }
.ref-rail > span:last-child { color: var(--green-2); }

/* ---------- Trust strip ---------- */
.ref-strip-sec { padding-top: 0; }
.ref-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ref-strip .pill { font-size: 13px; padding: 8px 14px; }
.ref-anchor { scroll-margin-top: 90px; }

/* ---------- Metaphor 1: the route ---------- */
.ref-route { position: relative; margin: 0 auto clamp(28px, 4vw, 48px); max-width: 900px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.ref-route-line { animation: ref-drift-dash 2.6s linear infinite; }
@keyframes ref-drift-dash { to { stroke-dashoffset: -28; } }
.ref-harbour circle { filter: drop-shadow(0 4px 10px rgba(26, 49, 44, .18)); }
.ref-boat { opacity: 0; }
@supports (offset-path: path('M 0 0 L 10 10')) {
  .ref-boat {
    opacity: 1;
    offset-path: path('M120,190 C210,150 260,105 430,140 C560,168 640,90 770,150');
    offset-rotate: 0deg; offset-anchor: 50% 50%;
    transform-box: fill-box; transform-origin: 50% 50%;
    animation: ref-sail 16s ease-in-out infinite;
    filter: drop-shadow(0 0 7px rgba(66, 132, 117, .75));
  }
}
@keyframes ref-sail { 0% { offset-distance: 0%; } 50% { offset-distance: 100%; } 100% { offset-distance: 0%; } }

/* ---------- Roles ---------- */
.ref-role h3 { font-size: 1.05rem; }
.ref-role p { font-size: 14px; }

/* ---------- The money: calculator + worked example ---------- */
.ref-money { display: grid; grid-template-columns: 1.12fr .88fr; gap: 22px; align-items: start; }
@media (max-width: 960px) { .ref-money { grid-template-columns: 1fr; } }

.ref-calc { --glow: .18; --fill: 8.5%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-soft); }
.ref-out { position: relative; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); padding: clamp(18px, 3vw, 24px); overflow: hidden; }
.ref-glow { position: absolute; inset: -40% -15%; pointer-events: none; z-index: 0; filter: blur(38px); opacity: calc(.22 + var(--glow) * .68); transition: opacity .35s var(--ease); }
.ref-glow i { position: absolute; display: block; border-radius: 50%; aspect-ratio: 1; transition: width .35s var(--ease); }
.ref-glow i:nth-child(1) { left: 2%; top: 4%; width: calc(130px + var(--glow) * 300px); background: radial-gradient(circle, rgba(137, 215, 183, .95) 0%, rgba(137, 215, 183, 0) 70%); animation: drift 17s ease-in-out infinite alternate; }
.ref-glow i:nth-child(2) { right: 0%; bottom: 0%; width: calc(100px + var(--glow) * 260px); background: radial-gradient(circle, rgba(183, 236, 211, .95) 0%, rgba(183, 236, 211, 0) 70%); animation: drift 24s ease-in-out infinite alternate-reverse; }
.ref-out-main, .ref-out-two { position: relative; z-index: 1; }
.ref-out-main small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ref-out-main > b { display: block; font-family: var(--display); font-size: clamp(2.5rem, 7vw, 4rem); line-height: 1.02; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.ref-out-rate { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.ref-out-rate b { color: var(--green-2); }
.ref-out-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.ref-out-two > div { background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ref-out-two small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.ref-out-two b { display: block; font-family: var(--display); font-size: clamp(1.15rem, 2.6vw, 1.5rem); margin-top: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { .ref-out-two { grid-template-columns: 1fr; } }

.ref-controls { margin-top: 22px; }
.ref-field { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.ref-field output { font-family: var(--display); font-size: 20px; color: var(--green-2); font-variant-numeric: tabular-nums; }
.ref-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 34px; margin: 8px 0 0; background: transparent; touch-action: pan-y; }
.ref-range::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--green) var(--fill), var(--sand) var(--fill)); }
.ref-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 4px 14px rgba(26, 49, 44, .28); cursor: pointer; }
.ref-range::-moz-range-track { height: 10px; border-radius: 999px; background: var(--sand); }
.ref-range::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--green); }
.ref-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 4px 14px rgba(26, 49, 44, .28); cursor: pointer; }
.ref-ticks { position: relative; height: 22px; }
.ref-tick { position: absolute; top: 0; width: 2px; height: 7px; border-radius: 2px; background: var(--line-strong); transform: translateX(-50%); transition: background .2s; }
.ref-tick small { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); font-size: 10.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.ref-tick.is-passed { background: var(--green); }
.ref-tick.is-passed small { color: var(--green-2); }
.ref-help { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.ref-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; padding: 5px; border-radius: 16px; background: var(--cream-2); }
.ref-seg button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 4px; border-radius: 12px; font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.2; transition: background .2s, color .2s, box-shadow .2s; }
.ref-seg button small { font-size: 12.5px; font-weight: 600; font-family: var(--display); }
.ref-seg button[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: 0 6px 16px rgba(26, 49, 44, .2); }

.ref-tierrail { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 16px 0 0; padding: 0; }
.ref-tierrail li { text-align: center; padding: 9px 3px; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.ref-tierrail b { display: block; font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ref-tierrail small { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; font-variant-numeric: tabular-nums; }
.ref-tierrail li.is-on { background: var(--mint-2); border-color: transparent; }
.ref-tierrail li.is-on b { color: var(--ink); }
.ref-tierrail li.is-now { background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.ref-tierrail li.is-now b, .ref-tierrail li.is-now small { color: var(--cream); }
.ref-note { margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.ref-note b { color: var(--ink); }

.ref-example { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); }
.ref-example .eyebrow { color: var(--mint); }
.ref-example .eyebrow::before { background: var(--mint); }
.ref-example .h3 { margin-top: 12px; }
.ref-example > p { margin-top: 12px; font-size: 15px; color: rgba(255, 244, 225, .78); }
.ref-example b { color: var(--cream); }
.ref-example-sum { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.ref-example-sum li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 244, 225, .07); font-size: 13.5px; color: rgba(255, 244, 225, .8); }
.ref-example-sum li b { font-family: var(--display); font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--mint-2); }
.ref-example-note { background: transparent !important; border: 1px dashed rgba(255, 244, 225, .22); }
.ref-disclaimer { margin-top: 18px; font-size: 12.5px; line-height: 1.55; color: rgba(255, 244, 225, .66); }
.ref-disclaimer b { color: var(--mint-2); }

/* ---------- Metaphor 2: the constellation ---------- */
.ref-const { position: relative; }
.ref-const-line { stroke-dasharray: 800; stroke-dashoffset: 800; }
.ref-const.in .ref-const-line { animation: ref-draw 2.2s var(--ease) .2s forwards; }
@keyframes ref-draw { to { stroke-dashoffset: 0; } }
.ref-star path { fill: rgba(255, 244, 225, .22); transition: fill .5s var(--ease), filter .5s var(--ease); }
.ref-star.is-lit path { fill: #FFF4E1; filter: drop-shadow(0 0 12px rgba(183, 236, 211, .95)); }
.ref-star.is-lit { animation: ref-twinkle 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.ref-star[data-star="5"].is-lit { animation-duration: 5s; }
@keyframes ref-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .74; } }
.ref-star-label { position: absolute; transform: translate(-50%, 22px); text-align: center; white-space: nowrap; pointer-events: none; }
.ref-star-label b { display: block; font-family: var(--display); font-size: 11.5px; color: var(--cream); }
.ref-star-label small { display: none; font-size: 11px; color: rgba(255, 244, 225, .6); }
@media (min-width: 700px) {
  .ref-star-label b { font-size: 15px; }
  .ref-star-label small { display: block; }
}
.ref-const-sec .table-wrap { color: var(--ink); }
.ref-caption { caption-side: top; text-align: left; padding: 12px 16px 0; font-size: 12.5px; color: var(--muted); }
.ref-const-sec .table th[scope="row"] { font-family: var(--display); font-size: 15px; color: var(--ink); text-transform: none; letter-spacing: 0; background: transparent; white-space: nowrap; }

/* ---------- Metaphor 4: the fjord split ---------- */
.ref-fjord { position: relative; height: clamp(210px, 24vw, 250px); border-radius: 16px; overflow: hidden; }
.ref-fjord > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ref-wave { will-change: transform; }
.ref-wave-front { animation: ref-wave-a 11s linear infinite; }
.ref-wave-back { animation: ref-wave-b 17s linear infinite; }
@keyframes ref-wave-a { from { transform: translateX(0); } to { transform: translateX(-400px); } }
@keyframes ref-wave-b { from { transform: translateX(-200px); } to { transform: translateX(-600px); } }
.ref-fjord-above { position: absolute; left: 0; right: 0; top: 0; height: 75%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; text-align: center; }
.ref-fjord-above b { font-family: var(--display); font-size: clamp(1.3rem, 3.4vw, 2rem); }
.ref-fjord-above span { font-size: 13px; color: var(--muted); max-width: 42ch; }
.ref-fjord-below { position: absolute; left: 0; right: 0; bottom: 0; height: 25%; display: flex; align-items: center; justify-content: center; padding: 0 14px; text-align: center; }
.ref-fjord-below b { font-size: 12.5px; font-weight: 700; color: #FFF4E1; line-height: 1.35; }
.ref-math { padding: 22px; }
.ref-math h3 { font-size: 1.02rem; margin-top: 8px; }
.ref-math p { font-size: 14px; }
.ref-math-n { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--green-2); }

/* ---------- Metaphor 7: the ledger card ---------- */
.ref-get { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .ref-get { grid-template-columns: 1fr; } }
.ref-ledger { background: var(--cream); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(16px, 2.6vw, 24px); box-shadow: var(--shadow-soft); }
.ref-ledger-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ref-ledger-head b { display: block; font-family: var(--display); font-size: 16px; }
.ref-ledger-head small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ref-ledger-rows { display: grid; gap: 8px; margin-top: 14px; }
.ref-ledger-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.ref-ledger-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ref-ledger-who b { display: block; font-size: 13.5px; }
.ref-ledger-who small { display: block; font-size: 11.5px; color: var(--muted); }
.ref-avatar { flex: none; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 13px; background: var(--mint-2); color: var(--ink); }
.ref-avatar.gold { background: #FBE9C6; } .ref-avatar.sky { background: #DCEBF7; }
.ref-ledger-amt { text-align: right; flex: none; }
.ref-ledger-amt b { display: block; font-family: var(--display); font-size: 16px; font-variant-numeric: tabular-nums; }
.ref-ledger-amt em { font-style: normal; margin-top: 4px; display: inline-block; }
.ref-ledger-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.ref-kit-list { list-style: none; margin: 16px 0 22px; padding: 0; display: grid; gap: 11px; }
/* block, not flex: these items mix a bold lead-in with running text, and a
   flex container would make the two halves sit side by side as separate items */
.ref-kit-list li { display: block; position: relative; padding-left: 28px; font-size: 14.5px; color: var(--ink-3); line-height: 1.5; }
.ref-kit-list li b { color: var(--ink); }
.ref-kit-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--mint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A312C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ---------- Proof ---------- */
.ref-proof { display: flex; flex-direction: column; }
.ref-proof-n { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; letter-spacing: -.03em; color: var(--green-2); }
.ref-proof p { margin-top: 10px; font-size: 15px; color: var(--ink-3); }
.ref-source { margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--muted); }
.ref-nofake { max-width: 62ch; margin-left: auto; margin-right: auto; font-size: 14px; }

/* ---------- Metaphor 6: the lighthouse sweep ---------- */
.ref-final { position: relative; overflow: hidden; }
.ref-final-inner { position: relative; z-index: 1; }
.ref-sweep { position: absolute; left: 50%; top: 50%; width: min(1100px, 150vw); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
.ref-sweep i {
  position: absolute; inset: 0; display: block; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(137, 215, 183, .34) 0deg, rgba(137, 215, 183, .10) 16deg, rgba(137, 215, 183, 0) 42deg, rgba(137, 215, 183, 0) 318deg, rgba(137, 215, 183, .10) 344deg, rgba(137, 215, 183, .34) 360deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 12%, rgba(0, 0, 0, .55) 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 12%, rgba(0, 0, 0, .55) 55%, transparent 100%);
  animation: spin 14s linear infinite;
}
.ref-final-note { margin-top: 18px; font-size: 13px; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .ref-tierrail { grid-template-columns: repeat(5, 1fr); gap: 3px; }
  .ref-tierrail li { padding: 8px 1px; }
  .ref-tierrail b { font-size: 10px; }
  .ref-ledger-row { align-items: flex-start; }
  .ref-fjord-above span { font-size: 12px; }
}
/* iOS zooms a page in when it focuses a control under 16px; the slider has no
   text, but keep every real input on this page at 16px to be safe. */
@media (max-width: 640px) { .ref-calc input[type="text"], .ref-calc input[type="number"], .ref-calc select { font-size: 16px; } }

/* ---------- Stillness for anyone who asked for it ---------- */
@media (prefers-reduced-motion: reduce) {
  .ref-boat, .ref-wave-front, .ref-wave-back, .ref-sweep i, .ref-star.is-lit, .ref-route-line, .ref-glow i { animation: none !important; }
  .ref-boat { offset-distance: 50%; }
  .ref-const-line { stroke-dashoffset: 0; }
  .ref-const.in .ref-const-line { animation: none; }
}
