/* Gen-Z Fashion Apparel: "the label" system (v4, dark default + light switch).
   Built from the supplied logo: warm off-white, ink, one ultramarine thread, Archivo at full
   width, and the mark's solid-plus-dashed double border. Layout patterns kept from the
   Hongyu study (v2). Intent: genz-design-language.md. Older versions: ../archive/. */

/* ---------- 1. Tokens ----------
   Dark is the default. Light is opt-in via the header switch, which sets
   <html data-theme="light"> and remembers it (see the inline script in the <head>). */
:root {
  --gutter: 16px;
  --max: 1180px;
  --narrow: 860px;
  --radius: 2px;
  --header-h: 76px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M5 5l14 14M19 8v11H8'/%3E%3C/svg%3E");

  /* Dark: ink-black board, off-white type, the thread brightened so it still reads. */
  --bg: #111317;
  --warm: #17191e;          /* hero, alternate bands, footer */
  --warm-2: #20232a;
  --surface: #1b1e24;       /* cards, labels, inputs */
  --ink: #f3f3ef;
  --ink-2: #b9bcc3;
  --ink-3: #8b8f98;
  --line: #2f333b;
  --thread: #7486ff;
  --thread-ink: #0b0e24;
  --thread-soft: #1d2246;
  --thread-stitch: rgba(11, 14, 36, 0.55);
  --wa: #3ccf78;
  --ph-bg: #1d2026;
  --ph-line: #2c3037;
  --error: #ff7a6b;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(17, 19, 23, 0.94);
  color-scheme: dark;
}
:root[data-theme="light"] {
  /* Light: the original label system: warm off-white, ink, one ultramarine thread. */
  --bg: #ffffff;
  --warm: #f3f3ef;          /* logo background */
  --warm-2: #e9e9e3;
  --surface: #ffffff;
  --ink: #16181c;
  --ink-2: #4b4f57;         /* logo "Fashion Apparel" grey */
  --ink-3: #7b7f88;
  --line: #d9d9d2;
  --thread: #2437d8;        /* logo hyphen and stitches: the only accent */
  --thread-ink: #ffffff;
  --thread-soft: #e6e9fc;
  --thread-stitch: var(--thread-stitch);
  --wa: #1f8f4a;
  --ph-bg: #ecece6;
  --ph-line: #d2d2ca;
  --error: #c0392b;
  --shadow: 0 12px 32px rgba(22, 24, 28, 0.07);
  --header-bg: rgba(255, 255, 255, 0.96);
  color-scheme: light;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-stretch: 100%;
  overflow-x: hidden; padding-bottom: 76px;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-weight: 800; font-stretch: 125%; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1; max-width: 15ch; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.04; max-width: 24ch; }
h3 { font-size: 1.15rem; font-weight: 700; font-stretch: 110%; letter-spacing: -0.01em; line-height: 1.25; }
h1 em, h2 em { font-style: normal; color: var(--thread); }

a { color: var(--thread); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--thread); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--thread); color: var(--thread-ink); padding: 10px 14px; }
.skip:focus { top: 10px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }

.section { padding: clamp(60px, 8vw, 112px) 0; }
.section.alt, .section.dark { background: var(--warm); }
.section:not(.alt):not(.dark) + .section:not(.alt):not(.dark) { border-top: 1px solid var(--line); }
.section-intro { color: var(--ink-2); max-width: 60ch; margin-bottom: 40px; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 44ch; margin: 24px 0 28px; }
.note { font-size: 0.86rem; color: var(--ink-3); line-height: 1.5; max-width: 72ch; margin-top: 16px; }
.section-link { margin-top: 32px; font-weight: 600; }
.cta-row.after-table, .after-table { margin-top: 28px; }

