/* Trust pages in the Notebook theme (V2): loose-leaf in light, chalkboard in dark. Calm on purpose: nothing hops, bobs or
   wobbles here. Sections ease in once as they scroll into view, and reduced motion removes even that. Colours and faces
   come from tokens.css; light and dark change roles only, never a box. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { color: var(--ink); font-family: var(--hand); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 4px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.9em; letter-spacing: -0.01em; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 12px 18px; background: var(--slab) url("assets/art/card-stock-light.webp") center / cover; color: var(--on-slab); font-family: var(--press); font-weight: 800; text-decoration: none; }
:root[data-theme="dark"] .skip { background-image: url("assets/art/card-stock-dark.webp"); }
.skip:focus { top: 12px; }

/* ---------- the ground: the loose-leaf plates the picked pages use; the board stays put behind the page in dark ---------- */
body { background-color: var(--paper); background-image: url("assets/art/paper-wide-cap.webp"), url("assets/art/paper-wide-tile.webp"); background-size: var(--plate-w, 100%) auto, var(--plate-w, 100%) auto; background-repeat: no-repeat, repeat-y; background-position: 0 0, 0 var(--tile-y, 172px); }
:root[data-phone] body { background-image: url("assets/art/paper-real-cap.webp"), url("assets/art/paper-real-tile.webp"); }
.ground { position: fixed; inset: 0; z-index: -1; display: none; background: var(--paper) url("assets/art/chalk-wide.webp") left top / cover no-repeat; }
:root[data-phone] .ground { background-image: url("assets/art/chalk-real.webp"); }
:root[data-theme="dark"] body { background-image: none; }
:root[data-theme="dark"] .ground { display: block; }

