/* ============================================================
   Spinbound — marketing site  ·  "AIR MAIL" (design option 2a)
   Token-driven recreation of the locked prototype spec.
   ============================================================ */

:root {
  /* Brand */
  --postal:   #2f57d4;   /* primary — hero, app header, TODAY pill, signup, eyebrows */
  --cream:    #F4EDE0;   /* text on blue, keyline, input bg, airmail stripe */
  --ink:      #211c17;   /* headings, dark buttons, footer */
  --terra:    #b9663f;   /* step 02, REVIEW chip, airmail stripe, footer label */
  --error:    #cb3f2a;   /* LATE chip, lateness text/dates/dots */
  --green:    #0c7a48;   /* delivered */
  --green-bd: #0c5e38;
  --green-alt:#2c7a4a;
  --green-dot:#12a15f;
  --transit:  #2b50c8;   /* in-transit blue */
  --plum:     #9b3f6b;   /* pre-order */
  --slate:    #3a4256;   /* app tray only */
  --amber:    #9d6210;   /* running-late heading */
  --amber-rule:#e6cfa8;

  /* Paper tints */
  --paper-1:  #f8f4ea;   /* how-it-works bg */
  --paper-2:  #faf8f3;   /* demo panels */
  --paper-3:  #fcfaf7;   /* chips */
  --code-chip:#efe9db;
  --sleeve-in:#efe9e0;
  --cardboard:#dcc9a4;

  /* Neutrals */
  --n1:#48423a; --n2:#6e665a; --n3:#9a9384; --n4:#b3a98f;
  --n5:#d8d2c6; --n6:#e6e0d3; --n7:#ece7db;

  /* Fonts */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Hanken Grotesk', system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;

  --maxw: 1180px;
  --pad: 56px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--postal);      /* so overscroll at top matches the hero */
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  background: #fff;               /* the page "card" */
  overflow: hidden;              /* keep the phone crop + rounded look tidy */
}

/* ---- Wordmark (record-as-"o") --------------------------------- */
.wm {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}
.wm svg { flex: none; margin: 0 -1px; transform: translateY(2px); }

/* ============================================================
   1 · HERO
   ============================================================ */
.hero { background: var(--postal); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--pad) 0;
}
.nav .wm { font-size: 23px; }
.nav .wm svg { width: 18px; height: 18px; }

.badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(244,237,224,.85);
  border: 1.5px solid rgba(244,237,224,.4);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
}

.hero-body {
  display: flex;
  gap: 60px;
  padding: 44px var(--pad) 0;
  align-items: flex-start;
}
.hero-left { flex: 1; min-width: 0; padding: 30px 0 84px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(244,237,224,.7);
}
.hero h1 {
  font-family: var(--display);
  font-size: 62px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.04;
  color: var(--cream);
  margin: 18px 0 20px;
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(244,237,224,.88);
  margin: 0 0 30px;
  max-width: 46ch;
}

/* ---- Email form (shared: hero + signup) ---------------------- */
.form {
  display: flex;
  gap: 10px;
  max-width: 470px;
}
.form input {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid rgba(33,28,23,.2);
  border-radius: 8px;
  padding: 13px 16px;
  outline: none;
}
.form input:focus { border-color: rgba(33,28,23,.55); }
.form button {
  flex: none;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  background: var(--ink);
  color: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 13px 20px;
  cursor: pointer;
  transition: opacity .15s ease;
}
.form button:hover { opacity: .88; }

.form-err {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #ffd9cc;
  margin-top: 10px;
}
.form-ok {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cream);
  background: rgba(244,237,224,.14);
  border: 1.5px dashed rgba(244,237,224,.5);
  border-radius: 8px;
  padding: 14px 20px;
}
[hidden] { display: none !important; }

.footnote {
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(244,237,224,.6);
  margin-top: 16px;
}

