/* ============================================================
   SELL IT FORWARD, a movement powered by Sell Right
   Akmal's layout and animations, dressed in the Sell Right brand:
   Paper / Ink / Rust, Archivo throughout, Plex Mono for labels.
   One fixed sky canvas paints the weather behind everything; each
   section is a paper sheet floating on it; a second canvas on top
   carries the plane and the children.
   ============================================================ */

:root {
  --paper: #F4F1EA;
  --paper-soft: rgba(244, 241, 234, .94);
  --paper-2: #EAE5DA;
  --field: #FBF9F4;
  --ink: #1A1A17;
  --ink-2: #55534D;
  --ink-3: #8B887F;
  --rule: #D3CDC0;
  --rust: #A63328;
  --rust-2: #C04437;
  --on-rust: #F4F1EA;
  --plane: #C7493C;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #BFE0F2; color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

canvas.layer { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#sky { z-index: 0; }
#play { z-index: 60; pointer-events: none; }
body.plane-cursor, body.plane-cursor a, body.plane-cursor button, body.plane-cursor label { cursor: none; }
body.plane-cursor input, body.plane-cursor textarea, body.plane-cursor select { cursor: auto; }

/* ── Wordmark: SELL solid, RIGHT outlined, like the logo ── */
.mark { display: inline-flex; gap: .3em; text-decoration: none; font-weight: 900; font-stretch: 115%; font-size: 1.15rem; letter-spacing: .02em; line-height: 1; }
.mark b { color: var(--rust); }
.mark i { font-style: normal; color: transparent; -webkit-text-stroke: 1.2px var(--rust); }
.mark--sm { font-size: .95em; }

/* ── The real Sell Right logo (heartbeat line, stacked SELL / outlined RIGHT, rising arrow) ── */
.srlogo { display: inline-block; line-height: 0; }
.srlogo img { height: 52px; width: auto; }
.srlogo--foot img { height: 46px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 700 1rem/1 var(--font); letter-spacing: .02em; text-decoration: none;
  padding: 1.05em 1.6em; border: 2px solid transparent; cursor: pointer;
  background: var(--rust); color: var(--on-rust);
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--rust-2); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: .8em 1.15em; font-size: .9rem; }

/* ── Top bar ── */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper-soft);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.nav-in { max-width: 1180px; margin: 0 auto; padding: 10px var(--gut); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 90%; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 24px; height: 24px; flex: none; }
.tabs { display: flex; gap: 2px; overflow-x: auto; flex: 1 1 300px; min-width: 0; scrollbar-width: none; order: 2; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 12px; color: var(--ink-2); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--rust); border-color: var(--rust); }
.nav .btn { order: 3; }
@media (max-width: 720px) {
  .brand { margin-right: auto; }
  .nav .btn { order: 2; }
  .tabs { order: 3; flex-basis: 100%; margin-inline: -6px; }
}

/* ── Sections ── */
main { position: relative; z-index: 1; }
section { padding-block: clamp(56px, 11vh, 130px); }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gut); }
.sheet { background: var(--paper-soft); padding: clamp(22px, 4.5vw, 56px); border: 1px solid var(--rule);
  box-shadow: 0 18px 50px rgba(26,26,23,.12); }
