/* StitchPencil — private preview site.
   Same loud, brutalist-playful energy as stitchmotion.app, but this one has
   to hold up in LIGHT as well as dark: the app itself ships both appearances
   and the accent is taken straight from its AccentColor asset.
   No external fonts, no third-party requests — nothing to leak. */

:root {
  color-scheme: light dark;

  /* Light appearance — the app's light AccentColor (#C67139). */
  --bg:        #f7f3ec;
  --bg2:       #ffffff;
  --bg3:       #efe8dd;
  --ink:       #16120e;
  --ink-soft:  #3c352d;
  --muted:     #6f665a;
  --accent:    #b85f28;
  --accent-ink:#ffffff;
  --accent-dim:#f0e0d0;
  --line:      #e0d7c9;
  --line-hard: #cdc0ad;
  --shadow:    0 1px 2px rgba(30, 22, 12, .06), 0 12px 34px rgba(30, 22, 12, .07);
  --shadow-lg: 0 2px 6px rgba(30, 22, 12, .08), 0 30px 70px rgba(30, 22, 12, .14);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --pad: clamp(1.1rem, 5vw, 3rem);
  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --is-dark: 1; }
}

:root[data-theme="dark"],
:root:not([data-theme="light"]) {
  /* placeholder so the dark block below can be shared */
}

/* Dark appearance — the app's dark AccentColor (#D98B52). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0d0c0b;
    --bg2:       #17151300;
    --bg2:       #171513;
    --bg3:       #201d19;
    --ink:       #f4ede2;
    --ink-soft:  #ded4c5;
    --muted:     #9c9185;
    --accent:    #e0904f;
    --accent-ink:#160f08;
    --accent-dim:#33251a;
    --line:      #2b2723;
    --line-hard: #3d372f;
    --shadow:    0 1px 2px rgba(0, 0, 0, .5), 0 14px 40px rgba(0, 0, 0, .45);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, .55), 0 34px 80px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0d0c0b;
  --bg2:       #171513;
  --bg3:       #201d19;
  --ink:       #f4ede2;
  --ink-soft:  #ded4c5;
  --muted:     #9c9185;
  --accent:    #e0904f;
  --accent-ink:#160f08;
  --accent-dim:#33251a;
  --line:      #2b2723;
  --line-hard: #3d372f;
  --shadow:    0 1px 2px rgba(0, 0, 0, .5), 0 14px 40px rgba(0, 0, 0, .45);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, .55), 0 34px 80px rgba(0, 0, 0, .6);
}

:root[data-theme="light"] { 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; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; }
img, video { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Shell ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: .6rem 1rem;
  z-index: 999;
}
.skip:focus { left: 0; }

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg3);
  flex: none;
}
.brand-mark img { width: 100%; height: 100%; }

.brand-name { font-size: 1rem; text-transform: uppercase; letter-spacing: .01em; }
.brand-name b { color: var(--accent); font-weight: 800; }

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.8vw, 1.35rem);
}

.topnav .navlink {
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  transition: color .15s ease;
  white-space: nowrap;
}
.topnav .navlink:hover { color: var(--ink); }

.nav-cta {
  padding: .42rem .85rem;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--accent); color: var(--accent-ink) !important; }

/* Segmented pills (language, theme) */

.seg {
  display: inline-flex;
  border: 1px solid var(--line-hard);
  border-radius: 999px;
  background: var(--bg2);
  padding: 2px;
  cursor: pointer;
  font: inherit;
  color: var(--muted);
  flex: none;
}

.seg-opt {
  /* The reset these never had: without it the UA paints `buttonface` behind
     every OFF option — invisible against a light page, a slab of grey against
     a dark one (Mika, 2026-07-31). */
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;

  padding: .2rem .55rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
  display: grid;
  place-items: center;
  min-width: 1.8rem;
  min-height: 1.5rem;
}
.seg-opt:hover { color: var(--ink); }
.seg-opt.is-on { background: var(--accent); color: var(--accent-ink); }
.seg-opt.is-on:hover { color: var(--accent-ink); }
.seg-opt svg { display: block; }

.menu-btn {
  display: none;
  border: 1px solid var(--line-hard);
  background: var(--bg2);
  color: var(--ink);
  border-radius: 10px;
  width: 38px;
  height: 34px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.menu-btn svg { display: block; }

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .topnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .5rem var(--pad) 1rem;
  }
  .topnav[hidden] { display: none; }
  .topnav .navlink {
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
    letter-spacing: .05em;
  }
  .nav-cta {
    margin-top: .9rem;
    text-align: center;
    border-radius: 12px;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--accent) !important;
  }
  .nav-toggles { display: flex; gap: .6rem; margin-top: .9rem; }
}

.nav-toggles { display: contents; }
@media (max-width: 860px) { .nav-toggles { display: flex; } }

/* ---------- Type ---------- */

