/* site.css - landing, SEO, compare, legal pages in the Dayreef baseline look
   (brand/DESIGN-EN.md: warm paper, ink, sage, thin lines, soft radii, Heebo).
   Normal web type sizes (not the wall scale). Colours & fonts: var(--fh-*) only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fh-font-sans); color: var(--fh-color-text); background: var(--fh-color-bg); line-height: 1.6; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
img, svg, iframe { max-width: 100%; }
a { color: var(--fh-color-primary-on-bg); text-underline-offset: .18em; }
a:hover { color: var(--fh-color-text); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--fh-color-focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--fh-color-surface); padding: .5rem 1rem; z-index: 10; border-radius: var(--fh-radius-md); }

.staging-banner { background: var(--fh-color-warning-bg); color: var(--fh-color-warning-text); font-size: var(--fh-text-sm); padding: .4rem 0; text-align: center; }

/* masthead: thin bar, cottage mark + wordmark, quiet links (mirrors the wall masthead) */
.site-header { background: var(--fh-color-bg); border-bottom: 1px solid var(--fh-color-border); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding-block: .4rem; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--fh-font-display); font-weight: var(--fh-weight-semibold); font-size: 1.1rem; letter-spacing: -.01em; color: var(--fh-color-text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; font-size: var(--fh-text-md); }
.nav a { color: var(--fh-nav-ink); text-decoration: none; padding: .55rem .8rem; border-radius: var(--fh-radius-full); min-height: var(--fh-target); display: inline-flex; align-items: center; }
.nav a:hover { color: var(--fh-nav-active); background: var(--fh-chip-all-bg); }
.nav a[href$="#waitlist"] { color: var(--fh-chip-all-ink); background: var(--fh-chip-all-bg); border: 1px solid var(--fh-chip-all-border); font-weight: var(--fh-weight-semibold); }

/* sections: paper throughout, separated by hairlines (no alternating bands) */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
section + section { border-top: 1px solid var(--fh-color-border); }
h1, h2, h3 { font-family: var(--fh-font-display); line-height: 1.15; margin: 0 0 .75rem; font-weight: var(--fh-weight-semibold); color: var(--fh-color-text); }
h1 { font-size: clamp(2rem, 5vw, var(--fh-text-6xl)); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -.02em; }
h3 { font-size: var(--fh-text-2xl); letter-spacing: -.01em; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--fh-color-text-muted); max-width: 46ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fh-text-md); font-weight: var(--fh-weight-regular); color: var(--fh-color-text-muted); margin: 0 0 .4rem; letter-spacing: 0; text-transform: none; }

.hero { padding-top: clamp(2.5rem, 7vw, 5rem); }
.hero .wrap { display: grid; gap: 2rem; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.35rem; border-radius: var(--fh-radius-md); font: inherit; font-weight: var(--fh-weight-semibold); text-decoration: none; border: 1px solid var(--fh-color-primary); cursor: pointer; transition: background .15s; }
.btn-primary { background: var(--fh-color-primary); color: var(--fh-color-primary-text); }
.btn-primary:hover { background: var(--fh-color-primary-hover); color: var(--fh-color-primary-text); }
.btn-secondary { background: var(--fh-color-surface); color: var(--fh-color-primary-on-bg); border-color: var(--fh-color-border-strong); }
.btn-secondary:hover { background: var(--fh-chip-all-bg); color: var(--fh-color-primary-on-bg); }
.btn[aria-disabled="true"] { opacity: .55; }
.note { font-size: var(--fh-text-md); color: var(--fh-color-text-muted); }

/* the demo: wall (1194x834) + phone frame side by side, scaled by demo.js */
.demo-frame { position: relative; width: 100%; aspect-ratio: 1664 / 960; border: 1px solid var(--fh-color-border); border-radius: var(--fh-radius-xl); overflow: hidden; background: var(--fh-color-bg-alt); box-shadow: var(--fh-shadow-lg); }
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .demo-frame { aspect-ratio: 1194 / 1080; } }
@media (max-width: 520px) { .demo-frame { aspect-ratio: 1194 / 1500; } }

