/* tonttu.house — the landing page (spec 2026-11-21-landing-page-design, direction A).
   Workshop label (brand skill ~/.claude/skills/tonttu): ochre is a FILL, never text on a light ground;
   2px outlines, hard 4px offset shadows, tape labels, dashed part tags. Its own file: app.css carries
   the whole app. The walk-in below is copied from app.css (keep the two in step). */

@font-face { font-family: "Familjen Grotesk"; src: url("/fonts/familjen-grotesk.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --linen: #F4EFE4; --paper: #FFFEFB; --ink: #1C1A17; --ink-2: #5E594F; --rule: #D6CFC0;
  --charcoal: #1C1A17; --on-charcoal: #FFFEFB; --on-charcoal-2: #CFC8BA; --ochre: #E09A2D;
  --display: "Familjen Grotesk", "Arial Narrow", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 4px 4px 0 var(--ink);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--linen); color: var(--ink); font: 400 17px/1.55 var(--body); }
a { color: inherit; }
img, video, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(30px, 4.6vw, 46px); max-width: 18ch; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }
.eyebrow { font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 36ch; }

/* ---- header + walk-in -------------------------------------------------------------------------- */
.top { background: var(--charcoal); color: var(--on-charcoal); padding-top: env(safe-area-inset-top); }
.top-in { max-width: 1080px; margin: 0 auto; padding: 16px max(20px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 16px; overflow: hidden; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-charcoal); }
/* The logo and its walk-in, large (founder 2026-11-21: "twice as large, since there is so much space"). */
.brand .mark { height: 46px; }
@media (min-width: 820px) {
  .top-in { padding-top: 22px; padding-bottom: 22px; }
  .brand { gap: 16px; }
  .brand .mark { height: 68px; }
}
.links { margin-left: auto; display: flex; gap: 22px; align-items: center; font: 500 15px/1 var(--body); }
.links a { text-decoration: none; color: var(--on-charcoal-2); padding: 12px 0; }
.links a:hover { color: var(--on-charcoal); }
.links .signin { color: var(--on-charcoal); font-weight: 600; border: 2px solid var(--on-charcoal); padding: 10px 14px; }
@media (max-width: 640px) { .links a:not(.signin) { display: none; } }

/* The Flat eave lockup (img/brand/flat-eave/lockup-on-dark.svg), drawn inline so the walk-in can land the hat
   on the mark: the mark is ochre with the door cut out (the charcoal header shows through), the outlined
   wordmark is paper. Sized by height; the width follows the lockup's 196.32:49 ratio. */
.mark .hat { fill: var(--ochre); } .mark .word { fill: var(--on-charcoal); }
.brand .mark { width: auto; aspect-ratio: 196.32 / 49; }
/* walk-in:start — written by tools/walkin.mjs (Flat eave style, 2026-11-21); edit there, not here.
   Units are the mark's 48-unit grid. Reduce-motion shows the logo alone. */
