/* Private Household Portal marketing site.
   Palette and type follow the app's Aspen theme ("Alpine Linen"):
   Baskervville headings, Manrope body, blue-gray ink on linen white. */
:root {
  color-scheme: light;
  --canvas: #f7fafc;
  --surface: #feffff;
  --tint: #e8f0f4;
  --tint-2: #dde8ee;
  --ink: #243943;
  --muted: #4b626e;
  --action: #395d6a;
  --action-dark: #2c4853;
  --sidebar: #3a5c69;
  --accent: #a8beba;
  --line: #d7e3e8;
  --line-strong: #b3c7d0;
  --gold: #9a7f4a;
  --serif: Baskervville, Georgia, "Times New Roman", serif;
  --sans: Manrope, "Helvetica Neue", system-ui, sans-serif;
  --radius: 20px;
  --shadow: 0 1px 1px rgb(36 57 67 / .04), 0 10px 28px -14px rgb(36 57 67 / .2);
  --shadow-lift: 0 2px 4px rgb(36 57 67 / .05), 0 30px 60px -28px rgb(36 57 67 / .42);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--action); }
h1 { font-size: clamp(2.5rem, 4.6vw, 4.3rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.small { font-size: .82rem; }

.skip { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; transform: translateY(-160%); }
.skip:focus { transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgb(247 250 252 / .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { position: relative; min-height: 70px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 1.35rem/1 var(--serif); white-space: nowrap; text-decoration: none; letter-spacing: -.01em; }
.logo { width: 34px; height: 34px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--action); font: .9rem/1 var(--serif); letter-spacing: .02em; background: var(--surface); }
.nav nav { display: flex; gap: clamp(16px, 2.4vw, 32px); margin-left: auto; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nav nav a { text-decoration: none; color: var(--muted); padding-block: 6px; border-bottom: 1px solid transparent; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.menu { display: none; margin-left: auto; border: 1px solid var(--line-strong); border-radius: 100px; background: var(--surface); padding: 7px 16px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* Buttons */
.button { min-height: 46px; padding: 11px 22px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 100px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; text-decoration: none; line-height: 1.25; transition: background .16s, border-color .16s, transform .16s; }
.button.small { min-height: 40px; padding: 8px 16px; font-size: .72rem; }
.button:disabled { opacity: .45; cursor: default; }
.dark { background: var(--action); color: #fff; box-shadow: 0 8px 18px -10px rgb(57 93 106 / .8); }
.dark:hover:not(:disabled) { background: var(--action-dark); }
.outline { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.outline:hover:not(:disabled) { background: var(--tint); border-color: var(--accent); }
.light { background: var(--canvas); color: var(--action-dark); }
.light:hover { background: #fff; }
.inverse { color: #fff; border-color: rgb(255 255 255 / .45); background: transparent; }
.inverse:hover { background: rgb(255 255 255 / .1); }

.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--action); margin-bottom: 18px; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.rule { width: 26px; height: 1px; background: var(--gold); flex: none; }
.lede, .section-intro { max-width: 58ch; color: var(--muted); font-size: 1.06rem; }
.lede { margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Screenshot frame: echoes the app's frosted cards */
.frame { display: block; padding: 8px; border: 1px solid rgb(255 255 255 / .9); border-radius: var(--radius); background: rgb(254 255 255 / .7); box-shadow: var(--shadow-lift); transition: transform .25s; }
a.frame:hover { transform: translateY(-3px); }
.frame img { display: block; width: 100%; height: auto; border-radius: 13px; border: 1px solid var(--line); background: var(--tint); }

/* Hero */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 520px at 85% 30%, rgb(168 190 186 / .38), transparent 70%),
  radial-gradient(700px 400px at 10% 100%, rgb(221 232 238 / .9), transparent 70%),
  linear-gradient(180deg, var(--canvas), var(--tint)); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero-art { min-width: 0; }
figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 14px 6px 0; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* Sections */
.section { padding-block: clamp(60px, 8vw, 100px); }
.section-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.section-head h2 { max-width: 20ch; }
.count { margin-top: 16px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--action); }

/* Coverage modules: mirrors the app's sidebar groups */
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.module-group { padding: 22px 22px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); }
.module-group:last-child { background: var(--sidebar); border-color: var(--sidebar); color: #fff; }
.module-group h3 { font-size: .74rem; font-family: var(--sans); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--action); }
.module-group:last-child h3, .module-group:last-child p { color: rgb(255 255 255 / .82); }
.module-group p { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.module-group ul { list-style: none; margin: 14px 0 0; padding: 0; }
.module-group li + li { border-top: 1px solid var(--line); }
.module-group:last-child li + li { border-color: rgb(255 255 255 / .2); }
.module-group a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding-block: 8px; text-decoration: none; font: 1.12rem/1.2 var(--serif); }
.module-group a:hover span:first-child { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.arrow { font-family: var(--sans); font-size: .85rem; color: var(--accent); }
.module-group:last-child .arrow { color: rgb(255 255 255 / .7); }

/* Insight band */
.insight { background: var(--sidebar); background-image: radial-gradient(120% 90% at 0% 0%, rgb(255 255 255 / .08), transparent 60%); color: #f4f8fa; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 8vw, 120px); padding-block: clamp(48px, 6vw, 76px); }
.insight h2 { font-size: clamp(1.9rem, 3.3vw, 3rem); }
.insight p { color: #dbe7ec; font-size: 1.04rem; }

/* Tour */
.scenario { display: flex; align-items: flex-start; gap: 16px; max-width: 820px; margin-top: 24px; padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface); }
.scenario p { color: var(--muted); }
.tag { flex: none; padding: 4px 11px; border-radius: 100px; background: var(--tint); color: var(--action-dark); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; margin-top: 2px; }
.tour { margin-top: 34px; }
.tour-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tour-tabs [role=tab] { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: background .16s, border-color .16s; }
.tour-tabs [role=tab]:hover { border-color: var(--accent); }
.tour-tabs [aria-selected=true] { background: var(--action); border-color: var(--action); color: #fff; }
.tab-number { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: 1rem/1 var(--serif); opacity: .85; }
.tab-text { display: grid; }
.tab-screen { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.tab-label { font: 1.1rem/1.25 var(--serif); }
.tour-panel { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 18px; padding: clamp(14px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(160deg, var(--tint), var(--canvas)); }
.tour-panel:focus-visible { outline-offset: 4px; }
.step-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--action); }
.tour-text h3 { margin-top: 10px; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.tour-body { margin-top: 12px; color: var(--muted); }
.details { margin: 16px 0 22px; padding: 0; list-style: none; }
.details li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid var(--line); font-size: .94rem; }
.details li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 8px; height: 1px; background: var(--gold); }
.tour-nav { display: flex; gap: 8px; margin-top: 14px; }

/* Studio */
.studio-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.studio-copy .section-intro { margin-top: 18px; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin: 28px 0 30px; }
.points div { border-top: 1px solid var(--line-strong); padding-top: 12px; }
.points dt { font: 1.15rem/1.25 var(--serif); }
.points dd { margin-top: 5px; color: var(--muted); font-size: .92rem; }
.studio-art { min-width: 0; }

/* Audience */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.card-mark { display: block; color: var(--action); font: 1.5rem/1 var(--serif); margin-bottom: 18px; }
.card p { margin-top: 10px; color: var(--muted); }

/* Closing */
.closing { background: var(--sidebar); background-image: radial-gradient(80% 120% at 50% 0%, rgb(255 255 255 / .1), transparent 60%); color: #fff; }
.closing .section { text-align: center; }
.closing h2 { max-width: 20ch; margin-inline: auto; }
.closing p { max-width: 56ch; margin: 18px auto 0; color: #dbe7ec; }
.closing .actions { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 34px; }
.footer p { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.footer p.small { margin-top: 4px; font-size: .78rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.footer nav a, .footer-demo { text-decoration: none; color: var(--muted); }
.footer nav a:hover, .footer-demo:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-demo { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--action); }

/* Dialog */
dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lift); }
dialog::backdrop { background: rgb(28 46 54 / .62); backdrop-filter: blur(2px); }
.modal-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.modal-heading h2 { font-size: 2rem; }
.close { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; font-size: 1.3rem; line-height: 1; }
.close:hover { background: var(--tint); }
#form-description { margin: 12px 0 18px; padding: 12px 14px; border-radius: 10px; background: var(--tint); color: var(--ink); font-size: .92rem; }
#form-description strong { font-weight: 700; }
form label { display: block; margin: 12px 0 5px; font-size: .86rem; font-weight: 600; }
form input, form textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font-size: 1rem; }
form input:focus, form textarea:focus { border-color: var(--action); }
form [aria-invalid=true] { border-color: #b0503f; }
form textarea { resize: vertical; min-height: 90px; }
#form-submit { width: 100%; margin-top: 20px; }
.form-status { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.ok { color: #3f6a48; }
.form-status.error { color: #9c4535; }
.noscript { padding: 20px 0; }

/* Responsive */
@media (max-width: 1080px) {
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-group:last-child { grid-column: span 2; }
  .module-group:last-child ul { display: flex; gap: 20px; }
  .tour-panel { grid-template-columns: 1fr; }
  .tour-text { max-width: 640px; }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .menu { display: block; }
  .nav { gap: 14px; }
  .nav nav { display: none; position: absolute; top: 100%; left: -24px; right: -24px; margin: 0; padding: 8px 24px 16px; flex-direction: column; gap: 0; background: var(--canvas); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -18px rgb(36 57 67 / .35); }
  .nav nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav nav a:last-child { border-bottom: 0; }
  .menu[aria-expanded=true] + nav { display: flex; }
  .hero-grid, .studio-grid, .section-head, .insight-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .hero-copy { max-width: 640px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav { min-height: 62px; }
  .nav nav { left: -16px; right: -16px; padding-inline: 16px; }
  .brand { font-size: 1.12rem; gap: 8px; }
  .logo { width: 28px; height: 28px; font-size: .74rem; }
  .header-cta { display: none; }
  .actions .button { flex: 1 1 100%; }
  .modules { grid-template-columns: 1fr; }
  .module-group:last-child { grid-column: auto; }
  .tour-tabs { grid-template-columns: 1fr; }
  .tour-tabs [role=tab] { padding: 10px 12px; }
  .tab-number { width: 30px; height: 30px; }
  .scenario { flex-direction: column; gap: 10px; }
  .points, .cards { grid-template-columns: 1fr; }
  .tour-nav .button { flex: 1; }
  .tour-open { width: 100%; }
  figcaption { flex-direction: column; gap: 2px; letter-spacing: .1em; }
  dialog { padding: 22px 18px; }
  .modal-heading h2 { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
