/* UnifiedSelf marketing site — warm editorial. No frameworks, no CDNs.
   Palette: warm paper, evergreen ink, terracotta action, marigold warmth. */

/* ---------- fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/fraunces-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/fraunces-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/fraunces-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
}

/* ---------- tokens ---------- */
:root {
  --paper: #FAF6EF;
  --paper-deep: #F2EBDE;
  --card: #FFFDF8;
  --ink: #1B3438;
  --ink-soft: #52676B;
  --line: #E4DAC8;
  --terracotta: #C2593E;
  --terracotta-deep: #A84732;
  --marigold: #E0A458;
  --sage: #E7EFEA;
  --sage-deep: #CBDDD3;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 52, 56, .06), 0 12px 32px -12px rgba(27, 52, 56, .18);
}

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--terracotta-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
em { font-family: var(--display); font-style: italic; font-weight: 400; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 20px -8px rgba(194, 89, 62, .55); }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #12262a; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 28px; padding: 14px 24px; max-width: 1120px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand strong { font-family: var(--display); font-size: 21px; font-weight: 600; }
.topnav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.topnav a:not(.btn) { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.topnav a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.topnav a.btn-primary { color: #fff; }
.topnav a.btn-primary:hover { text-decoration: none; }
.topnav .btn { font-size: 15px; padding: 9px 18px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-btn svg { width: 26px; height: 26px; stroke: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero-halo {
  position: absolute; right: -180px; top: -180px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 164, 88, .28), rgba(224, 164, 88, 0) 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--terracotta-deep);
  background: var(--sage); border: 1px solid var(--sage-deep); padding: 7px 14px; border-radius: 999px;
}
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); margin: 22px 0 18px; }
.hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 34em; }
.cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 15px; height: 15px; stroke: var(--terracotta); flex: none; }

/* hero product mock (pure CSS) */
.mock { position: relative; min-height: 480px; }
.mock-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.mock-book { position: absolute; inset: 22px 40px auto 0; max-width: 400px; }
.mock-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--marigold);
  display: grid; place-items: center; font-family: var(--display); font-size: 20px; font-weight: 600;
}
.mock-head { display: flex; gap: 12px; align-items: center; }
.mock-head small { color: var(--ink-soft); font-size: 13px; }
.mock-head strong { font-size: 16px; }
.mock-label { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin: 16px 0 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  text-align: center; font-size: 13.5px; font-weight: 500; padding: 9px 4px;
  border: 1px solid var(--line); border-radius: 9px; color: var(--ink);
  background: var(--paper);
}
.slot.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mock-session { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--sage-deep); background: var(--sage); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.mock-session b { font-weight: 600; }
.mock-toast {
  position: absolute; right: 0; top: 200px; max-width: 300px;
  display: flex; gap: 12px; align-items: flex-start; animation: float 7s ease-in-out infinite;
}
.mock-toast .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--marigold); display: grid; place-items: center; flex: none; }
.mock-toast .dot svg { width: 18px; height: 18px; stroke: var(--ink); }
.mock-toast p { font-size: 13.5px; line-height: 1.45; }
.mock-toast small { color: var(--ink-soft); }
.mock-paid {
  position: absolute; left: 26px; bottom: 6px; max-width: 320px;
  display: flex; align-items: center; gap: 12px; animation: float 8s ease-in-out 1.2s infinite;
}
.mock-paid .qr { width: 44px; height: 44px; border-radius: 8px; flex: none;
  background:
    conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0/50% 50%,
    var(--paper);
  border: 3px solid var(--ink); }
