/* Bascule marketing site. Brand register: Besley display, Hanken Grotesk body. */

@font-face { font-family: "Besley"; src: url("../fonts/Besley.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Besley"; src: url("../fonts/Besley-SemiBoldItalic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/HankenGrotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/Caveat.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --spruce: #183A30;
  --spruce-700: #10281F;
  --spruce-800: #0C2119;
  --plum: #5B2346;
  --marigold: #E8A317;
  --clay: #A8462A;
  --paper: #FBF4E4;
  --card: #FFFCF5;
  --ink: #1A2A24;
  --stone: #5C6A5F;
  --line: #E5D9BF;
  /* Card edge (Nov 12): a step darker than Line, so bordered cards hold their shape on a quick scroll. Still 1px, still no shadow. */
  --card-edge: #D7C6A1;
  --spruce-tint: #E3EBE5;
  --on-dark: #FBF4E4;
  --on-dark-2: #DCE5DF;
  --error: #A8382A;
  --serif: "Besley", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 32px;
  --section: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--spruce); }
a:hover { color: var(--spruce-700); }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
[id] { scroll-margin-top: 24px; }

:focus-visible { outline: 2px solid var(--spruce); outline-offset: 2px; }
.dark :focus-visible { outline-color: var(--on-dark); }

.skip { position: absolute; left: 16px; top: -60px; padding: 10px 14px; background: var(--card); color: var(--ink); border-radius: 8px; z-index: 10; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: 1264px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.dark { background: var(--spruce); color: var(--on-dark); }
/* Texture (brand rule, Nov 11): a barely-there film grain on the dark fields (every pixel lifts or dips a little, light and dark, at about 1-2.5%),
   and a deeper spruce tone on the big ones. Two 400px tiles drawn at 2x; random grain, so the repeat doesn't show. Paper stays clean. */
.dark, .panel-plum, .site-footer { background-image: url("../img/grain-light.png"), url("../img/grain-dark.png"); background-size: 400px, 400px; }
.hero.dark, .join.dark, .insights.dark { background-image: url("../img/grain-light.png"), url("../img/grain-dark.png"), linear-gradient(180deg, var(--spruce-800) 0%, var(--spruce-700) 30%, var(--spruce) 90%); background-size: 400px, 400px, auto; }
.join .wrap { position: relative; }
/* Signup drawing (brand rule, Nov 7): one coach's-whiteboard line climbing toward the form. Desktop only; it counts as this screen's drawn moment. */
.join-line { position: absolute; left: var(--gutter); top: 300px; width: min(560px, calc(50% - var(--gutter))); height: auto; aspect-ratio: 560 / 300; color: var(--on-dark); opacity: 0.85; pointer-events: none; }
@media (max-width: 900px) { .join-line { display: none; } }

/* Type */
.h2 { font-family: var(--serif); font-weight: 800; font-size: 48px; line-height: 1.06; letter-spacing: -0.02em; color: var(--spruce); }
.dark .h2, .panel-plum .h2 { color: var(--on-dark); }
.soft { font-family: var(--serif); font-style: italic; font-weight: 600; }
.break { display: block; }
.lede { font-size: 19px; line-height: 1.55; }
.muted { color: var(--stone); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 10px; font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; border: 0; transition: background-color 180ms cubic-bezier(.2,.7,.2,1), color 180ms; }
/* Marigold appears once per layout: in the hero it's the underline, so the main button is cream. */
.btn-cream { background: var(--on-dark); color: var(--spruce); font-weight: 700; }
.btn-cream:hover { background: #FFFFFF; color: var(--spruce); }
.btn-outline { border: 1.5px solid var(--on-dark); color: var(--on-dark); background: transparent; }
.btn-outline:hover { background: rgba(251, 244, 228, 0.12); color: var(--on-dark); }
.btn-small { height: 44px; padding: 0 18px; font-size: 15px; }
.btn-spruce { width: 100%; background: var(--spruce); color: var(--on-dark); font-weight: 700; }
.btn-spruce:hover { background: var(--spruce-700); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
/* Floating header (Casey, Nov 11): a sticky pill that floats 12px below the top over the hero and the cream sections.
   Geometry: 12px inset around the 44px button, so the pill is 68px tall and its 22px radius = the button's 10px + 12px (concentric).
   The pill sits 12px outside the content edges, so the button lines up with the page's right edge.
   States: over the hero it's translucent spruce with a 1px light edge; once scrolled it gets a layered shadow;
   past the hero (is-light) it turns frosted Paper with a 1px ink edge and soft shadow, and the button turns solid spruce. */
.site-header { position: sticky; top: 0; z-index: 20; padding: 12px 0; background: transparent; background-image: none; pointer-events: none; }
.site-header .wrap { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 68px; width: calc(100% - 2 * var(--gutter) + 24px); max-width: calc(1264px - 2 * var(--gutter) + 24px); padding: 0 12px 0 20px; border-radius: 22px;
  background-color: rgba(16, 40, 31, 0.80); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(251, 244, 228, 0.12), inset 0 1px 0 rgba(251, 244, 228, 0.06);
  transition: background-color 240ms cubic-bezier(.2,.7,.2,1), box-shadow 240ms cubic-bezier(.2,.7,.2,1); }
.site-header.is-scrolled .wrap { background-color: rgba(16, 40, 31, 0.90);
  box-shadow: inset 0 0 0 1px rgba(251, 244, 228, 0.12), inset 0 1px 0 rgba(251, 244, 228, 0.06),
    0 1px 2px rgba(6, 16, 12, 0.20), 0 6px 14px -4px rgba(6, 16, 12, 0.24), 0 18px 36px -12px rgba(6, 16, 12, 0.32); }
.site-header.is-light .wrap { background-color: rgba(251, 244, 228, 0.94);
  box-shadow: inset 0 0 0 1px rgba(31, 30, 28, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 2px rgba(26, 42, 36, 0.06), 0 6px 14px -4px rgba(26, 42, 36, 0.08), 0 18px 36px -12px rgba(26, 42, 36, 0.14); }
.site-header .brand, .site-header .brand rect, .site-header .btn-outline { transition: color 240ms, fill 240ms, background-color 240ms, border-color 240ms; }
.site-header.is-light { color: var(--ink); }
.site-header.is-light .brand, .site-header.is-light .brand:hover { color: var(--spruce); }
.site-header.is-light .brand rect:not(:last-child) { fill: var(--spruce); }
.site-header.is-light .btn-outline { background: var(--spruce); border-color: var(--spruce); color: var(--on-dark); }
.site-header.is-light .btn-outline:hover { background: var(--spruce-700); }
/* The hero runs up under the floating header (12 + 68 + 12 = 92px). */
.hero { margin-top: -92px; padding-top: 92px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; }
.brand:hover { color: var(--on-dark); }
.brand svg { width: 30px; height: 30px; flex: none; }
.wordmark { font-family: var(--serif); font-weight: 800; font-size: 26px; letter-spacing: -0.025em; line-height: 1; }
.nav { display: flex; gap: 28px; font-size: 16px; font-weight: 500; }
.nav a { color: var(--on-dark); text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; color: var(--on-dark); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 16px; font-weight: 500; color: var(--on-dark-2); }
.h1 { font-family: var(--serif); font-weight: 800; font-size: 68px; line-height: 1.02; letter-spacing: -0.025em; }
.underlined { position: relative; display: inline-block; }
.underlined svg { position: absolute; left: 0; bottom: -18px; width: 100%; height: 22px; color: var(--marigold); }
.hero .lede { font-size: 20px; line-height: 1.5; color: var(--on-dark-2); max-width: 500px; margin-top: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 15px; color: var(--on-dark-2); }
.hero-photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 20px; }

/* Shared layouts */
.stack { display: flex; flex-direction: column; gap: 40px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.split-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }

/* Hairline inset border so cards read on paper; matches app cards. */
.card { background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card-sm { padding: 28px; gap: 10px; }
.card .kicker { font-size: 15px; color: var(--stone); }
.card-title { font-family: var(--serif); font-weight: 800; font-size: 26px; line-height: 1.15; color: var(--spruce); }
.card-title-sans { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--spruce); }
.card p { font-size: 17px; }
.card-sm p { font-size: 16px; color: var(--stone); }

.screen { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.screen-figure { margin: 0; }
.screen-figure figcaption { margin-top: 10px; text-align: right; font-size: 14px; color: var(--stone); }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.points > div { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 20px; }
.points h3 { font-size: 19px; font-weight: 700; color: var(--spruce); line-height: 1.3; }
.points p { font-size: 16px; color: var(--stone); }

.divider { height: 10px; }
.divider svg { width: 100%; height: 10px; display: block; }

/* Registration */
.band-card { background: var(--card); }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: 40px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.phones figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.phones img { border-radius: 28px; border: 8px solid var(--ink); }
.phones figcaption { font-size: 16px; line-height: 1.45; }
.phones b { font-weight: 700; color: var(--spruce); }
/* Registration flow: numbered steps joined by a line, so the three screens read as one process */
.phones li { position: relative; }
.phones figcaption { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.flow-num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--spruce); color: var(--on-dark); font-size: 15px; font-weight: 700; line-height: 1; }
/* Joins each step number to the next one, centered over the phones (the gap between phones is 40px) */
.phones > li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 22px); right: calc(-50% - 18px); height: 2px; background: var(--spruce); opacity: 0.35; }
.flow-steps, .flow-nav { display: none; }
.flow-steps button:focus-visible, .flow-next:focus-visible { outline: 2px solid var(--spruce); outline-offset: 4px; }
.note { margin-top: -16px; text-align: center; font-family: "Caveat", cursive; font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--plum); }
/* "no app download needed": a margin note under the phones, with a hand-drawn arrow pointing up at them */
.app-note { margin: 14px 0 0; display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.note-arrow { width: 38px; height: 38px; flex: none; transform: translateY(-10px); }

/* Billing */
.list-panel { margin: 0; padding: 8px 32px; list-style: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); border-radius: 16px; }
.list-panel li { display: flex; flex-direction: column; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.list-panel li:last-child { border-bottom: 0; }
.list-panel b { font-size: 18px; font-weight: 700; color: var(--spruce); }
.list-panel span { font-size: 16px; line-height: 1.5; color: var(--stone); }

/* Skills */
.band-tint { background: var(--spruce-tint); }
.skills { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.skills .screen { border-color: #C9D6CD; }
.skills-text { display: flex; flex-direction: column; gap: 20px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.checks li { display: flex; gap: 12px; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--spruce); }

/* Studio leads */
.panel-plum { background-color: var(--plum); color: var(--on-dark); border-radius: 20px; padding: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.panel-plum .h2 { font-size: 44px; line-height: 1.08; }
.panel-plum .lede { color: #F1E6EC; }
.panel-plum :focus-visible { outline-color: var(--on-dark); }
.panel-text { display: flex; flex-direction: column; gap: 20px; }
.powered { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #F1E6EC; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--on-dark); }
.powered svg { width: 16px; height: 16px; }
.powered .wordmark { font-size: 16px; letter-spacing: -0.02em; }
.panel-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }

/* Pricing */
.price { font-family: var(--serif); font-weight: 800; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; color: var(--spruce); }
.card .label { font-size: 15px; font-weight: 600; color: var(--stone); }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; padding-top: var(--section); }
.founder .h2 { font-size: 40px; line-height: 1.1; }
.founder-text { display: flex; flex-direction: column; gap: 16px; }
.founder-text p { font-size: 19px; line-height: 1.6; }
.founder-text a { text-underline-offset: 3px; }
/* Founder photo under the headline (Casey, Nov 12), so the face comes before the story, on phones too. */
.founder-head { display: flex; flex-direction: column; gap: 28px; }
.signature { display: flex; align-items: center; gap: 16px; }
.signature img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.signature p { display: flex; flex-direction: column; font-size: 17px; line-height: 1.35; margin: 0; }
.signature b { font-weight: 600; color: var(--ink); }
.signature span { color: var(--stone); font-size: 15px; }

/* Join form */
.join .lede { color: var(--on-dark-2); }
.form-card { background: var(--card); color: var(--ink); border-radius: 16px; padding: 32px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select { height: 44px; padding: 0 12px; border: 1px solid #CDBB94; border-radius: 8px; font: inherit; font-size: 16px; color: var(--ink); background: #FFFFFF; width: 100%; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--spruce); outline-offset: 0; box-shadow: 0 0 0 4px var(--spruce-tint); }
.field [aria-invalid="true"] { border-color: var(--error); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--spruce); }
.error { font-size: 14px; color: var(--error); font-weight: 500; }
.error:empty { display: none; }
.form-fine { font-size: 14px; color: var(--stone); }
.form-status { font-size: 15px; color: var(--error); font-weight: 500; }
.form-status:empty { display: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { display: flex; flex-direction: column; gap: 8px; }
.thanks h3 { font-family: var(--serif); font-weight: 800; font-size: 28px; line-height: 1.15; color: var(--spruce); }
.thanks:focus { outline: none; }

/* Footer */
.site-footer { background-color: var(--spruce-700); color: var(--on-dark); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand svg { width: 28px; height: 28px; }
.footer-brand .wordmark { font-size: 24px; }
.footer-brand span { font-size: 15px; color: var(--on-dark-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; align-items: center; }
.footer-nav a { color: var(--on-dark-2); text-decoration: none; padding: 6px 0; }
.footer-nav a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
/* Bottom row: the privacy link sits with the fine print, apart from the section links */
.footer-bottom { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 12px 32px; padding-top: 24px; border-top: 1px solid #2E4A40; }
.footer-bottom a { flex: none; font-size: 15px; color: var(--on-dark-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-note { margin: 0; font-size: 14px; line-height: 1.55; color: #B9C8BF; }
.site-footer :focus-visible { outline-color: var(--on-dark); }

/* Privacy */
.doc { max-width: 720px; margin: 0 auto; padding: 88px var(--gutter) 104px; }
.doc h1 { font-family: var(--serif); font-weight: 800; font-size: 48px; line-height: 1.06; letter-spacing: -0.02em; color: var(--spruce); }
.doc .updated { margin-top: 12px; color: var(--stone); font-size: 15px; }
.doc h2 { margin-top: 40px; font-size: 20px; font-weight: 700; color: var(--spruce); }
.doc p { margin-top: 10px; font-size: 17px; line-height: 1.6; }

/* Entrance: a quiet lift and fade, only when JS runs and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 200ms cubic-bezier(.2,.7,.2,1), transform 200ms cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  :root { --section: 72px; }
  .hero .wrap, .split-head, .grid-3, .two-col, .skills, .panel-plum, .founder, .points { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { gap: 40px; padding-top: 32px; padding-bottom: 72px; }
  .split-head { gap: 16px; }
  .skills-text { order: -1; }
  /* Phones: a sideways swipe row with the next screen peeking in, instead of a tall stack */
  /* Phones: one screen at a time, stepped through with the numbered steps or the Next button (or a swipe) */
  .phones-scroll { --pw: min(70vw, 280px); position: relative; margin: 0 calc(-1 * var(--gutter)); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .phones-scroll::-webkit-scrollbar { display: none; }
  .phones-scroll:focus-visible { outline-offset: -2px; }
  .phones { display: flex; gap: 16px; justify-content: flex-start; padding: 0 calc((100vw - var(--pw)) / 2) 4px; width: max-content; }
  .phones li { flex: 0 0 auto; width: var(--pw); scroll-snap-align: center; }
  .phones > li::after, .phones .flow-num { display: none; }
  .phones figcaption b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .phones figcaption { min-height: 46px; text-align: center; }
  .phones > li:not(.is-current) figcaption { visibility: hidden; }
  .phones img { border-width: 6px; border-radius: 24px; }
  .flow-steps { display: flex; margin: 0 auto 20px; padding: 0; list-style: none; max-width: 420px; }
  .flow-steps li { flex: 1; position: relative; display: flex; justify-content: center; }
  .flow-steps li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; background: var(--line); transition: background-color 180ms; }
  .flow-steps li.is-done::after { background: var(--spruce); }
  .flow-steps button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 4px; min-height: 44px; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--stone); text-align: center; cursor: pointer; }
  .flow-steps li:not(.is-done):not(.is-current) .flow-num { background: var(--card); color: var(--stone); box-shadow: inset 0 0 0 2px #CDBB94; }
  .flow-steps li.is-current button { color: var(--spruce); }
  .flow-nav { display: flex; justify-content: center; margin-top: 20px; }
  .flow-next { height: 44px; padding: 0 18px; border: 1.5px solid var(--spruce); border-radius: 10px; background: transparent; color: var(--spruce); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
  .flow-next:hover { background: var(--spruce-tint); }
  /* Back-office cards: a compact checklist on narrow screens instead of six stacked cards */
  .grid-3.rest-list { gap: 0; }
  .rest-list > .card { background: none; box-shadow: none; border-radius: 0; padding: 16px 0 16px 34px; gap: 4px; border-top: 1px solid var(--line); position: relative; }
  .rest-list > .card:last-child { border-bottom: 1px solid var(--line); }
  .rest-list > .card::before { content: ""; position: absolute; left: 0; top: 18px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183A30' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain; }
  .rest-list .card-title-sans { font-size: 18px; }
  .rest-list > .card p { font-size: 15px; }
  .founder { gap: 20px; }
  .panel-plum { padding: 40px 32px; }
}
@media (max-width: 720px) {
  .footer-nav { display: grid; grid-template-columns: repeat(3, max-content); gap: 2px 32px; }
  html { scroll-padding-top: 76px; }
  /* Phones: 8px inset around the button, 60px pill, 18px radius = 10px + 8px. */
  .site-header { padding: 8px 0; }
  .site-header .wrap { height: 60px; width: calc(100% - 2 * var(--gutter) + 16px); padding: 0 8px 0 16px; border-radius: 18px; }
  .hero { margin-top: -76px; padding-top: 76px; }
  :root { --gutter: 20px; }
  .nav { display: none; }
  .h1 { font-size: 44px; }
  .break-sm { display: block; }
  .h2, .panel-plum .h2, .founder .h2 { font-size: 34px; }
  .doc h1 { font-size: 40px; }
  .panel-plum { padding: 32px 24px; }
  .list-panel { padding: 4px 24px; }
  .card, .form-card { padding: 24px; }
  .wordmark { font-size: 24px; }
}
@media (max-width: 380px) {
  .site-header .btn-small { padding: 0 12px; font-size: 14px; }
}

/* Brand marks (Nov 7): one drawn moment per screen, each pointing at something real */
.list-panel .hand-note { display: flex; align-items: flex-end; gap: 4px; margin-top: 2px; font-family: "Caveat", cursive; font-weight: 600; font-size: 24px; line-height: 1; color: var(--plum); }
.list-panel .hand-note svg { width: 30px; height: 24px; flex: none; transform: translateY(-6px); }
.highlight { background: linear-gradient(transparent 58%, rgba(232, 163, 23, 0.38) 58%, rgba(232, 163, 23, 0.38) 92%, transparent 92%); white-space: nowrap; padding: 0 2px; }
.stack-hop .tip { transform-origin: 48px 36px; transform: rotate(-12deg); }

/* Brand motion (guide 05): draw on, hop and land. Only when motion is welcome; otherwise everything shows in its final state. */
@keyframes kw-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes kw-hop { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes kw-tip { 0% { transform: translateY(-30px) rotate(0); opacity: 0; } 40% { transform: translateY(0) rotate(0); opacity: 1; } 70% { transform: rotate(-17deg); } 100% { transform: rotate(-12deg); opacity: 1; } }
@keyframes kw-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: no-preference) {
  .underlined path { stroke-dasharray: 1; animation: kw-draw 600ms cubic-bezier(.65, 0, .35, 1) 350ms both; }
  .underlined path + path { animation-delay: 520ms; }
  .stack-hop rect { animation: kw-hop 400ms cubic-bezier(.34, 1.4, .64, 1) both; }
  .stack-hop rect:nth-child(2) { animation-delay: 120ms; }
  .stack-hop .tip { animation: kw-tip 1s cubic-bezier(.34, 1.4, .64, 1) 240ms both; }
  .js .reveal .draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .reveal.in .draw path { animation: kw-draw 600ms cubic-bezier(.65, 0, .35, 1) 250ms both; }
  .js .reveal.in .draw path + path { animation-delay: 650ms; animation-duration: 200ms; }
  .js .join-line.reveal { opacity: 0.85; transform: none; clip-path: inset(0 100% 0 0); }
  .js .join-line.reveal.in { animation: kw-wipe 700ms cubic-bezier(.65, 0, .35, 1) 150ms both; }
}

/* No one-word last lines: headings balance their lines, body text avoids a lone last word (browsers without support ignore this) */
h1, h2, h3, .h1, .h2 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }

/* Even line lengths on headings, so no single word is left on its own line */
.h1, .h2, .h3, .card-title, .card-title-sans { text-wrap: balance; }

/* Insights close crop on a tablet (Casey, Nov 11): the real Insights screen, captured from Figma at 2x and shown large,
   with a tablet bezel on the left and top that fades into the page on the right and bottom. No shadow: it muddies the fade. */
.tab-figure { margin: 0; }
.tab-figure figcaption { margin-top: 12px; text-align: right; font-size: 14px; color: var(--stone); }
.tab-crop { position: relative; background: #141415; padding: 20px 0 0 20px; border-radius: 40px 0 0 0; aspect-ratio: 1200 / 580;
  box-shadow: inset 2px 2px 0 #CFCBC3, inset 3px 3px 0 #A9A59C;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 99%), linear-gradient(180deg, #000 58%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 70%, transparent 99%), linear-gradient(180deg, #000 58%, transparent 98%); mask-composite: intersect; }
.tab-crop::before { content: ""; position: absolute; top: 8px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #3A3C42, #0E0E10 70%); }
.tab-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 24px 0 0 0; background: #F7F6F2; }
.tab-screen img { display: block; width: 106%; max-width: none; height: auto; }
@media (max-width: 900px) {
  .tab-crop { padding: 11px 0 0 11px; border-radius: 28px 0 0 0; aspect-ratio: 4 / 5; box-shadow: inset 1.5px 1.5px 0 #CFCBC3; }
  .tab-crop::before { top: 3px; width: 5px; height: 5px; }
  .tab-screen { border-radius: 16px 0 0 0; }
  .tab-screen img { width: 270%; }
}

/* Section labels (Nov 11): the brand guide's wayfinding, in clay (the action color) above each feature heading.
   On dark fields they use the muted light text instead, since clay on spruce doesn't reach contrast. */
.head { display: flex; flex-direction: column; gap: 12px; }
.kicker { font-size: 16px; font-weight: 600; color: var(--clay); margin: 0; }
.dark .kicker { color: var(--on-dark-2); }

/* Insights is the page's mid-way dark chapter (Nov 11): spruce is the data color.
   The tablet crop fades into the spruce instead of the Paper. */
.insights .lede { color: var(--on-dark-2); }
.insights .tab-figure figcaption { color: var(--on-dark-2); }
.insights .tab-crop { box-shadow: inset 2px 2px 0 rgba(251, 244, 228, 0.28), inset 3px 3px 0 rgba(251, 244, 228, 0.10); }
/* On spruce a long fade turns the light screen gray, so the fade is shorter and steeper here. */
.insights .tab-crop {
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent 98%), linear-gradient(180deg, #000 74%, transparent 97%);
  mask-image: linear-gradient(90deg, #000 82%, transparent 98%), linear-gradient(180deg, #000 74%, transparent 97%); }

/* Copyright line on the 404 page, which has no full footer (Nov 14). */
.doc-foot { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) 64px; }
.doc-foot p { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--stone); }
