/* Clever Loops marketing site. Native CSS, no framework.
   Radius system: cards 20px, inner UI 12px, buttons and chips full pill. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f7f7;
  --surface: #ffffff;
  --surface-2: #ecf1f1;
  --ink: #0b1a24;
  --ink-2: #364a52;
  --muted: #5d6f76;
  --line: rgba(11, 26, 36, 0.09);
  --line-strong: rgba(11, 26, 36, 0.16);
  --accent: #0b7a6b;
  --accent-wash: #e2f2ef;
  --accent-ink: #ffffff;
  --deep: #0b1a24;
  --deep-2: #132a34;
  --on-deep: #eef3f4;
  --on-deep-muted: #a3b6bc;
  --shadow: 0 1px 2px rgba(12, 26, 44, 0.06), 0 12px 32px -12px rgba(12, 26, 44, 0.18);
  --shadow-lg: 0 2px 4px rgba(12, 26, 44, 0.05), 0 32px 64px -24px rgba(12, 26, 44, 0.32);
  --r-card: 20px;
  --r-ui: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071116;
    --surface: #0d1b22;
    --surface-2: #13252e;
    --ink: #edf3f4;
    --ink-2: #bfcdd1;
    --muted: #8ea2a8;
    --line: rgba(237, 241, 246, 0.09);
    --line-strong: rgba(237, 241, 246, 0.18);
    --accent: #3cc2ab;
    --accent-wash: rgba(60, 194, 171, 0.12);
    --accent-ink: #04201b;
    --deep: #0d2029;
    --deep-2: #153039;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 32px 64px -24px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.i { width: 1em; height: 1em; fill: currentColor; flex: none; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.4vw, 56px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); line-height: 1.55; max-width: 34em; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font: 500 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform 0.4s var(--ease), background-color 0.3s, box-shadow 0.4s var(--ease), color 0.3s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary .i { transition: transform 0.4s var(--ease); }
.btn-primary:hover .i { transform: translateX(3px); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 22px; }
.brand .l1 { stroke: var(--ink); }
.brand .l2 { stroke: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-2); font-size: 15px; transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.22fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--accent); margin-bottom: 28px; }
.hero h1 { font-size: clamp(44px, 4.9vw, 70px); line-height: 0.98; letter-spacing: -0.045em; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--accent); }
.hero .lead { margin-top: 28px; max-width: 30em; }
.hero-cta { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-photo {
  border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 5.4;
  box-shadow: var(--shadow-lg); background: var(--surface-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.notify-stack {
  position: absolute; left: -40px; bottom: -28px; width: min(360px, 82%);
  display: grid; gap: 10px;
}
.notify {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: 14px; line-height: 1.4;
}
.notify .app {
  width: 40px; height: 40px; border-radius: 11px; background: var(--deep);
  display: grid; place-items: center;
}
.notify .app svg { width: 26px; height: 17px; }
.notify .top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; }
.notify strong { display: block; font-weight: 600; color: var(--ink); margin: 1px 0 2px; }
.notify p { color: var(--ink-2); }

/* Proof strip */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof .wrap > div { display: flex; align-items: center; gap: 12px; padding: 26px 0; font-size: 15px; color: var(--ink-2); }
.proof .wrap > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.proof .i { font-size: 22px; color: var(--accent); }

/* Sections */
section { padding: 128px 0; }
.sec-head { max-width: 760px; margin-bottom: 64px; }
.sec-head .lead { margin-top: 20px; }

