/* Ready by Tuesday — calm-competence design system.
   Deliberately NOT doomsday aesthetics: warm paper tones, book-serif
   headings, generous whitespace. Single light theme by design. */

:root {
  --paper: #FAF7F2;
  --paper-deep: #F1EBE0;
  --ink: #26241F;
  --ink-soft: #55503F;
  --green: #2E5339;
  --green-dark: #234229;
  --terracotta: #C4663A;
  --line: #E5DED2;
  --card: #FFFFFF;
  --maxw: 700px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  font-size: 1.06rem;
  line-height: 1.65;
}

h1, h2, h3, .serif {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin: 0.4em 0 0.5em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 1.8em 0 0.6em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 0.4em; }

p, ul, ol, table { margin-bottom: 1em; }
ul, ol { padding-left: 1.3em; }
a { color: var(--green); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 14px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: baseline; }
.brand { font-family: Georgia, serif; font-weight: bold; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--green); }
.topbar .tag { font-size: 0.85rem; color: var(--ink-soft); }

/* Hero */
.hero { padding: 56px 0 30px; text-align: left; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem;
  color: var(--green); font-weight: 600; margin-bottom: 0.8em;
}
.dek { font-size: 1.15rem; color: var(--ink-soft); }

/* CTA */
.cta-btn {
  display: inline-block; background: var(--green); color: #fff;
  font-weight: 600; font-size: 1.1rem; padding: 16px 34px;
  border-radius: 8px; text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 2px 0 var(--green-dark);
}
.cta-btn:hover { background: var(--green-dark); }
.cta-sub { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }
.cta-block { margin: 2em 0; text-align: center; }
.decline-link { display: inline-block; margin-top: 14px; color: var(--ink-soft); font-size: 0.95rem; }

/* Cards & boxes */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 22px 24px; margin: 1.2em 0;
}
.quote {
  border-left: 4px solid var(--green); background: var(--paper-deep);
  padding: 14px 18px; margin: 1.2em 0; font-family: Georgia, serif;
  font-size: 1.08rem;
}
.quote .attr { display: block; font-family: "Segoe UI", sans-serif; font-size: 0.82rem; color: var(--ink-soft); margin-top: 6px; }
.notice {
  background: #FDF3EC; border: 1px solid #EAC8B2; border-radius: 8px;
  padding: 14px 18px; margin: 1.2em 0; font-size: 0.95rem;
}
.safety {
  background: #F3F6F0; border: 2px solid var(--green); border-radius: 8px;
  padding: 16px 18px; margin: 1.2em 0;
}
.safety strong { color: var(--green-dark); }

/* Part blocks on sales page */
.part { border-top: 1px solid var(--line); padding-top: 1.2em; }
.part .partnum {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--terracotta); font-weight: 700;
}

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.table-scroll { overflow-x: auto; }

