/* landing.css — the public front door (Beta 0.31), built from the owner's
   design handoff of 2026-09-06 (design_handoff_stitch_my_signature, Landing).
   Same tokens as the app: linen ground, paper cards, wine accent, Crimson Pro
   headings, Atkinson Hyperlegible for everything people read. Rules that bind:
   touch targets 44 px, body text 17 px, nothing under 13 px, flat surfaces,
   4 px corners, one primary per screen, no jargon, no outside resources. */

:root {
  --linen: #F6F1EC;
  --paper: #FDFCF9;
  --tint: #F2EAE6;
  --tint-border: #D9CCC3;
  --white: #FFFFFF;
  --ink: #2A2521;
  --faded: #6E6659;
  --body2: #5A5348;
  --wine: #722F44;
  --wine-hover: #5C2536;
  --wine-tint: #F2E7EA;
  --madder: #7A2E2A;
  --green: #2E5E33;
  --hairline: #E3DCCF;
  --input-border: #CFC7B6;
  --f-head: "Crimson Pro", Georgia, serif;
  --f-ui: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  --f-hand: "Caveat", cursive;
  --r: 4px;
  --touch: 44px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-ui);
  text-wrap: pretty;
}
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--wine); text-decoration: underline; }
a:hover { color: var(--wine-hover); }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }
/* side padding lives on .wrap alone; section rules below set only top and bottom, so they never zero it */
.wrap { max-width: var(--max); width: 100%; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 600px) { .wrap { padding-left: 20px; padding-right: 20px; } }

/* ---- buttons: primary (one per view), secondary, and the white one on wine ---- */
.btn-primary, .btn-secondary, .btn-invert {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: var(--r);
  font: 700 17px/1 var(--f-ui); text-decoration: none; cursor: pointer; border: 0;
}
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-hover); color: #fff; }
.btn-secondary { background: var(--white); color: var(--wine); border: 1.5px solid var(--wine); min-height: 52px; }
.btn-secondary:hover { background: var(--wine-tint); }
.btn-invert { background: var(--white); color: var(--wine); min-height: 56px; font-size: 18px; padding: 0 28px; }
.btn-invert:hover { background: var(--wine-tint); }
.btn-small { min-height: var(--touch); padding: 0 18px; font-size: 16px; }

/* ---- nav ---- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand .mark { flex: none; width: 28px; height: 28px; margin-right: 10px; } /* the S mark (0.38), inline, the icon tool's path */
.brand .wordmark { font: 600 22px/1 var(--f-head); }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-links a.plain { font-size: 16px; text-decoration: none; color: var(--ink); min-height: var(--touch); display: inline-flex; align-items: center; }
.nav-links a.plain:hover { text-decoration: underline; }

/* ---- hero ---- */
.hero { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.08; }
.hero .sub { font-size: 19px; color: var(--body2); max-width: 640px; }
.hero h1 { max-width: 900px; }
.hero-col { display: flex; flex-direction: column; gap: 22px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--faded); }
.trust svg { flex: none; }

/* the app's own canvas, captured: the same paper-and-grid ground as the editor */
.product { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.product-canvas {
  background:
    repeating-linear-gradient(0deg, rgba(42, 37, 33, .06) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(42, 37, 33, .06) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(42, 37, 33, .025) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(42, 37, 33, .025) 0 1px, transparent 1px 24px),
    var(--paper);
  border: 1px solid var(--hairline); border-radius: var(--r); padding: 24px;
}
.product-canvas { position: relative; }
/* SHOW STITCHES (owner ask, 2026-09-21): the call to action on the picture, top right, where
   the app's own stitch button sits. Pressed, it turns inside out, as it does in the app. */
.show-stitches {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  min-height: 44px; padding: 0 16px;
  background: var(--wine); color: #fff; border: 1px solid var(--wine); border-radius: var(--r);
  font: 700 15px/1 var(--f-ui); cursor: pointer;
}
.show-stitches:hover { background: var(--wine-hover); }
.show-stitches[aria-pressed="true"] { background: var(--white); color: var(--wine); }
@media (max-width: 600px) { .product-canvas { padding-top: 64px; } }
.product-canvas img { display: block; width: 100%; height: auto; max-width: 1000px; margin: 0 auto; }
.product-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 15px; color: var(--faded); }
.product-fits { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green); }

