/* RootBOSS website. Colors and type match the approved brand board and the app (src/theme/tokens.ts). */

@font-face { font-family: 'Fraunces'; font-weight: 600; font-display: swap; src: url('/fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url('/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url('/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --plum: #3B2233;
  --plum-soft: #6B4A5E;
  --mauve: #8E4A6B;
  --mauve-dark: #743A57;
  --rose: #D98BA6;
  --petal: #F3DCE3;
  --blush: #FBF3F4;
  --white: #FFFFFF;
  --sage: #7E9A7E;
  --sage-light: #C7D6C3;
  --better: #4F6F4F;
  --line: #EAD3DB;
  --display: 'Fraunces', Georgia, serif;
  --body: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
  --max: 1120px;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--blush); color: var(--plum); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--mauve); }
a:hover { color: var(--mauve-dark); }
:focus-visible { outline: 3px solid var(--mauve); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 14px; z-index: 10; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mauve); }
.lead { font-size: 20px; color: var(--plum-soft); max-width: 34ch; }
.muted { color: var(--plum-soft); }
.small { font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--blush) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1; }
.wordmark b { font-family: var(--body); font-weight: 700; color: var(--mauve); letter-spacing: 0.06em; }
.wordmark .tm { font-family: var(--body); font-weight: 500; font-size: 0.4em; color: var(--plum); vertical-align: super; margin-left: 1px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--plum); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--mauve); }
.nav a.btn, .nav a.btn:hover { color: var(--white); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* Buttons and form */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--mauve); background: var(--mauve); color: var(--white); font: 700 16px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--mauve-dark); border-color: var(--mauve-dark); color: var(--white); }
.btn.secondary { background: transparent; color: var(--mauve); }
.btn.secondary:hover { background: var(--petal); color: var(--mauve-dark); }
.btn.light { background: var(--white); border-color: var(--white); color: var(--mauve); }
.btn.light:hover { background: var(--petal); border-color: var(--petal); }

.waitlist { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.waitlist label.field { flex: 1 1 260px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.waitlist input[type="email"] { width: 100%; min-height: 52px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); padding: 0 22px; font: 400 17px var(--body); color: var(--plum); }
.waitlist input[type="email"]:focus { border-color: var(--mauve); outline: none; box-shadow: 0 0 0 3px var(--petal); }
.waitlist .btn { min-height: 52px; }
.hp { display: none; }
.form-note { margin-top: 12px; font-size: 14px; color: var(--plum-soft); }

/* Sections */
section { padding: 96px 0; }
.section-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: 48px; }

/* Hero */
.hero { padding: 64px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; color: var(--plum-soft); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .phone { margin: 0 auto; } }

/* Phone mockup (HTML, sample data) */
.phone { width: 330px; max-width: 100%; border-radius: 44px; background: var(--plum); padding: 12px; box-shadow: 0 30px 60px -30px rgba(59, 34, 51, 0.45); }
.screen { border-radius: 34px; background: var(--blush); padding: 22px 18px 18px; display: grid; gap: 12px; }
.screen .top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--plum-soft); }
.screen .top .wordmark { font-size: 18px; }
.screen h4 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 2px 0 0; }
.card { background: var(--white); border-radius: 20px; padding: 16px; display: grid; gap: 8px; }
.card.mauve { background: var(--mauve); color: var(--white); }
.card.petal { background: var(--petal); }
.card .k { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.card.mauve .k { color: var(--petal); }
.card.petal .k { color: var(--mauve); }
.card .t { font-family: var(--display); font-size: 17px; font-weight: 600; }
.card .pill { background: var(--white); color: var(--mauve); border-radius: 999px; text-align: center; font-weight: 700; font-size: 13px; padding: 9px; }
.card .s { font-size: 12px; color: var(--plum-soft); line-height: 1.45; }
.sample-tag { text-align: center; font-size: 12px; color: var(--petal); padding-top: 8px; }

/* Problem */
.problem { background: var(--white); }
.problem .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.timeline { display: grid; gap: 12px; }
.timeline .row { display: flex; gap: 14px; align-items: center; background: var(--blush); border-radius: 16px; padding: 14px 18px; }
.timeline .date { font-weight: 700; font-size: 14px; color: var(--mauve); min-width: 64px; }
.timeline .q { background: var(--petal); }
@media (max-width: 900px) { .problem .wrap { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { background: var(--white); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; }
.step .num { width: 44px; height: 44px; border-radius: 14px; background: var(--petal); color: var(--mauve); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Pattern example */
.pattern-demo { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pattern { background: var(--petal); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; }
.pattern .tags { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tag-better { background: var(--better); color: var(--white); border-radius: 999px; font-size: 13px; padding: 3px 12px; font-weight: 500; }
.chart-card { background: var(--white); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; }
@media (max-width: 900px) { .pattern-demo { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy-band { background: var(--plum); color: var(--blush); }
.privacy-band h2 { color: var(--white); }
.privacy-band .eyebrow { color: var(--rose); }
.privacy-band .lead { color: var(--petal); }
.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.point { border: 1px solid rgba(243, 220, 227, 0.25); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.point h3 { color: var(--white); font-size: 20px; }
.point p { color: var(--petal); font-size: 15px; }
.point svg { width: 30px; height: 30px; }
@media (max-width: 1000px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .points { grid-template-columns: 1fr; } }

/* Report */
.report .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.report-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 16px; box-shadow: 0 24px 50px -28px rgba(59, 34, 51, 0.45); border: 1px solid var(--line); background: var(--white); }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ''; flex: 0 0 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--petal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' stroke='%238E4A6B' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 900px) { .report .wrap { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
details { background: var(--white); border-radius: 18px; padding: 0 24px; }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--mauve); font-size: 24px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { padding-bottom: 20px; color: var(--plum-soft); }

/* CTA */
.cta { background: var(--mauve); color: var(--white); border-radius: 32px; padding: 56px; display: grid; gap: 18px; justify-items: start; }
.cta h2 { color: var(--white); }
.cta p { color: var(--petal); max-width: 52ch; }
@media (max-width: 600px) { .cta { padding: 32px 24px; } }

/* Footer */
.site-footer { padding: 28px 0 36px; border-top: 1px solid var(--line); margin-top: 40px; }
.copyright { font-size: 14px; color: var(--plum-soft); text-align: center; }
.site-footer .wrap { display: grid; gap: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--plum); text-decoration: none; font-weight: 500; }
.disclaimer { font-size: 13px; color: var(--plum-soft); max-width: 80ch; }

/* Legal and support pages */
.doc { padding: 56px 0 40px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); margin-bottom: 10px; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; font-family: var(--body); font-weight: 700; }
.doc p, .doc li { color: var(--plum); margin: 0 0 12px; }
.doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc .updated { color: var(--plum-soft); font-size: 15px; margin-bottom: 28px; }
.callout { background: var(--white); border-radius: 18px; padding: 20px 24px; margin: 20px 0; }
.callout p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--petal); }
.table-scroll { overflow-x: auto; }
