/* The landing page (landing.html). The brick phone: everything is built from toy building bricks, seen from the side.
   Each section is one big brick with its studs poking up into the one above, so the page is a stack you scroll down.
   The one bold idea is still the staircase, now built a brick taller at every step, and the hero is the home phone
   itself, built from bricks the way a kid would. The colors are the bricks of her phone's Brick style, on mint,
   and the letters are Fredoka, as on her phone. The brickling, a little yellow brick with a face (art/scenes.py), is the logo,
   and turns up beside the brick phone, at the foot of the cliff, on the first step, and at the end. The drawings (art/scenes.py) and the pixel gadgets (art/gadgets.py)
   are as they were. Plain studded bricks only: no toy maker's name, logo, or figures. */
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Patrick Hand"; src: url("fonts/patrick-hand.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #163838;
  --mint: #d3ebdd;
  --plate: #8dd4ae; /* the hero and the last sign-up: a deeper mint, so white bricks stand out on it */
  --butter: #fff1cf;
  /* The brick colors are the ones her phone's Brick style builds with (art/bricks.py) */
  --red: #d6262b;
  --yellow: #ffd21f;
  --blue: #1565c0;
  --pink: #f06fa4;
  --green: #2e9e4f;
  --white: #f6f6f2;
  --go: #1b7a3e; /* a darker green, where white words sit on it */
  --night: #16254a;
  --seam: rgba(22, 56, 56, 0.16);
  --soft: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 18px 28px -18px rgba(0, 0, 0, 0.55);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.125rem/1.6 "Fredoka", "Trebuchet MS", system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A brick from the side: a row of studs along the top, then the block. --c is its color, --u how far it is from one
   stud to the next (stretched a little so a whole number always fits), --s how tall the studs stand. The studs are
   painted in the box's own top edge, so each brick is one element and its top padding starts at --s. */