/* ---------- 3. Section title: the mark's four stitches under the headline ---------- */
main h2 { margin-bottom: 44px; }
main h2::after {
  content: ""; display: block; width: 64px; height: 0; margin-top: 18px;
  border-top: 5px dashed var(--thread);
}
.section > .wrap > h2:first-child { margin-left: auto; margin-right: auto; text-align: center; }
.section > .wrap > h2:first-child::after { margin-left: auto; margin-right: auto; }
.section > .wrap > h2:first-child + .section-intro { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- 4. Placeholder token ---------- */
.ph {
  font-size: 0.84em; font-weight: 500; font-stretch: 100%; letter-spacing: 0; text-transform: none;
  color: var(--thread); background: var(--thread-soft);
  outline: 1px dashed var(--thread); outline-offset: -1px; padding: 0 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; overflow-wrap: anywhere;
}
h1 .ph, h2 .ph { font-size: 0.4em; vertical-align: 0.4em; line-height: 1.7; }

/* ---------- 5. Logo lockup ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; min-width: 0; }
.logo:hover { text-decoration: none; }
.logo-mark { flex: none; width: 46px; height: 46px; background: var(--surface); border: 2px solid var(--ink); padding: 3px; }
.logo-mark-inner { width: 100%; height: 100%; border: 1px dashed var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.logo-gz { font-size: 17px; font-weight: 800; font-stretch: 125%; letter-spacing: -0.05em; line-height: 0.9; }
.logo-stitch { width: 18px; border-top: 2px dashed var(--thread); }
.logo-word { display: flex; flex-direction: column; gap: 3px; }
.logo-genz { font-size: 26px; font-weight: 800; font-stretch: 125%; letter-spacing: -0.035em; line-height: 0.86; }
.logo-hyphen { color: var(--thread); }
.logo-sub { font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2); padding-left: 1px; }
.logo-lg .logo-mark { width: 64px; height: 64px; border-width: 3px; padding: 4px; }
.logo-lg .logo-mark-inner { border-width: 1.5px; gap: 5px; }
.logo-lg .logo-gz { font-size: 24px; }
.logo-lg .logo-stitch { width: 26px; border-top-width: 3px; }
.logo-lg .logo-genz { font-size: 38px; }
.logo-lg .logo-sub { font-size: 15px; }

/* ---------- 6. Utility bar + header (white) ---------- */
.utility { background: var(--warm); color: var(--ink-2); font-size: 0.8rem; border-bottom: 1px solid var(--line); }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
.utility p { margin: 0; max-width: none; }
.utility-links { display: none; gap: 20px; list-style: none; }
.utility-links a { color: inherit; text-decoration: none; }
.utility-links a:hover { color: var(--thread); }
@media (min-width: 640px) { .utility-links { display: flex; } }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: var(--header-h); }

.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 2px; }
.nav a { display: block; padding: 8px 10px; font-size: 0.92rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--thread); }
.nav a[aria-current="page"] { color: var(--thread); border-bottom: 3px dashed var(--thread); }

.site-header .header-cta { display: none; }
.site-header .menu-btn { display: inline-flex; }
.nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); padding: 8px var(--gutter) 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.nav.open ul { flex-direction: column; }
.nav.open a { padding: 14px 4px; border-bottom: 1px dashed var(--line); font-size: 1rem; }
.nav-quote { margin-top: 16px; }
@media (min-width: 640px) { .site-header .header-cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav, .nav.open { display: block; position: static; padding: 0; border: 0; background: none; box-shadow: none; }
  .nav.open ul { flex-direction: row; }
  .nav.open a { padding: 8px 10px; border-bottom: 3px solid transparent; font-size: 0.92rem; }
  .nav.open a[aria-current="page"] { border-bottom: 3px dashed var(--thread); }
  .site-header .menu-btn, .nav-quote { display: none; }
}
@media (max-width: 400px) { .logo-sub { display: none; } }

/* ---------- 7. Buttons: square like the mark, with an inner stitch ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; font: inherit; font-size: 0.95rem; font-weight: 700; line-height: 1.2;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color 150ms, color 150ms, border-color 150ms, filter 150ms;
}
.btn-lg { padding: 16px 26px; font-size: 1.02rem; }
.btn-primary { background: var(--thread); color: var(--thread-ink); border-color: var(--thread); outline: 1px dashed var(--thread-stitch); outline-offset: -6px; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-wa { background: var(--surface); color: var(--wa); border-color: var(--wa); }
.btn-block { width: 100%; }
.btn .ph { color: inherit; background: transparent; outline-color: currentColor; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 8px; }
.text-link { font-weight: 700; }

/* ---------- 8. Hero (warm off-white, like the logo board) ---------- */
.hero { background: var(--warm); padding: clamp(52px, 7vw, 96px) 0 clamp(60px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 40px; }
.hero-media { position: relative; }
.hero .answer { margin-top: 36px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; } }
.crumbs { font-size: 0.84rem; color: var(--ink-3); margin-bottom: 28px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--thread); }

