/* The public site: homepage, sign-in pages and legal pages share this sheet.
   Standalone on purpose - none of them loads the Vite bundle or Tailwind. */

:root {
  --brand: #16a085;
  --brand-dark: #11866f;
  --brand-deep: #0b5c4c;
  --brand-soft: #e8f6f2;
  --brand-tint: #f3fbf8;
  --ink: #0f1f1c;
  --ink-2: #3c4c48;
  --ink-3: #6b7a76;
  --line: #e4ebe9;
  --bg: #ffffff;
  --bg-alt: #f7faf9;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --red: #ef4444;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 31, 28, .06), 0 12px 32px -12px rgba(15, 31, 28, .18);
  --shadow-lg: 0 30px 70px -30px rgba(11, 92, 76, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(22, 160, 133, .45); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand); }
.section { padding: 88px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section-head { max-width: 700px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-title { font-size: clamp(2rem, 4.2vw, 3rem); margin-top: 14px; }
.section-sub { margin-top: 16px; font-size: 1.075rem; color: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; padding: 12px 22px; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(22, 160, 133, .7); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: #c9d6d2; background: var(--bg-alt); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: none; gap: 28px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { font-size: .93rem; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--brand-dark); }
.nav-cta { display: none; gap: 10px; margin-left: auto; }
.nav-cta .btn { padding: 9px 18px; font-size: .9rem; }
.nav-toggle {
  margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: #fff; padding: 12px 16px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { width: 100%; margin-top: 14px; }
@media (min-width: 960px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle, .mobile-menu, .mobile-menu.open { display: none; }
}

/* Hero */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 380px at 78% 30%, rgba(22, 160, 133, .16), transparent 70%),
    radial-gradient(520px 320px at 10% 10%, rgba(91, 214, 186, .14), transparent 70%);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero { padding: 84px 0 104px; } .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 64px; } }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); box-shadow: var(--shadow);
}
.hero-pill b { background: var(--brand-soft); color: var(--brand-deep); padding: 3px 10px; border-radius: 999px; font-size: .75rem; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); margin-top: 22px; }
.hero h1 .accent { color: var(--brand); }
.hero-sub { margin-top: 22px; font-size: 1.14rem; color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: .88rem; color: var(--ink-3); }
.hero-notes span { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes svg { color: var(--brand); flex-shrink: 0; }

/* Product mock */
.mock { position: relative; }
.mock-window {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9e2df; }
.mock-bar .mock-url { margin-left: 10px; font-size: .75rem; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 12px; }
.mock-body { padding: 18px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mock-title { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpi small { display: block; font-size: .68rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.kpi strong { font-family: var(--display); font-size: 1.15rem; }
.rows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; font-size: .82rem; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .num { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.row .who { min-width: 0; }
.row .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .who span { color: var(--ink-3); font-size: .74rem; }
.row.new { background: var(--brand-tint); animation: slidein .7s ease-out both; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.chip { display: inline-block; font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chip.green { background: #e6f7ef; color: #11734f; }
.chip.blue { background: #e8f0fe; color: #1d4ed8; }
.chip.amber { background: #fef3c7; color: #92400e; }
.chip.gray { background: #eef2f1; color: var(--ink-2); }
.chip.red { background: #fde8e8; color: #b42318; }
.float {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 14px; font-size: .8rem; display: none;
}
.float b { display: block; font-size: .85rem; }
.float span { color: var(--ink-3); }
.float-1 { top: -22px; left: -26px; display: flex; gap: 10px; align-items: center; animation: bob 5s ease-in-out infinite; }
.float-2 { bottom: -26px; right: -18px; animation: bob 5s ease-in-out 1.2s infinite; }
.float-icon { width: 34px; height: 34px; border-radius: 10px; background: #e7f9ee; color: #16a34a; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.split { display: flex; gap: 16px; margin-top: 6px; }
.split div { font-family: var(--display); font-size: 1.05rem; font-weight: 700; }
.split small { display: block; font-family: var(--font); font-size: .7rem; font-weight: 500; color: var(--ink-3); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (min-width: 640px) { .float { display: block; } .float-1 { display: flex; } }

/* Strip of truths under the hero */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.fact { padding: 22px 12px; text-align: center; font-size: .9rem; color: var(--ink-2); }
.fact strong { display: block; font-family: var(--display); font-size: 1.05rem; color: var(--ink); margin-bottom: 2px; }
@media (min-width: 900px) { .facts-grid { grid-template-columns: repeat(4, 1fr); } .fact + .fact { border-left: 1px solid var(--line); } }
@media (max-width: 899px) { .fact:nth-child(odd) { border-right: 1px solid var(--line); } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* How an order moves */
.flow { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .flow { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 22px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.step:hover { border-color: rgba(22, 160, 133, .45); transform: translateY(-3px); box-shadow: var(--shadow); }
.step-num {
  counter-increment: step; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; font-size: .9rem; margin-bottom: 16px;
}
.step-num::before { content: counter(step); }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--ink-2); }
@media (min-width: 1080px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 40px; right: -14px; width: 14px; height: 2px; background: var(--line);
  }
}

/* Module grid */
.bg-alt { background: var(--bg-alt); }
.modules { display: grid; gap: 16px; }
@media (min-width: 680px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .modules { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.module {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.module:hover { border-color: rgba(22, 160, 133, .4); box-shadow: var(--shadow); transform: translateY(-3px); }
.module-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-dark); margin-bottom: 18px;
}
.module-wide { grid-column: 1 / -1; }
@media (min-width: 1020px) { .module-wide .ticks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; } }
.module h3 { font-size: 1.2rem; margin-bottom: 8px; }
.module > p { color: var(--ink-2); font-size: .95rem; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.ticks li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311866f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Feature deep dives */
.feature { display: grid; gap: 44px; align-items: center; }
.feature + .feature { margin-top: 96px; }
@media (min-width: 960px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature.flip .feature-copy { order: 2; }
}
.feature h3 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-top: 12px; }
.feature-copy > p { margin-top: 16px; color: var(--ink-2); font-size: 1.04rem; }
.panel {
  background: linear-gradient(160deg, var(--brand-tint), #fff 60%); border: 1px solid var(--line);
  border-radius: 22px; padding: 22px; box-shadow: var(--shadow);
}
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.panel-card + .panel-card { margin-top: 12px; }
.panel-label { font-size: .72rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.ledger { width: 100%; border-collapse: collapse; font-size: .82rem; }
.ledger td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.ledger tr:last-child td { border-bottom: 0; }
.ledger td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.plus { color: #11734f; }
.minus { color: #b42318; }
.pools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pool strong { font-family: var(--display); font-size: 1.6rem; display: block; }
.pool span { font-size: .78rem; color: var(--ink-3); }
.meter { height: 8px; border-radius: 999px; background: #eef2f1; overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.agent { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.agent:last-child { border-bottom: 0; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .78rem; flex-shrink: 0;
}
.agent .grow { flex: 1; min-width: 0; }
.agent .grow b { display: block; }
.agent .grow span { color: var(--ink-3); font-size: .76rem; }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: .84rem; }
.perm { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #c9d6d2; flex-shrink: 0; }
.box.on { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; border-color: var(--brand); }
.summary { margin-top: 12px; background: var(--brand-soft); color: var(--brand-deep); border-radius: 10px; padding: 10px 12px; font-size: .84rem; }

/* Integrations */
.integrations { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .integrations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .integrations { grid-template-columns: repeat(4, 1fr); } }
.integration { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.integration b { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: 4px; }
.integration span { font-size: .88rem; color: var(--ink-2); }

/* Pricing */
.plans { display: grid; gap: 20px; align-items: start; }
@media (min-width: 760px) { .plans.n2, .plans.n3, .plans.n4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .plans.n3 { grid-template-columns: repeat(3, 1fr); } .plans.n4 { grid-template-columns: repeat(4, 1fr); } }
.plans.n1 { max-width: 460px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg); }
.plan-name { font-weight: 700; font-size: 1.05rem; }
.plan-desc { margin-top: 6px; color: var(--ink-3); font-size: .92rem; }
.plan-price { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; line-height: 1.1; }
.plan-price .amount { font-family: var(--display); font-size: clamp(1.9rem, 1.2rem + 1.3vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; }
.plan-price .per { font-size: .95rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.plan-price.na .amount { color: var(--ink-3); }
.plan-na { margin-top: 6px; font-size: .86rem; color: var(--ink-3); }
.plan-save { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .8rem; font-weight: 700; }
.plan-trial { margin-top: 10px; font-size: .86rem; color: var(--brand-dark); font-weight: 600; }
.plan .btn { width: 100%; margin-top: 20px; }
.plan .ticks { margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.plan-cycle { display: none; }
.plans[data-cycle="month"] .plan-cycle[data-for="month"],
.plans[data-cycle="biannual"] .plan-cycle[data-for="biannual"],
.plans[data-cycle="year"] .plan-cycle[data-for="year"] { display: block; }
.cycle-tabs { display: flex; width: max-content; max-width: 100%; margin: 0 auto 28px; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt); overflow-x: auto; }
.cycle-tab { flex: none; padding: 9px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 .92rem var(--font); cursor: pointer; transition: background .15s, color .15s; }
.cycle-tab:hover { color: var(--ink); }
.cycle-tab[aria-selected="true"] { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 2px rgba(15, 31, 28, .08), 0 4px 12px -6px rgba(15, 31, 28, .2); }
.no-plans {
  max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 40px 28px;
}
.no-plans h3 { font-size: 1.6rem; }
.no-plans p { margin: 12px auto 24px; color: var(--ink-2); max-width: 460px; }

/* FAQ */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 2px; font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-weight: 400; font-size: 1.2rem; color: var(--brand-dark);
  transition: transform .25s, background .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brand-soft); }
.faq details p { padding: 0 2px 22px; color: var(--ink-2); max-width: 640px; }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 56px 28px; text-align: center; color: #fff;
  background: radial-gradient(700px 300px at 85% 0%, rgba(91, 214, 186, .35), transparent 70%), linear-gradient(135deg, #0e7a65, #0b5c4c);
}
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.cta p { margin: 16px auto 30px; max-width: 540px; color: rgba(255, 255, 255, .85); font-size: 1.06rem; }
.cta .btn-primary { background: #fff; color: var(--brand-deep); box-shadow: none; }
.cta .btn-primary:hover { background: #eafaf5; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (min-width: 900px) { .cta { padding: 80px 48px; } }

/* Footer */
.footer { padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 14px; color: var(--ink-3); font-size: .92rem; max-width: 320px; }
.footer-col-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: .93rem; color: var(--ink-2); }
.footer-links a:hover { color: var(--brand-dark); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3);
}

/* Reveal on scroll — only when motion is welcome and JS has run. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-1, .float-2, .live::before, .row.new { animation: none; }
}

/* Below the two-column hero the mock spans the gutter, so the floating cards
   tuck inside it rather than hanging off the screen edge. */
@media (max-width: 999px) {
  .float-1 { left: 10px; top: -18px; }
  .float-2 { right: 10px; }
}

/* ═════════════════════════════ Sign-in pages ═════════════════════════════ */

.auth { min-height: 100vh; display: grid; }
@media (min-width: 980px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.auth-panel { display: flex; flex-direction: column; padding: 24px 16px 32px; }
@media (min-width: 640px) { .auth-panel { padding: 32px 48px 40px; } }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-top img { height: 30px; width: auto; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--ink-3); transition: color .2s; }
.auth-back:hover { color: var(--brand-dark); }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 40px 0; }
@media (min-width: 980px) { .auth-main { align-items: center; } }
.auth-card { width: 100%; max-width: 420px; }
.auth-card-head { margin-bottom: 28px; }
.auth-card-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.35rem); margin-top: 12px; }
.auth-card-head h1 em { font-style: normal; color: var(--brand); }
.auth-card-head p { margin-top: 10px; color: var(--ink-2); }
.auth-legal { font-size: .8rem; color: var(--ink-3); text-align: center; }
.auth-legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #a3b0ac; }
.field input:hover { border-color: #cfdcd8; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22, 160, 133, .14); }
.field-hint { font-size: .8rem; color: var(--ink-3); margin-top: 6px; }

/* Show/hide password (layouts/auth adds the wrapper and button). */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent;
  color: var(--ink-3); cursor: pointer; transition: color .15s, background .15s;
}
.pw-toggle:hover { color: var(--ink); background: var(--brand-tint); }
.pw-toggle:focus-visible { outline: none; color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(22, 160, 133, .25); }
.pw-toggle[aria-pressed="true"] { color: var(--brand-dark); }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 22px; }
.auth-check { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.auth-check input { width: 16px; height: 16px; accent-color: var(--brand); }
.auth-link { font-size: .88rem; font-weight: 600; color: var(--brand-dark); }
.auth-link:hover { text-decoration: underline; text-underline-offset: 2px; }

.btn-submit {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: .98rem; font-weight: 600; color: #fff; cursor: pointer;
  background: var(--brand); border: 0; border-radius: 999px; padding: 14px;
  box-shadow: 0 10px 24px -10px rgba(22, 160, 133, .7); transition: background .2s, transform .2s;
}
.btn-submit:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* Busy state, the same [data-busy] vocabulary as the app. These pages are plain
   POSTs that navigate away, so the layout script sets it and only the back
   button (pageshow) clears it. */
[data-busy] { pointer-events: none; opacity: .75; }
[data-busy] span { display: none; }
[data-busy]::after {
  content: ""; width: 1rem; height: 1rem; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-divider {
  display: flex; align-items: center; gap: 14px; margin: 22px 0;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* The fallback federated link. Neutral and bordered: the provider brand rules
   forbid recolouring it, and it keeps the submit button the obvious primary. */
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .95rem; font-weight: 600; color: var(--ink); background: #fff;
  border: 1px solid #dadce0; border-radius: 999px; padding: 12px; transition: background .2s, border-color .2s;
}
.btn-google:hover { background: #f8faf9; border-color: #c4c9ce; }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }
/* The provider script swaps its own button in here; hold the height so nothing jumps. */
.google-signin { display: flex; justify-content: center; min-height: 44px; }
.google-signin > .btn-google { width: 100%; }

.auth-identity {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-alt);
}
.auth-identity img { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.auth-identity .who { min-width: 0; }
.auth-identity .who strong { display: block; font-size: .92rem; }
.auth-identity .who span { display: block; font-size: .84rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }

.auth-alt { text-align: center; margin-top: 26px; font-size: .92rem; color: var(--ink-2); }
.auth-alt a { font-weight: 600; color: var(--brand-dark); }

.auth-alert, .auth-notice { border-radius: 12px; padding: 12px 14px; font-size: .88rem; margin-bottom: 20px; }
.auth-alert { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }
.auth-alert ul { margin: 0; padding: 0; list-style: none; }
.auth-notice { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }

/* The brand side */
.auth-brand {
  display: none; position: relative; overflow: hidden; color: #fff; padding: 56px;
  background: radial-gradient(640px 420px at 90% 0%, rgba(91, 214, 186, .35), transparent 65%), linear-gradient(150deg, #13947a, #0b5c4c 70%);
}
@media (min-width: 980px) { .auth-brand { display: flex; flex-direction: column; justify-content: center; gap: 44px; } }
.auth-brand::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12); right: -160px; bottom: -180px;
}
.auth-brand-head { max-width: 460px; position: relative; z-index: 1; }
.auth-brand-head h2 { font-size: clamp(2rem, 3vw, 2.7rem); color: #fff; }
.auth-brand-head h2 em { font-style: normal; color: #a7f0dc; }
.auth-brand-head p { margin-top: 16px; color: rgba(255, 255, 255, .85); font-size: 1.04rem; }
.auth-brand-points { display: grid; gap: 12px; margin-top: 26px; }
.auth-brand-point { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: rgba(255, 255, 255, .92); }
.auth-brand-point .dot {
  width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .16);
  display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0;
}
.auth-brand .mock-window { max-width: 460px; position: relative; z-index: 1; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); color: var(--ink); }

/* ═════════════════════════════ Legal pages ═══════════════════════════════ */

.legal-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-top: 14px; }
.legal-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--ink-3); }
.legal-switch { display: inline-flex; gap: 4px; margin-top: 26px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.legal-switch a { padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.legal-switch a.on { background: var(--brand); color: #fff; }

.legal-layout { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 96px; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 64px; } }
.legal-toc { display: none; }
@media (min-width: 1000px) { .legal-toc { display: block; position: sticky; top: 96px; align-self: start; } }
.legal-toc p { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; font-size: .88rem; color: var(--ink-2); border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.legal-toc a:hover { color: var(--brand-dark); }
.legal-toc a.on { color: var(--brand-dark); border-left-color: var(--brand); font-weight: 600; }

.legal-body { max-width: 720px; min-width: 0; }
.legal-body h2 { font-size: 1.45rem; margin: 48px 0 14px; scroll-margin-top: 96px; }
.legal-body > h2:first-child, .legal-body > p:first-child + .legal-note + h2 { margin-top: 36px; }
.legal-body h3 { font-family: var(--font); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin: 26px 0 8px; }
.legal-body p, .legal-body li { font-size: 1rem; line-height: 1.8; color: var(--ink-2); }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 18px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body li::marker { color: var(--brand); }
.legal-body a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-body strong { color: var(--ink); }
.legal-note { background: var(--brand-tint); border: 1px solid #cdeee5; border-radius: 16px; padding: 18px 20px; margin: 28px 0; }
.legal-note p { margin: 0; font-size: .96rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: .94rem; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-weight: 700; color: var(--ink); background: var(--bg-alt); }
