/* Family XOXO · © 2026 Damien Pressley. All rights reserved. */

:root {
  --cream: #FBF7EF;
  --cream-2: #F4ECDD;
  --ink: #141210;
  --ink-2: #4A443C;
  --muted: #7A7166;
  --gold: #B8892B;
  --gold-2: #D9B45A;
  --gold-soft: #F1E2BC;
  --line: rgba(20, 18, 16, .10);
  --frost: rgba(255, 255, 255, .62);
  --frost-strong: rgba(255, 255, 255, .78);
  --shadow: 0 10px 30px rgba(74, 56, 20, .10), 0 1px 2px rgba(74, 56, 20, .06);
  --radius: 22px;
  --radius-sm: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font: 17px/1.6 var(--sans);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(60rem 40rem at 90% -10%, rgba(217, 180, 90, .22), transparent 60%),
    radial-gradient(50rem 36rem at -10% 30%, rgba(241, 226, 188, .7), transparent 60%),
    radial-gradient(50rem 40rem at 110% 80%, rgba(217, 180, 90, .14), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 8vw, 5.2rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: .8em; }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 34em; }
.sub, .muted { color: var(--muted); }
.sub { font-size: 1.08rem; max-width: 40em; }

/* Frosted cards */
.card { border-radius: var(--radius); padding: 28px; }
.card--frost {
  background: var(--frost);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
@media (max-width: 560px) { .card { padding: 22px 18px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1b1408; box-shadow: 0 6px 18px rgba(184, 137, 43, .35); }
.btn--ghost { background: var(--frost-strong); border: 1px solid var(--line); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 239, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.15rem; flex-shrink: 0; }
.brand img, .footer__brand img { width: 40px; height: 30px; object-fit: cover; border-radius: 7px; background: #000; }
.brand b, .footer__brand b { color: var(--gold); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; font-size: .95rem; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { background: var(--gold-soft); color: var(--ink); }
@media (max-width: 760px) {
  .topbar__inner { flex-wrap: wrap; gap: 0; padding-top: 8px; }
  .nav { width: 100%; margin: 0 -16px; padding: 4px 12px 8px; }
  .nav a { font-size: .9rem; padding: 6px 10px; }
  html { scroll-padding-top: 110px; }
}

/* Hero */
.hero { display: grid; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 1fr; padding-top: 88px; padding-bottom: 64px; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.pills li { font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--frost-strong); border: 1px solid var(--gold-soft); }
.pills li::before { content: "✓ "; color: var(--gold); }

.tv { max-width: 520px; margin: 0 auto; }
.tv__screen { background: #050505; border-radius: 26px; padding: 14px; box-shadow: 0 30px 60px rgba(60, 40, 10, .25), 0 0 0 1px rgba(184, 137, 43, .35), inset 0 0 0 2px #1e1a14; overflow: hidden; }
.tv__screen img { border-radius: 14px; width: 100%; }
.tv__stand { width: 34%; height: 12px; margin: 0 auto; background: linear-gradient(180deg, #2a241b, #0e0c09); border-radius: 0 0 14px 14px; }

/* Sections */
.section { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 900px) { .section { padding-top: 80px; padding-bottom: 80px; } }
.section__head { margin-bottom: 32px; }

/* Why */
.why { padding: clamp(24px, 5vw, 56px); }
.why h2 { max-width: 18em; }
.why__grid { display: grid; gap: 8px 40px; color: var(--ink-2); font-size: 1.08rem; }
@media (min-width: 820px) { .why__grid { grid-template-columns: 1fr 1fr; } }
.why__points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
@media (min-width: 820px) { .why__points { grid-template-columns: repeat(3, 1fr); } }
.why__points li { padding: 16px 18px; background: rgba(255, 255, 255, .7); border-radius: var(--radius-sm); border-left: 3px solid var(--gold); }

/* How it works */
.spaces { display: grid; gap: 20px; }
@media (min-width: 820px) { .spaces { grid-template-columns: 1fr 1fr; } }
.space { position: relative; }
.space__tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: #fff; margin-bottom: 12px; }
.space__tag--soon { background: var(--gold-soft); color: #6b4e12; }
.space p { color: var(--ink-2); margin: 0; }
.diagram { width: 100%; height: auto; margin: 8px 0 18px; overflow: visible; }
.diagram .d-line path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 6 6; stroke-linecap: round; }
.diagram .d-house path:first-child { fill: #fff; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.diagram .d-box { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 2; }
.diagram .d-stroke { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.diagram .d-tv rect { fill: var(--ink); }
.diagram .d-play { fill: var(--gold-2); }
.diagram .d-cloud path { fill: #fff; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; }
.diagram .d-heart path { fill: var(--gold-2); }
.diagram .d-label { font: 600 12px var(--sans); fill: var(--muted); text-anchor: middle; }

/* Meet the family stage (streaming-TV style) */
.stage {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 18px 0 22px 18px;
  background: var(--cream-2);
  box-shadow: 0 30px 70px rgba(74, 56, 20, .16);
  isolation: isolate;
}
@media (min-width: 720px) { .stage { padding: 26px 0 28px 30px; } }
.stage__bg { position: absolute; inset: 0; z-index: -1; }
.stage__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) blur(2px); opacity: .32; transform: scale(1.04); transition: opacity .5s; }
.stage__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251, 247, 239, .55), rgba(251, 247, 239, .2) 40%, rgba(251, 247, 239, .7)); }
.stage__top { display: flex; justify-content: space-between; align-items: flex-start; padding-right: 18px; margin-bottom: 20px; }
@media (min-width: 720px) { .stage__top { padding-right: 30px; margin-bottom: 36px; } }
.clock span { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.clock small { color: var(--ink-2); font-size: .8rem; }
.badge-sample { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--gold-2); }

.panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 24px 0 0 24px;
  padding: 22px 0 18px 18px;
  min-width: 0;
}
@media (min-width: 720px) { .panel { grid-template-columns: 34px 1fr; padding: 32px 0 22px 18px; } }
.panel__body { min-width: 0; }

.dots { display: flex; gap: 0; flex-wrap: wrap; order: 2; margin: 10px 0 2px; padding-right: 18px; }
.panel__foot { order: 3; }
@media (max-width: 719px) { .dot { width: 25px; } }
@media (min-width: 720px) { .dots { order: 0; flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: center; margin: 0; padding: 0; gap: 2px; } }
.dot { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); transition: all .2s; }
.dot[aria-selected="true"]::before { background: var(--ink); border-color: var(--ink); transform: scale(1.25); }
.dot:hover::before { border-color: var(--gold); }

.profile__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-right: 18px; }
@media (min-width: 720px) { .profile__head { padding-right: 30px; } }
.profile__name { font-family: var(--sans); font-weight: 400; font-size: clamp(2rem, 5vw, 2.9rem); margin: 0; letter-spacing: -.02em; }
.profile__meta { color: var(--muted); font-size: .92rem; margin: 2px 0 0; }
.profile__meta .tag { display: inline-block; padding: 1px 9px; border-radius: 999px; background: rgba(20, 18, 16, .08); color: var(--ink-2); font-size: .78rem; font-weight: 600; margin-right: 6px; }
.profile__meta .tag--memory { background: var(--gold-soft); color: #6b4e12; }
.profile__known { color: var(--ink-2); margin: 10px 0 18px; padding-right: 18px; }
.profile__nav { display: flex; gap: 8px; flex-shrink: 0; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--frost-strong); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.arrow:hover { border-color: var(--gold); }

.row {
  display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 18px 14px 2px;
  scrollbar-width: thin; scrollbar-color: var(--gold-soft) transparent;
}
.mcard { flex: 0 0 auto; width: min(76vw, 300px); scroll-snap-align: start; }
@media (min-width: 720px) { .mcard { width: 300px; } }
.mcard__img { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--ink); box-shadow: 0 10px 22px rgba(40, 28, 8, .22); }
.mcard__img img { width: 100%; height: 100%; object-fit: cover; }
.mcard__img--photo img { transform: scale(1.6); transform-origin: 50% 40%; }
.mcard__play { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .88); display: grid; place-items: center; }
.mcard__play::before { content: ""; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.mcard__record { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #3a3124, #0d0b08); }
.mcard__record span { width: 58%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #1a1712 0 2px, #26211a 2px 4px); box-shadow: 0 0 0 2px rgba(217, 180, 90, .3); display: grid; place-items: center; }
.mcard__record span::after { content: ""; width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #0d0b08 0 8%, var(--gold-2) 9%); }
.mcard__info { display: flex; gap: 10px; align-items: baseline; padding: 12px 2px 0; }
.mcard__kind { flex-shrink: 0; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(20, 18, 16, .1); color: var(--ink-2); }
.mcard__title { font-weight: 500; line-height: 1.3; }
.mcard__sub { display: block; font-size: .8rem; color: var(--muted); }

.panel__foot { margin: 6px 0 0; padding-right: 18px; text-align: right; font-size: .85rem; color: var(--ink-2); }
@media (min-width: 720px) { .panel__foot { grid-column: 2; padding-right: 30px; } }
.panel__foot b { color: var(--gold); }

/* Get started */
.start { display: grid; gap: 20px; }
@media (min-width: 900px) { .start { grid-template-columns: 1.2fr 1fr; } }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .7); cursor: pointer; border: 1px solid transparent; transition: border-color .15s, background .15s; }
.checklist label:hover { border-color: var(--gold-soft); }
.checklist input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); flex-shrink: 0; }
.checklist span { color: var(--ink-2); }
.checklist b { color: var(--ink); }
.checklist input:checked + span { opacity: .55; }
.checklist input:checked + span b { text-decoration: line-through; text-decoration-color: var(--gold); }
.note { margin: 14px 0 0; font-weight: 600; color: var(--gold); }

.calc form { display: grid; gap: 8px; margin-top: 8px; }
.calc label { font-weight: 600; font-size: .92rem; margin-top: 8px; }
.field, .stepper { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.field:focus-within, .stepper:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 180, 90, .3); }
.field span { padding-left: 16px; color: var(--muted); font-weight: 600; }
.calc input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.1rem; padding: 12px 14px; color: var(--ink); outline: none; }
.stepper input { text-align: center; -moz-appearance: textfield; appearance: textfield; }
.calc input::-webkit-outer-spin-button, .calc input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button { width: 52px; height: 50px; border: 0; background: var(--cream-2); font-size: 1.4rem; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--gold-soft); }
.calc__out { margin-top: 22px; padding: 20px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; display: grid; gap: 2px; text-align: center; }
.calc__out .muted { color: #c9bfae; font-size: .9rem; }
.calc__out strong { font-family: var(--serif); font-size: clamp(2.2rem, 7vw, 3rem); color: var(--gold-2); font-variant-numeric: tabular-nums; line-height: 1.2; }

/* Features */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(5, 1fr); } }
.feature svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--ink); fill: none; stroke: var(--gold-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--ink-2); font-size: .97rem; margin: 0; }