.btn, .when b, .trust li::before, .top-step, .faq, .join-box, .note::before, .bp-bar {
  background:
    linear-gradient(90deg, #0000 20%, var(--c) 20% 80%, #0000 80%) 0 0 / var(--u, 24px) var(--s, 8px) round no-repeat,
    linear-gradient(var(--c), var(--c)) 0 calc(var(--s, 8px) - 1px) / 100% 100% no-repeat;
}
/* The same, built from rows of bricks --k tall, with a line where each row sits on the one below */
.climb li, .climb:not(.cliff) li::before, .bp-body {
  background:
    linear-gradient(90deg, #0000 20%, var(--c) 20% 80%, #0000 80%) 0 0 / var(--u, 24px) var(--s, 8px) round no-repeat,
    repeating-linear-gradient(to top, #0000 0 calc(var(--k) - 2px), var(--seam) calc(var(--k) - 2px) var(--k)) 0 100% / 100% calc(100% - var(--s, 8px)) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 calc(var(--s, 8px) - 1px) / 100% 100% no-repeat;
}

/* The logo: the brickling (art/scenes.py), then the name in small letters (from config.js) */
.mark { display: inline-flex; align-items: flex-end; gap: 10px; font-size: 1.9rem; font-weight: 700; line-height: 1; letter-spacing: -0.01em;
  text-decoration: none; text-transform: lowercase; }
.mark img { width: auto; height: 1.55em; }
.mark span { padding-bottom: 0.14em; }
.mark.small { font-size: 1.4rem; }

/* Buttons: a red brick you press down until it clicks */
.btn { --c: var(--red); --u: 28px; --s: 8px; display: inline-flex; align-items: center; justify-content: center; min-height: 62px; padding: var(--s) 28px 0; border: 0; border-radius: 0 0 8px 8px; color: #fff;
  box-shadow: 0 5px 0 #9c1519; font-family: inherit; font-size: 1.125rem; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: translate 0.08s, box-shadow 0.08s; }
.btn:active { translate: 0 4px; box-shadow: 0 1px 0 #9c1519; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn.small { --u: 23px; --s: 6px; min-height: 46px; padding: var(--s) 16px 0; border-radius: 0 0 6px 6px; font-size: 1rem; box-shadow: 0 4px 0 #9c1519; }

/* Top bar: a white plate */
.top { position: sticky; top: 0; z-index: 10; background: #fff; box-shadow: 0 5px 0 var(--seam); }
.top-row { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.top-nav { display: flex; gap: 22px; margin-left: auto; font-weight: 500; }
.top-nav a, .signin { text-decoration: none; }
.top-nav a:hover, .signin:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.signin { padding-left: 22px; border-left: 2px solid rgba(22, 56, 56, 0.2); font-size: 1rem; }

/* Sections: each a big brick in its own color (--bg), its studs poking up into the section above */
.band, .foot { --bg: #fff; position: relative; background: var(--bg); }
.band { padding: 88px 0; }
.band::before, .foot::before { content: ""; position: absolute; inset: auto 0 100%; height: 14px;
  background: linear-gradient(90deg, #0000 20%, var(--bg) 20% 80%, #0000 80%) 50% 0 / 56px 100%; }
.band.soft { --bg: var(--butter); }
.band.sun { --bg: var(--yellow); }
.band.night { --bg: var(--night); color: #fff; } /* the picture's own dark, NIGHT in art/scenes.py */
.band.end { --bg: var(--plate); padding: 72px 0 80px; }
.band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.intro { margin-top: 14px; max-width: 26em; font-size: 1.4rem; line-height: 1.45; }

/* Hero: the words, and the brick phone standing on the studs of the section below */
.hero { padding: 56px 0 14px; overflow: hidden; background: var(--plate); }
.hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.hero-text { align-self: center; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); letter-spacing: -0.015em; line-height: 1.02; }
.hero h1 span { display: block; } /* the last two words on their own line */
.lede { margin-top: 22px; max-width: 24em; font-size: 1.4rem; line-height: 1.45; }
.end h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.end-grid { display: grid; grid-template-columns: 1fr minmax(0, 340px); align-items: end; gap: 40px; }

/* The brick phone: a white body twelve studs wide with a few odd bricks from the bottom of the bin, the screen set
   into it, the red handset jumping off the top on its cord, and the brickling watching. Everything is sized in studs
   (--u) and rows (--k), so it shrinks as one piece. Grandma's picture is filled in by landing.html. */
.brickphone { --u: clamp(18px, 2.55vw, 30px); --k: calc(var(--u) * 1.2); --s: calc(var(--u) * 0.3); position: relative; width: calc(var(--u) * 18); padding-top: calc(var(--k) * 3.4); }
.bp-body { --c: var(--white); position: relative; display: grid; grid-template-columns: repeat(12, var(--u)); grid-auto-rows: var(--k); width: calc(var(--u) * 12); margin-left: calc(var(--u) * 1.5); padding-top: var(--s); }
.bp-odd { background: var(--c); box-shadow: inset 0 0 0 1px var(--seam); }
.bp-odd:nth-of-type(1) { --c: var(--yellow); grid-area: 6 / 1 / 7 / 4; }
.bp-odd:nth-of-type(2) { --c: var(--blue); grid-area: 6 / 9 / 7 / 13; }
.bp-odd:nth-of-type(3) { --c: var(--pink); grid-area: 7 / 3 / 8 / 7; }
.bp-odd:nth-of-type(4) { --c: var(--green); grid-area: 7 / 11 / 8 / 13; }
.bp-screen { grid-area: 1 / 2 / 6 / 12; display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 0.55); margin: calc(var(--k) * 0.4) 0 calc(var(--k) * 0.3);
  border: calc(var(--u) * 0.14) solid #0b1430; border-radius: calc(var(--u) * 0.3); background: var(--night); color: #fff; font-size: calc(var(--u) * 0.52); line-height: 1; }
/* Her polaroid: a picture made of round studs, ten across */
.bp-face { display: grid; grid-template-columns: repeat(10, calc(var(--u) * 0.34)); padding: calc(var(--u) * 0.1); border: solid #fff; border-width: calc(var(--u) * 0.16) calc(var(--u) * 0.16) calc(var(--u) * 0.5); background: #4fa9dc; rotate: -3deg; }
.bp-face i { aspect-ratio: 1; border-radius: 50%; background: var(--c); scale: 0.88; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18); }
.bp-who { display: grid; gap: calc(var(--u) * 0.26); }
.bp-who b { margin-bottom: calc(var(--u) * 0.1); padding: 0.3em 0.6em; border-radius: 0.25em; background: var(--yellow); color: var(--ink); font-size: 1.3em; text-align: center; box-shadow: 0 0.14em 0 #c79d00; }
.bp-who span { padding: 0.5em 0.9em; border-radius: 0.4em; background: var(--go); font-weight: 600; text-align: center; }
.bp-who span + span { background: #45527a; }
.bp-handset { --c: var(--red); position: absolute; top: calc(var(--k) * 0.75); left: calc(var(--u) * 2.5); display: grid; grid-template-columns: repeat(10, var(--u)); rotate: 8deg; transform-origin: 90% 100%; }
.bp-bar { grid-column: 1 / -1; height: calc(var(--k) + var(--s)); }
.bp-cup { grid-column: 1 / 3; height: var(--k); border-radius: 0 0 calc(var(--u) * 0.25) calc(var(--u) * 0.25); background: var(--c); box-shadow: inset 0 2px 0 var(--seam); }
.bp-cup + .bp-cup { grid-column: 9 / 11; }
/* It's ringing: a mark either side of the handset, and a short rattle every few seconds */
.bp-handset::before, .bp-handset::after { content: ""; position: absolute; top: 5%; left: calc(var(--u) * -1); width: calc(var(--u) * 0.6); height: 60%; border-left: calc(var(--u) * 0.16) solid var(--ink); border-radius: 50%; }
.bp-handset::after { left: auto; right: calc(var(--u) * -1); scale: -1 1; }
@media (prefers-reduced-motion: no-preference) {
  .bp-handset { animation: ring 3.2s 0.6s infinite; }
  @keyframes ring { 0%, 24%, 100% { rotate: 8deg; } 4%, 12%, 20% { rotate: 11deg; } 8%, 16% { rotate: 5deg; } }
}
.bp-cord { position: absolute; top: calc(var(--k) * 2.1); left: calc(var(--u) * 0.5); width: calc(var(--u) * 3.5); height: auto; overflow: visible; }
.bp-mascot { position: absolute; right: 0; bottom: 0; width: calc(var(--u) * 3); scale: -1 1; } /* turned to face the phone */

/* The sign-up: a "Join the waitlist" button in the hero and at the end (and the top bar's) opens the form in a dialog.
   .join is both those buttons with their notes and the form itself, so an answer shows in all three. */
.join { display: flex; flex-wrap: wrap; gap: 14px 12px; max-width: 34em; margin-top: 28px; }
.join-box { --c: #fff; --u: 40px; --s: 12px; width: min(30em, 100% - 32px); padding: 0; border: 0; border-radius: 0 0 14px 14px; color: var(--ink); filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.3)); }
.join-box::backdrop { background: rgba(22, 56, 56, 0.55); }
html:has(.join-box[open]) { overflow: hidden; } /* the page stays put behind it */
.join-inner { position: relative; padding: 46px 28px 28px; }
.join-inner h2 { padding-right: 44px; font-size: 2rem; }
.join-inner > p { margin-top: 8px; }
.join-inner .join { margin-top: 22px; }
.join-inner input { min-width: 0; } /* two to a row (names, then email and kids) where they fit */
.join-inner .btn { flex: 1 1 100%; }
.join-close { position: absolute; top: 22px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: none; color: inherit; font-family: inherit; font-size: 2rem; line-height: 1; cursor: pointer; }
.join-close:hover { background: rgba(22, 56, 56, 0.08); }
.join input, .join select { flex: 1 1 12em; min-height: 54px; padding: 0 18px; border: 2px solid rgba(22, 56, 56, 0.35); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.join select { appearance: none; padding-right: 48px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23163838' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 18px center / 12px; }
.join select:invalid { color: #6b7f7f; } /* the "How many kids?" prompt reads like the other boxes' hints */
.join input:focus-visible, .join select:focus-visible { outline-offset: 2px; border-color: var(--ink); }
.join-note { flex-basis: 100%; font-size: 1rem; }
.join.done input, .join.done select, .join.done button { display: none; }
.join.done .join-note { padding: 14px 20px; border-radius: 8px; background: #fff; font-size: 1.125rem; font-weight: 600; }
.join.done .join-note::before { content: "✓ "; color: var(--go); }

/* Why steps: two staircases on the same ages, 4 to 21, standing on a green plate. Each step runs from its age to
   the next one's and is one row of bricks taller, with its gadget standing on the studs. The kid's is flat, then
   a sheer red wall at 11. --c is a step's color and --t the color of the words on it. */
.big { margin-top: 18px; max-width: 24em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 500; line-height: 1.3; }
.track-head { margin-top: 52px; font-size: 1.25rem; }
.climb { --k: 42px; position: relative; height: 362px; margin: 0; padding: 0; list-style: none; border-bottom: 8px solid var(--green); border-radius: 0 0 4px 4px; }
.climb li { --c: var(--yellow); --h: calc(var(--s, 8px) + (var(--n) + 1) * var(--k)); position: absolute; bottom: 0; left: calc((var(--from) - 4) / 17 * 100%); width: calc((var(--to) - var(--from)) / 17 * 100%);
  height: var(--h); padding: 16px 12px 10px; color: var(--t, var(--ink)); }
.climb li + li { border-left: 3px solid #fff; }
.soft .climb li + li { border-color: var(--butter); }
/* Their staircase with the phone (in The steps): each step is its stage's color, and the brickling is on the first */
.shell li:nth-child(1) { --c: var(--red); --t: #fff; }
.shell li:nth-child(2) { --c: var(--yellow); }
.shell li:nth-child(3) { --c: var(--blue); --t: #fff; }
.shell li:nth-child(4) { --c: var(--pink); }
.shell li:nth-child(5) { --c: var(--ink); --t: #fff; } /* not green: it would melt into the plate they stand on */
.shell a { text-underline-offset: 3px; }
.climb img { position: absolute; bottom: 100%; left: 8px; width: auto; max-width: calc(100% - 12px); height: auto; max-height: 96px; }
.climb.shell li:first-child img { left: auto; right: 4px; max-width: none; max-height: 72px; } /* the brickling, at the back of the step, eyes on the next */
.climb b { display: block; font-size: 1.7rem; line-height: 1; }
.climb span { display: block; margin-top: 4px; font-size: 0.875rem; line-height: 1.25; }
.cliff li { --c: var(--red); --t: #fff; }
.cliff b { font-size: 2.4rem; }
.cliff span { max-width: 26em; font-size: 1.05rem; font-weight: 500; }
/* Everything that arrives with it, tipped out in a pile on the wall */
.cliff .pile { display: flex; flex-wrap: wrap; gap: 8px; max-width: 34em; margin-top: 14px; }
.pile i { padding: 4px 12px; border-radius: 5px; background: #fff; color: var(--red); font-size: 0.95rem; font-style: normal; font-weight: 600; rotate: -2deg; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
.pile i:nth-child(even) { rotate: 2.5deg; }
.pile i:nth-child(3n) { rotate: -4deg; translate: 0 3px; }
.cliff .floor { border: 0; background: none; color: var(--ink); }
.cliff .floor span { position: absolute; bottom: 10px; font-size: 1rem; font-weight: 400; opacity: 0.7; }
.cliff .floor img { bottom: 0; left: auto; right: 8px; max-height: 84px; } /* the brickling, stuck at the foot of the cliff */
.outro { margin-top: 64px; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.12; text-wrap: balance; }
/* Narrower than this the words stop fitting inside your steps, so the staircases stay staircases, only smaller:
   each of your steps keeps its gadget and its age (counted out of --from) and the words go in a list underneath. */
@media (max-width: 1080px) {
  .climb { --k: 38px; height: 290px; }
  .climb li { --x: calc((var(--from) - 4) / 17 * 100%); --w: calc((var(--to) - var(--from)) / 17 * 100%); padding: 14px 10px 8px; }
  .climb img { max-height: 52px; }
  .climb:not(.cliff) { height: auto; padding-top: 290px; border: 0; }
  .climb:not(.cliff)::before { content: ""; position: absolute; top: 290px; left: 0; right: 0; border-top: 8px solid var(--green); border-radius: 0 0 4px 4px; }
  .climb:not(.cliff) li { position: static; display: flex; align-items: baseline; gap: 10px; width: auto; height: auto; margin-top: 10px; padding: 0;
    border: 0; background: none; color: inherit; }
  .climb:not(.cliff) li:first-child { margin-top: 20px; }
  .climb:not(.cliff) li::before { content: counter(age); counter-reset: age var(--from); position: absolute; top: calc(290px - var(--h)); left: var(--x);
    box-sizing: border-box; width: var(--w); height: var(--h); padding: 14px 0 0 7px; color: var(--t, var(--ink)); font-size: 1.1rem; font-weight: 700; line-height: 1; }
  .climb:not(.cliff) li + li::before { border-left: 3px solid #fff; }
  .soft .climb:not(.cliff) li + li::before { border-color: var(--butter); }
  .climb:not(.cliff) img { top: calc(290px - var(--h)); bottom: auto; left: calc(var(--x) + var(--w) / 2); max-width: calc(var(--w) - 8px); translate: -50% -100%; }
  .climb:not(.cliff) b { flex: 0 0 1.5em; font-size: 1.3rem; }
  .climb:not(.cliff) span { margin-top: 0; font-size: 1rem; }
  .climb.shell li:first-child img { left: calc(var(--x) + var(--w)); right: auto; max-height: 34px; translate: -100% -100%; } /* wider than its step here, so it hangs off the back */
  .climb.cliff { margin-top: 16px; }
  .cliff b { font-size: 1.7rem; }
  .cliff span { font-size: 0.875rem; }
  .cliff .pile { gap: 5px; margin-top: 8px; }
  .cliff .floor span { bottom: 92px; } /* above the brickling, who fills the floor here */
  .pile i { padding: 2px 8px; font-size: 0.8rem; }
}

/* The steps: each stage, a drawing of what changes, then what it is */
#stages { margin-top: 20px; }
.stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 28px 56px; padding: 56px 0; border-bottom: 3px solid var(--seam); }
.stage:nth-child(even) .unit { order: 2; }
.stage:nth-child(1) { --c: var(--red); --t: #fff; }
.stage:nth-child(2) { --c: var(--yellow); --t: var(--ink); }
.stage:nth-child(3) { --c: var(--blue); --t: #fff; }
.stage:nth-child(4) { --c: var(--pink); --t: var(--ink); }
/* Each stage's picture (art/scenes.py), as a tile with its stage's color showing underneath */
.unit { margin: 0; }
.unit img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 8px 0 var(--c); }
.when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 500; }
/* A number on a one-stud brick: the stages */
.when b { --u: 40px; --s: 7px; display: grid; place-items: center; flex: none; width: 40px; height: 45px; padding-top: var(--s); border-radius: 0 0 5px 5px; color: var(--t); font-size: 1.1rem; font-weight: 700; }
.when em { padding: 3px 12px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 2px var(--seam); font-size: 0.875rem; font-style: normal; font-weight: 600; }
.when em.now { background: var(--go); color: #fff; box-shadow: none; }
.stage h3 { margin-top: 16px; font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: 1.05; }
.line { margin-top: 14px; max-width: 26em; font-size: 1.25rem; line-height: 1.45; }
/* What's on the phone as little flat tiles, and what's left out on purpose as the gaps where a tile would go */
.tags { display: flex; flex-wrap: wrap; gap: 10px 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.tags li { padding: 4px 13px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 2px var(--c), 0 3px 0 var(--c); font-size: 1rem; font-weight: 500; line-height: 1.5; }
.left-out { margin-top: 20px; font-size: 0.9375rem; font-weight: 600; }
.tags.off { margin-top: 8px; }
.tags.off li { background: none; box-shadow: none; outline: 2px dashed rgba(22, 56, 56, 0.35); outline-offset: -2px; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.learn { margin-top: 22px; font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.had { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 1rem; font-style: italic; }
.had img { flex: none; width: 56px; height: 46px; object-fit: contain; object-position: left bottom; }

/* The top step: a phone of their own, on the last brick */
.top-step { --c: var(--mint); --u: 40px; --s: 12px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 28px; margin-top: 56px; padding: 44px 36px 32px; border-radius: 0 0 12px 12px; }
.top-step h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.top-step p { margin-top: 10px; max-width: 26em; font-size: 1.25rem; }
.top-step img { justify-self: center; height: 170px; width: auto; }

/* Bedtime: the nightstand with the lights out. You decide: the faces you've said OK to, then the promises. */
.night-grid, .say-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px; }
.say-grid { grid-template-columns: 1fr minmax(0, 460px); }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; margin: 56px 0 0; padding: 0; list-style: none; }
.trust li { position: relative; padding-left: 52px; }
.trust li::before { --c: var(--green); --u: 36px; --s: 6px; content: "✓"; position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 36px; height: 40px; padding-top: var(--s); border-radius: 0 0 5px 5px; color: #fff; font-weight: 700; }
.trust li.warn::before { --c: var(--yellow); content: "!"; color: var(--ink); }
.trust h3 { font-size: 1.25rem; }
.trust p { margin-top: 4px; }

/* The founder's note: a handwritten page, held on by a red brick */
.note { position: relative; max-width: 660px; margin: 0 auto; padding: 48px 52px 36px; background: #fffdf6; box-shadow: var(--soft); rotate: -1.2deg; }
.note::before { --c: var(--red); --u: 28px; --s: 8px; content: ""; position: absolute; top: -20px; left: 50%; width: 84px; height: 36px; border-radius: 0 0 5px 5px; translate: -50% 0; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.3)); }
.note h2 { font-size: 1.6rem; }
.note blockquote { margin: 18px 0 0; font: 1.5rem/1.4 "Patrick Hand", "Fredoka", sans-serif; }
.note blockquote p + p { margin-top: 14px; }
.note figcaption { margin-top: 22px; font: 1.5rem/1.4 "Patrick Hand", "Fredoka", sans-serif; text-align: right; }
.note figcaption::before { content: "– "; }

/* Questions: a stack of white bricks, and each one opens in place */
.faq { --c: #fff; --u: 44px; --s: 11px; max-width: 46em; margin-top: 36px; padding-top: var(--s); border-radius: 0 0 10px 10px; }
.faq details + details { border-top: 3px solid var(--butter); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 1.2rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; max-width: 40em; }

/* Footer: the bottom brick */
.foot { --bg: var(--ink); padding: 36px 0 44px; color: #fff; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot-row a { margin-left: auto; font-weight: 600; }

/* Tablets and phones */
@media (max-width: 980px) {
  .top-nav { display: none; }
  .signin { margin-left: auto; padding-left: 0; border: 0; }
  .stage { grid-template-columns: minmax(0, 1fr); padding: 44px 0; }
  .stage:nth-child(even) .unit { order: 0; }
  .unit { max-width: min(620px, 100%); }
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .top-row { gap: 14px; }
  .signin { display: none; }
  .top .btn.small { margin-left: auto; }
  .mark { font-size: 1.45rem; gap: 7px; }
  .end-grid img { max-width: 200px; }
  .hero { padding-top: 36px; }
  .hero-grid, .night-grid, .say-grid, .end-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-text { padding-bottom: 0; }
  .brickphone { --u: min(5vw, 30px); justify-self: center; }
  .lede, .intro { font-size: 1.25rem; }
  .band { padding: 60px 0; }
  .band::before, .foot::before { height: 10px; background-size: 40px 100%; }
  .join .btn { flex: 1 1 100%; }
  .top-step { grid-template-columns: 1fr; padding: 36px 24px 24px; }
  .note { padding: 44px 24px 28px; rotate: -0.6deg; }
  .note blockquote, .note figcaption { font-size: 1.3rem; }
  .top-step img { justify-self: start; height: 120px; }
  .trust { grid-template-columns: 1fr; }
  .foot-row a { margin-left: 0; }
}
