@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #E4EEE6;
  --paper-deep: #CADDCF;
  --sheet: #FAFCF8;
  --ink: #1C2B5A;
  --ink-soft: #4A5784;
  --stamp: #C2362F;
  --graphite: #2A2E35;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

/* ---------- top ---------- */
.top { padding: 1.4rem 0 0; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.top .mark { font: 600 1rem/1 var(--sans); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.top .ig { font-size: .95rem; color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 6rem); display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.15fr; } }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  font-size: clamp(3.2rem, 11vw, 6.6rem);
  line-height: .9;
  letter-spacing: -.035em;
  color: var(--ink);
  margin: 0 0 1.4rem;
}
.hero p { max-width: 30ch; font-size: clamp(1.1rem, 2.2vw, 1.3rem); margin: 0; color: var(--graphite); }

/* ---------- the check ---------- */
.check {
  position: relative;
  background: var(--sheet) url("/guilloche.svg") repeat center / 600px;
  border-radius: 6px;
  padding: clamp(1.2rem, 3.5vw, 2rem) clamp(1.2rem, 4vw, 2.4rem) clamp(1.4rem, 3.5vw, 2rem);
  box-shadow: 0 1px 0 var(--paper-deep), 0 24px 48px -28px rgba(28, 43, 90, .45);
  color: var(--ink);
  transform: rotate(-1.2deg);
}
.check::before { /* perforated stub edge */
  content: ""; position: absolute; inset: 0 auto 0 -1px; width: 6px;
  background: radial-gradient(circle at 0 50%, var(--paper) 3px, transparent 3.5px) 0 0 / 6px 14px repeat-y;
}
.check-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.bank { font: 600 1.05rem/1.2 var(--serif); font-variation-settings: "opsz" 24; }
.bank small { display: block; font: 400 .8rem/1.3 var(--sans); color: var(--ink-soft); }
.chk-no { font-size: .85rem; color: var(--ink-soft); text-align: right; }
.field { margin-top: 1.25rem; display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; align-items: end; }
.field .k { font-size: .78rem; color: var(--ink-soft); line-height: 1.2; }
.field .v { border-bottom: 1px solid var(--ink); padding-bottom: .15rem; font: italic 500 1.25rem/1.2 var(--serif); font-variation-settings: "opsz" 36; }
.amount-row { display: flex; gap: .8rem; align-items: end; margin-top: 1.1rem; }
.amount-row .field { flex: 1; margin: 0; }
.amount {
  border: 1.5px solid var(--ink); border-radius: 3px; padding: .3rem .7rem;
  font: 600 1.6rem/1 var(--serif); font-variation-settings: "opsz" 48; background: rgba(250, 252, 248, .8);
}
.sign { margin-top: 1.4rem; display: flex; justify-content: flex-end; }
.sign div { min-width: 12rem; text-align: center; }
.sign .scrawl { font: italic 400 1.9rem/1 var(--serif); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; transform: rotate(-4deg); display: inline-block; }
.sign .line { border-top: 1px solid var(--ink); margin-top: .25rem; padding-top: .2rem; font-size: .75rem; color: var(--ink-soft); }