/* ---------- 9. Image placeholder ---------- */
.img-ph {
  position: relative; width: 100%; margin: 0; aspect-ratio: 4 / 5;
  background-color: var(--ph-bg);
  background-image: repeating-linear-gradient(135deg, transparent 0 13px, var(--ph-line) 13px 14px);
}
.img-ph.r43 { aspect-ratio: 4 / 3; }
.img-ph.r1610 { aspect-ratio: 16 / 10; }
.img-ph.r11 { aspect-ratio: 1 / 1; }
.img-ph figcaption {
  position: absolute; top: 12px; left: 12px; right: 12px; width: fit-content; z-index: 1;
  background: var(--surface); color: var(--ink-2); font-size: 0.74rem; font-weight: 500; line-height: 1.35; padding: 5px 9px;
  border: 1px dashed var(--ph-line);
}
.img-ph figcaption .ph { font-size: 1em; }

/* ---------- 10. Double-border label (the mark) ----------
   Solid outer border, dashed inner seam. Used for facts and for "our" choice. */
.care-label { background: var(--surface); border: 2px solid var(--ink); padding: 6px; box-shadow: var(--shadow); }
.care-label-inner { border: 1px dashed var(--ink); padding: 18px 20px; }
.label-title { font-size: 0.78rem; font-weight: 800; font-stretch: 112%; letter-spacing: 0.02em; color: var(--ink); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 3px dashed var(--thread); width: fit-content; }
.care-label dl { margin: 0; display: grid; gap: 9px; }
.care-label dl > div { display: grid; grid-template-columns: 9em 1fr; gap: 10px; font-size: 0.9rem; line-height: 1.4; }
.care-label dt { color: var(--ink-3); font-weight: 500; }
.care-label dd { margin: 0; font-weight: 600; min-width: 0; }
.hero-media .care-label { margin-top: 16px; }
@media (min-width: 480px) { .hero-media .care-label { position: absolute; left: -14px; bottom: 22px; margin: 0; width: min(340px, 88%); } }
@media (min-width: 900px) { .hero-media .care-label { left: -40px; } }

/* ---------- 11. Answer block ---------- */
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--thread); padding: 18px 20px; font-size: 0.96rem; max-width: 62ch; color: var(--ink-2); }
.answer p { margin: 0; }

/* ---------- 12. Numbers band (white, dashed dividers) ---------- */
.trust-section { background: var(--surface); padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
.trust li { text-align: center; padding: 0 8px; }
.trust li:last-child { grid-column: 1 / -1; }
.trust .num { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; font-stretch: 125%; letter-spacing: -0.035em; line-height: 1.05; }
.trust .num .ph { font-size: 0.36em; vertical-align: 0.45em; line-height: 1.7; }
.trust li:last-child .num { color: var(--thread); white-space: nowrap; }
.trust .cap { display: block; margin-top: 8px; font-size: 0.86rem; color: var(--ink-3); }
@media (min-width: 760px) {
  .trust ul { grid-template-columns: repeat(5, 1fr); }
  .trust li:last-child { grid-column: auto; }
  .trust li + li { border-left: 1px dashed var(--line); }
}

/* ---------- 13. Grids ---------- */
.grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 14. Tier card ---------- */
.tiers { counter-reset: tier; align-items: stretch; }
.tier { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); padding: 32px 26px 28px; counter-increment: tier; }
.tier h3 { text-align: center; font-size: 1.25rem; }
.tiers .tier h3::before { content: counter(tier) ". "; color: var(--thread); }
.tier > p { margin: 0 auto; color: var(--ink-2); font-size: 0.94rem; text-align: center; max-width: 34ch; }
.tier.recommended { border: 2px solid var(--ink); outline: 1px dashed var(--ink); outline-offset: -8px; box-shadow: var(--shadow); }
.tier .spec { margin: 6px 0 8px; }
.tier .btn { margin-top: auto; align-self: center; }
.tier.recommended .btn { background: var(--thread); color: var(--thread-ink); border-color: var(--thread); outline: 1px dashed var(--thread-stitch); outline-offset: -6px; }
.alt .tier:not(.recommended), .alt .case { border-color: var(--line); }

