/* Trench Report — "Loud and flat". One face (Inter), black ground, paper, red pen. */
:root {
  --bg: #000;
  --step: #151515;
  --step-2: #1f1f1f;
  --white: #f4f4f2;
  --paper: #eeeeea;
  --paper-ink: #111;
  --paper-mute: #5f5f5a;
  --red: #e8352b;
  --red-dark: #b8241b;
  --green: #36d07a;
  --mute: #9a9a9a;
  --m: 20px; /* page margin */
  --display: clamp(72px, 12vw, 190px);
  --h2: clamp(40px, 5.6vw, 92px);
  --large: clamp(22px, 2vw, 30px);
  --body: 18px;
  --small: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--white); }
body { font: 400 var(--body)/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.up { color: var(--green); }
.down { color: var(--red); }
.small { font-size: var(--small); }

/* Buttons: square, flat, one shape everywhere */
.btn { border: 0; border-radius: 0; padding: 16px 22px; min-height: 52px; font-weight: 700; cursor: pointer; transition: transform .15s var(--ease), background-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--bg); color: var(--white); }
.btn-red { background: var(--red); color: #000; }
.btn-red:hover { background: #ff4a3f; }
.btn-ghost { background: var(--step-2); color: var(--white); }
.wide { width: 100%; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* Navigation */
.nav { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 20px var(--m); }
.wordmark { font-weight: 900; font-size: var(--large); letter-spacing: -0.04em; text-decoration: none; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { text-decoration: none; font-size: var(--small); color: var(--white); opacity: .85; transition: opacity .15s; }
.nav nav a:hover { opacity: 1; text-decoration: underline; }

/* The paper report card (a real fragment of the product) */
.card-paper { background: var(--paper); color: var(--paper-ink); }
.rc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 20px 12px; }
.rc-title { font-weight: 900; font-size: var(--large); letter-spacing: -0.03em; }
.rc-who { font-size: var(--small); color: var(--paper-mute); font-variant-numeric: tabular-nums; }
.rc-table { width: 100%; border-collapse: collapse; font-size: var(--small); }
.rc-table th { text-align: left; font-weight: 500; color: var(--paper-mute); font-size: 13px; padding: 6px 20px; border-top: 2px solid var(--paper-ink); border-bottom: 1px solid #cdc9bd; }
.rc-table td { padding: 9px 20px; border-bottom: 1px solid #dcd8cc; vertical-align: middle; }
.rc-table td:first-child { font-weight: 600; white-space: nowrap; }
.rc-table td:last-child { color: #3d3b36; }
.pen { color: var(--red); font-weight: 900; font-size: 26px; line-height: 1; transform: rotate(-4deg); display: inline-block; }
td.pen { display: table-cell; transform: none; }
.rc-foot { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 16px 20px 18px; }
.rc-overall { display: grid; justify-items: center; gap: 2px; }
.rc-k { font-size: 13px; color: var(--paper-mute); }
.rc-grade { display: grid; place-items: center; width: 92px; height: 92px; border: 4px solid var(--red); border-radius: 50%; color: var(--red); font-weight: 900; font-size: 58px; line-height: 1; transform: rotate(-8deg); }
.rc-comment { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.rc-score { margin: 0 0 6px; font-size: var(--small); color: var(--paper-mute); }
.scrap figcaption { font-size: 13px; color: var(--paper-mute); padding: 0 20px 16px; }

/* Hero */
.hero { position: relative; }
.hero-field { position: relative; min-height: 82svh; padding: max(16svh, 120px) var(--m) 0; }
h1 { margin: 0; font-weight: 900; font-size: var(--display); line-height: .84; letter-spacing: -0.055em; max-width: 64vw; position: relative; z-index: 1; }
.scrap { position: absolute; z-index: 2; margin: 0; width: clamp(360px, 28vw, 480px); right: 3vw; top: calc(82svh - 400px); transform: rotate(5deg); transform-origin: 50% 0; }
.hero-band { background: var(--red); color: #000; min-height: 18svh; padding: 28px var(--m); display: grid; grid-template-columns: minmax(0, 34ch) minmax(0, 440px); gap: 32px; align-items: center; }
.hero-sub { margin: 0; font-size: var(--body); font-weight: 500; line-height: 1.4; }
.paste { display: flex; gap: 0; }
.paste input { flex: 1; min-width: 0; font: inherit; font-size: var(--body); background: var(--paper); color: var(--paper-ink); border: 0; border-radius: 0; padding: 0 16px; min-height: 60px; }
.paste input::placeholder { color: var(--paper-mute); }
.paste button { border: 0; border-radius: 0; background: #000; color: var(--white); font-weight: 800; font-size: 18px; padding: 0 28px; min-height: 60px; cursor: pointer; transition: background-color .15s; }
.paste button:hover { background: #222; }
.paste button:disabled { opacity: .6; cursor: progress; }
.status { display: block; padding: 18px var(--m); background: var(--red); color: #000; font-weight: 600; }
.track { display: block; height: 6px; background: rgba(0,0,0,.2); margin-top: 10px; max-width: 600px; }
.fill { display: block; height: 100%; width: 0; background: #000; transition: width .3s ease; }
.error { margin: 0; padding: 18px var(--m); background: #000; color: var(--red); font-weight: 600; }

/* Result */
.result { padding: 120px var(--m) 140px; background: var(--step); }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.result-card .rc-grade { width: 120px; height: 120px; font-size: 76px; }
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 32px; margin: 0 0 28px; }
.numbers dt { color: var(--mute); font-size: var(--small); }
.numbers dd { margin: 0; font-size: var(--large); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.actions .btn-ink { background: var(--white); color: #000; }
.locked { background: var(--red); color: #000; padding: 28px; }
.locked h3 { margin: 0 0 8px; font-size: var(--large); font-weight: 900; letter-spacing: -0.02em; }
.locked p { margin: 0 0 18px; }
.locked .btn-red { background: #000; color: var(--white); }
.share-canvas { display: none; }
.full { margin-top: 96px; }
.full h2 { font-size: clamp(32px, 3.6vw, 56px); font-weight: 900; letter-spacing: -0.04em; margin: 64px 0 20px; line-height: 1; }
.rules { margin: 0; padding-left: 28px; font-size: var(--large); font-weight: 600; max-width: 60ch; }
.rules li { margin: 12px 0; }
.table-wrap { overflow-x: auto; background: var(--paper); color: var(--paper-ink); }
table.plain { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.plain th { text-align: left; font-weight: 500; font-size: 13px; color: var(--paper-mute); padding: 12px 16px; border-bottom: 2px solid var(--paper-ink); }
table.plain td { padding: 12px 16px; border-bottom: 1px solid #dcd8cc; white-space: nowrap; }
.split3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.split3 h3 { font-size: 20px; margin: 0 0 14px; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 92px; gap: 10px; align-items: center; font-size: var(--small); }
.bt { height: 10px; background: var(--step-2); }
.bf { display: block; height: 100%; }
.bf.up { background: var(--green); }
.bf.down { background: var(--red); }
.bv { text-align: right; font-variant-numeric: tabular-nums; }
.bl { color: var(--mute); }
.bc { display: none; }

/* Showcase: the departure board */
.board-section { padding: 160px 0 60px; }
.board-title { margin: 0 var(--m) 40px; font-weight: 900; font-size: var(--h2); line-height: .92; letter-spacing: -0.045em; max-width: 14ch; }
.board { display: grid; gap: 4px; padding: 0 12px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 17% 17% 200px; align-items: center; column-gap: 16px; width: 100%; min-height: 72px; padding: 0 0 0 20px; border: 0; border-radius: 0; background: var(--step); color: var(--white); font-size: clamp(20px, 2vw, 28px); font-weight: 700; text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color .15s; }
.row:hover { background: var(--step-2); }
.r-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.02em; }
.r-fact { color: var(--mute); font-weight: 500; }
.r-status { align-self: stretch; display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #000; }
.st-dodged { background: var(--green); }
.st-early { background: var(--red); }
.st-dead { background: #6e6e6e; color: #fff; }
.r-detail { display: none; grid-column: 1 / -1; font-size: var(--body); font-weight: 500; padding: 0 20px 24px 0; max-width: 70ch; }
.row.open { background: var(--red); color: #000; min-height: 216px; align-content: center; padding-top: 24px; }
.row.open .r-name { font-size: clamp(36px, 4vw, 60px); font-weight: 900; }
.row.open .r-fact { color: #000; }
.row.open .r-status { align-self: center; height: 56px; background: #000; color: var(--white); }
.row.open .r-detail { display: block; padding-top: 14px; }
.board-note { margin: 24px var(--m) 0; color: var(--mute); font-size: var(--small); }

/* How it works: one card, four fields */
.fields { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 120px; overflow: clip; }
.field { position: relative; min-height: 84svh; padding: 28px; display: flex; flex-direction: column; }
.field h2 { margin: 0; font-weight: 900; font-size: clamp(32px, 3.2vw, 52px); letter-spacing: -0.04em; line-height: .95; }
.f1 { background: var(--step); }
.f2 { background: var(--red); color: #000; }
.f3 { background: var(--paper); color: var(--paper-ink); }
.f4 { background: #000; }
.mini { position: absolute; top: 38%; left: 28px; width: min(260px, calc(100% - 56px)); display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 18px; font-size: var(--small); transition: transform .15s var(--ease); }
.f3 .mini { background: #fff; }
.field:hover .mini.in, .field:hover .mini { transform: translateY(-6px); }
.mini-k { color: var(--paper-mute); font-size: 13px; align-self: center; }
.mini-v { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.mini-v.blank { color: #55554f; font-style: italic; }
.mini-v.big { font-size: 40px; line-height: 1; }
.up-ink { color: #11703b; }
.clause { margin-top: auto; margin-bottom: 0; font-size: var(--large); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; max-width: 18ch; }

/* The rulebook on a real blackboard */
.board-photo { position: relative; margin-top: 160px; overflow: hidden; background: #1e2b24; }
.board-photo img { width: 100%; height: min(92svh, 860px); object-fit: cover; object-position: 50% 40%; }
.chalk { position: absolute; inset: 0; display: grid; align-content: center; padding: 0 16vw; color: var(--white); }
.chalk h2 { margin: 0 0 28px; font-weight: 900; font-size: clamp(36px, 4.6vw, 76px); line-height: .95; letter-spacing: -0.045em; max-width: 16ch; }
.chalk-list { margin: 0; padding-left: 30px; font-size: var(--large); font-weight: 600; line-height: 1.3; max-width: 46ch; }
.chalk-list li { margin: 10px 0; }
.chalk-note { margin: 22px 0 0; font-size: var(--small); color: #d9e0dc; }

/* Pricing: tiles that step up */
.pricing { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 8px; padding: 200px var(--m) 0; align-items: end; }
.pricing h2 { grid-column: 1 / 7; grid-row: 1; align-self: start; margin: 0 0 40px; font-weight: 900; font-size: var(--h2); line-height: .92; letter-spacing: -0.045em; }
.scrap-photo { width: 100%; height: auto; transform: rotate(-4deg); }
.p1 { grid-column: 1 / 5; grid-row: 2; align-self: end; margin-bottom: 60px; filter: contrast(1.1); }
.tiers { grid-column: 5 / 13; grid-row: 1 / 3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.tier { position: relative; display: flex; flex-direction: column; padding: 28px 28px 0; }
.tier h3 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.price { margin: 6px 0 18px; font-size: 56px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.price span { font-size: 20px; font-weight: 600; letter-spacing: 0; }
.tier ul { margin: 0 0 28px; padding-left: 20px; font-size: var(--body); }
.tier li { margin: 6px 0; }
.t-free { background: var(--paper); color: var(--paper-ink); min-height: 460px; }
.t-full { background: var(--red); color: #000; min-height: 620px; }
.strip { margin: auto -28px 0; display: flex; align-items: center; min-height: 64px; padding: 0 28px; font-weight: 800; font-size: 18px; text-decoration: none; transition: padding-left .15s var(--ease); }
.strip:hover { padding-left: 36px; }
.t-free .strip { background: #d9d5ca; }
.t-full .strip { background: var(--red-dark); color: #fff; }

/* FAQ: index cards in a drawer */
.faq { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 8px; padding: 200px var(--m) 0; }
.faq h2 { grid-column: 3 / 10; margin: 0 0 56px; font-weight: 900; font-size: var(--h2); line-height: .92; letter-spacing: -0.045em; }
.p2 { grid-column: 10 / 13; grid-row: 1 / 3; transform: rotate(4deg); align-self: start; margin-top: -40px; position: relative; z-index: 1; }
.drawer { grid-column: 3 / 11; display: grid; }
.idx { position: relative; margin-top: 36px; color: #000; }
.idx summary { list-style: none; cursor: pointer; display: block; padding: 22px 24px; min-height: 96px; }
.idx summary::-webkit-details-marker { display: none; }
.idx::before { content: ''; position: absolute; top: -28px; height: 28px; width: min(200px, 30%); left: calc(var(--i, 0) * min(150px, 13%)); background: inherit; clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%); }
.idx:nth-child(2) { --i: 1; } .idx:nth-child(3) { --i: 2; } .idx:nth-child(4) { --i: 3; } .idx:nth-child(5) { --i: 4; } .idx:nth-child(6) { --i: 5; }
.idx .q { display: block; font-size: var(--large); font-weight: 700; letter-spacing: -0.01em; }
.idx p { margin: 0; padding: 0 24px 28px; font-size: var(--body); max-width: 54ch; }
.c1 { background: var(--paper); }
.c2 { background: var(--red); }
.c3 { background: #c4c4bd; }
.idx summary:hover .q { text-decoration: underline; }

/* Footer: the call to action as the headline */
.foot { margin-top: 200px; background: var(--red); color: #000; min-height: 90svh; padding: 40px var(--m) 28px; display: flex; flex-direction: column; }
.foot-top { display: flex; justify-content: space-between; gap: 24px; font-size: var(--small); }
.foot-top p { margin: 0; }
.totop { font-weight: 700; }
.foot-shout { margin-top: auto; font-weight: 900; font-size: clamp(64px, 13.5vw, 230px); line-height: .85; letter-spacing: -0.06em; text-decoration: none; transition: color .15s; }
.foot-shout:hover { color: var(--white); }
.foot-meta { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 16px; margin-top: 32px; font-size: var(--small); }
.foot-meta .credits { text-align: center; }
.foot-meta span:last-child { text-align: right; }

/* Checkout */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.82); display: grid; place-items: center; padding: 16px; z-index: 20; }
.sheet { position: relative; width: 100%; max-width: 440px; padding: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.6); } /* taste-skill-ignore: dialog overlay */
.sheet h2 { margin: 0 0 8px; font-size: 28px; font-weight: 900; letter-spacing: -0.03em; }
.x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 28px; cursor: pointer; padding: 6px 10px; }
.amount { font-size: 34px; font-weight: 900; margin: 0 0 18px; letter-spacing: -0.03em; }
#pay-usd { font-size: 18px; font-weight: 500; color: var(--paper-mute); }
.qr-wrap { margin-top: 18px; text-align: center; }
.qr { background: #fff; width: 230px; margin: 0 auto; padding: 6px; }
.qr svg { display: block; width: 100%; height: auto; }
.addr { word-break: break-all; font-weight: 600; }
.pay-status { margin: 16px 0 0; font-weight: 700; }

/* Motion: content is visible by default; .js opts into entrances */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .scrap { animation: shutter 1.1s var(--ease) .15s both; }
@keyframes shutter {
  from { clip-path: inset(0 0 100% 0); transform: rotate(5deg) scale(1.12); }
  to { clip-path: inset(0 0 0 0); transform: rotate(5deg) scale(1); }
}
.drift { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translateX(-1.5%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .scrap, .drift { animation: none; }
}

/* Tablet */
@media (max-width: 1100px) {
  @keyframes shutter {
    from { clip-path: inset(0 0 100% 0); transform: rotate(3deg) scale(1.1); }
    to { clip-path: inset(0 0 0 0); transform: rotate(3deg) scale(1); }
  }
  .hero { display: flex; flex-direction: column; }
  .hero-field { display: contents; }
  h1 { order: 1; padding: 112px var(--m) 32px; max-width: none; }
  .hero-band { order: 2; grid-template-columns: 1fr; min-height: 0; gap: 20px; }
  .status, .error { order: 3; }
  .scrap { order: 4; position: relative; width: min(560px, 72%); right: auto; top: auto; margin: 40px var(--m) 0 auto; transform: rotate(3deg); }
  .paste { max-width: 620px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .field { min-height: 52svh; }
  .foot { min-height: 64svh; }
  .tiers { grid-column: 1 / 13; grid-row: 3; }
  .p1 { grid-column: 7 / 13; grid-row: 1 / 3; margin-bottom: 40px; }
  .split3 { grid-template-columns: 1fr; }
}

/* Phone: its own composition */
@media (max-width: 700px) {
  :root { --m: 16px; }
  .nav nav { gap: 16px; }
  .nav nav a:nth-child(-n+2) { display: none; }
  .hero-field { min-height: 0; padding: 104px var(--m) 0; }
  h1 { font-size: 15.5vw; }
  .scrap { width: calc(100% - 40px); }
  .rc-table td, .rc-table th { padding-left: 12px; padding-right: 12px; }
  .rc-table td:last-child { font-size: 13px; }
  .hero-band { padding-top: 24px; padding-bottom: 24px; }
  .paste { max-width: none; flex-direction: column; gap: 8px; }
  .result-grid { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .board-section { padding-top: 120px; }
  .board { padding: 0 8px; }
  .row { grid-template-columns: minmax(0, 1fr) 120px; min-height: 64px; font-size: 20px; padding-left: 14px; }
  .r-fact { display: none; }
  .row.open .r-detail { font-size: var(--small); }
  .fields { grid-template-columns: 1fr; margin-top: 120px; }
  .field { min-height: 0; padding: 40px 20px; }
  .mini { position: static; transform: none; margin: 28px 0 0; }
  .field:hover .mini { transform: none; }
  .clause { margin-top: 28px; order: -1; font-size: 24px; max-width: none; }
  .field h2 { order: -2; margin-bottom: 8px; }
  .board-photo { margin-top: 120px; }
  .board-photo img { height: 100svh; }
  .chalk { padding: 0 24px; }
  .pricing, .faq { display: block; padding-top: 140px; }
  .pricing h2, .faq h2 { font-size: 11vw; }
  .p1 { width: 70%; margin: 0 0 32px auto; }
  .tiers { grid-template-columns: 1fr; }
  .t-free, .t-full { min-height: 0; }
  .price { font-size: 44px; }
  .p2 { width: 60%; margin: 0 0 24px auto; }
  .idx .q { font-size: 20px; }
  .idx p { padding: 0 20px 24px; font-size: var(--body); }
  .foot { margin-top: 140px; }
  .foot-shout { font-size: 20vw; }
  .foot-meta { grid-template-columns: 1fr; font-size: 13px; }
  .foot-meta .credits, .foot-meta span:last-child { text-align: left; }
}

/* Guides (/learn) */
.guide { max-width: 760px; padding: 120px var(--m) 120px; }
.guide h1 { font-size: clamp(44px, 6vw, 84px); line-height: .95; max-width: none; margin-bottom: 24px; }
.guide .lede { font-size: var(--large); font-weight: 500; line-height: 1.35; margin: 0 0 40px; }
.guide h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 900; letter-spacing: -0.035em; line-height: 1; margin: 56px 0 16px; }
.guide p, .guide li { font-size: 19px; line-height: 1.6; }
.guide ul, .guide ol { padding-left: 24px; }
.guide .card-paper { padding: 20px 24px; margin: 28px 0; }
.guide .card-paper p { margin: 0; font-size: 18px; }
.guide-cta { background: var(--red); color: #000; padding: 28px; margin: 56px 0 0; }
.guide-cta h2 { margin: 0 0 14px; font-size: 32px; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; font-weight: 600; }