:root { --gutter: clamp(26px, 6vw, 110px); --col: 1180px; --pitch: 40px; --sh-card: 0 6px 14px rgba(var(--sh-rgb), .16); }
.page, .top, .foot__in { width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.page { overflow-x: clip; padding-top: 6px; padding-bottom: 20px; }

/* ---------- top: the two switches on the left; Feedback & ideas and Log in on the right ---------- */
.top { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; row-gap: 10px; min-height: 76px; padding-top: 14px; }
.toggles { display: flex; gap: 22px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--press); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pencil); white-space: nowrap; }
.toggle:first-child { gap: 22px; }
.toggle__box { width: 40px; height: 22px; overflow: visible; }
.toggle__frame { fill: none; stroke: var(--pencil); stroke-width: 1.6; stroke-linecap: round; }
.toggle__dot { fill: var(--pencil); transition: transform .2s ease; }
.toggle[aria-checked="true"] .toggle__frame { stroke: var(--ink); }
.toggle[aria-checked="true"] .toggle__dot { fill: var(--ink); transform: translateX(18px); }
.toggle[aria-checked="true"] .toggle__word { color: var(--ink); }
.toggle__word > span { display: inline-block; min-width: 3.2ch; }
.top__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.ink-path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.slab { position: relative; display: inline-flex; align-items: center; min-height: 50px; background: var(--slab) url("assets/art/card-stock-light.webp") center / cover; color: var(--on-slab); text-decoration: none; box-shadow: var(--sh-card); transition: transform .18s ease, box-shadow .18s ease; }
:root[data-theme="dark"] .slab { background-image: url("assets/art/card-stock-dark.webp"); }
.slab-frame { position: absolute; left: 3px; top: 3px; width: calc(100% - 6px); height: calc(100% - 6px); pointer-events: none; color: var(--on-slab); opacity: .8; }
.slab-frame .ink-path { stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.slab > span:not(.sr) { position: relative; font-family: var(--press); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.feedback { padding: 0 20px; transform: rotate(-1deg); }
.slab:hover, .slab:focus-visible { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 9px 14px rgba(var(--sh-rgb), .2); }
.slab:hover > span:not(.sr) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* the orange marker: the page's one saturated colour and its one primary action. It holds still. */
.marker { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; font-family: var(--press); font-weight: 900; font-size: 18px; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--on-marker); transform: rotate(-1deg); transition: transform .18s ease; }
.marker__ink { position: absolute; inset: 0 -6px 0 -3px; z-index: -1; background: var(--marker); -webkit-mask: url("assets/art/marker-mask.webp") center / 100% 100% no-repeat; mask: url("assets/art/marker-mask.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 3px 0 color-mix(in srgb, var(--marker) 50%, #000)); }
.marker__label { position: relative; white-space: nowrap; }
.marker:hover, .marker:focus-visible { transform: translateY(-2px) rotate(-1deg); }
.marker:active { transform: rotate(-1deg) scale(.97); }
.login { min-height: 50px; padding: 0 24px; font-size: 14px; }

/* ---------- type ---------- */
.h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(60px, 8.4vw, 108px); line-height: .96; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(38px, 4.6vw, 58px); line-height: 1; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.h3 { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 24px; line-height: 1.15; }
.label { font-family: var(--press); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); }
.swipe { background: url("assets/art/highlighter.webp") 0 31% / 100% 190% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 6px; margin: 0 -6px; color: var(--on-card); }
.tape { position: absolute; top: 0; left: 40%; width: 96px; height: auto; aspect-ratio: 512 / 50; transform: translateY(-50%) rotate(-3deg); opacity: .92; pointer-events: none; z-index: 2; }
:root[data-theme="dark"] .tape { filter: brightness(.85); }

/* Words written straight on the loose-leaf rest on its ruled lines. page.js reads the rules from the plate and sets
   --pitch and a little top padding on each block so every line's baseline lands on one. */
.rl { text-wrap: pretty; margin: 0; font-size: clamp(17px, calc(var(--pitch) * .5), 25px); line-height: var(--pitch); font-weight: 500; }
.rl + .rl { margin-top: var(--pitch); }
.rl a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rl .swipe { color: var(--on-card); }
:root[data-theme="dark"] .rl .swipe { color: #191520; }

/* ---------- the mark ---------- */
.sticker { position: relative; display: block; width: 214px; aspect-ratio: 1.568; margin: 0 0 14px -6px; transform: rotate(-3deg); }
.sticker img { position: absolute; max-width: none; width: 118.3%; left: -9.47%; top: -50.8%; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 2px 3px rgba(20,16,38,.22)); }

/* ---------- paper: a torn note, an index card, a taped sheet ---------- */
.note { position: relative; isolation: isolate; padding: 40px 28px 28px; color: var(--on-card); }
.note::before { content: ""; position: absolute; inset: 0; z-index: -1; border-style: solid; border-width: 34px 8px 6px 8px; border-image: url("assets/art/note-flat.webp") 90 20 12 20 fill / 34px 8px 6px 8px stretch round; filter: drop-shadow(0 1px 1px rgba(var(--sh-rgb), .34)) drop-shadow(0 10px 18px rgba(var(--sh-rgb), .3)); }
.note p { margin: 8px 0 0; font-size: 17.5px; line-height: 1.45; }
.note p:first-child { margin-top: 0; }
.note a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.note .h3 { margin-bottom: 4px; }
.card { position: relative; padding: 26px 22px 22px; background: var(--card) url("assets/art/card-stock-light.webp") center / cover; color: var(--on-card); box-shadow: var(--sh-card); }
.card .h3 { margin-bottom: 8px; }
.card p { margin: 8px 0 0; font-size: 17px; line-height: 1.45; }
.card p:first-of-type { margin-top: 0; }
.drawn { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* one pencil line across the sheet above every block */
.block { position: relative; margin-top: 64px; padding-top: 38px; }
.block::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 10px; background: var(--pencil); opacity: .55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5.6C90 3 190 8.2 330 4.4S560 2.4 700 6.6S900 3.2 998 5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5.6C90 3 190 8.2 330 4.4S560 2.4 700 6.6S900 3.2 998 5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
:root[data-theme="dark"] .block::before { opacity: .85; }
.block__head { max-width: 780px; margin-bottom: 26px; }
.block__head .rl { margin-top: 14px; }

/* a figure stands on the paper, feet on a soft contact shadow; it holds still */
.stand { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; }
.stand img { height: auto; width: 100%; filter: drop-shadow(0 6px 5px rgba(var(--sh-rgb), .22)); }
.stand__shadow { width: 76%; height: 14px; margin-top: -10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--sh-rgb), .34), rgba(var(--sh-rgb), 0)); }
.sticker-art { filter: drop-shadow(0 5px 5px rgba(var(--sh-rgb), .26)); pointer-events: none; }

.paper { position: relative; padding: 34px 28px 26px; background: var(--card) url("assets/art/card-stock-light.webp") center / cover; color: var(--on-card); box-shadow: var(--sh-card); }
.paper .tape { left: 12%; }