/* ---------- 15. Spec list ---------- */
.spec { margin: 0; }
.spec > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 0.9rem; line-height: 1.45; }
.spec > div:last-child { border-bottom: 1px dashed var(--line); }
.spec dt { color: var(--ink-3); font-weight: 500; }
.spec dd { margin: 0; font-weight: 600; min-width: 0; }

.spec-row { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 36px; }
.spec-row li { text-align: center; padding: 20px 10px; background: var(--surface); border: 2px solid var(--ink); outline: 1px dashed var(--ink); outline-offset: -7px; }
.spec-row .k { display: block; font-size: 0.82rem; font-weight: 500; color: var(--ink-3); }
.spec-row .v { display: block; font-size: 1.3rem; font-weight: 800; font-stretch: 125%; letter-spacing: -0.03em; line-height: 1.3; margin-top: 4px; }
.spec-row .v .ph { font-size: 0.55em; vertical-align: 0.2em; }
@media (min-width: 640px) { .spec-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .spec-row { grid-template-columns: repeat(5, 1fr); } }
.center { text-align: center; }

/* ---------- 16. Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.sheet { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9rem; line-height: 1.45; }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px dashed var(--line); }
.sheet thead th { background: var(--warm); font-weight: 700; border-bottom: 2px solid var(--ink); }
.sheet tbody th { font-weight: 500; color: var(--ink-2); width: 32%; }
.sheet td { font-weight: 600; }
.sheet tbody tr:last-child > * { border-bottom: 0; }
.sheet .ph { white-space: nowrap; overflow-wrap: normal; }
/* "Our column": blue tint with thread rules, header in thread with a stitch. */
.sheet-compare thead th:nth-child(2) { background: var(--thread); color: var(--thread-ink); text-align: center; outline: 1px dashed var(--thread-stitch); outline-offset: -6px; }
.sheet-compare td:nth-child(2) { background: var(--thread-soft); text-align: center; border-left: 2px solid var(--thread); border-right: 2px solid var(--thread); }
.sheet-compare td:nth-child(2) a { color: var(--thread); }
.sheet-invoice td:last-child { text-align: right; }
.sheet-invoice tbody th { width: 62%; }
.sheet-invoice .total > * { border-top: 2px solid var(--ink); font-weight: 800; color: var(--ink); font-size: 1rem; }
.sheet-invoice .per > * { color: var(--ink-2); }
.sheet-products tbody th { width: 26%; min-width: 11em; }

/* ---------- 17. Steps: cards with the number in a label box ---------- */
.steps { list-style: none; display: grid; gap: 20px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); padding: 26px 24px 28px; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: inline-block;
  font-size: 1.15rem; font-weight: 800; font-stretch: 125%; line-height: 1; padding: 9px 9px;
  margin-bottom: 18px; border: 2px solid var(--ink); outline: 1px dashed var(--ink); outline-offset: -5px;
}
.steps li:last-child { background: var(--thread-soft); border-color: var(--thread); }
.steps li:last-child::before { border-color: var(--thread); outline-color: var(--thread); color: var(--thread); }
.steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.94rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 18. Category tiles: photo with a white care label on it ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; }
@media (min-width: 820px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .tiles-mosaic .tile:nth-child(5n + 1) { grid-column: span 2; }
}
.tile a { color: inherit; text-decoration: none; display: block; }
.tile-media { position: relative; overflow: hidden; }
.tile-media .img-ph { aspect-ratio: auto; height: clamp(200px, 24vw, 280px); }
.tile-media h3 {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; max-width: calc(100% - 24px);
  background: var(--surface); border: 2px solid var(--ink); outline: 1px dashed var(--ink); outline-offset: -5px;
  padding: 9px 12px; font-size: 0.98rem;
}
.tile a:hover h3 { color: var(--thread); border-color: var(--thread); outline-color: var(--thread); }
.tile p { margin: 10px 0 0; font-size: 0.86rem; color: var(--ink-3); line-height: 1.45; }
.tiles-square .tile-media .img-ph { height: auto; aspect-ratio: 1 / 1; }