/* Levels */
.levels { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.levels-line {
  position: absolute; top: 36px; left: 10%; right: 10%; height: 2px;
  background: var(--line-strong); overflow: hidden; border-radius: 2px;
}
.levels-line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform-origin: left; transition: transform 1.6s var(--ease) 0.2s;
}
.js .levels:not(.in) .levels-line::after { transform: scaleX(0); }
.levels.in .levels-line::after { transform: scaleX(1); }
.level { position: relative; text-align: center; padding: 0 8px; }
.level .node {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 28px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink);
  box-shadow: var(--shadow);
  transition: background-color 0.5s, color 0.5s, border-color 0.5s;
}
.levels.in .level .node { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.levels.in .level:nth-child(2) .node { transition-delay: 0.2s; }
.levels.in .level:nth-child(3) .node { transition-delay: 0.5s; }
.levels.in .level:nth-child(4) .node { transition-delay: 0.8s; }
.levels.in .level:nth-child(5) .node { transition-delay: 1.1s; }
.levels.in .level:nth-child(6) .node { transition-delay: 1.4s; }
.level h3 { font-size: 20px; margin-bottom: 8px; }
.level p { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.cell {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
  padding: 32px; display: flex; flex-direction: column; gap: 28px;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cell .copy p { margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 30em; }
.cell .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--accent); margin-bottom: 14px; }
.cell .tag .i { font-size: 18px; }
.c-ann { grid-column: span 4; background: var(--accent-wash); border-color: transparent; display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: center; }
.c-ann .composer { margin-top: 0; }
.c-dues { grid-column: span 2; background: var(--deep); border-color: transparent; color: var(--on-deep); }
.c-dues .copy p { color: var(--on-deep-muted); }
.c-dues .tag { color: #6fd9c6; }
.c-vote, .c-meet, .c-event { grid-column: span 2; }
.c-dir { grid-column: span 6; display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }

.ui {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ui);
  box-shadow: var(--shadow); font-size: 14px; line-height: 1.45;
}
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.ui-row + .ui-row { border-top: 1px solid var(--line); }
.ui-label { font-size: 12px; color: var(--muted); }

/* Announcement composer */
.composer { margin-top: auto; }
.composer .to { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 13px; color: var(--ink-2); background: var(--surface);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.chip.on { background: var(--ink); color: var(--bg); border-color: transparent; }
.composer .msg { padding: 16px; }
.composer .msg strong { display: block; font-size: 16px; margin-bottom: 4px; }
.composer .msg p { color: var(--ink-2); }
.composer .foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); }
.composer .channels { display: flex; gap: 16px; color: var(--muted); font-size: 13px; }
.composer .channels span { display: inline-flex; align-items: center; gap: 6px; }
.send { height: 34px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* Dues split */
.split { margin-top: auto; background: var(--deep-2); border-radius: var(--r-ui); border: 1px solid rgba(255,255,255,0.08); }
.split .total { padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.split .total .amt { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.split .row { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 14px; font-variant-numeric: tabular-nums; }
.split .row + .row { border-top: 1px solid rgba(255,255,255,0.06); }
.split .row span:first-child { display: inline-flex; align-items: center; gap: 10px; color: var(--on-deep-muted); }
.split .row span:first-child::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6fd9c6; }
@media (prefers-reduced-motion: no-preference) {
  .js .split .row { opacity: 0; transform: translateX(-8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .js .in .split .row { opacity: 1; transform: none; }
  .js .in .split .row:nth-child(3) { transition-delay: 0.15s; }
  .js .in .split .row:nth-child(4) { transition-delay: 0.3s; }
}
.split .ui-label { color: var(--on-deep-muted); }

/* Ballot */
.ballot { margin-top: auto; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.opt + .opt { border-top: 1px solid var(--line); }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.opt.sel .radio { border-color: var(--accent); }
.opt.sel .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ballot .secure { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Check-in */
.checkin { margin-top: auto; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.person + .person { border-top: 1px solid var(--line); }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); flex: none; }
.person .who { flex: 1; min-width: 0; }
.person .who span { display: block; font-size: 12px; color: var(--muted); }
.ok { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--accent); font-weight: 500; }

/* Ticket */
.c-event { padding: 0; gap: 0; }
.c-event .photo { aspect-ratio: 16 / 9; overflow: hidden; }
.c-event .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 1.2s var(--ease); }
.c-event:hover .photo img { transform: scale(1.04); }
.c-event .body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 24px; flex: 1; }
.ticket { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-top: auto; }
.ticket .qr { font-size: 34px; color: var(--ink); }

/* Directory */
.search { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; color: var(--ink); }
.search .caret { width: 1.5px; height: 18px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.search .typed { min-height: 1.45em; }
.result { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.result + .result { border-top: 1px solid var(--line); }
.result .who { flex: 1; }
.result .who span { display: block; font-size: 12px; color: var(--muted); }
.badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent-wash); color: var(--accent); font-weight: 500; }
.sync-note { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.sync-note .i { color: var(--accent); }
.sample { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* Photo band */
.band { position: relative; padding: 0; min-height: 640px; display: grid; align-items: end; overflow: hidden; color: #f3f5f8; }
.band .bg { position: absolute; inset: -8% 0; }
.band .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,17,22,0) 30%, rgba(7,17,22,0.82) 100%); }
.band .wrap { position: relative; z-index: 1; padding-bottom: 80px; width: 100%; }
.band blockquote { margin: 0; font-size: clamp(30px, 4vw, 52px); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; max-width: 18em; text-wrap: balance; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band .bg { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { transform: translateY(-5%); } to { transform: translateY(5%); } }
  }
}

/* Integrations */
.integ h2 { font-size: clamp(32px, 3.6vw, 48px); }
.integ { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.points { margin-top: 40px; display: grid; gap: 28px; }
.point { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.point .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; font-size: 22px; }
.point h3 { font-size: 18px; margin-bottom: 4px; }
.point p { color: var(--ink-2); font-size: 16px; }

.flow { position: relative; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); padding: 44px 36px; box-shadow: var(--shadow); }
.flow-node { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.flow-node.core { background: var(--deep); color: var(--on-deep); border-color: transparent; }
.flow-node .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; font-size: 22px; color: var(--accent); flex: none; border: 1px solid var(--line); }
.flow-node.core .ic { background: rgba(255,255,255,0.08); border-color: transparent; }
.flow-node.core .ic svg.mark { width: 28px; height: 18px; }
.flow-node strong { display: block; font-size: 16px; }
.flow-node span { font-size: 14px; color: var(--muted); }
.flow-node.core span { color: var(--on-deep-muted); }
.pipe { position: relative; height: 56px; margin-left: 41px; width: 2px; background: var(--line-strong); }
.pipe i { position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .flow.in .pipe i { animation: down 2.4s var(--ease) infinite; }
  .flow.in .pipe i.up { animation-name: up; animation-delay: 1.2s; }
  @keyframes down { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
  @keyframes up { 0% { top: calc(100% - 8px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 0; opacity: 0; } }
}
.pipe-label { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); white-space: nowrap; }

/* Company */
.company { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.company .photo { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg); }
.company .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.company .lead { margin-top: 24px; }
.facts { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); }
.facts div { background: var(--surface); padding: 22px 24px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }

/* CTA */
.cta { padding-top: 0; padding-bottom: 112px; }
.cta-card {
  position: relative; overflow: hidden; border-radius: 32px; background: var(--deep); color: var(--on-deep);
  padding: 96px 72px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end;
}
.cta-card::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -360px; border-radius: 50%;
  border: 2px solid rgba(111, 217, 198, 0.22);
  box-shadow: -220px 120px 0 -2px transparent, inset 0 0 0 0 transparent;
}
.cta-card::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -480px; top: -280px; border-radius: 50%;
  border: 2px solid rgba(238, 242, 247, 0.1);
}
.cta-card h2 { position: relative; z-index: 1; font-size: clamp(36px, 4.6vw, 60px); }
.cta-side { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: start; }
.cta-side p { color: var(--on-deep-muted); }
.cta-card .btn-primary { background: #f3f6f7; color: #0b1a24; }
.cta-card .mail { color: var(--on-deep); font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(238,242,247,0.3); padding-bottom: 2px; }
.cta-card .mail:hover { border-color: currentColor; }

/* Footer */
.foot { padding: 56px 0 64px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.foot address { font-style: normal; margin-top: 16px; line-height: 1.7; }
.foot nav { display: flex; gap: 28px; }
.foot nav a { text-decoration: none; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }
.foot .copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }

/* Reveal motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .hero .rise { opacity: 0; transform: translateY(24px); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
  .js .hero-photo { clip-path: inset(8% 8% 8% 8% round 28px); animation: unveil 1.4s var(--ease) 0.15s forwards; }
  .js .hero-photo img { transform: scale(1.12); animation: settle 1.8s var(--ease) 0.15s forwards; }
  .js .notify { opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .notify.show { opacity: 1; transform: none; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes unveil { to { clip-path: inset(0 0 0 0 round 28px); } }
  @keyframes settle { to { transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  .search .caret { animation: none; }
  .levels-line::after { transition: none; }
}

/* Policy page */
.policy { padding: 80px 0 112px; }
.policy .wrap { max-width: 760px; }
.policy h1 { font-size: clamp(40px, 5vw, 60px); letter-spacing: -0.04em; }
.policy .meta { color: var(--muted); margin-top: 16px; }
.policy h2 { font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 12px; }
.policy p { color: var(--ink-2); margin-top: 12px; }
.policy a { color: var(--accent); }

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .notify-stack { left: 20px; }
  .c-ann { grid-column: span 6; }
  .c-dues, .c-vote, .c-meet { grid-column: span 3; }
  .c-event { grid-column: span 3; }
  .c-dir { grid-template-columns: 1fr; gap: 32px; }
  .integ, .company { grid-template-columns: 1fr; gap: 56px; }
  .cta-card { grid-template-columns: 1fr; padding: 72px 48px; }
}
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  section { padding: 88px 0; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 32px 0 56px; }
  .hero-photo { aspect-ratio: 4 / 4.4; border-radius: 22px; }
  .notify-stack { position: relative; left: auto; bottom: auto; width: auto; margin: -64px 12px 0; }
  .notify-stack .notify:nth-child(n+2) { display: none; }
  .proof .wrap { grid-template-columns: 1fr 1fr; }
  .proof .wrap > div { padding: 18px 0; }
  .proof .wrap > div + div { padding-left: 0; border-left: 0; }
  .proof .wrap > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .proof .wrap > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .levels { grid-template-columns: 1fr; gap: 0; }
  .levels-line { top: 36px; bottom: 36px; left: 35px; right: auto; width: 2px; height: auto; }
  .levels-line::after { transform-origin: top; }
  .js .levels:not(.in) .levels-line::after { transform: scaleY(0); }
  .level { display: grid; grid-template-columns: 72px 1fr; gap: 20px; text-align: left; padding: 0 0 28px; align-items: center; }
  .level .node { margin: 0; }
  .level h3 { margin-bottom: 2px; }
  .bento { grid-template-columns: 1fr; }
  .bento > .cell { grid-column: auto; }
  .cell { padding: 24px; }
  .c-event .body { padding: 24px; }
  .band { min-height: 520px; }
  .band .wrap { padding-bottom: 48px; }
  .flow { padding: 28px 18px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .cta-card { padding: 56px 24px; border-radius: 24px; }
  .cta { padding-bottom: 80px; }
  .c-ann { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
}

.foot .brand { color: var(--ink); }

/* Logo mark (woven loops). Sized by height; the files carry their own clear space. */
.brand picture, .brand img { display: block; width: 36px; height: 36px; margin: -3px 0; }
.brand { gap: 6px; }
.notify .app img { width: 26px; height: 26px; }
.flow-node.core .ic img { width: 30px; height: 30px; }

/* Contact form (in the dark CTA card) */
.cta-card { align-items: start; }
.cta-copy { position: relative; z-index: 1; }
.cta-copy p { margin-top: 20px; color: var(--on-deep-muted); max-width: 26em; }
.contact-form { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--on-deep-muted); }
.field input, .field textarea {
  font: 16px/1.4 var(--font); color: var(--on-deep);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px; padding: 12px 14px; width: 100%; resize: vertical;
  transition: border-color 0.2s, background-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: #5fd3be; background: rgba(255, 255, 255, 0.09); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff9b8a; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: 15px; color: var(--on-deep-muted); }
.form-status.ok { color: #5fd3be; }
.form-status.err { color: #ffb4a6; }
.contact-form button[disabled] { opacity: 0.6; pointer-events: none; }
@media (max-width: 768px) { .contact-form { grid-template-columns: 1fr; } }

/* Rollout steps */
.steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; color: var(--ink-2); font-size: 16px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 15px; color: var(--accent); background: var(--accent-wash);
}
.steps b { color: var(--ink); font-weight: 600; display: block; }

/* Security */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sec-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; }
.sec-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; font-size: 22px; margin-bottom: 20px; }
.sec-item h3 { font-size: 18px; margin-bottom: 8px; }
.sec-item p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 1080px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sec-grid { grid-template-columns: 1fr; } }