/* Calculator */
.calc-controls { display: flex; gap: 10px; flex-wrap: wrap; margin: 1em 0; }
.calc-controls select, .calc-controls input, .calc-controls button {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 7px; background: #fff;
}
.calc-controls button { background: var(--green); color: #fff; border: 0; cursor: pointer; font-weight: 600; }
.calc-controls button:hover { background: var(--green-dark); }
#deviceTable input[type="number"] { width: 84px; padding: 6px 8px; font: inherit; border: 1px solid var(--line); border-radius: 6px; }
#deviceTable .remove { color: var(--terracotta); background: none; border: 0; cursor: pointer; font-size: 1rem; }
.result-band {
  background: var(--card); border: 2px solid var(--green); border-radius: 10px;
  padding: 20px 22px; margin: 1.4em 0;
}
.result-band .big { font-family: Georgia, serif; font-size: 1.5rem; color: var(--green-dark); }
.muted { color: var(--ink-soft); font-size: 0.9rem; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 10px; }

/* Footer */
footer {
  margin-top: 70px; border-top: 1px solid var(--line);
  padding: 26px 0 46px; font-size: 0.85rem; color: var(--ink-soft);
}
footer a { color: var(--ink-soft); }
footer .links { margin-top: 6px; }
footer .links a { margin-right: 14px; }

/* Checkout stub */
.stub-banner {
  background: var(--paper-deep); border: 1px dashed var(--ink-soft);
  border-radius: 8px; padding: 12px 16px; font-size: 0.9rem; margin: 1em 0;
}
.bump {
  border: 2px dashed var(--terracotta); background: #FFFDF9;
  border-radius: 10px; padding: 16px 18px; margin: 1.2em 0;
}
.bump label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.bump input[type="checkbox"] { margin-top: 5px; transform: scale(1.3); }

@media print {
  .topbar, .cta-block, footer, .calc-controls, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
}

@media (max-width: 640px) {
  .hero { padding: 34px 0 16px; }
  .cta-btn { display: block; text-align: center; }
}

/* --- DR visual layer (2026-08-15 upgrade) --- */
.trust-row {
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  margin-top: 14px; font-size: 0.88rem; color: var(--ink-soft);
}
.trust-row span::before { content: "✓ "; color: var(--green); font-weight: 700; }

.imgframe { margin: 1.4em 0; text-align: center; }
.imgframe img { max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(38,36,31,0.12); }
.imgframe figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 8px; }

.media-row { display: flex; gap: 24px; align-items: center; margin: 1.6em 0; }
.media-row .m-img { flex: 0 0 42%; }
.media-row .m-img img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 8px 24px rgba(38,36,31,0.12); }
.media-row .m-txt { flex: 1; }
.media-row.rev { flex-direction: row-reverse; }
@media (max-width: 640px) { .media-row, .media-row.rev { flex-direction: column; } .media-row .m-img { flex-basis: auto; } }

.offer-stack {
  background: var(--card); border: 2px solid var(--green); border-radius: 14px;
  padding: 26px 26px 22px; margin: 1.6em 0; box-shadow: 0 12px 34px rgba(46,83,57,0.14);
}
.offer-stack h2 { margin-top: 0; }
.offer-item { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.offer-item:last-of-type { border-bottom: 0; }
.offer-item .oi-name strong { display: block; }
.offer-item .oi-name span { font-size: 0.9rem; color: var(--ink-soft); }
.offer-item .oi-tag { white-space: nowrap; font-weight: 700; color: var(--green); }
.offer-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px;
}
.offer-total .big { font-family: Georgia, serif; font-size: 1.6rem; }

.seal {
  display: flex; gap: 22px; align-items: center; background: var(--paper-deep);
  border-radius: 14px; padding: 22px 24px; margin: 1.6em 0;
}
.seal svg { flex: 0 0 110px; }
@media (max-width: 640px) { .seal { flex-direction: column; text-align: center; } }

/* ============ v3: MAGAZINE EDITORIAL SYSTEM (2026-08-15) ============ */
/* Full-width color bands; .wrap moves INSIDE sections on band pages. */