.display {
  font-size: clamp(2.5rem, 8.5vw, 5.6rem);
  line-height: .96;
  letter-spacing: -.035em;
  font-weight: 850;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.star { color: var(--accent); }

h2 {
  font-size: clamp(1.75rem, 4.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.028em;
  font-weight: 830;
  margin: 0 0 .8rem;
  text-wrap: balance;
}

h3 {
  font-size: 1.08rem;
  letter-spacing: -.01em;
  margin: 0 0 .35rem;
  font-weight: 750;
}

.lede {
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 1.6rem;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  margin: 0 0 .9rem;
}
.kicker .idx {
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 5px;
  padding: .1rem .4rem;
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  font-size: .96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 84%, var(--ink)); }

.btn-ghost { border-color: var(--line-hard); color: var(--ink); background: var(--bg2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 1.2rem;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(2.4rem, 7vw, 5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(60% 60% at 50% 0%,
              color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .3rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--line-hard);
  color: var(--muted);
  background: var(--bg2);
}
.badge-accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hero-meta {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .04em;
  margin: 0 0 .5rem;
}

/* "How do I get in?" is the first question a visitor has, and until now the
   page answered it nowhere. It sits under the buttons rather than in a
   badge: it is a sentence, not a label, and it says the beta is closed
   without making that sound like a velvet rope. */
.hero-status {
  font-size: .88rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 2.2rem;
}

/* Screenshots sit in a mount, not flush against a border: a padded frame with
   the shot inset inside it and its own hairline. One rule, every shot. */
.shot {
  margin: 0;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg2), var(--bg3));
  box-shadow: var(--shadow-lg);
  padding: clamp(.5rem, 1.3vw, .85rem);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line-hard);
}

.shot figcaption {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--muted);
  padding: .75rem .35rem .15rem;
}

.hero-shot { margin-top: .5rem; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(2.6rem, 7vw, 5.5rem); }

.section + .section { border-top: 1px solid var(--line); }

.sec-head { max-width: 60ch; margin-bottom: 2rem; }
.sec-head p:not(.kicker) { color: var(--ink-soft); margin: 0; }

.split {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.15fr; }
  .split.rev > *:first-child { order: 2; }
  /* Two columns of running text: equal width, tops aligned. Centring them
     against each other is what made section 01 look scattered. */
  .split.split-even { grid-template-columns: 1fr 1fr; align-items: start; }
}
.split.split-even > div > p:first-child { margin-top: 0; }

.card-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card-grid > li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.3rem;
  background: var(--bg2);
  box-shadow: var(--shadow);
}
.card-grid > li p { margin: 0; color: var(--muted); font-size: .95rem; }

.card-ico {
  color: var(--accent);
  margin-bottom: .7rem;
  display: block;
}

/* Numbered feature rows */

.rows { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }

.row {
  display: grid;
  gap: .35rem 1.6rem;
  padding: 1.4rem 0;
  background: var(--bg);
}
@media (min-width: 760px) {
  .row { grid-template-columns: 5.5rem 15rem 1fr; align-items: baseline; }
}
.row .row-idx {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--accent);
  letter-spacing: .1em;
}
/* Two columns from 900px up: six of these stacked made the section a long
   scroll for six short thoughts. The row's own three-column layout does not
   survive half the width, so it folds to index + stacked text — and the 1px
   gap over the line colour draws the grid's hairlines for free. */
/* Short paragraphs in a two-column text block run together — a little
   more air between them separates one thought from the next. */
.split p + p { margin-top: 1.15em; }

@media (min-width: 900px) {
  .rows { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 3rem 1fr; padding: 1.4rem 1.5rem; }
  .row .row-idx { grid-row: span 2; }
}

.row h3 { margin: 0; }
.row p { margin: 0; color: var(--muted); }

/* Stitch-dash rule — the quiet brand motif, same as in the docs. */
.stitch-rule {
  border: 0;
  border-top: 2px dashed var(--accent);
  opacity: .45;
  margin-block: clamp(2rem, 5vw, 3.4rem);
}

.quote {
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: pretty;
}

/* A lead statement between the heading and the body columns. */
.lead-quote {
  max-width: 48ch;
  margin-block: 0 clamp(1.8rem, 4vw, 2.8rem);
}

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--bg2);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem;
  color: var(--ink-soft);
  font-size: .96rem;
}
.note strong { color: var(--ink); }
.note-wide { margin-top: clamp(1.6rem, 4vw, 2.4rem); }
.note p { margin: 0; }

/* Format chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}
.chips li {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  border: 1px solid var(--line-hard);
  border-radius: 8px;
  padding: .3rem .6rem;
  background: var(--bg2);
  color: var(--ink-soft);
}
.chips li.hot { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* Spec table */

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.spec th, .spec td {
  text-align: left;
  padding: .7rem .6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec th {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.spec td { color: var(--ink-soft); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* CTA band */

.band {
  background: var(--ink);
  color: var(--bg);
  border-radius: 20px;
  padding: clamp(1.8rem, 5vw, 3.4rem);
  margin-block: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.band h2 { color: var(--bg); }
.band p { color: color-mix(in srgb, var(--bg) 74%, var(--ink)); max-width: 52ch; margin: 0 auto 1.6rem; }
.band .btn-primary { background: var(--accent); color: var(--accent-ink); }
.band .btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--bg) 40%, transparent);
  color: var(--bg);
}
.band .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.band .cta-row { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  background: var(--bg2);
  padding-block: 2.4rem 3rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.footer-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 2rem;
}
.footer-grid h4 {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin: 0 0 .7rem;
  font-weight: 700;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); font-size: .93rem; }