/* ---------- 19. Case + quote cards ---------- */
.case { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); padding: 0 0 24px; }
.case > :not(.img-ph) { margin-left: 22px; margin-right: 22px; }
.case h3 { margin-top: 6px; }
.case .btn { align-self: flex-start; margin-top: 8px; }
.case-wide { display: grid; gap: 28px; }
@media (min-width: 900px) { .case-wide { grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; } }
.quote-card { background: var(--surface); border: 1px solid var(--line); padding: 28px 26px; margin: 0; display: flex; flex-direction: column; gap: 18px; position: relative; }
.quote-card::before { content: ""; width: 40px; border-top: 4px dashed var(--thread); }
.quote-card blockquote { margin: 0; font-size: 1.05rem; font-weight: 500; }
.quote-card blockquote p { margin: 0; }
.quote-card figcaption { margin-top: auto; }

/* ---------- 20. Lists ---------- */
.rules { list-style: none; max-width: 72ch; }
.rules li { padding: 15px 0; border-top: 1px dashed var(--line); }
.rules li:last-child { border-bottom: 1px dashed var(--line); }
.rules strong { font-weight: 700; }
.two-col { display: grid; gap: 48px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.block p { color: var(--ink-2); }
#founders .two-col { align-items: center; }

/* ---------- 21. FAQ ---------- */
.faq { max-width: 960px; margin: 0 auto; counter-reset: q; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px dashed var(--ink-3); counter-increment: q; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 14px; padding: 20px 0; font-weight: 700; font-size: 1.06rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(q, decimal-leading-zero); flex: none; color: var(--ink-3); font-weight: 800; font-stretch: 125%; min-width: 1.9em; }
.faq summary::after {
  content: ""; flex: none; margin-left: auto; width: 18px; height: 18px; margin-top: 3px; background: var(--ink);
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform 200ms;
}
.faq details[open] summary, .faq details[open] summary::before { color: var(--thread); }
.faq details[open] summary::after { transform: rotate(-90deg); background: var(--thread); }
.faq .a { padding: 0 0 22px calc(1.9em + 14px); color: var(--ink-2); max-width: 80ch; font-size: 0.98rem; }
.faq .a p { margin: 0; }
.after-faq { margin: 26px auto 0; font-weight: 500; text-align: center; max-width: none; }

/* ---------- 22. Forms ---------- */
.form { display: grid; gap: 18px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: 0.92rem; }
.field small { font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input[type="file"] { font: inherit; font-size: 0.9rem; color: var(--ink-2); padding: 22px; border: 1.5px dashed var(--ink-3); background: var(--surface); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--thread); box-shadow: 0 0 0 3px var(--thread-soft); }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--ink); background: var(--surface); font-size: 0.88rem; font-weight: 500; cursor: pointer; user-select: none; transition: background-color 150ms, color 150ms; }
.chip-check input:checked + span { background: var(--thread); border-color: var(--thread); color: var(--thread-ink); outline: 1px dashed var(--thread-stitch); outline-offset: -4px; }
.chip-check input:focus-visible + span { outline: 3px solid var(--thread); outline-offset: 3px; }
.radios { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.radios label, .check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.96rem; font-weight: 400; cursor: pointer; }
.radios input, .check input { width: 18px; height: 18px; accent-color: var(--thread); margin: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field.invalid .chip-check span { border-color: var(--error); }
.err { color: var(--error); font-size: 0.84rem; display: none; }
.field.invalid .err { display: block; }
.form-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.form-note { font-size: 0.88rem; color: var(--ink-3); margin: 0; }
.form-done { border: 2px solid var(--ink); outline: 1px dashed var(--ink); outline-offset: -6px; background: var(--surface); padding: 18px 20px; font-weight: 600; }
.alt .form, .dark .form { background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); }

.form-layout { display: grid; gap: 48px; }
@media (min-width: 900px) { .form-layout { grid-template-columns: 1.45fr 0.55fr; gap: 56px; align-items: start; } }
.aside-list { list-style: none; }
.aside-list li { padding: 15px 0; border-top: 1px dashed var(--line); }
.aside-list li:last-child { border-bottom: 1px dashed var(--line); }
.aside-list .k { display: block; font-size: 0.84rem; color: var(--ink-3); font-weight: 500; margin-bottom: 4px; }
.aside-list .v { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- 23. Footer (warm off-white) ---------- */
.site-footer { background: var(--warm); color: var(--ink-2); padding: 56px 0 28px; font-size: 0.9rem; border-top: 2px solid var(--ink); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px dashed var(--line); }
.footer-brand p { margin: 0; font-size: 0.9rem; }
.footer-grid { display: grid; gap: 32px 24px; grid-template-columns: 1fr 1fr; }
.footer-grid h2 { font-size: 0.92rem; font-weight: 800; font-stretch: 112%; color: var(--ink); margin: 0 0 14px; max-width: none; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--thread); text-decoration: underline; }
.footer-contact, .footer-news { grid-column: 1 / -1; }
.footer-contact li { overflow-wrap: anywhere; }
.news-form { display: flex; gap: 8px; max-width: 420px; }
.news-form .field { flex: 1; }
.news-form input { flex: 1; min-width: 0; font: inherit; font-size: 0.95rem; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.news-form input:focus { outline: none; border-color: var(--thread); box-shadow: 0 0 0 3px var(--thread-soft); }
.footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-3); font-size: 0.84rem; }
.footer-bottom a { color: var(--ink-3); text-decoration: none; }
.footer-bottom a:hover { color: var(--thread); text-decoration: underline; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr) 1.2fr 1.2fr; }
  .footer-contact, .footer-news { grid-column: auto; }
}

