/* TuniCall public website. DM Sans only; colors follow the app brand (deep green, mint, bright green). */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/dm-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/dm-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/dm-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/dm-sans-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/dm-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/dm-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0b1a12;
  --ink-2: #33433a;
  --ink-3: #4f6157;
  --paper: #f6f8f5;
  --paper-2: #edf3ef;
  --card: #ffffff;
  --line: #dde6e0;
  --line-2: #c9d8ce;
  --deep: #082519;
  --deep-2: #103c2c;
  --deep-3: #17513b;
  --on-deep: #f1fbf4;
  --on-deep-2: #b4cdbf;
  --mint: #6deba2;
  --brand: #22c55e;
  --brand-hover: #16a34a;
  --brand-ink: #03210f;
  --brand-text: #137a3a;
  --mint-tint: #e5f8ec;
  --focus: #16a34a;
  --radius: 18px;
  --shadow: 0 1px 2px #0b1a120a, 0 12px 32px #0b1a1210;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.deep :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--mint); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text);
}
.deep .eyebrow { color: var(--mint); }
h1, .h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 650; }
h2, .h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 650; }
h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -.012em; font-weight: 650; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--ink-2); }
.deep .lead { color: var(--on-deep-2); }
.accent { color: var(--brand-text); }
.deep .accent { color: var(--mint); }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 24px #22c55e33; }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink-3); }
.deep .btn-ghost, .site-header .btn-ghost { background: transparent; color: var(--on-deep); border-color: #ffffff3d; }
.deep .btn-ghost:hover, .site-header .btn-ghost:hover { border-color: var(--mint); color: #fff; }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: .95rem; border-radius: 10px; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--brand-text); font-weight: 650; text-decoration: none;
}
.text-link svg { width: 18px; height: 18px; transition: transform .18s; }
.text-link:hover svg { transform: translateX(3px); }
.deep .text-link { color: var(--mint); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--deep); color: var(--on-deep); transition: background-color .2s, box-shadow .2s; }
.site-header.is-scrolled { background: #082519ee; box-shadow: 0 10px 30px #0000002e; backdrop-filter: saturate(160%) blur(10px); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 150px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: inline-flex; padding: 10px 14px; border-radius: 10px; color: var(--on-deep-2);
  font-size: .97rem; font-weight: 550; text-decoration: none; transition: color .15s, background-color .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: #ffffff12; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid #ffffff33;
  background: transparent; color: var(--on-deep); cursor: pointer; place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Deep hero sections ---------- */
.deep { position: relative; background: var(--deep); color: var(--on-deep); overflow: hidden; isolation: isolate; }
.deep::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; z-index: -1;
  background: radial-gradient(closest-side, #22c55e26, transparent 70%);
}
.deep::after {
  /* Equalizer bars from the logo, faded into the page edge. */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(90deg, #6deba21f 0 3px, transparent 3px 22px);
  -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent);
}
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(72px, 10vw, 128px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { margin: 22px 0 22px; max-width: 13ch; }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 22px; max-width: 520px; font-size: .92rem; color: var(--on-deep-2); }
.page-hero { padding: clamp(52px, 8vw, 96px) 0 clamp(56px, 8vw, 92px); }
.page-hero h1 { margin: 20px 0 18px; max-width: 18ch; font-size: clamp(2.3rem, 5.4vw, 4rem); }
.page-hero .lead { max-width: 640px; }

/* Live call illustration */
.call-card {
  position: relative; border-radius: 24px; padding: 22px; background: linear-gradient(180deg, #ffffff12, #ffffff08);
  border: 1px solid #ffffff1f; box-shadow: 0 30px 80px #0000004d, inset 0 1px 0 #ffffff14; backdrop-filter: blur(6px);
}
.call-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: #22c55e24; color: var(--mint); font-size: .8rem; font-weight: 650; letter-spacing: .02em;
}
.live-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 #22c55e80; animation: pulse 1.8s infinite; }
.call-timer { font-variant-numeric: tabular-nums; color: var(--on-deep-2); font-size: .92rem; }
.call-who { display: flex; align-items: center; gap: 14px; margin: 18px 0 16px; }
.call-avatar { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.call-avatar svg { width: 22px; height: 22px; }
.call-who strong { display: block; font-size: 1.02rem; }
.call-who span { color: var(--on-deep-2); font-size: .9rem; }
.wave { display: flex; align-items: center; gap: 4px; height: 46px; margin-bottom: 16px; }
.wave i { flex: 1; height: 100%; border-radius: 4px; background: linear-gradient(var(--mint), var(--brand)); transform-origin: center; animation: wave 1.2s ease-in-out infinite; }
.transcript { display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 64px 1fr; gap: 10px; font-size: .93rem; line-height: 1.5; animation: appear .5s both; }
.line b { color: var(--mint); font-weight: 650; }
.line.caller b { color: #e8d9a8; }
.line span { color: var(--on-deep); }
.line:nth-child(1) { animation-delay: .4s; } .line:nth-child(2) { animation-delay: 1.6s; } .line:nth-child(3) { animation-delay: 2.8s; }
.call-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 10px; background: #ffffff10; border: 1px solid #ffffff1c; font-size: .83rem; color: var(--on-deep); animation: appear .5s both; }
.chip svg { width: 15px; height: 15px; color: var(--mint); }
.chip:nth-child(1) { animation-delay: 3.6s; } .chip:nth-child(2) { animation-delay: 4.1s; } .chip:nth-child(3) { animation-delay: 4.6s; }
.call-caption { margin-top: 14px; font-size: .78rem; color: var(--on-deep-2); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 16px 0 14px; }
.section-head.center { margin-inline: auto; text-align: center; }

.providers-strip { padding: 28px 0; border-bottom: 1px solid var(--line); background: var(--card); }
.providers-strip p { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; color: var(--ink-3); text-align: center; margin-bottom: 14px; }
.providers-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; }
.providers-list li { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink); font-size: 1.02rem; letter-spacing: -.01em; }
.providers-list img { width: 26px; height: 26px; object-fit: contain; }
.logo-strip { min-height: 48px; }
.logo-initials { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 700; font-size: .8rem; letter-spacing: -.02em; color: var(--brand-text); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.card:hover { border-color: var(--line-2); }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--ink-2); }
.card .text-link { margin-top: 18px; }
.icon-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--mint-tint); color: var(--brand-text); }
.icon-badge svg { width: 24px; height: 24px; }
.pillar { padding: 32px; }
.pillar ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.pillar li { display: flex; gap: 10px; color: var(--ink-2); font-size: .98rem; }
.pillar li svg { width: 18px; height: 18px; color: var(--brand-text); flex: 0 0 auto; margin-top: 4px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; padding: 30px 28px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: '0' counter(step); display: block; font-size: 3.4rem; line-height: 1; font-weight: 700; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--brand-text); margin-bottom: 18px;
}
.step p { color: var(--ink-2); margin-top: 10px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--card); padding: 28px 24px; }
.feature svg { width: 26px; height: 26px; color: var(--brand-text); }
.feature h3 { font-size: 1.06rem; margin: 16px 0 8px; }
.feature p { color: var(--ink-2); font-size: .95rem; }