/* a hand-drawn tick and a small pen stamp */
.tick { position: relative; display: inline-block; flex: none; width: 24px; height: 24px; border: 2.2px solid currentColor; transform: rotate(-3deg) skewX(-2deg); }
.tick svg { position: absolute; left: -3px; top: -9px; width: 32px; height: 32px; overflow: visible; }
.tick path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the footer: the live site's four groups, on a torn sheet of card ---------- */
.foot { position: relative; isolation: isolate; margin-top: 40px; padding: 96px 0 40px; }
.foot::before { content: ""; position: absolute; z-index: -1; inset: 0; border-image: url("assets/art/foot-sheet.webp") 110 0 0 0 fill / 70px 0 0 0 stretch; filter: drop-shadow(0 -1px 3px rgba(var(--sh-rgb), .16)); }
:root[data-theme="dark"] .foot::before { display: none; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 34px 30px; }
.foot__h { margin: 0 0 14px; font-family: var(--press); font-weight: 800; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot__col--social ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-family: var(--hand); font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.foot a:hover, .foot a:focus-visible { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.foot__langs, .foot__end { position: relative; margin-top: 38px; padding-top: 30px; }
.foot__langs::before, .foot__end::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 10px; background: var(--pencil); opacity: .55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5.6C90 3 190 8.2 330 4.4S560 2.4 700 6.6S900 3.2 998 5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5.6C90 3 190 8.2 330 4.4S560 2.4 700 6.6S900 3.2 998 5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.foot__lang-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 14px; }
.foot__lang-row li { font-family: var(--hand); font-weight: 700; font-size: 16px; color: var(--ink); }
.foot__lang-row li[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.foot__end { display: flex; align-items: center; gap: 26px; }
.foot__line { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 16px; color: var(--ink); }

/* ---------- one calm ease-in as a part scrolls into view; nothing else moves ---------- */
.js .pop { opacity: 0; translate: 0 12px; }
.js .pop.in { opacity: 1; translate: none; transition: opacity .5s ease-out var(--d, 0s), translate .5s ease-out var(--d, 0s); }
.js.measuring .pop { translate: none; transition: none; }

@media (max-width: 999px) {
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__col--social { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  :root { --gutter: 22px; }
  .top { padding-top: 10px; }
  .toggles { flex-direction: column; gap: 0; }
  .toggle:first-child { gap: 10px; }
  .toggle { gap: 10px; }
  .feedback { padding: 0 12px; }
  .slab > span:not(.sr), .login { font-size: 12px; }
  .top__right { gap: 8px; }
  .login { padding: 0 14px; }
  .foot__end { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sticker { width: 170px; }
}
@media (max-width: 380px) { .feedback { padding: 0 8px; } .top__right .marker { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .pop { opacity: 1; translate: none; }
}

/* ======================= Your privacy choices ======================= */
.hero { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr) minmax(0, 330px); gap: 0 38px; align-items: end; padding-top: 18px; }
.hero__words { align-self: start; padding-top: 10px; }
.hero__words .h1 { margin-bottom: 14px; font-size: clamp(60px, 6.6vw, 98px); }
.hero__cast { margin: 0 0 -6px; }
.receipt-wrap { position: relative; margin: 0; align-self: start; padding: 22px 0 150px; }
.receipt { position: relative; padding: 36px 26px 44px; background: var(--card) url("assets/art/card-stock-light.webp") center / cover; color: var(--on-card); box-shadow: var(--sh-card); transform: rotate(1.2deg); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 96% 100%, 92% calc(100% - 12px), 88% 100%, 84% calc(100% - 12px), 80% 100%, 76% calc(100% - 12px), 72% 100%, 68% calc(100% - 12px), 64% 100%, 60% calc(100% - 12px), 56% 100%, 52% calc(100% - 12px), 48% 100%, 44% calc(100% - 12px), 40% 100%, 36% calc(100% - 12px), 32% 100%, 28% calc(100% - 12px), 24% 100%, 20% calc(100% - 12px), 16% 100%, 12% calc(100% - 12px), 8% 100%, 4% calc(100% - 12px), 0 100%); }
.receipt .tape { left: 38%; top: 6px; }
.receipt__kicker { margin: 0; font-family: var(--press); font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-card-dim); }
.receipt__t { margin: 4px 0 14px; font-family: var(--hand); font-weight: 700; font-size: 28px; line-height: 1.1; }
.receipt__lines { margin: 0; padding: 12px 0; border-top: 2px dashed color-mix(in srgb, #191520 45%, transparent); border-bottom: 2px dashed color-mix(in srgb, #191520 45%, transparent); display: grid; gap: 10px; }
.receipt__lines > div { display: flex; align-items: baseline; gap: 8px; }
.receipt__lines dt { font-size: 17px; font-weight: 600; white-space: nowrap; }
.receipt__lines dt::after { content: ""; }
.receipt__lines > div::before { content: ""; order: 1; flex: 1; min-width: 14px; border-bottom: 2px dotted color-mix(in srgb, #191520 55%, transparent); transform: translateY(-4px); }
.receipt__lines dt { order: 0; }
.receipt__lines dd { order: 2; margin: 0; font-size: 17px; font-weight: 700; }
.receipt__word { font-family: var(--hand); }
.receipt__why { margin: 14px 0 0; font-size: 16px; line-height: 1.45; }
.receipt__pocket { position: absolute; right: -18px; bottom: 0; width: 150px; transform: rotate(6deg); }

/* ---------- in the app ---------- */
.app { margin-top: 36px; }
.app__head { position: relative; max-width: none; min-height: 110px; }
.app__phone { position: absolute; right: 8%; top: -34px; width: 140px; transform: rotate(5deg); }
.ruler { margin: 0 0 40px; padding: 40px 34px 30px; }
.ruler__bar { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); border-bottom: 3px solid #191520; }
.ruler .n { position: relative; display: flex; justify-content: flex-start; align-items: flex-end; min-height: 58px; padding: 0 0 8px 8px; border-left: 2.2px solid #191520; font-size: 18px; }
.ruler .n .num { font-size: 18px; }
.ruler .n:last-child { border-right: 2.2px solid #191520; }
.ruler .n::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 14px; background: #191520; opacity: .6; }
.ruler .n--mark { min-height: 88px; font-weight: 700; }
.ruler .n--mark .num { font-size: 26px; font-weight: 600; }
.ruler .n--mark::before { content: ""; position: absolute; left: -2px; right: 0; bottom: 0; top: 0; background: url("assets/art/highlighter.webp") center bottom 6px / 100% 36px no-repeat; z-index: -1; }
.ruler .n--mark { isolation: isolate; }
.ruler__rows { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.ruler__rows li { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); row-gap: 6px; }
.ruler__line { grid-column: var(--from) / span var(--n); grid-row: 1; height: 12px; border-left: 2.2px solid #191520; border-right: 2.2px solid #191520; position: relative; }
.ruler__line::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2.4px solid #191520; }
.ruler__rows li.no .ruler__line::after { border-top-style: dashed; opacity: .75; }
.ruler__said { grid-column: var(--from) / -1; grid-row: 2; font-size: 19px; line-height: 1.3; font-weight: 600; }
.ruler__rows li.yes .ruler__said { font-weight: 700; }
.app__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; align-items: start; }
.app__grid .note p + p { margin-top: 12px; }
.sentry { margin-top: 44px; max-width: 880px; }
.sentry p { margin: 10px 0 0; font-size: 18px; line-height: 1.5; }
.sentry .h3 { margin-bottom: 2px; }

/* ---------- ask ---------- */
.ask__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 52px; align-items: start; }
.ask__grid .h2 { margin-bottom: 22px; }
.ask__note .ask__h { margin-top: 18px; }
.ask__note .marker { margin-top: 22px; }

@media (max-width: 1099px) {
  .hero { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px 30px; }
  .receipt-wrap { grid-column: 1 / -1; justify-self: center; width: min(100%, 360px); }
  .hero__cast { grid-row: 1; align-self: end; }
  .hero__words { grid-row: 1; grid-column: 2; }
  .hero__words .h1 { font-size: clamp(54px, 9vw, 92px); }
}
@media (max-width: 999px) {
  .app__grid { grid-template-columns: 1fr; gap: 40px; max-width: 640px; }
  .ask__grid { grid-template-columns: 1fr; gap: 36px; }
  .app__head { min-height: 96px; }
  .app__phone { right: 0; width: 110px; top: -22px; }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; }
  .hero__words { grid-column: 1; grid-row: 1; }
  .hero__cast { grid-row: 2; justify-self: start; width: min(60%, 230px); margin-left: 8px; }
  .receipt-wrap { grid-row: 3; padding-bottom: 130px; }
  .receipt__pocket { width: 130px; right: -6px; }
  .app__phone { display: none; }
  .block { margin-top: 52px; }
  .ruler { padding: 34px 16px 24px; }
  .ruler .n { justify-content: center; padding: 0 0 6px; min-height: 44px; }
  .ruler .n .num { font-size: 13px; }
  .ruler .n::after { display: none; }
  .ruler .n--mark { min-height: 64px; }
  .ruler .n--mark .num { font-size: 19px; }
  .ruler__said { font-size: 17px; }
}
