/* RawHouse — the house at night with the lights on: deep navy, lamplight amber, warm white type. */
@font-face { font-family: "Bricolage"; src: url("assets/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("assets/hanken.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0d1322;      /* the sky outside */
  --dusk: #161f36;       /* rooms with the lights low */
  --wall: #1f2a47;       /* edges, frames */
  --lamp: #ffb84d;       /* window light: the one accent */
  --lamp-deep: #e8962a;
  --mist: #eef1f7;       /* type */
  --fog: #a3adc2;        /* quiet type */
  --line: rgba(238, 241, 247, .1);
  --display: "Bricolage", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Hanken", -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gut: max(20px, env(safe-area-inset-left));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--mist); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lamp); }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lamp); color: var(--night); padding: 8px 14px; border-radius: 8px; font-weight: 700; z-index: 10; }
.skip:focus { left: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 750; letter-spacing: -.025em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 92px); letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 54px); text-wrap: balance; }
h3 { font-size: 22px; letter-spacing: -.015em; }
p { margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--lamp); color: #1b1203; font: 700 17px/1 var(--body); text-decoration: none; transition: background .2s, transform .2s; }
.btn:hover { background: #ffc66d; }
.btn:active { transform: translateY(1px); }
.btn-quiet { background: transparent; color: var(--mist); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet:hover { background: rgba(238, 241, 247, .06); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.link { font-weight: 700; text-underline-offset: 4px; }

/* nav */
.nav { max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gut); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--mist); text-decoration: none; font: 400 23px/1 var(--display); letter-spacing: -.02em; }
.brand b { font-weight: 800; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--fog); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.nav nav a:hover { color: var(--mist); }
@media (max-width: 860px) { .nav nav { display: none; } .nav .btn-small { margin-left: auto; } }

/* hero: the headline, and the family's phones under one roof */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gut) 40px; overflow-x: clip; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-copy { max-width: 600px; }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--fog); margin-top: 26px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.fine { margin-top: 18px; color: var(--fog); font-size: 14.5px; }
.hero-art { position: relative; height: 640px; }
.roof { position: absolute; left: 50%; top: 0; width: 112%; transform: translateX(-50%); height: auto; overflow: visible; z-index: 2; }
.roof path { fill: none; stroke: var(--lamp); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 760; stroke-dashoffset: 760; animation: draw 1.3s .2s cubic-bezier(.6, 0, .2, 1) forwards; filter: drop-shadow(0 0 18px rgba(255, 184, 77, .45)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.phones { position: absolute; inset: 120px 0 0; display: flex; justify-content: center; align-items: flex-start; }
.glow { position: absolute; left: 10%; right: 10%; bottom: -10px; height: 220px; background: radial-gradient(ellipse at center, rgba(255, 184, 77, .28), transparent 70%); filter: blur(20px); z-index: 0; }

/* a phone */
.phone { margin: 0; width: 240px; aspect-ratio: 390 / 844; border-radius: 40px; padding: 9px; background: #05070d;
  box-shadow: 0 0 0 1.5px #2b3657, 0 30px 70px rgba(0, 0, 0, .55), 0 0 60px rgba(255, 184, 77, .08); position: relative; flex: none; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #070b0d; padding-top: 11%; }
.screen::before { content: "9:41"; position: absolute; top: 3.2%; left: 11%; color: #eef1f7; font: 700 13px/1 var(--body); letter-spacing: .01em; }
.screen::after { content: ""; position: absolute; top: 3.6%; right: 9%; width: 34px; height: 11px; border-radius: 3px;
  background: linear-gradient(90deg, #eef1f7 0 70%, transparent 70%), linear-gradient(#eef1f7, #eef1f7); background-size: 100% 100%, 2px 5px; background-position: 0 0, 100% 50%;
  box-shadow: inset 0 0 0 1.5px #eef1f7; opacity: .95; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone::after { content: ""; position: absolute; top: 3%; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); background: #05070d; border-radius: 12px; z-index: 2; }
.phones .phone { opacity: 0; animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; z-index: 1; }
.p-left { transform: translate(60px, 50px) rotate(-7deg) scale(.88); animation-delay: .9s !important; }
.p-right { transform: translate(-60px, 50px) rotate(7deg) scale(.88); animation-delay: 1.05s !important; }
.p-mid { z-index: 3 !important; animation-delay: .75s !important; }
@keyframes rise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .roof path { animation: none; stroke-dashoffset: 0; }
  .phones .phone { animation: none; opacity: 1; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-art { height: 560px; max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .hero-art { height: 470px; }
  .phones { inset: 92px 0 0; }
  .phone { width: 196px; border-radius: 32px; padding: 7px; }
  .screen { border-radius: 26px; }
  .screen::before { font-size: 11px; }
  .p-left { transform: translate(78px, 44px) rotate(-7deg) scale(.84); }
  .p-right { transform: translate(-78px, 44px) rotate(7deg) scale(.84); }
}

/* R.A.W. */
.raw { max-width: var(--wrap); margin: 70px auto 0; padding: 56px var(--gut); display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.raw-col { position: relative; padding-top: 104px; }
.raw-l { position: absolute; top: -6px; left: -4px; font: 800 96px/1 var(--display); color: transparent; -webkit-text-stroke: 2px var(--lamp); opacity: .9; letter-spacing: -.04em; }
.raw h2 { font-size: 30px; }
.raw p { color: var(--fog); margin-top: 10px; max-width: 30em; }
@media (max-width: 820px) { .raw { grid-template-columns: 1fr; gap: 44px; } }

/* features */
.features { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gut) 20px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 70px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .f-art { order: 2; }
.f-art { display: flex; justify-content: center; position: relative; }
.f-art::before { content: ""; position: absolute; inset: 12% 8%; background: radial-gradient(ellipse at center, rgba(255, 184, 77, .16), transparent 65%); filter: blur(30px); }
.f-art .phone { width: 280px; }
.duo .phone { width: 260px; }
.duo .back { margin-left: -90px; margin-top: 70px; transform: rotate(5deg); z-index: 0; }
.duo .phone:first-child { z-index: 1; transform: rotate(-3deg); }
.f-copy p { color: var(--fog); font-size: 18.5px; margin-top: 20px; max-width: 32em; }
.f-copy ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.f-copy li { padding-left: 30px; position: relative; }
.f-copy li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 11px; background: var(--lamp); border-radius: 2px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 40px; padding: 56px 0; }
  .feature.flip .f-art { order: 0; }
  .f-art .phone { width: 240px; }
  .duo .phone { width: 210px; }
  .duo .back { margin-left: -70px; }
}

/* privacy */
.privacy { max-width: var(--wrap); margin: 30px auto 0; padding: 80px var(--gut); display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center;
  background: linear-gradient(180deg, var(--dusk), rgba(22, 31, 54, 0)); border-radius: 36px; }
.p-copy > p { color: var(--fog); font-size: 18.5px; margin-top: 20px; max-width: 34em; }
.facts { margin: 34px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; }
.facts dt { font: 700 18px/1.3 var(--display); }
.facts dd { margin: 6px 0 0; color: var(--fog); font-size: 15.5px; }
.diagram { margin: 0; }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.d-cloud path { fill: none; stroke: var(--fog); stroke-width: 3; stroke-dasharray: 6 6; opacity: .55; }
.d-cloud .d-x { stroke: #ff7a59; stroke-dasharray: none; stroke-width: 5; stroke-linecap: round; opacity: 1; }
.d-house path, .d-house rect { fill: var(--dusk); stroke: var(--lamp); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.d-house path { fill: none; }
.d-house .d-win { fill: var(--lamp); stroke: none; }
.d-phone rect { fill: #05070d; stroke: #4a5a86; stroke-width: 3; }
.d-link { fill: none; stroke: var(--lamp); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; }
.d-label { fill: var(--fog); font: 600 14px var(--body); }
@media (max-width: 900px) { .privacy { grid-template-columns: 1fr; padding: 56px var(--gut); border-radius: 28px; } .diagram { max-width: 420px; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* how it works (a real sequence, so it's numbered) */
.how { max-width: var(--wrap); margin: 0 auto; padding: 100px var(--gut) 40px; }
.how ol { list-style: none; counter-reset: s; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.how li { counter-increment: s; padding: 30px 26px 30px; border-radius: 26px; background: var(--dusk); box-shadow: inset 0 0 0 1px var(--line); }
.how li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lamp); color: #1b1203; font: 800 20px/1 var(--display); margin-bottom: 22px; }
.how p { color: var(--fog); margin-top: 10px; }
@media (max-width: 860px) { .how ol { grid-template-columns: 1fr; } }

/* closer */
.closer { max-width: 760px; margin: 0 auto; padding: 110px var(--gut) 120px; text-align: center; display: grid; justify-items: center; gap: 22px; }
.closer p { color: var(--fog); font-size: 19px; max-width: 30em; }

/* footer */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 34px var(--gut) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px 30px; align-items: center; color: var(--fog); font-size: 15px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font: 400 19px/1 var(--display); color: var(--mist); }
.foot-brand b { font-weight: 800; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { color: var(--fog); text-decoration: none; }
.foot nav a:hover { color: var(--mist); }
.foot .copy { grid-column: 1 / -1; font-size: 13.5px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* inner pages (privacy, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 50px var(--gut) 80px; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); }
.doc h2 { font-size: 24px; margin: 38px 0 10px; letter-spacing: -.015em; }
.doc p, .doc li { color: #d3d9e6; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc .updated { color: var(--fog); font-size: 15px; margin-top: 16px; }