.band { padding: 64px 0; }
.band-green { background: var(--green); color: #F3EFE6; }
.band-green h1, .band-green h2, .band-green h3 { color: #FAF7F2; }
.band-green a { color: #F0C9AF; }
.band-green .muted, .band-green .dek { color: #CBD5C6; }
.band-dark { background: #191813; color: #E9E4D8; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #FAF7F2; }
.band-dark .muted { color: #9B968A; }
.band-deep { background: var(--paper-deep); }
.band-terra { background: #F5E3D7; }
.band-tight { padding: 40px 0; }

.kicker {
  font-family: "Segoe UI", sans-serif; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 700;
  color: var(--terracotta); margin-bottom: 1.1em;
}
.band-green .kicker, .band-dark .kicker { color: #E8A87C; }

.display {
  font-size: clamp(2rem, 5.4vw, 3.3rem); line-height: 1.08;
  letter-spacing: -0.01em; margin: 0 0 0.4em;
}
.standfirst { font-family: Georgia, serif; font-size: 1.22rem; line-height: 1.5; font-style: italic; }

.byline {
  display: flex; gap: 14px; align-items: center; margin: 1.6em 0;
  padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft);
}
.band-dark .byline { border-color: #3A382F; color: #9B968A; }

.dropcap::first-letter {
  font-family: Georgia, serif; float: left; font-size: 3.6em; line-height: 0.82;
  padding: 0.06em 0.12em 0 0; color: var(--terracotta); font-weight: 700;
}

.pull {
  font-family: Georgia, serif; font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.25; font-style: italic; text-align: center;
  padding: 0.6em 1em; margin: 1.4em auto; max-width: 620px; position: relative;
}
.pull::before { content: "“"; font-size: 2.2em; color: var(--terracotta); line-height: 0;
  vertical-align: -0.35em; margin-right: 0.08em; }
.pull .attr { display: block; font-family: "Segoe UI", sans-serif; font-style: normal;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 1em; color: var(--ink-soft); }
.band-dark .pull .attr, .band-green .pull .attr { color: #9B968A; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1.4em 0; }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 16px; text-align: center;
}
.stat-tile .n { font-family: Georgia, serif; font-size: 2rem; color: var(--terracotta); line-height: 1.1; }
.stat-tile .l { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; display: block; }
.stat-tile .s { font-size: 0.7rem; color: var(--ink-soft); opacity: 0.75; display: block; margin-top: 6px; }

.partband { display: flex; gap: 22px; align-items: flex-start; margin: 2.2em 0 0; }
.bignum {
  font-family: Georgia, serif; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 0.9;
  color: transparent; -webkit-text-stroke: 2px var(--terracotta); flex: 0 0 auto; min-width: 74px;
}
@supports not (-webkit-text-stroke: 2px red) { .bignum { color: var(--terracotta); } }
.partband h3 { margin-top: 0.15em; font-size: 1.35rem; }
.cols2 { columns: 2; column-gap: 34px; }
.cols2 li { break-inside: avoid; margin-bottom: 10px; }
@media (max-width: 640px) { .cols2 { columns: 1; } .partband { gap: 14px; } }
ul.checks { list-style: none; padding-left: 0; }
ul.checks li { padding-left: 26px; position: relative; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.band-green ul.checks li::before, .band-dark ul.checks li::before { color: #E8A87C; }

.figure-full { margin: 1.8em 0; }
.figure-full img { width: 100%; height: auto; border-radius: 12px; display: block; }
.figure-full figcaption {
  font-size: 0.82rem; letter-spacing: 0.02em; color: var(--ink-soft);
  margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--terracotta);
}
.band-dark .figure-full figcaption { color: #9B968A; }
.band-dark .figure-full img { box-shadow: 0 18px 50px rgba(0,0,0,0.55); }

.cta-terra { background: var(--terracotta); box-shadow: 0 2px 0 #A04E28; }
.cta-terra:hover { background: #A9552D; }
.band-green .cta-sub, .band-dark .cta-sub { color: #CBC6B8; }
.band-green .trust-row, .band-dark .trust-row { color: #CBC6B8; }
.band-green .trust-row span::before, .band-dark .trust-row span::before { color: #E8A87C; }

.band-green .offer-stack { border-color: #FAF7F2; box-shadow: 0 18px 50px rgba(0,0,0,0.28); color: var(--ink); }
.band-green .offer-stack h2 { color: var(--ink); }
.band-green .offer-stack .muted { color: var(--ink-soft); }

.band-dark .quote, .band-green .quote { background: rgba(255,255,255,0.07); color: inherit; }
.band-deep .stat-tile, .band-terra .stat-tile { background: #fff; }
.rule-accent { width: 64px; height: 4px; background: var(--terracotta); border: 0; margin: 0 0 1.2em; }

/* ============ v3.1: owner-review pass (2026-08-15) ============ */
.stat-tile .n { display: block; }
.stat-tile .s a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Hero with product */
.hero-grid { display: flex; gap: 34px; align-items: center; }
.hero-grid .h-txt { flex: 1 1 58%; }
.hero-grid .h-img { flex: 1 1 42%; }
.hero-grid .h-img img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 22px 55px rgba(0,0,0,0.35); }
@media (max-width: 760px) { .hero-grid { flex-direction: column; } .hero-grid .h-img { max-width: 420px; } }

/* Mechanism stepper */
.steps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 1.5em 0; justify-content: center; }
.step {
  font-family: Georgia, serif; font-weight: 700; font-size: 1.02rem;
  background: #fff; border: 2px solid var(--green); color: var(--green-dark);
  border-radius: 999px; padding: 9px 18px; white-space: nowrap;
}
.step small { display: block; font-family: "Segoe UI", sans-serif; font-weight: 400; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.step-arrow { color: var(--terracotta); font-weight: 700; font-size: 1.1rem; }
.step.ghost { border-style: dashed; border-color: var(--ink-soft); color: var(--ink-soft); background: transparent; }

/* Look-inside gallery: true miniatures of real pages */
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 1.6em 0; }
@media (min-width: 860px) { .preview-grid { grid-template-columns: repeat(3, 1fr); } }
.sheet-card { text-decoration: none; color: inherit; display: block; min-width: 0; }
.sheet-frame {
  background: #fff; border-radius: 8px; box-shadow: 0 10px 28px rgba(38,36,31,0.18);
  overflow: hidden; height: 320px; position: relative; border: 1px solid var(--line);
}
.sheet-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 68%, rgba(255,255,255,0.95)); }
.sheet-mini {
  width: 760px; transform: scale(0.42); transform-origin: top left;
  padding: 34px 38px; font-family: Georgia, serif; color: #26241F; font-size: 1rem; line-height: 1.55;
}
.sheet-mini h4 { font-size: 1.5rem; color: #2E5339; margin: 0 0 4px; }
.sheet-mini .k { font-family: "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: #C4663A; font-weight: 700; }
.sheet-mini table { width: 100%; border-collapse: collapse; font-family: "Segoe UI", sans-serif; font-size: 0.85rem; margin-top: 10px; }
.sheet-mini th, .sheet-mini td { border: 1px solid #E5DED2; padding: 6px 8px; text-align: left; }
.sheet-mini th { background: #F1EBE0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.sheet-mini .warn { background: #F3F6F0; border: 2px solid #2E5339; border-radius: 8px; padding: 10px 12px; margin-top: 10px; font-family: "Segoe UI", sans-serif; font-size: 0.88rem; }
.sheet-mini ul { padding-left: 1.2em; margin: 8px 0; }
.sheet-cap { font-size: 0.86rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }
.sheet-cap strong { color: var(--ink); }
.band-green .sheet-cap, .band-green .sheet-cap strong { color: #E9E4D8; }

/* Offer stack: product-thumb rows + purchase-object feel */
.offer-item { align-items: center; }
.oi-thumb { flex: 0 0 46px; width: 46px; height: 60px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); box-shadow: 0 3px 8px rgba(38,36,31,0.15); }
.offer-item { display: flex; }
.offer-item .oi-name { flex: 1; }
.offer-guarantee-line { display: flex; gap: 10px; align-items: center; font-size: 0.9rem; color: var(--ink-soft); margin-top: 12px; justify-content: center; }
.offer-guarantee-line svg { flex: 0 0 34px; }

/* ============ v3.2: visual conversion pass (2026-08-15) ============ */

/* Blackout night timeline */
.timeline { position: relative; margin: 1.6em 0; padding-left: 0; }
.t-entry { position: relative; padding: 0 0 26px 84px; }
.t-entry::before { content: ""; position: absolute; left: 30px; top: 8px; bottom: -8px; width: 2px; background: linear-gradient(#C4663A, rgba(196,102,58,0.15)); }
.t-entry:last-child::before { display: none; }
.t-entry::after { content: ""; position: absolute; left: 24px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #191813; border: 3px solid #E8A87C; box-shadow: 0 0 14px rgba(232,168,124,0.5); }
.t-time { position: absolute; left: 52px; top: 0; font-family: Georgia, serif; font-weight: 700; color: #E8A87C; font-size: 1.05rem; white-space: nowrap; }
.t-entry p { margin: 0; padding-top: 32px; }
@media (max-width: 640px) { .t-entry { padding-left: 58px; } .t-entry::before { left: 20px; } .t-entry::after { left: 14px; } .t-time { left: 42px; } }

/* Methodology glyphs + numbered steps */
.step { display: inline-flex; align-items: center; gap: 9px; }
.step .g { width: 22px; height: 22px; flex: 0 0 22px; }
.step .g svg { width: 100%; height: 100%; display: block; }
.step div { text-align: left; }

/* Part identity: glyph + outcome line */
.part-glyph { width: 30px; height: 30px; margin-top: 10px; }
.part-glyph svg { width: 100%; height: 100%; }
.outcome { font-family: Georgia, serif; font-style: italic; font-size: 1.05rem; color: var(--green-dark); border-left: 3px solid var(--terracotta); padding: 4px 0 4px 12px; margin: 6px 0 12px; }

/* Offer equation strip */
.equation { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 1.4em 0 1.6em; }
.doc-chip { background: #FDFBF6; border: 1px solid #D8D0BF; border-radius: 6px; padding: 8px 10px 7px; width: 108px; box-shadow: 0 4px 10px rgba(0,0,0,0.18); position: relative; }
.doc-chip::before { content: ""; display: block; height: 5px; width: 60%; background: var(--green); border-radius: 3px; margin-bottom: 5px; }
.doc-chip.terra::before { background: var(--terracotta); }
.doc-chip .t { font-family: "Segoe UI", sans-serif; font-size: 0.72rem; font-weight: 700; color: var(--ink); line-height: 1.25; display: block; }
.doc-chip .u { font-size: 0.64rem; color: var(--ink-soft); display: block; margin-top: 2px; }
.eq-op { font-family: Georgia, serif; font-size: 1.5rem; color: #E8A87C; font-weight: 700; }
.eq-result { font-family: Georgia, serif; font-size: 1.3rem; color: #FAF7F2; white-space: nowrap; }
.eq-result s { color: #CBC6B8; font-size: 0.95rem; }

/* First Weekend roadmap */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 1.5em 0; }
@media (max-width: 760px) { .roadmap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 430px) { .roadmap { grid-template-columns: 1fr; } }
.rm-block { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 12px; position: relative; }
.rm-block .rm-when { font-family: "Segoe UI", sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terracotta); display: block; }
.rm-block h4 { font-family: Georgia, serif; font-size: 1.02rem; margin: 4px 0 6px; color: var(--green-dark); }
.rm-block p { font-family: "Segoe UI", sans-serif; font-size: 0.85rem; color: var(--ink-soft); margin: 0; line-height: 1.45; }
.rm-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.rm-badge { background: var(--green); color: #F3EFE6; font-family: "Segoe UI", sans-serif; font-weight: 700; font-size: 0.85rem; border-radius: 999px; padding: 7px 16px; }
.rm-badge.alt { background: transparent; border: 2px solid var(--green); color: var(--green-dark); }

/* v3.2 mobile refinements */
@media (max-width: 640px) {
  .preview-grid { grid-template-columns: 1fr; }
  .sheet-frame { height: 300px; }
  .sheet-mini { transform: scale(0.45); }
  .equation { gap: 6px; }
  .doc-chip { width: 96px; }
  .band { padding: 46px 0; }
}