/* Product tour */
.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tour-tab {
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card);
  font-weight: 650; font-size: .95rem; color: var(--ink-2); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.tour-tab:hover { border-color: var(--ink-3); color: var(--ink); }
.tour-tab[aria-selected="true"] { background: var(--deep-2); border-color: var(--deep-2); color: #fff; }
.frame { border-radius: 20px; background: var(--deep-2); padding: 10px; box-shadow: 0 40px 90px #0b1a1229; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 6px 8px 12px; }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ffffff2e; }
.frame-bar span { margin-left: 14px; padding: 4px 14px; border-radius: 8px; background: #ffffff14; color: var(--on-deep-2); font-size: .8rem; }
.frame img { border-radius: 12px; width: 100%; }
.tour-panel[hidden] { display: none; }
.tour-caption { margin-top: 16px; color: var(--ink-3); font-size: .92rem; }

/* Integrations */
.integration-group + .integration-group { margin-top: 56px; }
.integration-group > h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.integration-group > p { color: var(--ink-2); max-width: 680px; margin-bottom: 24px; }
.integration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.integration { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.integration:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.integration-logo {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px #0b1a120f;
}
.integration-logo img { width: 30px; height: 30px; object-fit: contain; }
.integration h3 { font-size: 1.04rem; margin: 2px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.integration p { color: var(--ink-2); font-size: .93rem; line-height: 1.55; }
.integration-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.integration-tiles li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 15px 9px 9px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 650; font-size: .95rem; transition: border-color .2s, transform .2s; }
.integration-tiles li:hover { border-color: var(--line-2); transform: translateY(-1px); }
.tile-logo { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.tile-logo img { width: 22px; height: 22px; object-fit: contain; }
.layer-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
.layer-nav a { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--ink-2); }
.layer-nav a:hover { border-color: var(--ink-3); color: var(--ink); }
.layer-role { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); }
.integration-group { scroll-margin-top: 110px; }

/* Interactive sections (React islands; their own styles load with them) */
.wave-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); }
.system-island { min-height: 560px; }
.system-hero .system-island { margin-top: 48px; }
.system-hero h1 { max-width: 20ch; }
.system-fallback ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.system-fallback li { display: grid; justify-items: center; gap: 6px; padding: 22px 16px; border-radius: 20px; background: #ffffff0d; border: 1px solid #ffffff24; text-align: center; }
.system-logo { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 16px; background: #fff; margin-bottom: 4px; }
.system-logo img { width: 34px; height: 34px; object-fit: contain; }
.system-fallback strong { color: var(--mint); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.system-fallback small { color: var(--on-deep-2); font-size: .84rem; }
p.system-fallback, .system-fallback > p { margin-top: 18px; color: var(--on-deep-2); }
.flow-island { min-height: 540px; }
.flow-fallback { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.flow-fallback li { padding: 22px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.flow-fallback svg { width: 24px; height: 24px; color: var(--brand-text); }
.flow-fallback h3 { font-size: 1rem; margin: 12px 0 6px; }
.flow-fallback p { font-size: .9rem; color: var(--ink-2); }
.barge-split { margin-top: clamp(56px, 8vw, 88px); align-items: center; }
.barge-title { margin: 14px 0; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.025em; }
.barge-island { min-height: 430px; }
.barge-fallback { display: grid; gap: 10px; padding: 24px; border-radius: 24px; background: var(--deep); color: var(--on-deep); }
.barge-fallback b { color: var(--mint); margin-right: 8px; }

/* Use cases */
.usecase { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); padding: clamp(32px, 5vw, 48px) 0; border-top: 1px solid var(--line); }
.usecase:first-child { border-top: 0; padding-top: 0; }
.usecase h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 14px 0 12px; }
.usecase > div > p { color: var(--ink-2); }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink-2); }
.checklist li svg { width: 20px; height: 20px; color: var(--brand-text); flex: 0 0 auto; margin-top: 3px; }
.checklist strong { color: var(--ink); font-weight: 650; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { padding: 5px 11px; border-radius: 999px; background: var(--mint-tint); color: #166534; font-size: .82rem; font-weight: 650; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; background: var(--paper); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 650; white-space: nowrap; }
td { color: var(--ink-2); }

/* Split feature sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split h2 { margin: 14px 0 14px; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.split .lead { margin-bottom: 8px; }
.split-media { position: sticky; top: 100px; }

/* Security */
.security-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.security-item { padding: 26px; border-radius: var(--radius); background: #ffffff0d; border: 1px solid #ffffff1c; }
.security-item svg { width: 26px; height: 26px; color: var(--mint); }
.security-item h3 { margin: 16px 0 8px; }
.security-item p { color: var(--on-deep-2); font-size: .96rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan.featured { background: var(--deep-2); color: var(--on-deep); border-color: var(--deep-2); }
.plan h3 { font-size: 1.35rem; }
.plan .plan-tag { font-size: .95rem; color: var(--ink-2); margin-top: 6px; }
.plan.featured .plan-tag { color: var(--on-deep-2); }
.plan .price { margin: 26px 0 6px; font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; }
.plan .price-note { font-size: .88rem; color: var(--ink-3); }
.plan.featured .price-note { color: var(--on-deep-2); }
.plan ul { margin: 24px 0 28px; padding: 0; list-style: none; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: .97rem; color: var(--ink-2); }
.plan.featured li { color: var(--on-deep); }
.plan li svg { width: 18px; height: 18px; color: var(--brand-text); flex: 0 0 auto; margin-top: 4px; }
.plan.featured li svg { color: var(--mint); }
.plan .btn { margin-top: auto; }
.plan.featured .btn-ghost { color: var(--on-deep); border-color: #ffffff4d; background: transparent; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 0; font-weight: 650; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--brand-text); transition: transform .2s; flex: 0 0 auto; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 760px; }

/* CTA band */
.cta-band { border-radius: 28px; padding: clamp(36px, 6vw, 72px); background: var(--deep-2); color: var(--on-deep); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(closest-side, #6deba240, transparent); z-index: -1; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.cta-band p { color: var(--on-deep-2); margin-top: 12px; max-width: 560px; }
.cta-band .btn-ghost { color: var(--on-deep); border-color: #ffffff4d; background: transparent; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Prose (legal, about) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 44px 0 14px; letter-spacing: -.02em; }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.prose a { color: var(--brand-text); font-weight: 600; }
.prose .updated { font-size: .92rem; color: var(--ink-3); }
.notice { margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: var(--mint-tint); color: #14532d; font-size: .95rem; }

/* Legal documents: full container width, sticky sidebar with every document and an "On this page" index */
.legal-hero h1 { max-width: none; }
.legal-updated { margin-top: 18px; font-size: .92rem; color: var(--on-deep-2); }
.legal-section { padding-top: clamp(40px, 6vw, 72px); }
.legal-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal-side {
  position: sticky; top: 100px; display: grid; gap: 22px; max-height: calc(100vh - 124px); overflow-y: auto;
  padding: 4px 8px 4px 0; overscroll-behavior: contain;
}
.legal-docs h2, .legal-toc summary { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.legal-docs h2 { margin-bottom: 10px; }
.legal-docs ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.legal-docs a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.legal-docs a:hover { background: var(--paper-2); color: var(--ink); }
.legal-docs a[aria-current="page"] { background: var(--deep-2); color: #fff; }
.legal-toc { border-top: 1px solid var(--line); padding-top: 18px; }
.legal-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; margin-bottom: 10px; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary svg { width: 16px; height: 16px; transition: transform .2s; }
.legal-toc:not([open]) summary svg { transform: rotate(-90deg); }
.legal-toc ol { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.legal-toc a {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px; padding: 7px 10px; border-radius: 9px;
  text-decoration: none; color: var(--ink-3); font-size: .9rem; line-height: 1.4;
}
.legal-toc a span { font-variant-numeric: tabular-nums; }
.legal-toc a:hover { color: var(--ink); background: var(--paper-2); }
.legal-toc a[aria-current="location"] { color: #14532d; background: var(--mint-tint); font-weight: 650; }
.legal-content { max-width: none; min-width: 0; }
.legal-content > .legal-block:first-of-type h2, .legal-content > .legal-facts + .legal-block h2 { margin-top: 32px; }
.legal-block { scroll-margin-top: 100px; }
.legal-block + .legal-block { border-top: 1px solid var(--line); margin-top: 36px; }
.legal-block h2 { margin-top: 36px; }
.legal-num { color: var(--brand-text); margin-right: 4px; font-variant-numeric: tabular-nums; }
.legal-content > * + .legal-summary { margin-top: 24px; }
.legal-summary { padding: 24px 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.legal-summary h2 { margin: 0 0 14px; font-size: 1.15rem; }
.legal-summary ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.legal-summary li { display: flex; gap: 12px; color: var(--ink-2); }
.legal-summary svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 3px; color: var(--brand-text); }
.legal-facts { display: grid; margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.legal-facts div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.legal-facts div:first-child { border-top: 0; }
.legal-facts dt { font-weight: 650; color: var(--ink); }
.legal-facts dd { color: var(--ink-2); }
.legal-contact { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose ol { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.prose li::marker { color: var(--brand-text); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose .callout { margin: 16px 0; padding: 16px 18px; border-radius: 14px; background: var(--mint-tint); color: #14532d; border-left: 4px solid var(--brand-text); }
.prose .callout strong { color: #0f3d22; }
.legal-content table { display: block; overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.legal-content th, .legal-content td { min-width: 140px; }
.legal-content td:first-child { white-space: normal; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-card { padding: clamp(24px, 4vw, 40px); background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 650; font-size: .95rem; }
.field .optional { font-weight: 500; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px #16a34a26; }
.field input::placeholder, .field textarea::placeholder { color: #5f7068; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip-option { position: relative; }
.chip-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-option span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; font-size: .93rem; font-weight: 600; color: var(--ink-2); transition: background-color .15s, color .15s, border-color .15s;
}
.chip-option input:hover + span { border-color: var(--ink-3); }
.chip-option input:checked + span { background: var(--deep-2); border-color: var(--deep-2); color: #fff; }
.chip-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-footer p { font-size: .88rem; color: var(--ink-3); max-width: 380px; }
.form-footer a { color: var(--brand-text); font-weight: 600; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: .95rem; }
.form-status[hidden] { display: none; }
.form-status.is-error { background: #fdecea; color: #8a1c13; }
.form-success { text-align: center; padding: clamp(24px, 5vw, 48px) 8px; }
.form-success svg { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--brand-text); }
.form-success h2 { font-size: 1.8rem; margin-bottom: 10px; }
.form-success p { color: var(--ink-2); }
.turnstile-slot { min-height: 0; margin-top: 18px; }
.aside-list { display: grid; gap: 18px; margin: 20px 0 0; padding: 0; list-style: none; }
.aside-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.aside-list .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--deep-2); color: var(--mint); font-weight: 700; }
.aside-list strong { display: block; margin-bottom: 2px; }
.aside-list p { color: var(--ink-2); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep-2); padding: 72px 0 36px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand img { width: 150px; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; font-size: .95rem; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-deep); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-deep-2); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 26px; border-top: 1px solid #ffffff1a; font-size: .88rem; }
.footer-bottom .credit a { color: var(--mint); font-size: inherit; font-weight: 650; }
.footer-bottom .credit a:hover { color: #fff; text-decoration: underline; }

/* 404 */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found .code { font-size: clamp(5rem, 16vw, 10rem); font-weight: 700; letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--mint); }

/* ---------- Motion ---------- */
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #22c55e80; } 70% { box-shadow: 0 0 0 9px #22c55e00; } 100% { box-shadow: 0 0 0 0 #22c55e00; } }
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Render final states directly: no entrance animations, no looping waveform. */
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-fallback { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: grid; }
  .site-header.menu-open .nav-panel { display: block; }
  .hero-grid, .split, .contact-grid, .usecase { grid-template-columns: minmax(0, 1fr); }
  .split-media { position: static; }
  .grid-3, .steps, .plans, .security-band { grid-template-columns: minmax(0, 1fr); }
  .system-island, .flow-island, .barge-island { min-height: 0; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-side { position: static; max-height: none; overflow: visible; padding: 0; }
  .legal-docs ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-docs a { padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .88rem; background: var(--card); }
  .legal-toc { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
  .legal-toc summary { margin-bottom: 0; }
  .legal-toc[open] summary { margin-bottom: 10px; }
  .legal-facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .system-fallback ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
}
.nav-panel { display: none; padding: 8px 0 24px; border-top: 1px solid #ffffff1a; }
.nav-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-panel a:not(.btn) { display: block; padding: 13px 4px; color: var(--on-deep); text-decoration: none; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid #ffffff12; }
.nav-panel a[aria-current="page"] { color: var(--mint); }
.nav-panel .panel-actions { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 961px) { .nav-panel { display: none !important; } }
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-2, .grid-4, .feature-grid, .integration-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .call-card { padding: 18px; }
  .line { grid-template-columns: 56px 1fr; font-size: .88rem; }
  th, td { padding: 12px 14px; }
  td:first-child { white-space: normal; }
  .brand img { width: 132px; }
}