/* ---- Phone mock --------------------------------------------- */
.phone-crop {
  flex: none;
  width: 426px;
  height: 648px;
  overflow: hidden;
}
.phone-key {
  width: 402px;
  margin: 0 auto;
  border-radius: 48px;
  box-shadow: 0 0 0 2.5px rgba(244,237,224,.92), 0 30px 70px rgba(10,18,60,.4);
}

/* iOS device frame (recreated from ios-frame.jsx) */
.device {
  width: 402px;
  height: 874px;
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: 0 40px 80px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.12);
  font-family: -apple-system, system-ui, sans-serif;
}
.island {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 126px; height: 37px;
  border-radius: 24px;
  background: #000;
  z-index: 50;
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 21px 30px 19px;
}
.statusbar .time {
  font-family: -apple-system, "SF Pro", system-ui;
  font-weight: 590; font-size: 17px; line-height: 22px; color: #fff;
}
.statusbar .icons { display: flex; align-items: center; gap: 7px; }
.screen { position: absolute; inset: 0; background: #fff; overflow: hidden; }

/* ---- App-feed marketing mock -------------------------------- */
.appheader {
  background: var(--postal);
  padding: 52px 20px 15px;
}
.appheader .wm { font-size: 26px; }
.appheader .wm svg { width: 20px; height: 20px; }
.appheader .sub {
  font-family: var(--body);
  font-size: 11.5px;
  color: rgba(244,237,224,.8);
  margin-top: 7px;
}
.appheader .sub .dot { color: rgba(244,237,224,.5); margin: 0 4px; }
.appheader .sub b { color: #fff; }

.feed { padding: 12px 18px 30px; font-family: var(--body); }

.tray {
  background: var(--slate);
  border-radius: 14px;
  padding: 13px 12px 12px;
  box-shadow: 0 5px 18px rgba(40,48,64,.26);
}
.tray-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 11px; padding: 0 2px;
}
.tray-head .gdot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2ee59d; box-shadow: 0 0 0 3px rgba(46,229,157,.18);
}
.tray-head .t { font-family: var(--display); font-weight: 600; font-size: 14.5px; color: var(--cream); }
.tray-head .s { font-size: 12px; color: #c7ccd6; }
.tray-head .c { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #9be9c6; }

.rcard { background: #fff; border-radius: 10px; padding: 11px; box-shadow: 0 2px 10px rgba(0,0,0,.22); }
.rrow { display: flex; gap: 11px; }
.sleeve {
  flex: none; width: 56px; height: 56px;
  background: var(--cardboard); padding: 5.5px; border-radius: 3px;
}
.sleeve > div { width: 100%; height: 100%; overflow: hidden; background: var(--sleeve-in); }
.sleeve img { width: 100%; height: 100%; object-fit: cover; }
.rmeta { flex: 1; min-width: 0; }
.rtitle-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rtitle { font-family: var(--display); font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.rtag { font-family: var(--mono); font-size: 11px; color: var(--green); font-weight: 700; flex: none; white-space: nowrap; }
.rline1 { font-family: var(--mono); font-size: 11.5px; color: var(--n2); margin-top: 4px; }
.rline2 { font-family: var(--mono); font-size: 10.5px; color: var(--n3); margin-top: 2px; }
.rline-late { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--error); margin-top: 3px; }
.chips { display: flex; gap: 7px; margin-top: 9px; align-items: center; }
.stamp {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
  color: #fff; border-radius: 3px; padding: 3px 7px;
  transform: rotate(-2deg); white-space: nowrap;
}
.stamp.delivered { background: var(--green); }
.stamp.transit   { background: var(--transit); }
.tile {
  width: 31px; height: 31px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--n6); border-radius: 7px; background: var(--paper-3);
  font-size: 16px;
}
.track-chip {
  font-family: var(--mono); font-size: 11.5px; color: var(--n2);
  border: 1px solid var(--n6); border-radius: 7px; background: var(--paper-3);
  display: inline-flex; align-items: center; gap: 4px; height: 31px; padding: 0 10px; white-space: nowrap;
}
.btn-confirm {
  display: block; width: 100%; margin-top: 11px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .02em;
  border-radius: 7px; padding: 11px 0;
  border: 1.5px solid var(--green-bd); background: var(--green); color: #fff;
}
.btn-ghost {
  display: block; width: 100%; margin-top: 11px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  border-radius: 7px; padding: 10px 0;
  border: 1.5px solid var(--green-alt); background: #fff; color: var(--green-alt);
}

.sect-late { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 8px; }
.sect-late h3 { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--amber); margin: 0; }
.sect-late .c { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--amber); }
.sect-late .rule { flex: 1; height: 1px; background: var(--amber-rule); }