/* ---------- 24. WhatsApp float + mobile bar ---------- */
.wa-float { position: fixed; right: var(--gutter); bottom: 88px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; background: #1f8f4a; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.92rem; padding: 12px 18px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.wa-float svg { width: 20px; height: 20px; }
.wa-float:hover { text-decoration: none; filter: brightness(1.06); }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.mobile-bar .btn { width: 100%; padding-left: 12px; padding-right: 12px; }
@media (min-width: 900px) { body { padding-bottom: 0; } .mobile-bar { display: none; } .wa-float { bottom: 24px; right: 24px; } }

/* ---------- 25. Thank-you ---------- */
.thanks { background: var(--warm); padding: clamp(64px, 10vw, 130px) 0; }
.thanks h1 { max-width: 20ch; }

/* ---------- 26. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 27. Pages added in the full build ---------- */
.center h2, .center .section-intro { margin-left: auto; margin-right: auto; }
.center h2::after { margin-left: auto; margin-right: auto; }
.center .cta-row { justify-content: center; }
.soon { display: inline-block; margin-left: 8px; font-size: 0.78rem; font-weight: 600; color: var(--ink-3); border: 1px dashed var(--ink-3); padding: 1px 7px; vertical-align: 0.1em; }
.prose h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 40px 0 12px; max-width: none; }
.prose h2::after { width: 32px; border-top-width: 3px; margin-top: 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 0 0 28px; }
.search-form input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.search-form input:focus { outline: none; border-color: var(--thread); box-shadow: 0 0 0 3px var(--thread-soft); }
.chips-static span { display: inline-block; padding: 7px 13px; border: 1.5px solid var(--ink); background: var(--surface); font-size: 0.86rem; font-weight: 500; }
.page-note { background: var(--thread-soft); border: 1px dashed var(--thread); color: var(--ink); padding: 12px 16px; font-size: 0.9rem; margin: 0 0 24px; max-width: none; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { margin-left: auto; margin-right: auto; text-align: center; }
.faq-group h2::after { margin-left: auto; margin-right: auto; }

/* ---------- 28. Theme switch ---------- */
.theme-btn { padding: 0; width: 46px; height: 46px; flex: none; }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: block; }
:root[data-theme="light"] .theme-btn .i-moon { display: none; }
.theme-btn:hover svg { color: inherit; }
/* The logo mark keeps its white label in both themes, like the printed tag. */
.logo-mark { background: #fff; border-color: #16181c; color: #16181c; }
.logo-mark .logo-mark-inner { border-color: #16181c; }
.logo-mark .logo-stitch { border-top-color: #2437d8; }
/* Switching themes animates colours once, not on first paint. */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color 200ms, color 200ms, border-color 200ms !important; }
.mobile-bar.mobile-bar-one { grid-template-columns: 1fr; }
.img-ph.has-img { background: var(--ph-bg); overflow: hidden; }
.img-ph.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Grid columns may shrink below their content's natural width (long words, photos), so nothing pushes the page sideways on phones. */
.two-col > *, .tiles > *, .grid > *, .hero-grid > *, .form-layout > *, .case-wide > *, .steps > * { min-width: 0; }
.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 820px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
dd, .aside-list .v, .care-label dd a { overflow-wrap: anywhere; }
/* <picture> wrapper for WebP photos fills its frame like the bare <img> did */
.img-ph picture { display: block; width: 100%; height: 100%; }
