/* HeyBo website — same palette and type as the app (Theme.swift).
   System fonts only: no third-party requests from a privacy-first site. */

:root {
  --bg: #faf8f3;
  --bg-deep: #f3eee3;
  --card: #ffffff;
  --text: #201c16;
  --text2: #2b261e;
  --text3: #4d463b;
  --mut: #7d7262;
  --accent: #b07d24;
  --accent-2: #d9a84a;
  --tint: #f7f1e4;
  --tint-text: #8a6a1e;
  --ink: #201c16;
  --ink-fg: #ffffff;
  --border: rgba(32, 28, 22, 0.08);
  --border2: rgba(32, 28, 22, 0.15);
  --shadow: 0 1px 2px rgba(32, 28, 22, 0.04), 0 12px 40px -12px rgba(32, 28, 22, 0.18);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1713;
    --bg-deep: #14110e;
    --card: #231f19;
    --text: #f0ebe2;
    --text2: #e3dccd;
    --text3: #c0b6a5;
    --mut: #9d9484;
    --accent: #d9a84a;
    --accent-2: #e8bf6a;
    --tint: #282115;
    --tint-text: #d9a84a;
    --ink: #ede7da;
    --ink-fg: #1a1713;
    --border: rgba(255, 255, 255, 0.09);
    --border2: rgba(255, 255, 255, 0.17);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 48px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text2);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.kicker {
  margin: 0;
  font: 600 12px/1 var(--sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mut);
}

h1, h2, h3 { color: var(--text); margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 1px 3px rgba(32, 28, 22, 0.2); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text3); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-ink { background: var(--ink); color: var(--ink-fg); }
.btn-ink:hover { color: var(--ink-fg); opacity: 0.9; }
.btn-ghost { border-color: var(--border2); color: var(--text); }
.btn-ghost:hover { background: var(--card); }
.btn svg { width: 20px; height: 20px; }
.soon { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; opacity: 0.65; margin-bottom: 3px; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 72px 0 96px; }
.hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto;
  height: 720px;
  background:
    radial-gradient(600px 360px at 78% 30%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%),
    radial-gradient(500px 300px at 10% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 72px); line-height: 1.04; margin: 18px 0 22px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: 20px; line-height: 1.55; color: var(--text3); max-width: 540px; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { margin-top: 16px; font-size: 14px; color: var(--mut); }

/* ---------- Phone mockup (the Brief screen, in HTML) ---------- */