.late-row { display: flex; gap: 11px; }
.gutter {
  flex: none; width: 32px;
  display: flex; flex-direction: column; align-items: center; padding-top: 2px;
}
.gutter .mo { font-family: var(--mono); font-size: 8px; font-weight: 700; color: var(--error); line-height: 1; margin-bottom: 2px; }
.gutter .dy { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--error); line-height: 1; }
.gutter .wk { font-family: var(--mono); font-size: 9px; color: var(--error); margin-top: 1px; }
.gutter .node { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--error); box-shadow: 0 0 0 1.5px var(--error); margin-top: 6px; }
.gutter .conn { flex: 1; border-left: 1.5px dashed var(--n5); margin-top: 5px; min-height: 8px; }
.late-card {
  flex: 1; min-width: 0; background: #fff;
  border: 1.5px solid var(--n7); border-radius: 9px;
  padding: 11px; margin-bottom: 11px; box-shadow: 0 1px 4px rgba(40,30,20,.05);
}
.late-card .rtag { color: var(--error); font-size: 10.5px; }

.today {
  display: flex; align-items: center; margin: 14px 0 12px;
}
.today .rule { flex: 1; height: 2px; background: var(--postal); opacity: .85; border-radius: 2px; }
.today .pill {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  color: #fff; background: var(--postal); border-radius: 999px; padding: 5px 13px; margin: 0 8px;
  display: inline-flex; align-items: center; gap: 6px;
}
.today .pill .wdot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* ============================================================
   2 · AIRMAIL EDGE
   ============================================================ */
.airmail {
  height: 16px;
  background: repeating-linear-gradient(-45deg,
    var(--terra) 0 14px, #f4ede0 14px 28px, var(--postal) 28px 42px, #f4ede0 42px 56px);
}

/* ============================================================
   3 · HOW IT WORKS
   ============================================================ */
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
}
.h2 {
  font-family: var(--display);
  font-size: 38px; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink);
  margin: 12px 0 44px;
}

.howto { background: var(--paper-1); padding: 70px var(--pad) 74px; }
.howto .section-eyebrow { color: var(--terra); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px dashed currentColor;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  margin-bottom: 16px;
}
.step.s1 .num { color: var(--postal); }
.step.s2 .num { color: var(--terra); }
.step.s3 .num { color: var(--green); }
.step .st { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--n1); margin: 0; }
.code {
  font-family: var(--mono); font-size: 13px;
  background: var(--code-chip); border-radius: 4px; padding: 1px 5px;
  white-space: nowrap;
}

/* ============================================================
   4 · FEATURES
   ============================================================ */