/* ---- sections ---- */
.band { border-top: 1px solid var(--tint-border); border-bottom: 1px solid var(--tint-border); background: var(--tint); }
.band-white { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--white); }
.section { padding-top: 64px; padding-bottom: 64px; }
.section-tight { padding-top: 56px; padding-bottom: 56px; }
.eyebrow { font: 700 13px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--faded); margin-bottom: 10px; }
.h2 { font-size: clamp(30px, 3.6vw, 42px); }
.h2-small { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
.lead { font-size: 17px; color: var(--body2); max-width: 720px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.num { width: 32px; height: 32px; border-radius: 50%; background: var(--wine); color: #fff; font: 700 16px/32px var(--f-ui); text-align: center; }
.card h3 { font-size: 23px; }
.card p { font-size: 16px; line-height: 1.5; color: var(--body2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 18px; border: 1px solid var(--input-border); border-radius: var(--r); font-size: 16px; background: var(--linen); }
.note { font-size: 15px; color: var(--faded); line-height: 1.5; max-width: 720px; }
.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--wine); color: #fff; font: 700 14px/28px var(--f-ui); text-align: center; margin-top: 1px; }
.tell-friend { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 10px; }

/* ---- a note from the maker ---- */
.maker-body { max-width: 680px; display: flex; flex-direction: column; gap: 16px; margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--body2); }
.maker-sign { margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.maker-sign img { display: block; width: min(100%, 340px); height: auto; }
.maker-sign figcaption { font-size: 15px; color: var(--faded); }

/* ---- the sign-up card ---- */
.signup { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.signup h3 { font-size: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; font: 700 15px/1.3 var(--f-ui); }
.field input, .field select {
  height: 48px; padding: 0 14px; border: 1px solid var(--input-border); border-radius: var(--r);
  font: 400 16px var(--f-ui); color: var(--ink); background: var(--white); width: 100%;
}
.field select { padding: 0 10px; }
.signup .btn-primary { width: 100%; }
.fine { font-size: 13.5px; color: var(--faded); line-height: 1.5; }
.signup-note { font-size: 15px; color: var(--body2); line-height: 1.5; }

/* the honeypot: off screen, never tabbed to, never read out (aria-hidden) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- the gallery (0.35): stitch-out photos six at a time ---- */
/* the hidden attribute wins over any display rule (Show more is a button with a class) */
[hidden] { display: none !important; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.shot { margin: 0; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.shot figcaption { padding: 12px 14px; font-size: 15px; line-height: 1.5; color: var(--body2); }
.shot b { color: var(--ink); }

/* ---- the beta kit page (0.35): one printable page ---- */
.kit h1 { font-size: clamp(30px, 3.6vw, 42px); }
.kit .lead { margin-top: 16px; }
.kit-body { max-width: 760px; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; font-size: 18px; line-height: 1.6; color: var(--body2); }
.kit-body h2 { font-size: 28px; color: var(--ink); margin-top: 22px; }
.kit-body ul, .kit-body ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.kit-body b { color: var(--ink); }
.kit-body .signoff { font: 400 26px/1.2 var(--f-head); color: var(--ink); margin-top: 6px; }
.kit-field { max-width: 420px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.kit-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.kit-a4 { font-size: 15px; }
@media print {
  @page { margin: 1cm; }
  .no-print, .nav, .foot, .tell-friend, #shots-more { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: none; }
  .card { break-inside: avoid; border-color: #999; }
  /* the beta kit prints on ONE sheet (owner call 2026-09-14). The picker, the download
     buttons and the eyebrow mean nothing on paper, so they go; the rest gets compact.
     Checked by printing to PDF from headless Chrome on letter and A4 with 1 cm margins. */
  .kit.section { padding-top: 0; padding-bottom: 0; }
  .kit .eyebrow, .kit .kit-field, .kit #kit-format-note, .kit .kit-links { display: none !important; }
  .kit h1 { font-size: 17pt; margin: 0; }
  .kit .lead { font-size: 10pt; line-height: 1.35; margin-top: 4pt; }
  .kit-body { max-width: none; font-size: 9.5pt; line-height: 1.35; color: #000; gap: 4pt; margin-top: 4pt; }
  .kit-body h2 { font-size: 12pt; margin-top: 7pt; }
  .kit-body p { margin: 0; }
  .kit-body ul, .kit-body ol { gap: 1pt; padding-left: 14pt; }
  /* the lettering legend (2026-09-20): on paper only the six names, three across. Its words,
     its download cards and its note are .no-print, so the kit still prints on one sheet. */
  .kit-body ol.kit-faces { display: block; columns: 3; column-gap: 14pt; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 8pt; }
  .card { padding: 6pt 8pt; gap: 3pt; border-radius: 4pt; }
  .card h3 { font-size: 11pt; }
  .card p { font-size: 9.5pt; line-height: 1.35; color: #000; }
  .kit-body .note, .kit-body .fine { font-size: 9.5pt; line-height: 1.35; color: #000; }
  .kit-body .signoff { font-size: 14pt; margin-top: 2pt; }
  /* on paper a link needs its address; the form lives behind the kit page's own */
  #feedback-link::after { content: " at stitchmysignature.com/beta"; }
}
}

/* ---- FAQ ---- */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 40px; }
.faq div { padding: 18px 0; border-top: 1px solid var(--hairline); }
.faq b { display: block; font-size: 18px; margin-bottom: 6px; }
.faq p { font-size: 16px; line-height: 1.55; color: var(--body2); }

/* ---- final call ---- */
.final { background: var(--wine); color: #fff; }
.final .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.final h2 { color: #fff; }
.final p { font-size: 18px; color: var(--wine-tint); max-width: 560px; }

/* ---- footer ---- */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--faded); }
.foot a { color: var(--faded); }
.foot span.links { display: flex; gap: 18px; }
/* footer links are tap targets too (0.33) */
.foot .links a { min-height: var(--touch); display: inline-flex; align-items: center; }

/* ---- privacy and terms (0.33): one column of plain prose ---- */
.policy-page h1 { font-size: clamp(30px, 3.6vw, 42px); }
.policy-page .lead { margin-top: 16px; }
.policy { max-width: 720px; display: flex; flex-direction: column; gap: 14px; margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--body2); }
.policy h2 { font-size: 28px; color: var(--ink); margin-top: 22px; }
.policy ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.policy b { color: var(--ink); }
.policy .signoff { font: 400 26px/1.2 var(--f-head); color: var(--ink); margin-top: 6px; }

/* ---- the hoop reference page (0.43): the registry as tables, readable on a phone ---- */
.hoops-page .toc { font-size: 16px; }
.hoops-page .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hoops-page table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 16px; line-height: 1.4; }
.hoops-page th, .hoops-page td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--hairline); }
.hoops-page th { font: 700 13px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--faded); padding-bottom: 6px; }
.hoops-page td.field { white-space: nowrap; color: var(--ink); }
.hoops-page .default-mark { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: var(--r); background: var(--wine-tint); color: var(--wine); font: 700 13px/1.4 var(--f-ui); vertical-align: middle; }
.hoops-page .btn-primary { display: inline-block; }

/* ---- the quilt label page (0.45): sample labels drawn as small cloth labels ---- */
.label-page .toc { font-size: 16px; }
.label-page h3 { font-size: 22px; color: var(--ink); margin: 10px 0 0; }
.label-page .label-example { display: inline-block; max-width: 460px; margin: 4px 0 2px; padding: 16px 22px; border: 1px dashed var(--tint-border); border-radius: var(--r); background: var(--white); font: 400 24px/1.3 var(--f-hand); color: var(--wine); box-shadow: 0 1px 0 var(--hairline); }
.label-page .btn-primary { display: inline-block; }