.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--fh-color-surface); border: 1px solid var(--fh-color-border); border-radius: var(--fh-radius-lg); padding: 1.25rem 1.35rem; box-shadow: var(--fh-shadow-sm); }
.card h3 { margin-bottom: .5rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.steps li { counter-increment: s; position: relative; padding-left: 3.2rem; min-height: 2.3rem; padding-top: .2rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--fh-counter-bg); color: var(--fh-counter-ink); font-weight: var(--fh-weight-semibold); }

.faq details { background: var(--fh-color-surface); border: 1px solid var(--fh-color-border); border-radius: var(--fh-radius-lg); padding: .9rem 1.1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: var(--fh-weight-semibold); }
.faq details p { margin: .6rem 0 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--fh-color-border); border-radius: var(--fh-radius-lg); background: var(--fh-color-surface); }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--fh-color-surface); font-size: var(--fh-text-md); }
table.compare th, table.compare td { border-bottom: 1px solid var(--fh-color-border); padding: .75rem .9rem; text-align: left; vertical-align: top; }
table.compare th + th, table.compare td + td, table.compare th + td, table.compare td + th { border-left: 1px solid var(--fh-color-border); }
table.compare tbody tr:last-child > * { border-bottom: 0; }
table.compare thead th { background: var(--fh-chip-all-bg); color: var(--fh-chip-all-ink); font-weight: var(--fh-weight-semibold); }
table.compare tbody th { font-weight: var(--fh-weight-semibold); }
.todo { background: var(--fh-tonight-bg); color: var(--fh-tonight-ink); padding: 0 .3em; border-radius: 4px; }

.waitlist form { display: grid; gap: .9rem; max-width: 560px; background: var(--fh-color-surface); border: 1px solid var(--fh-color-border); border-radius: var(--fh-radius-xl); padding: clamp(1.1rem, 3vw, 1.6rem); box-shadow: var(--fh-shadow-sm); }
.waitlist label { font-weight: var(--fh-weight-semibold); }
.waitlist input[type="email"] { font: inherit; min-height: 48px; padding: .7rem .9rem; border: 1px solid var(--fh-checkbox-border); border-radius: var(--fh-radius-md); background: var(--fh-color-bg); color: var(--fh-color-text); width: 100%; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: var(--fh-weight-regular) !important; }
.consent input { width: 22px; height: 22px; margin-top: .2rem; flex: none; accent-color: var(--fh-color-primary); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
[data-fh-status] { min-height: 1.5em; margin: 0; font-weight: var(--fh-weight-semibold); }
[data-fh-status][data-kind="success"] { color: var(--fh-color-success); }
[data-fh-status][data-kind="error"] { color: var(--fh-color-error); }
form.is-done button[type="submit"] { display: none; }

.site-footer { border-top: 1px solid var(--fh-color-border); padding-block: 2rem; font-size: var(--fh-text-md); color: var(--fh-footer); }
.site-footer a { color: var(--fh-color-text-muted); }
.site-footer .wrap { display: grid; gap: .6rem; }
.legal h2 { margin-top: 2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.2rem; }
.prose blockquote { border-left: 4px solid var(--fh-next-bar); background: var(--fh-next-bg); color: var(--fh-next-ink); border-radius: 0 var(--fh-radius-md) var(--fh-radius-md) 0; margin: 1rem 0; padding: .5rem 1rem; }
.fake-door { flex-direction: column; gap: .15rem; }
.fake-door small { font-weight: var(--fh-weight-semibold); font-size: var(--fh-text-sm); }
.fake-door-after { border-color: var(--fh-color-accent); }
.fake-door-after p { margin: .4rem 0; }
.faq-item { background: var(--fh-color-surface); border: 1px solid var(--fh-color-border); border-radius: var(--fh-radius-lg); padding: 1rem 1.2rem; margin-bottom: .6rem; }
.faq-item h3 { margin-bottom: .4rem; }
.faq-item p { margin: 0; }
.staging-links { background: var(--fh-color-warning-bg) !important; }
[data-fh-tally] iframe { width: 100%; border: 0; }
@media (max-width: 560px) { .site-header .wrap { flex-wrap: wrap; justify-content: center; } .nav { justify-content: center; } }