/* rubber stamp */
.stamp {
  display: inline-block;
  color: var(--stamp);
  border: 3px solid currentColor;
  border-radius: 6px;
  padding: .35em .7em .3em;
  font: 800 1rem/1 var(--sans);
  letter-spacing: .02em;
  transform: rotate(-7deg);
  white-space: nowrap;
  mix-blend-mode: multiply;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -0.7 1.2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -0.7 1.2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.check .stamp { position: absolute; left: 7%; bottom: 13%; white-space: nowrap; font-size: clamp(1.3rem, 4vw, 1.9rem); border-width: 4px; transform: rotate(-12deg); }
@media (prefers-reduced-motion: no-preference) {
  .check .stamp { animation: thump .45s cubic-bezier(.2, 1.6, .4, 1) .7s both; }
  @keyframes thump { from { opacity: 0; transform: rotate(-12deg) scale(2.2); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
}

/* ---------- ronda final ---------- */
.round { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--paper-deep); }
.round-head { display: grid; gap: .6rem 3rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) { .round-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.round h2 { font: 600 clamp(2.2rem, 6vw, 3.6rem)/1 var(--serif); font-variation-settings: "opsz" 144, "SOFT" 50; letter-spacing: -.03em; color: var(--ink); margin: 0; }
.round-head p { margin: 0; max-width: 42ch; }

.ideas { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .ideas { grid-template-columns: repeat(3, 1fr); } }
.idea {
  position: relative; display: flex; flex-direction: column; gap: .9rem;
  background: var(--sheet); border-radius: 2px 2px 10px 10px;
  padding: 1.6rem 1.4rem 1.4rem; text-decoration: none; color: var(--graphite);
  box-shadow: 0 1px 0 var(--paper-deep);
  transition: transform .2s ease, box-shadow .2s ease;
}
.idea::before { /* tear-off edge */
  content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 10px;
  background: radial-gradient(circle at 50% 0, var(--paper) 4px, transparent 4.5px) 0 0 / 14px 10px repeat-x;
}
.idea:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(28, 43, 90, .5); }
.idea .who { font-size: .9rem; color: var(--ink-soft); }
.idea h3 { font: 600 1.85rem/1.02 var(--serif); font-variation-settings: "opsz" 72, "SOFT" 30; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.idea p { margin: 0; }
.idea .foot .stamp { font-size: .85rem; }
.idea .foot { margin-top: auto; padding-top: .6rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.idea .more { white-space: nowrap; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

.vote { margin-top: 2rem; font-size: 1rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--paper-deep); color: var(--ink-soft); font-size: .95rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; }

/* ---------- preview pages ---------- */
.back { display: inline-block; margin-top: 2rem; font-size: .95rem; }
.pv { display: grid; gap: clamp(2rem, 6vw, 5rem); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); align-items: start; }
@media (min-width: 900px) {
  .pv { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "head phone" "body phone"; row-gap: 0; }
  .pv-head { grid-area: head; } .pv-body { grid-area: body; }
  .pv .phone-col { grid-area: phone; position: sticky; top: 2rem; }
}
.pv-head .meta { margin-bottom: 0; }
.pv h1 { font: 600 clamp(2.8rem, 9vw, 5rem)/.92 var(--serif); font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1; letter-spacing: -.035em; color: var(--ink); margin: .2rem 0 1.2rem; }
.pv .lede { font-size: clamp(1.15rem, 2.2vw, 1.3rem); max-width: 34ch; margin: 0 0 1.6rem; }
.pv .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 2.2rem; }
.pv h2 { font: 600 1.35rem/1.2 var(--serif); font-variation-settings: "opsz" 36; color: var(--ink); margin: 2rem 0 .6rem; }
.pv-body > h2:first-child { margin-top: 0; }
@media (min-width: 900px) { .pv-body > h2:first-child { margin-top: 2.2rem; } }
.pv ul { margin: 0; padding-left: 1.1rem; max-width: 46ch; }
.pv li { margin: .35rem 0; }
.pv li::marker { color: var(--stamp); }
.pv .note { margin-top: 2rem; font-size: .95rem; color: var(--ink-soft); max-width: 46ch; }
.btn { display: inline-block; margin-top: 1.6rem; background: var(--ink); color: var(--sheet); text-decoration: none; font-weight: 600; padding: .85rem 1.3rem; border-radius: 999px; }
.btn:hover { background: #2A3C78; }

/* phone mockup */
.phone {
  width: min(100%, 320px); margin-inline: auto; aspect-ratio: 9 / 19.2;
  background: #15181E; border-radius: 46px; padding: 11px;
  box-shadow: 0 40px 70px -40px rgba(28, 43, 90, .7), inset 0 0 0 1.5px #3a3f4a;
}
.screen { height: 100%; border-radius: 36px; overflow: hidden; background: #fff; position: relative; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; color: #20232a; }
.notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 86px; height: 24px; background: #15181E; border-radius: 20px; z-index: 2; }
.sbar { height: 44px; flex: none; }
.app-h { padding: 6px 18px 12px; }
.app-h small { color: #7a7f8c; font-size: 11.5px; }
.app-h b { display: block; font: 600 21px/1.15 var(--serif); font-variation-settings: "opsz" 36; letter-spacing: -.01em; }
.app-b { flex: 1; padding: 0 14px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.tabs { flex: none; display: flex; justify-content: space-around; padding: 10px 10px 22px; border-top: 1px solid #eceef1; font-size: 10.5px; color: #8a8f9a; }
.tabs .on { color: #20232a; font-weight: 600; }
.row { border-radius: 14px; padding: 11px 12px; background: #f4f5f7; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.row .t { font-weight: 600; }
.row .s { font-size: 11.5px; color: #6c717d; }
.pill { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.seg { display: flex; background: #eef0f3; border-radius: 10px; padding: 3px; font-size: 12px; font-weight: 600; }
.seg span { flex: 1; text-align: center; padding: 6px; border-radius: 8px; color: #7a7f8c; }
.seg .on { background: #fff; color: #20232a; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bar { height: 7px; border-radius: 9px; background: #e6e8ec; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: 9px; }
.bubble { align-self: flex-end; background: #2F6B4F; color: #fff; border-radius: 16px 16px 4px 16px; padding: 9px 12px; max-width: 82%; }
.bubble.in { align-self: flex-start; background: #f1f2f4; color: #20232a; border-radius: 16px 16px 16px 4px; }
.wave { display: flex; gap: 2px; align-items: center; height: 16px; margin-top: 4px; }
.wave i { width: 3px; border-radius: 2px; background: currentColor; opacity: .8; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