.weather { display: inline-flex; align-items: center; gap: .55em; font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--rust); margin: 0 0 4px; }
.weather::before { content: ""; width: 14px; height: 10px; background: var(--plane); clip-path: polygon(0 0, 100% 50%, 0 100%, 25% 50%); }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.05; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.8rem); font-weight: 900; font-stretch: 85%; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; font-stretch: 85%; letter-spacing: -.015em; }
h3 { font-size: clamp(1.1rem, 2.1vw, 1.3rem); font-weight: 700; letter-spacing: -.005em; line-height: 1.2; }
p { margin: 0; max-width: 60ch; }
.lede { font-size: clamp(1.1rem, 2.1vw, 1.3rem); color: var(--ink-2); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.split { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.photo { overflow: hidden; transform: rotate(2deg); border: 8px solid #fff; box-shadow: 0 14px 30px rgba(26,26,23,.18); max-width: 360px; justify-self: center; transition: transform .3s var(--ease); margin: 0; }
.photo:hover { transform: rotate(-1deg) scale(1.02); }
.photo--tilt { transform: rotate(-2deg); }
.photo img { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; }
.src { font-size: .8rem; color: var(--ink-3); max-width: none; }

/* ── Hero ── */
.hero { padding-block: clamp(36px, 7vh, 90px) clamp(70px, 12vh, 140px); }
.hero .split { grid-template-columns: 1.3fr .7fr; }
@media (max-width: 820px) { .hero .split { grid-template-columns: 1fr; } }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .4em .9em; font-family: var(--mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; color: var(--ink-2); }
.tag { font-style: italic; font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--rust); }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.stamp { width: min(300px, 70vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--ink); justify-self: center;
  box-shadow: 0 0 0 10px var(--paper), 0 18px 40px rgba(26,26,23,.25); animation: bob 5s ease-in-out infinite; }
.stamp img { width: 100%; height: 100%; object-fit: cover; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(3deg); } }
.hint { font-family: var(--mono); font-size: .8rem; color: var(--ink); background: var(--paper-soft); border: 1px solid var(--rule); padding: 6px 12px; display: inline-block; }

/* ── Stats, cards ── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stats > div { background: var(--field); border: 1px solid var(--rule); padding: 18px; min-width: 0; }
.stats b { display: block; font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 900; font-stretch: 85%; line-height: 1; font-variant-numeric: tabular-nums; }
.stats div:last-child b { color: var(--rust); }
.stats span { font-size: .9rem; color: var(--ink-2); display: block; margin-top: 6px; line-height: 1.35; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards.four { grid-template-columns: 1fr; } }
.card { padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; background: var(--field); border: 1px solid var(--rule); border-top: 4px solid var(--ink); transition: transform .25s var(--ease); }
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card p { font-size: .97rem; color: var(--ink-2); }
.card--rust { border-top-color: var(--rust); }
.card--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card--ink p { color: #C9C4B8; }
.gapline { font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.3; border-left: 6px solid var(--rust); padding-left: 18px; max-width: 34ch; }
.steps { counter-reset: s; }
.steps .card { counter-increment: s; }
.steps .card::before { content: "0" counter(s); font-family: var(--mono); font-size: .9rem; font-weight: 500; letter-spacing: .1em; color: var(--rust); }
.note { font-style: italic; font-weight: 600; font-size: 1.2rem; line-height: 1.3; color: var(--rust); }
.plain { background: var(--field); border: 2px dashed var(--ink); padding: 14px 20px; font-weight: 600; max-width: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--field); border: 2px solid var(--ink); padding: 7px 16px; font-weight: 600; font-size: .95rem; transition: transform .2s var(--ease); }
.chips li:hover { transform: rotate(-3deg) scale(1.05); }
.label { font-family: var(--mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; color: var(--ink-2); }

/* ── Fold a plane ── */
.fold { background: var(--field); border: 1px solid var(--rule); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.fold form { display: flex; gap: 10px; flex-wrap: wrap; }
.fold input { flex: 1 1 200px; min-width: 0; font: inherit; padding: 13px 16px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 0; }
.fold .privacy { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--ink-2); max-width: none; }
.fold .privacy svg { width: 16px; height: 16px; flex: none; }
.fold .status { font-style: italic; font-weight: 600; color: var(--rust); min-height: 1.4em; }

/* ── Flight log ── */
.soon { font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 4px 10px; align-self: flex-start; }
.log-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.log-grid > * { min-width: 0; }
.log-grid .cards { grid-template-columns: 1fr; }
@media (max-width: 820px) { .log-grid { grid-template-columns: 1fr; } }
.map { background: var(--field); border: 1px solid var(--rule); padding: 14px; margin: 0; }
.map svg { width: 100%; height: auto; display: block; }
.map text { font-family: var(--font); font-size: 11px; fill: var(--ink-2); }
.map .home text { fill: var(--rust); font-weight: 700; font-size: 13px; }
.pulse { animation: pulse 2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.4); opacity: 0; } }

/* ── People ── */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) { .people { grid-template-columns: 1fr; } }
.person { background: var(--field); border: 1px solid var(--rule); padding: 22px; display: flex; gap: 18px; align-items: center; min-width: 0; }
.person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 4px solid var(--rust); }
.person:nth-child(2) img { border-color: var(--ink); }
.person div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.role { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.person p { font-size: .97rem; }

/* ── Join form ── */
.book { padding-bottom: calc(32vh + 70px); }
.book .sheet { max-width: 760px; margin-inline: auto; }
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 8px; }
.join .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .join { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .join legend { font-size: .9rem; font-weight: 700; }
.field em { font-style: normal; color: var(--rust); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--field); width: 100%;
  border: 1.5px solid var(--ink-3); border-radius: 0; padding: 12px 14px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 3px rgba(166,51,40,.15); }
.join fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.join legend { margin-bottom: 6px; padding: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; line-height: 1.4; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--rust); flex: none; }
.check a { color: var(--rust); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join__status { font-weight: 600; min-height: 1.4em; }
.join__status[data-tone="err"] { color: var(--rust); }
.thanks { display: grid; gap: 10px; padding: 22px; border: 2px solid var(--ink); background: var(--field); }
.thanks h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; font-stretch: 85%; }

/* ── Footer: the standard Sell Right footer, on a floating sheet so the bazaar stays visible ── */
.foot { max-width: 760px; margin: 16px auto 0; background: var(--paper-soft); border: 1px solid var(--rule); padding: 22px clamp(18px, 3vw, 28px); }
.foot__top { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot__tag { font-size: .95rem; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot nav a { font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.foot nav a:hover { color: var(--rust); }
.foot__legal { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); text-align: center; display: grid; gap: 6px; }
.foot__legal p { font-size: .82rem; color: var(--ink-3); max-width: none; }
.foot__links a { color: var(--rust); font-weight: 600; text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--paper);
  padding: 12px 20px; font-weight: 600; font-size: .95rem; max-width: calc(100vw - 32px); text-align: center; }

.reveal { transition: transform .7s var(--ease); }
.js .reveal:not(.in) { transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) {
  .stamp, .pulse { animation: none; }
  .js .reveal:not(.in) { transform: none; }
  #play { display: none; }
}