/* Footer */
.footer { margin-top: 40px; padding: 36px 0 44px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .45); }
.footer__inner { display: grid; gap: 16px; align-items: center; }
@media (min-width: 760px) { .footer__inner { grid-template-columns: auto 1fr auto; } }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.1rem; }
.footer__links { display: flex; gap: 6px; flex-wrap: wrap; }
@media (min-width: 760px) { .footer__links { justify-content: center; } }
.footer__links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer__links a:hover { background: var(--gold-soft); }
.footer__legal { margin: 0; font-size: .85rem; color: var(--muted); }
@media (min-width: 760px) { .footer__legal { text-align: right; } }

/* Legal pages */
.doc { padding-top: 48px; padding-bottom: 48px; }
.doc .card { max-width: 820px; margin: 0 auto; padding: clamp(24px, 5vw, 52px); }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.doc h2 { font-size: 1.4rem; margin-top: 1.8em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .5em; }
.doc a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.doc .contact { display: inline-flex; margin: 8px 0 4px; font-size: 1.15rem; font-weight: 600; text-decoration: none; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--gold-2); word-break: break-all; }
.doc .faq { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.doc .faq h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin-bottom: .3em; }

/* The TV App: tabbed screenshot carousels */
.soon { display: inline-block; margin: 6px 0 0; padding: 8px 14px; border-radius: 14px; background: var(--ink); color: var(--gold-2); font-weight: 600; font-size: .92rem; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { font: inherit; font-weight: 600; font-size: .95rem; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--frost-strong); color: var(--ink-2); cursor: pointer; }
.tab:hover { border-color: var(--gold); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.appgroup[hidden] { display: none; }
.appgroup__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.appgroup__head h3 { margin: 0; }
.appgroup__head p { margin: 0; }
.carousel { min-width: 0; max-width: 820px; margin: 0 auto; }
.carousel__track { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: 16px; }
.carousel__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; min-width: 0; }
.slide figure { margin: 0; }
.screen { background: #050505; border-radius: 16px; padding: clamp(5px, 1vw, 10px); box-shadow: 0 16px 34px rgba(40, 28, 8, .22), 0 0 0 1px rgba(184, 137, 43, .3); }
.screen img { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #111; }
.slide figcaption { padding: 14px 4px 0; color: var(--ink-2); font-size: 1rem; min-height: 3.4em; }
.slide__num { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 8px; margin-right: 6px; border-radius: 999px; background: var(--gold-soft); color: #6b4e12; font-variant-numeric: tabular-nums; }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.carousel__dots { display: flex; flex-wrap: wrap; justify-content: center; }
.carousel__dots .dot { width: 24px; height: 28px; }
.carousel__prev[disabled], .carousel__next[disabled] { opacity: .35; cursor: default; }
.carousel__nav[hidden] { display: none; }