.features { background: #fff; border-top: 1px solid var(--n7); padding: 70px var(--pad) 74px; }
.features .section-eyebrow { color: var(--postal); }
.features .h2 { margin: 12px 0 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border: 1.5px solid var(--n7); border-radius: 12px; padding: 24px; }
.chip {
  display: inline-block;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: #fff; border-radius: 3px; padding: 4px 8px; transform: rotate(-2deg);
}
.chip.spine  { background: var(--postal); }
.chip.review { background: var(--terra); }
.chip.late   { background: var(--error); }
.card .ct { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); margin: 14px 0 7px; }
.card p { font-size: 14.5px; line-height: 1.55; color: var(--n1); margin: 0 0 16px; }
.demo { background: var(--paper-2); border-radius: 8px; padding: 13px 14px; }
.demo.rows { display: flex; flex-direction: column; gap: 9px; }
.demo .trow { display: flex; align-items: center; gap: 9px; }
.demo .tdate { font-family: var(--mono); font-size: 10px; font-weight: 700; color: #7c7566; width: 44px; }
.demo .tdot { width: 8px; height: 8px; border-radius: 50%; }
.demo .tdot.green { background: var(--green-dot); }
.demo .tdot.blue  { background: var(--transit); }
.demo .tdot.plum  { background: var(--plum); }
.demo .ttext { font-size: 12.5px; color: var(--ink); }
.demo .from { font-family: var(--mono); font-size: 10px; color: var(--n3); }
.demo .q { font-size: 13px; font-weight: 600; color: var(--ink); margin: 4px 0 10px; }
.demo .qbtns { display: flex; gap: 8px; }
.demo .qbtns .yes { font-family: var(--mono); font-size: 11px; font-weight: 700; background: var(--ink); color: var(--cream); border-radius: 6px; padding: 7px 12px; }
.demo .qbtns .skip { font-family: var(--mono); font-size: 11px; font-weight: 700; border: 1.5px solid var(--n5); color: var(--n2); border-radius: 6px; padding: 7px 12px; }
.demo .late-line { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--error); }
.demo .late-sub { font-size: 12.5px; color: var(--n2); margin-top: 5px; }

/* ============================================================
   5 · SIGNUP
   ============================================================ */
.signup {
  background: var(--postal);
  border-top: 1.5px solid rgba(244,237,224,.35);
  padding: 78px var(--pad);
  text-align: center;
}
.signup .section-eyebrow { color: rgba(244,237,224,.65); letter-spacing: .18em; }
.signup .h2 { font-size: 42px; color: var(--cream); margin: 14px 0 12px; }
.signup .lede { font-size: 16.5px; line-height: 1.55; color: rgba(244,237,224,.85); margin: 0 auto 28px; max-width: 52ch; }
.signup .form { margin: 0 auto; }
.signup .form-ok { margin: 0 auto; }
.signup .footnote { font-size: 11px; color: rgba(244,237,224,.55); margin-top: 18px; }

/* ============================================================
   6 · FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--pad);
}
.footer .wm { font-size: 18px; }
.footer .wm svg { width: 14px; height: 14px; transform: translateY(1.5px); }
.footer .contact { font-family: var(--mono); font-size: 11.5px; color: var(--n4); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  :root { --pad: 32px; }
  .hero-body { flex-direction: column; align-items: center; gap: 8px; }
  .hero-left { padding: 24px 0 44px; text-align: center; max-width: 560px; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero .form { margin: 0 auto; }
  .hero h1 { font-size: 52px; }
  .phone-crop { height: 620px; }
  .steps { grid-template-columns: 1fr; gap: 34px; max-width: 460px; }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 600px) {
  :root { --pad: 22px; }
  .nav { padding-top: 20px; }
  .nav .wm { font-size: 20px; }
  .badge { font-size: 10px; padding: 6px 11px; letter-spacing: .1em; }
  .hero h1 { font-size: 38px; }
  .lede { font-size: 17px; }
  .form { flex-direction: column; }
  .form button { padding: 13px 20px; }
  .h2 { font-size: 30px; }
  .signup .h2 { font-size: 32px; }
  /* scale the phone mock so it never overflows narrow screens */
  .phone-crop { width: 100%; height: 560px; display: flex; justify-content: center; }
  .phone-key { transform: scale(.82); transform-origin: top center; }
  .footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 380px) {
  .phone-key { transform: scale(.72); }
  .phone-crop { height: 500px; }
}

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