/* Built on Rock: marketing site. Tokens come from the brand guide v1.0. */
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-latin-opsz-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-latin-opsz-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --bedrock: #0F172A; --limestone: #F3EFE7; --hearth: #B45309; --ember: #F59E0B;
  --granite: #334155; --mortar: #E2E8F0; --white: #FFFFFF;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px; --touch: 48px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.65 var(--sans); color: var(--granite); background: var(--limestone); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--bedrock); margin: 0; line-height: 1.1; font-variation-settings: "SOFT" 0, "WONK" 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 3.5rem); }
h2 { font-size: clamp(2rem, 5vw, 2.5rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 800 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--granite); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--hearth); flex: none; }
.white .eyebrow { color: var(--hearth); }
.dark .eyebrow { color: var(--ember); }
.dark .eyebrow::before { background: var(--ember); }
.lede { font-size: 1.125rem; max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--bedrock); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--hearth); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--touch); padding: 0 26px; border-radius: 10px; font: 700 16px/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; }
.btn-primary { background: var(--hearth); color: var(--white); }
.btn-primary:hover { background: #9a4607; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(243,239,231,.35); color: var(--limestone); }
.btn-ghost:hover { border-color: var(--limestone); }
.btn-ghost.on-light { border-color: var(--bedrock); color: var(--bedrock); }
.btn-ghost.on-light:hover { background: var(--bedrock); color: var(--limestone); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Brand lockup (mark + wordmark; wordmark is Fraunces SemiBold, optical size 72) */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--limestone); }
.brand img { width: 38px; height: auto; }
.brand span { font: 600 24px/1 var(--serif); font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0; letter-spacing: -.01em; white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15,23,42,.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(243,239,231,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--limestone); text-decoration: none; font-weight: 600; font-size: 15px; opacity: .85; padding: 12px 0; }
.nav a:not(.btn):hover { opacity: 1; color: var(--ember); }
.nav-toggle { display: none; min-width: var(--touch); min-height: var(--touch); background: none; border: 0; color: var(--limestone); cursor: pointer; }
.nav-toggle svg { margin: auto; }

/* Sections */
section { padding: 96px 0; }
.dark { background: var(--bedrock); color: var(--limestone); }
.dark h1, .dark h2, .dark h3 { color: var(--limestone); }
.dark .lede, .dark p { color: rgba(243,239,231,.82); }
.white { background: var(--white); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head p { margin-top: 16px; }

/* Hero */
.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 30%, rgba(245,158,11,.10), transparent 70%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.verse { font: italic 400 1.0625rem/1.55 var(--serif); font-variation-settings: "opsz" 24; color: rgba(243,239,231,.8); border-left: 3px solid var(--ember); padding-left: 16px; max-width: 44ch; }
.verse cite { display: block; margin-top: 6px; font: 800 12px/1.4 var(--sans); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--ember); }

/* Phone mock */
.phone { width: min(330px, 100%); margin-inline: auto; background: #0b1120; border-radius: 40px; padding: 10px; box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(243,239,231,.12); transform: rotate(2deg); }
.screen { background: var(--limestone); border-radius: 32px; overflow: hidden; color: var(--granite); }
.app-bar { background: var(--bedrock); padding: 16px 18px 14px; display: flex; align-items: center; gap: 10px; }
.app-bar img { width: 26px; }
.app-bar b { display: block; font: 600 15px/1.1 var(--serif); color: var(--limestone); }
.app-bar small { font: 800 9.5px/1.2 var(--sans); letter-spacing: .18em; color: var(--ember); }
.app-body { padding: 16px; display: grid; gap: 10px; }
.app-body h4 { margin: 0; font: 600 20px/1.15 var(--serif); color: var(--bedrock); }
.app-body .meta { font-size: 12px; margin-top: -4px; }
.step { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--mortar); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--bedrock); }
.step i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--mortar); }
.step.done i { background: var(--hearth); border-color: var(--hearth); position: relative; }
.step.done i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.step.now { border-color: var(--hearth); box-shadow: 0 0 0 3px rgba(180,83,9,.12); }
.step.now i { border-color: var(--hearth); }
.step em { margin-left: auto; font: 500 11px/1 var(--sans); font-style: normal; color: var(--granite); }
.verse-card { background: var(--bedrock); border-radius: 12px; padding: 12px 14px; font: italic 400 13px/1.45 var(--serif); color: var(--limestone); }
.verse-card b { display: block; font: 800 9.5px/1 var(--sans); font-style: normal; letter-spacing: .16em; color: var(--ember); margin-top: 6px; }
.app-btn { background: var(--hearth); color: #fff; text-align: center; border-radius: 10px; padding: 13px; font: 700 14px/1 var(--sans); }

/* Problem */
.problem .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--mortar); border-radius: 16px; padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card .num { font: 800 12px/1 var(--sans); letter-spacing: .18em; color: var(--hearth); margin-bottom: 18px; }
.problem-lead { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.25; color: var(--bedrock); max-width: 24ch; margin-bottom: 40px; font-variation-settings: "opsz" 48, "SOFT" 0, "WONK" 0; }

