:root {
  --page: #fff7ee;
  --surface: #ffffff;
  --hero: #ffe9a8;
  --ink: #1b2430;
  --muted: #5c6b7a;
  --faint: #8a96a3;
  --line: #f0e4d4;
  --accent: #ff6b4a;
  --accent-2: #12c4c0;
  --sun: #ffd84d;
  --under: #22c55e;
  --over: #ff5a6a;
  --alex: #3b8bff;
  --sam: #ff6fa5;
  --groceries: #ff6b4a;
  --dining: #ff8a3d;
  --kids: #ff6fa5;
  --transport: #3b8bff;
  --housing: #7b6cff;
  --health: #12c4c0;
  --fun: #ffd84d;
  --shadow: 0 18px 50px rgb(27 36 48 / 0.08);
  --radius: 22px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--page);
  color: var(--ink);
  line-height: 1.55;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
[role="button"],
.btn {
  cursor: pointer;
  font-family: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--page) 86%, white);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

/* Tesni monogram; the SVG carries its own clear space (48/512 inset). */
.mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-coral {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgb(255 107 74 / 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-aqua {
  background: var(--accent-2);
  color: #08302f;
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

/* Coming soon gate: site.js hides signup buttons while signup is closed. */
.btn[hidden] {
  display: none;
}

.soon {
  margin: 22px 0 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgb(27 36 48 / 0.04);
}

.soon-line {
  margin: 0;
  font-weight: 600;
  text-wrap: pretty;
}

.soon-status {
  margin: 6px 0 0;
  color: var(--accent);
  font-weight: 600;
}

.soon .hero-actions {
  margin: 16px 0 0;
}

/* Hero */
.hero {
  padding: 56px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.03em;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin: 18px 0 14px;
  font-weight: 600;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

.fine {
  color: var(--faint);
  font-size: 0.88rem;
}

/* Phone */
.phone {
  background: var(--surface);
  border-radius: 36px;
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid #fff;
  max-width: 360px;
  margin-inline: auto;
}

.phone-screen {
  background: linear-gradient(180deg, var(--hero) 0 42%, var(--page) 42%);
  border-radius: 26px;
  padding: 22px 18px 18px;
  min-height: 520px;
}

.phone-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phone-money {
  font-family: var(--display);
  font-size: 2.7rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  margin: 6px 0 4px;
}

.phone-sub {
  color: var(--under);
  font-weight: 600;
  font-size: 0.92rem;
}

.phone-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.phone-stat {
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
}

.phone-stat span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.phone-stat strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.chip-quiet {
  background: #1b2430;
  color: #fff;
}

.bars {
  margin-top: 28px;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.track {
  height: 8px;
  background: #f3eee6;
  border-radius: 99px;
  overflow: hidden;
}

.fill {
  height: 100%;
  border-radius: 99px;
}

.chips {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
}

/* Sections */
section {
  padding: 72px 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 36px;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 10px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid #fff;
  box-shadow: 0 10px 30px rgb(27 36 48 / 0.04);
}

.card h3 {
  margin: 10px 0 8px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 8px 8px 8px 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--sun);
  font-weight: 700;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Pricing */
.pricing {
  background: #fff;
  border-radius: 32px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  box-shadow: var(--shadow);
}

.price {
  font-family: var(--display);
  font-size: 3.4rem;
  font-variant-numeric: tabular-nums;
  margin: 8px 0;
}

.price span {
  font-size: 1.1rem;
  font-family: var(--font);
  color: var(--muted);
}

.list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tick {
  color: var(--accent-2);
  font-weight: 700;
}

.plan-side {
  background: var(--page);
  border-radius: 22px;
  padding: 22px;
}

.plan-side h3 {
  margin-top: 0;
}

.toggle {
  display: inline-flex;
  background: var(--page);
  border-radius: 999px;
  padding: 4px;
  margin: 12px 0 18px;
}

.toggle button {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
}

.toggle button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgb(27 36 48 / 0.08);
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
}

details {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* Footer */
footer {
  padding: 40px 0 56px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.foot-draft {
  color: var(--faint);
  font-size: 0.8rem;
}

.foot-note {
  margin: 14px auto 0;
  color: var(--faint);
  font-size: 0.85rem;
}

/* Legal pages (generated from docs/legal by ui/scripts/render-website-legal.mjs) */
.legal-page {
  padding: 48px 0 72px;
}

.legal-wrap {
  max-width: 44rem;
}

.legal-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 18px 0 12px;
  font-weight: 600;
}

.draft-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 32px;
  padding: 14px 18px;
  border: 2px solid #d92d20;
  border-radius: 16px;
  background: #fff3c4;
  color: #7a1c12;
  font-weight: 600;
}

.draft-banner .dot {
  background: #d92d20;
  margin-top: 7px;
  flex-shrink: 0;
}

.draft-banner p {
  margin: 0;
}

.legal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid #fff;
  box-shadow: 0 10px 30px rgb(27 36 48 / 0.04);
  overflow-wrap: anywhere;
}

.legal h1,
.legal h2,
.legal h3 {
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.legal h1 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
}

.legal > :first-child {
  margin-top: 0;
}

.legal p,
.legal ul,
.legal ol {
  margin: 0 0 0.9rem;
}

.legal ul,
.legal ol {
  padding-left: 1.4rem;
}

.legal li + li {
  margin-top: 0.25rem;
}

.legal hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}

.legal code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--page);
  border: 1px solid var(--line);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.legal th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
}

.band {
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.band h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 8px;
  color: #fff;
}

.band p {
  margin: 0;
  color: #c9d0d8;
}

@media (max-width: 860px) {
  .hero-grid,
  .cards,
  .steps,
  .pricing {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--page);
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }

  .menu-btn {
    display: inline-block;
  }

  .nav-cta .btn-ghost {
    display: none;
  }

  h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 52px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
