/* Nest website: the app's look (design F, "Hearth, refined"). DM Sans for text, Bricolage Grotesque for headings,
   brand blue #3647C4, sunny yellow for children, apricot for things that need a parent. Fonts are served from this
   site (SIL Open Font License, see fonts/OFL-*.txt), so pages load nothing from other companies. */
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url(fonts/DMSans_400Regular.woff) format('woff'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url(fonts/DMSans_500Medium.woff) format('woff'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url(fonts/DMSans_600SemiBold.woff) format('woff'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url(fonts/DMSans_700Bold.woff) format('woff'); }
@font-face { font-family: 'Bricolage'; font-weight: 700; font-display: swap; src: url(fonts/BricolageGrotesque_700Bold.woff) format('woff'); }
@font-face { font-family: 'Bricolage'; font-weight: 800; font-display: swap; src: url(fonts/BricolageGrotesque_800ExtraBold.woff) format('woff'); }

:root {
  --blue: #3647C4; --blue-soft: #ECEEFB; --navy: #25328F;
  --sun: #FFD34E; --sun-bg: #FFF7E8; --apricot: #F08A4B; --apricot-bg: #FFF3EA; --apricot-ink: #B04F14;
  --mint: #16794A; --mint-bg: #DDF3E7;
  --ink: #171A3A; --muted: #5E6180; --faint: #8C8EA8;
  --bg: #FFFFFF; --page: #F6F7FB; --card: #FFFFFF; --line: #E6E7F0; --sunk: #F2F3F8;
  --night: #1B1F3B;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage', 'DM Sans', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue-soft: #232A4D; --sun-bg: #2A2414; --apricot-bg: #3A2414; --apricot-ink: #FFC9A3; --mint-bg: #173A2A; --mint: #63C98F;
    --ink: #F4F1EC; --muted: #B0B3CC; --faint: #8C8EA8; --bg: #12152C; --page: #0F1226; --card: #1B1F3B; --line: #2A3052; --sunk: #232A4D;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue-soft: #232A4D; --sun-bg: #2A2414; --apricot-bg: #3A2414; --apricot-ink: #FFC9A3; --mint-bg: #173A2A; --mint: #63C98F;
  --ink: #F4F1EC; --muted: #B0B3CC; --faint: #8C8EA8; --bg: #12152C; --page: #0F1226; --card: #1B1F3B; --line: #2A3052; --sunk: #232A4D;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.5px; color: var(--ink); text-decoration: none; }
.logo svg { width: 32px; height: 32px; }

/* buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 16px; border: 0; font: 700 17px/1.2 var(--font); text-decoration: none; cursor: pointer; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: #171A3A; box-shadow: 0 2px 10px rgba(23,26,58,.12); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; border-radius: 12px; }
.btn .play { width: 26px; height: 26px; border-radius: 13px; background: var(--blue); display: grid; place-items: center; }
@media (prefers-reduced-motion: no-preference) { .btn { transition: transform .15s ease; } .btn:hover { transform: translateY(-1px); } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; background: rgba(255,255,255,.7); color: #171A3A; }

/* hero */
.hero { background: var(--sun); color: #171A3A; overflow: hidden; position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: #FFE58F; }
.hero::before { width: 520px; height: 520px; left: -200px; bottom: -260px; }
.hero::after { width: 420px; height: 420px; right: -120px; top: -160px; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 0; }
.hero .kicker { display: inline-flex; gap: 8px; align-items: center; background: #171A3A; color: #FFD34E; font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(44px, 7vw, 82px); margin-top: 18px; letter-spacing: -0.035em; }
.hero h1 span { color: var(--blue); display: block; }
.hero .lead { font-size: 19px; margin-top: 18px; max-width: 30em; color: #3A3D5C; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-bottom: 48px; }
.hero .phones { position: relative; height: 560px; align-self: end; }
.hero .phones img { position: absolute; width: 270px; filter: drop-shadow(0 24px 40px rgba(23,26,58,.22)); }
.hero .phones .p1 { left: 8%; bottom: -70px; transform: rotate(-6deg); }
.hero .phones .p2 { right: 4%; bottom: -120px; transform: rotate(5deg); }

/* sections */
section { scroll-margin-top: 72px; }
.band { padding: 72px 0; }
.sec-head { max-width: 40em; display: grid; gap: 12px; }
.sec-head .eyebrow { color: var(--blue); font-weight: 700; font-size: 15px; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 52px); }
.sec-head p { color: var(--muted); font-size: 18px; }

/* feature rows */
.features { display: grid; gap: 22px; margin-top: 36px; }
.feature { border-radius: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 40px 48px 0; overflow: hidden; }
.feature:nth-child(even) .copy { order: 2; }
.feature .copy { padding-bottom: 40px; display: grid; gap: 12px; align-self: center; }
.feature h3 { font-size: clamp(28px, 3.4vw, 40px); }
.feature p { color: var(--muted); font-size: 18px; max-width: 28em; }
.feature .tag { justify-self: start; font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.75); color: #171A3A; }
.feature .shot { align-self: end; justify-self: center; width: min(300px, 80%); margin-bottom: -60px; filter: drop-shadow(0 18px 34px rgba(23,26,58,.18)); }
.f-blue { background: var(--blue-soft); }
.f-sun { background: var(--sun-bg); }
.f-apricot { background: var(--apricot-bg); }
.f-plain { background: var(--page); }
.f-night { background: var(--night); color: #F4F1EC; }
.f-night h3 { color: #fff; }
.f-night p { color: #B0B3CC; }
.feature h3 em { font-style: normal; color: var(--blue); }
.f-sun h3 em { color: #C99200; }
.f-apricot h3 em { color: var(--apricot); }
.f-night h3 em { color: var(--sun); }

/* video */
.video-band { background: var(--blue); color: #fff; }
.video-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.video-band h2 { font-size: clamp(34px, 4.8vw, 56px); color: #fff; }
.video-band p { color: #D5DAFF; font-size: 18px; margin-top: 14px; max-width: 28em; }
.video-frame { justify-self: center; width: min(340px, 100%); aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden; background: #171A3A; box-shadow: 0 0 0 8px #171A3A, 0 30px 60px rgba(0,0,0,.35); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* straight answers */
.answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.answer { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.answer .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; }
.answer h3 { font-size: 22px; }
.answer p { color: var(--muted); font-size: 16px; }
.soon { margin-top: 16px; background: var(--sun-bg); border-radius: 24px; padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.soon b { display: inline-block; background: #171A3A; color: var(--sun); font-size: 12px; letter-spacing: .06em; border-radius: 999px; padding: 3px 10px; margin-bottom: 6px; }
.soon p { color: var(--muted); font-size: 16px; }

/* form */
.join-band { background: var(--page); }
.join { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
form { background: var(--card); border-radius: 28px; padding: 28px; display: grid; gap: 18px; box-shadow: 0 2px 6px rgba(23,26,58,.05), 0 18px 40px rgba(23,26,58,.06); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label, legend { font-weight: 700; font-size: 14px; }
.field { display: grid; gap: 6px; }
.hint { color: var(--muted); font-weight: 500; font-size: 13px; line-height: 1.5; }
input[type=text], input[type=email], input[type=tel], select { font: 500 16px var(--font); color: var(--ink); background: var(--sunk); border: 2px solid transparent; border-radius: 14px; padding: 12px 14px; width: 100%; }
input:focus, select:focus { border-color: var(--blue); outline: none; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.chips-in { display: flex; flex-wrap: wrap; gap: 8px; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-flex; min-width: 44px; height: 42px; align-items: center; justify-content: center; padding: 0 14px; border-radius: 14px; background: var(--sunk); font-weight: 700; font-size: 15px; cursor: pointer; font-variant-numeric: tabular-nums; }
.pick input:checked + span { background: var(--blue); color: #fff; }
.pick input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 500; font-size: 15px; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--blue); }
.status { font-weight: 700; font-size: 15px; }
.status.ok { color: var(--mint); }
.status.err { color: #C2410C; }
.done { display: grid; gap: 10px; }
.done h3 { font-size: 30px; }

/* faq */
.faq { margin-top: 24px; display: grid; gap: 10px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; }
summary { font-weight: 700; font-size: 18px; cursor: pointer; }
details p { color: var(--muted); margin-top: 8px; }

/* video dialog */
dialog.player { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
dialog.player::backdrop { background: rgba(10, 12, 30, .82); }
dialog.player .inner { position: relative; width: min(92vw, calc(88vh * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #000; }
dialog.player video { width: 100%; height: 100%; display: block; }
dialog.player .close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(255,255,255,.92); color: #171A3A; font-size: 22px; cursor: pointer; }

/* footer */
footer { border-top: 1px solid var(--line); }
footer .wrap { padding-top: 26px; padding-bottom: 40px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }

@media (max-width: 860px) {
  .hero .wrap, .feature, .video-band .wrap, .join { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-top: 32px; }
  .hero .chips { padding-bottom: 8px; }
  .hero .phones { height: 380px; }
  .hero .phones img { width: 190px; }
  .hero .phones .p1 { left: 6%; bottom: -60px; }
  .hero .phones .p2 { right: 6%; bottom: -100px; }
  .feature { padding: 28px 22px 0; border-radius: 26px; gap: 16px; }
  .feature:nth-child(even) .copy { order: 0; }
  .feature .copy { padding-bottom: 6px; }
  .feature .shot { width: min(250px, 78%); margin-bottom: -50px; }
  .answers { grid-template-columns: minmax(0, 1fr); }
  .band { padding: 52px 0; }
}
@media (max-width: 480px) { .two { grid-template-columns: minmax(0, 1fr); } form { padding: 20px; } .hero .ctas .btn { width: 100%; } }