/* Rhythm */
.rhythm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rhythm-card { background: rgba(243,239,231,.05); border: 1px solid rgba(243,239,231,.14); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; }
.rhythm-card .time { font: 800 12px/1 var(--sans); letter-spacing: .18em; color: var(--ember); margin-bottom: 18px; }
.rhythm-card .big { font: 600 3rem/1 var(--serif); color: var(--limestone); margin-bottom: 4px; }
.rhythm-card .big small { font-size: 1rem; font-weight: 400; color: rgba(243,239,231,.7); margin-left: 6px; }
.rhythm-card h3 { margin: 10px 0 12px; }
.rhythm-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15px; color: rgba(243,239,231,.85); }
.rhythm-card li { display: flex; gap: 10px; }
.rhythm-card li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; background: var(--ember); border-radius: 2px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--white); border: 1px solid var(--mortar); border-radius: 16px; padding: 28px; }
.feature .icon { width: 44px; height: 44px; margin-bottom: 18px; color: var(--bedrock); }
.feature .tag { font: 800 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--granite); margin-bottom: 8px; }
.feature h3 { margin-bottom: 10px; }
.feature p { font-size: 15px; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }

/* Marriage */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; background: var(--hearth); border-radius: 6px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat; }
.agenda { background: var(--limestone); border: 1px solid var(--mortar); border-radius: 18px; padding: 28px; box-shadow: 0 20px 50px rgba(15,23,42,.08); }
.agenda header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.agenda header h3 { font-size: 1.5rem; }
.agenda header span { font: 800 12px/1 var(--sans); letter-spacing: .16em; color: var(--granite); text-transform: uppercase; }
.agenda ol { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.agenda li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--mortar); font-weight: 600; color: var(--bedrock); }
.agenda li::before { content: counter(s); font: 600 1.1rem/1 var(--serif); color: var(--bedrock); }
.agenda li small { font-weight: 500; font-size: 13px; color: var(--granite); }
.agenda .private { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; background: var(--white); border-radius: 10px; padding: 12px 14px; border: 1px solid var(--mortar); }
.agenda .private svg { width: 18px; flex: none; fill: none; stroke: var(--bedrock); stroke-width: 2; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: n; }
.steps .card { position: relative; padding-top: 70px; }
.steps .card::before { counter-increment: n; content: counter(n); position: absolute; top: 22px; left: 28px; width: 34px; height: 34px; border-radius: 8px; background: var(--bedrock); color: var(--limestone); font: 600 1.1rem/34px var(--serif); text-align: center; }

/* White label */
.swatches { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.family-door { background: var(--white); border: 1px solid var(--mortar); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(15,23,42,.08); }
.family-door .bar { padding: 22px 26px; display: flex; align-items: center; gap: 14px; background: var(--bedrock); }
.family-door .bar .logo { width: 46px; height: 46px; border-radius: 12px; background: var(--ember); color: var(--bedrock); display: grid; place-items: center; font: 600 22px/1 var(--serif); }
.family-door .bar b { display: block; color: var(--limestone); font: 600 20px/1.1 var(--serif); }
.family-door .bar small { display: block; font: 800 10.5px/1.4 var(--sans); letter-spacing: .2em; color: var(--ember); margin-top: 4px; }
.family-door .body { padding: 26px; display: grid; gap: 14px; }
.family-door .body p { color: var(--granite); font-size: 15px; }
.family-door .app-btn { width: max-content; padding: 13px 22px; }

/* Quote band */
.quote { text-align: center; padding: 100px 0; }
.quote blockquote { margin: 0 auto; max-width: 28ch; font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4.6vw, 2.75rem); line-height: 1.25; font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0; color: var(--limestone); }
.quote cite { display: block; margin-top: 26px; font: 800 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; font-style: normal; color: var(--ember); }
.quote img { width: 64px; margin: 0 auto 32px; }

/* FAQ */
.faq { max-width: 780px; display: grid; gap: 12px; }
details { background: var(--white); border: 1px solid var(--mortar); border-radius: 14px; }
summary { list-style: none; cursor: pointer; min-height: var(--touch); padding: 16px 56px 16px 22px; position: relative; font: 700 16px/1.4 var(--sans); color: var(--bedrock); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border: solid var(--hearth); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { padding: 0 22px 20px; }

/* Final CTA */
.cta { text-align: center; }
.cta h2 { margin-bottom: 18px; }
.cta .lede { margin: 0 auto 34px; }
.cta .hero-actions { justify-content: center; margin: 0; }
.cta small { display: block; margin-top: 22px; color: rgba(243,239,231,.7); font-size: 14px; }

/* Footer */
footer { background: var(--bedrock); border-top: 1px solid rgba(243,239,231,.12); padding: 44px 0; color: rgba(243,239,231,.7); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
footer a { text-decoration: none; padding: 12px 0; display: inline-block; }
footer a:hover { color: var(--ember); }
.foot-tag { display: block; font: 800 11px/1 var(--sans); letter-spacing: .2em; color: var(--ember); margin-top: 8px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .btn { transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  section { padding: 72px 0; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 48px; }
  .problem .cols, .rhythm-grid, .features, .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .phone { transform: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: grid; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; background: var(--bedrock); border-bottom: 1px solid rgba(243,239,231,.12); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(243,239,231,.08); font-size: 17px; }
  .nav .btn { margin-top: 16px; }
  .features { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-actions .btn { width: 100%; }
  .section-head { margin-bottom: 36px; }
}