.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  width: 320px;
  border-radius: 52px;
  padding: 12px;
  background: linear-gradient(145deg, #2f2a23, #15120e);
  box-shadow: 0 50px 80px -30px rgba(32, 28, 22, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: rotate(2deg);
}
.screen {
  position: relative;
  border-radius: 42px;
  overflow: hidden;
  background: #faf8f3;
  color: #2b261e;
  padding: 54px 20px 26px;
  font-family: var(--sans);
}
.screen::before { /* dynamic island */
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 96px;
  height: 28px;
  transform: translateX(-50%);
  background: #0c0a08;
  border-radius: 20px;
}
.screen .k { font: 600 9.5px/1 var(--sans); letter-spacing: 1.6px; color: #a09684; text-transform: uppercase; }
.screen .t { font: 500 25px/1.15 var(--serif); color: #201c16; margin: 6px 0 2px; letter-spacing: -0.4px; }
.screen .s { font-size: 10.5px; color: #a09684; }
.screen .sum {
  margin: 14px 0 6px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid rgba(32, 28, 22, 0.08);
  border-radius: 14px;
  font: 13px/1.5 var(--serif);
  color: #2b261e;
}
.screen .sec { margin-top: 16px; }
.screen .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(32, 28, 22, 0.07);
  font-size: 12.5px;
}
.screen .row:last-child { border-bottom: 0; }
.screen .box { flex: none; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(32, 28, 22, 0.25); }
.screen .box.on { background: #b07d24; border-color: #b07d24; position: relative; }
.screen .box.on::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 3.5px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.screen .done { color: #a09684; text-decoration: line-through; }
.screen .meta { margin-left: auto; color: #a09684; font-size: 10.5px; white-space: nowrap; }
.screen .time { flex: none; width: 54px; color: #b07d24; font-weight: 650; font-size: 11.5px; }
.screen .ai {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #8a6a1e;
  background: #f7f1e4;
  padding: 4px 8px;
  border-radius: 999px;
}

.float-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text2);
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 230px;
  z-index: 2;
}
.float-card .dot { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--tint); display: grid; place-items: center; color: var(--accent); }
.float-card .dot svg { width: 17px; height: 17px; }
.float-card small { display: block; color: var(--mut); font-size: 11.5px; }
.fc-1 { left: -96px; top: 120px; max-width: 210px; transform: rotate(-3deg); }
.fc-2 { right: -14px; bottom: 90px; transform: rotate(2deg); }

/* ---------- Sections ---------- */

section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; margin-top: 12px; }
.section-head p:not(.kicker) { font-size: 18px; color: var(--text3); margin: 14px 0 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 26px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ink-fg);
  font: 600 15px/1 var(--sans);
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--text3); font-size: 16px; }
.quote { font-family: var(--serif); font-style: italic; color: var(--accent); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: color-mix(in srgb, var(--card) 60%, transparent); }
.feature .icon { width: 44px; height: 44px; border-radius: 13px; background: var(--tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feature .icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--text3); font-size: 15.5px; }

/* ---------- Email preview ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .section-head { margin-bottom: 0; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text3); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%23b07d24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

.mail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mail-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.mail-top img { width: 36px; height: 36px; border-radius: 9px; }
.mail-top b { color: var(--text); }
.mail-top span { color: var(--mut); display: block; font-size: 12.5px; }
.mail-body { padding: 22px 24px 26px; background: #faf8f3; color: #2b261e; }
.mail-body .k { font: 600 10px/1 var(--sans); letter-spacing: 1.8px; color: #a09684; margin: 20px 0 6px; }
.mail-body .k:first-child { margin-top: 0; }
.mail-body h4 { margin: 4px 0 2px; font: 500 22px/1.2 var(--serif); color: #201c16; }
.mail-body .lead { margin: 12px 0 4px; padding: 13px 14px; background: #fff; border: 1px solid #eeeae2; border-radius: 12px; font: 14px/1.55 var(--serif); }
.mail-body .r { padding: 8px 0; border-bottom: 1px solid #eeeae2; font-size: 13.5px; }
.mail-body .r:last-child { border-bottom: 0; }
.mail-body .r i { font-style: normal; color: #a09684; font-size: 11.5px; }
.mail-body .r .tm { display: inline-block; width: 64px; color: #b07d24; font-weight: 650; }

/* ---------- HeyBo+ ---------- */

.plus {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 64px 56px;
  background: #201c16;
  color: #e3dccd;
  border: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .plus { background: linear-gradient(160deg, #2a241b, #1f1b15); }
}
.plus::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(217, 168, 74, 0.35), transparent 65%);
}
.plus > * { position: relative; }
.plus .kicker { color: #d9a84a; }
.plus h2 { color: #fff; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; margin: 12px 0 0; }
.plus-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; margin-top: 36px; align-items: start; }
.plus ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.plus li { display: flex; gap: 14px; }
.plus li .icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(217, 168, 74, 0.14); color: #d9a84a; display: grid; place-items: center; }
.plus li .icon svg { width: 19px; height: 19px; }
.plus li b { display: block; color: #fff; font-weight: 600; }
.plus li span { font-size: 15.5px; color: #b9b0a0; }
.plans { display: grid; gap: 12px; }
.plan { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.14); }
.plan.best { background: #faf8f3; color: #201c16; border-color: #faf8f3; }
.plan b { display: block; font-size: 16px; }
.plan small { font-size: 13px; opacity: 0.7; }
.plan .price { font-weight: 650; font-size: 17px; font-variant-numeric: tabular-nums; }
.plan .tag { font-size: 9.5px; font-weight: 700; letter-spacing: 1px; color: #b07d24; margin-left: 8px; }
.plans .fine { color: #8d8578; text-align: center; margin-top: 4px; font-size: 13px; }

/* ---------- Privacy band ---------- */

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise { padding: 26px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.promise .icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; background: var(--tint); color: var(--accent); }
.promise .icon svg { width: 21px; height: 21px; }
.promise h3 { font-size: 17px; margin-bottom: 6px; }
.promise p { margin: 0; font-size: 15.5px; color: var(--text3); }

.closing { text-align: center; padding: 96px 0 104px; }
.closing img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; box-shadow: var(--shadow); }
.closing h2 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.closing p { color: var(--text3); font-size: 18px; margin: 14px auto 30px; max-width: 520px; }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--mut); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--text3); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- Document pages (privacy, support) ---------- */

.doc-hero { padding: 64px 0 40px; }
.doc-hero h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.05; margin: 14px 0 14px; }
.doc-hero p:not(.kicker) { font-size: 19px; color: var(--text3); margin: 0; max-width: 620px; }
.doc-hero p.updated { margin-top: 16px; font-size: 14px; color: var(--mut); }

.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 64px; }
.glance .promise { padding: 22px; }

.doc { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; padding-bottom: 96px; }
.doc > * { min-width: 0; } /* let wide tables scroll inside their frame instead of widening the page */
.toc { position: sticky; top: 96px; font-size: 14.5px; }
.toc p { margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border2); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text3); text-decoration: none; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }

.prose { max-width: 680px; }
.prose h2 { font-size: 28px; line-height: 1.2; margin: 52px 0 14px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--text3); }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }

.table-wrap { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: left; padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--border); }
th { font: 600 11.5px/1.3 var(--sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--mut); background: color-mix(in srgb, var(--tint) 60%, transparent); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); font-weight: 600; }
td { color: var(--text3); }

.callout { margin: 18px 0 22px; padding: 18px 20px; border-radius: 16px; background: var(--tint); color: var(--text2); font-size: 16px; }
.callout strong { color: var(--text); }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 24px/1 var(--sans); color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--text3); }
.faq details p { margin: 0 0 10px; }

.contact-card { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 56px; }
.contact-card h2 { font-size: 26px; }
.contact-card p { margin: 6px 0 0; color: var(--text3); }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(40px, 6vw, 60px); margin: 14px 0; }
.notfound p { color: var(--text3); margin: 0 0 28px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
  .phone { animation: float 7s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-10px); } }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap, .split, .plus-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .phone-stage { margin-top: 12px; }
  .steps, .features, .promises, .glance { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .plus { padding: 48px 32px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .nav-links { gap: 16px; }
  .nav-links a.hide-sm { display: none; }
  .lede { font-size: 18px; }
  .steps, .features, .promises, .glance { grid-template-columns: 1fr; }
  .phone { width: 280px; }
  .float-card { display: none; }
  .plus { padding: 40px 22px; border-radius: 24px; }
  .contact-card { padding: 22px; }
}