.mark { overflow: visible; }
.mark * { transform-box: view-box; }
.mark .beard { fill: #E3DACA; } .mark .nose { fill: #D9876A; } .mark .coat { fill: #B37A22; }
.mark .shin { fill: #F4EFE4; } .mark .boot { fill: #6B6457; } .mark .door-back { fill: #1C1A17; }
.mark .eave { fill: #FFFEFB; } /* the white brim: the logo on dark since 2026-11-21 */
.mark .tomte { opacity: 0; }
.brand.play .tomte { opacity: 1; }
.brand.play .walker { animation: tomte-walk 1080ms cubic-bezier(.25,.7,.35,1) both; }
.brand.play .bob { animation: tomte-bob 270ms ease-in-out 4 alternate both; }
.brand.play .leg-l { transform-origin: 19.5px 39px; animation: tomte-step-l 270ms linear 4 alternate both; }
.brand.play .leg-r { transform-origin: 28.5px 39px; animation: tomte-step-r 270ms linear 4 alternate both; }
.brand.play .head { animation: tomte-sit 1950ms cubic-bezier(.3,.8,.3,1) both; }
.brand.play .tomte-body { transform-origin: 24px 37px; animation: tomte-tuck 1950ms ease-in both; }
.brand.play .tomte-face { animation: tomte-hide 1950ms ease-in both; }
.brand.play .word { animation: tomte-word 1950ms ease-out both; }
@keyframes tomte-walk { from { transform: translateX(-80px); } to { transform: translateX(0); } }
@keyframes tomte-bob { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes tomte-step-l { from { transform: rotate(20deg); } to { transform: rotate(-20deg); } }
@keyframes tomte-step-r { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
@keyframes tomte-sit { 0%, 55% { transform: translateY(-18px); } 82% { transform: translateY(1.2px) scaleY(.96); } 92% { transform: translateY(-.6px); } 100% { transform: translateY(0); } }
@keyframes tomte-tuck { 0%, 58% { transform: scaleY(1); opacity: 1; } 86% { transform: scaleY(.4); opacity: 1; } 100% { transform: scaleY(.2); opacity: 0; } }
@keyframes tomte-hide { 0%, 70% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes tomte-word { 0%, 45% { opacity: 0; transform: translateX(-6px); } 100% { opacity: 1; transform: none; } }
/* walk-in:end */
@media (prefers-reduced-motion: reduce) {
  .brand.play .tomte { opacity: 0; }
  .brand.play *, .brand.play .word { animation: none !important; }
}

/* ---- buttons, tape, part tag ------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; font: 700 17px/1 var(--display);
  letter-spacing: -0.01em; text-decoration: none; border: 2px solid var(--ink); cursor: pointer; }
.btn-primary { background: var(--ochre); color: var(--ink); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.hero .btn-primary { box-shadow: 4px 4px 0 #000; border-color: #000; }
.btn-ghost { background: transparent; color: var(--on-charcoal); border-color: var(--on-charcoal); }
.tape { display: inline-block; margin: 0 0 22px; background: var(--ochre); color: var(--ink); padding: 6px 12px;
  font: 700 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-1.4deg); }
.part { display: inline-block; font: 700 26px/1 var(--mono); border: 2px dashed var(--ink); padding: 12px 16px; background: var(--paper); transform: rotate(-1deg); }

/* ---- hero ---------------------------------------------------------------------------------------- */
.hero { background: var(--charcoal); color: var(--on-charcoal); padding: 28px 0 72px; }
.hero-in { max-width: 1080px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); display: grid; gap: 48px; align-items: center; }
@media (min-width: 820px) { .hero-in { grid-template-columns: 1fr auto; } .hero { padding: 56px 0 88px; } }
.hero h1 { font-size: clamp(46px, 8vw, 84px); color: var(--paper); }
.hero .lede { color: var(--on-charcoal-2); margin: 22px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- phone frames + steps ------------------------------------------------------------------------ */
.phone-wrap { margin: 0; display: grid; justify-items: center; gap: 18px; }
.phone { width: min(300px, 78vw); aspect-ratio: 592 / 1280; border: 2px solid #000; border-radius: 36px; padding: 9px; background: var(--charcoal);
  box-shadow: 8px 8px 0 var(--ochre); }
.how .phone { box-shadow: 8px 8px 0 var(--ink); }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; background: var(--linen); }
.phone-wrap figcaption { display: grid; justify-items: center; gap: 12px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hero .steps { font: 600 12px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--on-charcoal-2); text-align: center; }
.hero .steps li { opacity: .45; transition: opacity .25s; }
.hero .steps li.now { opacity: 1; color: var(--paper); }
.playpause { min-height: 44px; min-width: 88px; padding: 10px 16px; font: 700 14px/1 var(--display); background: transparent; color: inherit;
  border: 2px solid currentColor; cursor: pointer; }
.hero .playpause { color: var(--on-charcoal); }

/* ---- why ------------------------------------------------------------------------------------------ */
.why { padding: 88px 0; }
.pairs { display: grid; gap: 22px; margin-top: 40px; }
@media (min-width: 860px) { .pairs { grid-template-columns: repeat(3, 1fr); } }
.pair { background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 26px 24px; display: grid; gap: 18px; align-content: start; }
.problem { margin: 0; font: 700 22px/1.15 var(--display); letter-spacing: -0.02em; }
.answer { margin: 0; color: var(--ink-2); }
.visual { min-height: 112px; display: grid; place-items: center; background: var(--linen); border: 1px solid var(--rule); padding: 16px; }
.visual.plan { place-items: stretch; align-content: center; gap: 8px; }
.visual.plan .row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.visual.plan .row:last-child { border-bottom: 0; padding-bottom: 0; }
.visual.plan i { font: 500 12px/1.6 var(--mono); font-style: normal; color: var(--ink-2); white-space: nowrap; }
.visual.email { place-items: start; align-content: center; gap: 6px; }
.visual.email .from { font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.visual.email .line { font: 600 17px/1.35 var(--body); border-left: 4px solid var(--ochre); padding-left: 10px; }

/* ---- how ------------------------------------------------------------------------------------------ */
.how { padding: 88px 0; background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.how-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 860px) { .how-in { grid-template-columns: auto 1fr; gap: 72px; } }
.how .phone-wrap { order: 2; }
@media (min-width: 860px) { .how .phone-wrap { order: 0; } }
.steps.big { margin-top: 30px; gap: 4px; counter-reset: s; }
.steps.big li { counter-increment: s; position: relative; padding: 12px 0 12px 54px; color: var(--ink-2); border-left: 0; transition: color .25s; }
.steps.big li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 36px; height: 36px; display: grid; place-items: center;
  font: 700 15px/1 var(--mono); border: 2px solid var(--ink); background: var(--paper); }
.steps.big li b { color: var(--ink); }
.steps.big li.now { color: var(--ink); }
.steps.big li.now::before { background: var(--ochre); box-shadow: 3px 3px 0 var(--ink); }

/* ---- the name ------------------------------------------------------------------------------------- */
.name { padding: 96px 0; border-top: 1px solid var(--rule); }
.name-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .name-in { grid-template-columns: 1fr 320px; gap: 72px; } }
.name h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.say { font: 700 15px/1 var(--mono); letter-spacing: .1em; color: var(--ink-2); }
.name-copy p { max-width: 58ch; }
.turn { font: 700 26px/1.2 var(--display); letter-spacing: -0.02em; margin-top: 26px; }
.figure { margin: 0; justify-self: center; background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 24px; transform: rotate(1deg); }

/* ---- your data (privacy as a feature) ------------------------------------------------------------- */
.yours { padding: 88px 0; } /* linen: it sits between "How it works" (paper) and "The name" */
.yours .lede { margin: 18px 0 0; }
.promises { display: grid; gap: 22px; margin-top: 40px; }
@media (min-width: 860px) { .promises { grid-template-columns: repeat(3, 1fr); } }
.promise { background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 30px 24px 26px; position: relative; }
.promise .stamp { position: absolute; top: -14px; left: 18px; margin: 0; background: var(--charcoal); color: var(--paper);
  padding: 5px 10px; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-1.4deg); }
.promise h3 { margin: 0 0 10px; font: 700 23px/1.15 var(--display); letter-spacing: -0.02em; }
.promise p { margin: 0; color: var(--ink-2); }
.promise a { color: var(--ink); }
.yours .all { margin: 32px 0 0; font-weight: 600; }

/* ---- the list ------------------------------------------------------------------------------------- */
.list { padding: 88px 0 104px; background: var(--charcoal); color: var(--on-charcoal); }
.list .eyebrow { color: var(--on-charcoal-2); }
.list h2 { color: var(--paper); }
.list .lede { color: var(--on-charcoal-2); }
.join { margin-top: 28px; max-width: 560px; }
.join label { display: block; font: 600 15px/1 var(--body); margin-bottom: 10px; }
.join-row { display: flex; flex-wrap: wrap; gap: 12px; }
.join input { flex: 1 1 260px; min-height: 52px; padding: 12px 14px; font: 400 17px/1.2 var(--body); color: var(--ink); background: var(--paper);
  border: 2px solid #000; border-radius: 0; }
.join .btn-primary { border-color: #000; box-shadow: 4px 4px 0 #000; }
.fine { font-size: 14px; color: var(--on-charcoal-2); margin: 14px 0 0; }
.form-msg { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; }
.form-msg.ok { color: var(--paper); }
.invite { margin-top: 30px; color: var(--on-charcoal-2); }
.invite a { color: var(--paper); font-weight: 600; }

/* ---- footer --------------------------------------------------------------------------------------- */
.foot { background: var(--linen); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--ink-2); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot p { margin: 0; display: flex; align-items: center; gap: 10px; }
.foot-brand img { display: block; }
.noscript { margin: 0; padding: 16px 20px; background: var(--paper); border-top: 2px solid var(--ink); }

/* ---- Blueprint backgrounds (founder 2026-11-23): pieces of one drawing set behind each section, js/blueprint.js.
   Lines only; each ground gets a line colour a small step off it (tests/landing-blueprint.test.mjs keeps
   the contrast between 1.05 and 1.3): linen -> light tan, paper -> lighter tan, charcoal -> warm grey. */
.has-bp { --ground: #F4EFE4; --bp: #DED7C8; position: relative; overflow: hidden; }
.how.has-bp { --ground: #FFFEFB; --bp: #EDE8DD; }
.hero.has-bp, .list.has-bp { --ground: #1C1A17; --bp: #2B2823; }
.has-bp > *:not(.bp) { position: relative; z-index: 1; }

.bp { position: absolute; z-index: 0; pointer-events: none; height: auto; max-width: none; /* not the site-wide svg cap */
  fill: none; stroke: var(--bp); stroke-width: 1; stroke-linecap: square; stroke-linejoin: miter; }
.bp .h { stroke-width: 1.8; }
.bp .l { stroke-width: 0.6; }
.bp .d { stroke-width: 0.6; stroke-dasharray: 10 4 2 4; }
.bp .o { fill: var(--ground); }
.bp .o0 { fill: var(--ground); stroke: none; }
.bp .dot { fill: var(--bp); stroke: none; }
.bp text { fill: var(--bp); stroke: none; font: 500 8.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.04em; }
.bp text.s { font-size: 10px; }
.bp text.t { font: 700 15px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.1em; }
.bp text.big { font: 700 34px/1 "JetBrains Mono", ui-monospace, monospace; }

/* each piece cropped at an edge, like a sheet slid under the page */
.bp-hero  { width: 1100px; left: max(-140px, calc(50% - 760px)); bottom: -90px; }
.bp-why   { width: 900px;  right: max(-160px, calc(50% - 720px)); top: -30px; }
.bp-how   { width: 720px;  right: max(-120px, calc(50% - 680px)); bottom: -60px; }
.bp-yours { width: 600px;  left: max(-90px, calc(50% - 700px)); top: -60px; }
.bp-name  { width: 720px;  right: max(-80px, calc(50% - 700px)); top: 20px; }
.bp-list  { width: 860px;  right: max(-200px, calc(50% - 760px)); top: -40px; }

/* blueprint: phone (founder 2026-11-23) — sections stack tall, so each drawing is larger than on desktop and
   centred down its section; lines keep their desktop weight however large the drawing is. */
@media (max-width: 700px) {
  .bp { top: 50%; bottom: auto; transform: translateY(-50%); }
  .bp * { vector-effect: non-scaling-stroke; }
  .bp-hero  { width: 1250px; left: -430px; right: auto; }
  .bp-why   { width: 1050px; right: -420px; left: auto; }
  .bp-how   { width: 900px;  right: -330px; left: auto; }
  .bp-yours { width: 760px;  left: -230px; right: auto; }
  .bp-name  { width: 820px;  right: -300px; left: auto; }
  .bp-list  { width: 880px;  right: -330px; left: auto; }
}