.mock-paid p { font-size: 13.5px; }
.mock-paid .tick { color: #2C7A4B; font-weight: 600; font-size: 13px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- ROI band ---------- */
.roi { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.roi-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.roi p.big { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.roi small { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .kicker { color: var(--terracotta-deep); font-weight: 600; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-top: 12px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 17.5px; }

/* features grid */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .2s ease, box-shadow .2s ease;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat .icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--sage); border: 1px solid var(--sage-deep);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feat .icon svg { width: 21px; height: 21px; stroke: var(--ink); }
.feat h3 { font-size: 19.5px; margin-bottom: 8px; }
.feat p { font-size: 15px; color: var(--ink-soft); }
.feat .soon { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 600; color: var(--terracotta-deep); background: #F7E5DE; border-radius: 999px; padding: 2px 9px; vertical-align: 2px; }

/* deep rows */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.row + .row { border-top: 1px dashed var(--line); }
.row h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.row p.sub { color: var(--ink-soft); margin-bottom: 18px; }
.row ul { list-style: none; display: grid; gap: 11px; }
.row li { display: flex; gap: 11px; font-size: 15.5px; align-items: flex-start; }
.row li svg { width: 17px; height: 17px; stroke: var(--terracotta); flex: none; margin-top: 4px; }
.link-chip {
  display: inline-flex; align-items: center; gap: 8px; font-family: ui-monospace, monospace; font-size: 14.5px;
  background: var(--sage); border: 1px solid var(--sage-deep); color: var(--ink);
  border-radius: 999px; padding: 8px 16px; margin-bottom: 18px;
}
.row .visual { display: grid; gap: 14px; }

/* portal mock bits */
.spark-card { padding: 18px 20px; }
.spark-card .mock-label { margin-top: 0; }
.spark-line { stroke: var(--ink); stroke-width: 2.5; fill: none; }
.spark-dot { fill: var(--terracotta); }
.hw { display: flex; align-items: center; gap: 10px; font-size: 14.5px; padding: 10px 14px; }
.hw .box { width: 18px; height: 18px; border-radius: 5px; background: #2C7A4B; display: grid; place-items: center; flex: none; }
.hw .box svg { width: 12px; height: 12px; stroke: #fff; }
.hw s { color: var(--ink-soft); }
.bubble { align-self: flex-start; background: var(--ink); color: var(--paper); border-radius: 14px 14px 14px 4px; padding: 10px 15px; font-size: 14px; max-width: 85%; }
.bubble.me { align-self: flex-end; background: var(--sage); color: var(--ink); border-radius: 14px 14px 4px 14px; }
.chat-mock { display: flex; flex-direction: column; gap: 9px; padding: 18px 20px; }

/* invoice mock */
.inv { padding: 20px 22px; }
.inv-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.inv-head b { font-family: var(--display); font-size: 17px; }
.inv-head span { font-size: 12.5px; color: var(--ink-soft); }
.inv-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.inv-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 600; }
.inv-pay { display: flex; gap: 14px; align-items: center; margin-top: 14px; background: var(--sage); border-radius: 10px; padding: 12px 14px; }
.inv-pay .qr { width: 52px; height: 52px; border-radius: 8px; flex: none;
  background:
    conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0/50% 50%,
    var(--paper);
  border: 3px solid var(--ink); }
.inv-pay p { font-size: 13px; line-height: 1.45; }

/* ---------- privacy band ---------- */
.vault { background: var(--ink); color: #DCE8E3; }
.vault .section-head .kicker { color: var(--marigold); }
.vault .section-head h2 { color: #F4F1E8; }
.vault .section-head p { color: #A8BDB6; }
.vault-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vault-card { border: 1px solid #2E4A4E; border-radius: var(--radius); padding: 24px; background: #203D41; }
.vault-card h3 { color: #F4F1E8; font-size: 18px; margin-bottom: 9px; }
.vault-card p { font-size: 14.5px; color: #A8BDB6; }
.vault-card .icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(224, 164, 88, .14); display: grid; place-items: center; margin-bottom: 14px; }
.vault-card .icon svg { width: 20px; height: 20px; stroke: var(--marigold); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px 26px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-style: italic; font-size: 42px; color: var(--marigold);
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.price.hot { border: 2px solid var(--terracotta); position: relative; box-shadow: var(--shadow); }
.price .flag {
  position: absolute; top: -13px; left: 24px; background: var(--terracotta); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .05em; border-radius: 999px; padding: 4px 13px;
}
.price h3 { font-size: 20px; }
.price .amount { font-family: var(--display); font-size: 42px; font-weight: 600; margin: 12px 0 2px; }
.price .amount small { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.price .note { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.price ul { list-style: none; display: grid; gap: 10px; margin: 6px 0 26px; }
.price li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.price li svg { width: 16px; height: 16px; stroke: var(--terracotta); flex: none; margin-top: 4px; }
.price .btn { margin-top: auto; justify-content: center; }
.founding {
  margin-top: 26px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: linear-gradient(100deg, #F7E9D2, #F3DDC4); border: 1px solid #E7CDA5; border-radius: var(--radius); padding: 20px 26px;
}
.founding p { font-size: 15.5px; }
.founding b { font-family: var(--display); font-size: 19px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 16.5px; padding: 20px 4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 24px; color: var(--terracotta); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 20px; color: var(--ink-soft); font-size: 15.5px; max-width: 62ch; }

/* ---------- final cta + footer ---------- */
.final { text-align: center; padding: 100px 0; }
.final h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 17em; margin: 0 auto 18px; }
.final p { color: var(--ink-soft); margin-bottom: 30px; }
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot .brand strong { font-size: 18px; }
.foot small { color: var(--ink-soft); font-size: 13.5px; }
.foot nav { margin-left: auto; display: flex; gap: 20px; font-size: 14px; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mock { min-height: 430px; max-width: 480px; }
  .feat-grid, .steps, .price-grid, .vault-grid { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: 30px; }
  .row .visual { order: 2; }
}
@media (max-width: 660px) {
  body { font-size: 16px; }
  .topnav { display: none; }
  .topnav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px; align-items: flex-start;
  }
  .menu-btn { display: block; }
  .hero { padding: 56px 0 70px; }
  .feat-grid, .steps, .price-grid, .vault-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .mock-book { position: static; margin-bottom: 14px; }
  .mock-toast { position: static; margin: 14px 0; animation: none; }
  .mock-paid { position: static; animation: none; }
  .mock { min-height: 0; }
}