.footer-grid a:hover { color: var(--accent); }

/* Imprint and privacy have to be reachable from EVERY page, not just from
   the ones with the full footer grid — a German site needs the Impressum
   one click away wherever you are (Mika, 2026-08-05). index.html carries
   them in its grid; the other three carry this line instead. */
.footer-legal {
  margin: .35rem 0 0;
  font-size: .76rem;
  color: var(--muted);
}
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }

.footer-copy {
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--muted);
  letter-spacing: .04em;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

/* ---------- Legal / form pages ---------- */

.page { padding-block: clamp(2rem, 5vw, 3.4rem); max-width: 72ch; }
.page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0 0 .5rem;
}
.page h2 {
  font-size: 1.22rem;
  letter-spacing: -.01em;
  margin: 2.2rem 0 .5rem;
}
.page p, .page li { color: var(--ink-soft); }
.page a { color: var(--accent); }
.page-meta {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .06em;
  margin-bottom: 2rem;
}
.back {
  display: inline-block;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.back:hover { color: var(--accent); }

/* ---------- Support form ---------- */

.form { display: grid; gap: 1.15rem; margin-top: 2rem; }

/* `align-content: start` is what keeps a row of fields level. The grid rows
   stretch to the cell by default, and the two cells of a .field-row rarely
   have the same number of rows — App version carries a hint underneath,
   iPadOS version does not. The taller cell then stretched the shorter one's
   rows, pushing its control down and making it taller than its neighbour
   (Mika, 2026-08-05: "die Dropdown ist nicht in Waage"). */
.field { display: grid; gap: .35rem; align-content: start; }
.field > label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.field .hint { font-weight: 500; text-transform: none; letter-spacing: 0; }
.req { color: var(--accent); }

input[type="text"], input[type="email"], select, textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg2);
  border: 1px solid var(--line-hard);
  border-radius: 10px;
  padding: .7rem .8rem;
  width: 100%;
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }

/* The select had the same rule as the text fields and still looked like a
   different control (Mika, 2026-08-05): without the appearance reset the UA
   keeps drawing its own chevron and its own metrics on top, so the one
   dropdown on the page sat there with a native double arrow among six soft
   beige boxes. Reset it and draw the chevron ourselves — same reasoning as
   .seg-opt above.

   The arrow is a data: URI, which the site's CSP allows under img-src. Two
   of them, because a background image cannot follow currentColor: one in
   --muted for the light appearance, one for the dark. */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236f665a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  cursor: pointer;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%239c9185' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  }
}
:root[data-theme="dark"] select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%239c9185' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
textarea { resize: vertical; min-height: 8rem; line-height: 1.55; }

.field-row { display: grid; gap: 1.15rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.hint { font-size: .82rem; color: var(--muted); margin: 0; }

.dropzone {
  border: 2px dashed var(--line-hard);
  border-radius: 12px;
  padding: 1.6rem 1rem;
  text-align: center;
  background: var(--bg2);
  transition: border-color .15s ease, background .15s ease;
}
.dropzone.is-over { border-color: var(--accent); background: var(--accent-dim); }
.dropzone p { margin: 0; }
.dropzone-types {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: .4rem !important;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.file-list { list-style: none; padding: 0; margin: .7rem 0 0; display: grid; gap: .4rem; }
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  font-size: .9rem;
  background: var(--bg3);
  border-radius: 8px;
  padding: .45rem .7rem;
}
.file-list .size { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.file-list button {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 .2rem;
}
.file-list button:hover { color: var(--accent); }

.consent label {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.consent input { margin-top: .28rem; accent-color: var(--accent); flex: none; }

.hp-wrap { position: absolute; left: -9999px; }

.submit-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.submit-status { font-size: .9rem; color: var(--muted); }

.progress-bar {
  height: 6px;
  background: var(--bg3);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }
.progress-text { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin: .4rem 0 0; }

.panel {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--bg2);
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.4rem;
  margin-top: 2rem;
}
.panel h2 { margin-top: 0; }
.panel.bad { border-left-color: #c0392b; }

.js-warn {
  border: 1px solid var(--line-hard);
  border-radius: 10px;
  padding: .8rem 1rem;
  font-size: .9rem;
  background: var(--bg3);
}

[hidden] { display: none !important; }

/* The beat under a pull-quote, and the line a section lands on. */
.quote-beat {
  display: inline-block;
  margin-top: .5rem;
  font-size: .78em;
  color: var(--muted);
  letter-spacing: 0;
}
.closer {
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -.01em;
}
