@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../assets/fonts/plus-jakarta-600.woff2") format("woff2");
}

@font-face {
  font-family: Karla;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/karla-400.woff2") format("woff2");
}

:root {
  --red: #e9212b;
  --red-deep: #c41620;
  --red-ink: #8e1218;
  --red-display: #e9212b;
  --ink: #1a1412;
  --muted: #5c514c;
  --bg: #fff6f4;
  --bg-soft: #fff0ec;
  --surface: #ffffff;
  --nav: #ffffff;
  --line: #eadfd9;
  --line-strong: #d9c9c2;
  --input: #ffffff;
  --shadow: 0 18px 50px rgba(60, 16, 12, 0.12);
  --font-d: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-b: Karla, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 84px;
  color-scheme: light;
}

[data-theme="dark"] {
  --red-ink: #ffb4b0;
  --red-display: #ff5a60;
  --ink: #f6f1ee;
  --muted: #d5cbc4;
  --bg: #141110;
  --bg-soft: #1c1816;
  --surface: #241c1a;
  --nav: #1a1614;
  --line: #3c332f;
  --line-strong: #5a4e48;
  --input: #2c2422;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-d);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }

p { text-wrap: pretty; }

a { color: var(--red-ink); }

button, input, select { font: inherit; }

:focus-visible {
  outline: 3px solid var(--red-ink);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow { width: min(760px, calc(100% - 32px)); }

.eyebrow {
  margin: 0 0 10px;
  color: var(--red-ink);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }

.section-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.125rem;
  margin: 14px 0 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.nav-bar {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  display: flex;
  border-radius: 14px;
}

.nav-logo img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
}

.nav-panel {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 4px;
}

.nav-panel a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.98rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
}

.nav-panel a:hover,
.nav-panel a.is-active {
  background: var(--bg-soft);
  color: var(--red-ink);
}

.nav-download {
  background: var(--red-deep);
  color: #fff !important;
  margin-left: 8px;
}

.nav-download:hover { background: #a9121a !important; color: #fff !important; }

.nav-tools { margin-left: auto; display: flex; gap: 8px; }

.icon-btn,
.menu-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.icon-btn svg,
.menu-btn svg { width: 22px; height: 22px; }

.icon-sun,
.icon-close,
.menu-btn { display: none; }

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }

.hero { padding: 28px 0 20px; }

.hero-grid { display: grid; gap: 28px; align-items: center; }

.ribbon {
  display: inline-block;
  margin: 0 0 16px;
  background: var(--red-deep);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
}

h1 span { color: var(--red-display); }

.br { display: none; }

.lead {
  font-size: 1.2rem;
  max-width: 38ch;
  margin: 16px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.store {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  padding: 8px 16px 8px 12px;
  border: 1px solid #111;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.store svg { width: 22px; height: 22px; flex: none; }

.store span { display: flex; flex-direction: column; line-height: 1.05; }
.store small { font-size: 0.8rem; letter-spacing: 0.01em; }
.store strong { font-family: var(--font-d); font-size: 1.05rem; font-weight: 800; }

.store:hover { background: #2a2a2a; color: #fff; }

[data-theme="dark"] .store { border-color: #fff; }

.fine { margin: 12px 0 0; color: var(--muted); font-size: 0.98rem; }

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.proof li {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.95rem;
}

.proof li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  padding-bottom: 8px;
}

.door, .speed { display: none; }

.phone {
  width: min(250px, 72vw);
  background: #0e0e0e;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow), inset 0 0 0 2px #2a2a2a;
  margin: 0;
  position: relative;
  z-index: 1;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: #f3f1f0;
  transition: opacity 160ms var(--ease);
}

.phone img.is-fading { opacity: 0; }

.phone-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.hero-phone { order: 1; }
.flow { order: 2; }
.phone-wrap .stickers { order: 3; }

.hero-phone .phone-screen {
  position: relative;
  aspect-ratio: 780 / 1691;
  overflow: hidden;
  border-radius: 28px;
  background: #f3f1f0;
}

.hero-phone .flow-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  opacity: 0;
}

.hero-phone .flow-img.is-current {
  opacity: 1;
  transform: none;
  z-index: 1;
}

.hero-phone .flow-img.is-leave {
  z-index: 1;
  animation: flow-leave 440ms cubic-bezier(0.32, 0.08, 0.24, 1) forwards;
}

.hero-phone .flow-img.is-enter {
  z-index: 2;
  box-shadow: -16px 0 28px rgba(0, 0, 0, 0.28);
  animation: flow-enter 440ms cubic-bezier(0.32, 0.08, 0.24, 1) forwards;
}

.hero-phone .flow-img.is-leave-back {
  z-index: 2;
  box-shadow: 16px 0 28px rgba(0, 0, 0, 0.28);
  animation: flow-leave-back 440ms cubic-bezier(0.32, 0.08, 0.24, 1) forwards;
}

.hero-phone .flow-img.is-enter-back {
  z-index: 1;
  animation: flow-enter-back 440ms cubic-bezier(0.32, 0.08, 0.24, 1) forwards;
}

.flow {
  position: relative;
  z-index: 2;
  width: min(280px, 100%);
  margin-top: 14px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.flow-live {
  margin: 0;
  min-height: 1.5em;
  font-family: var(--font-d);
  font-weight: 800;
}

.flow-live span {
  margin-right: 8px;
  color: var(--muted);
  font-weight: 700;
}

.flow-controls { display: flex; gap: 8px; }

.flow-pause .icon-play { display: none; }

.flow-pause[aria-pressed="true"] .icon-pause { display: none; }

.flow-pause[aria-pressed="true"] .icon-play { display: block; }

.flow-track {
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.flow-track span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red-deep);
  transform-origin: left center;
  transform: scaleX(0.1);
}

.stickers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.sticker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  background: #fff;
  color: #1a1412;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(20, 10, 8, 0.1);
  font-size: 0.92rem;
  line-height: 1.25;
  max-width: 220px;
}

.sticker svg { width: 22px; height: 22px; color: var(--red-deep); flex: none; }
.sticker strong { font-family: var(--font-d); }

.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 18px;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red-deep);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 800;
  margin-bottom: 14px;
}

.steps p, .order-grid p { margin: 8px 0 0; color: var(--muted); }

.order-grid {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.order-grid li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fde8e8;
  color: var(--red-deep);
  margin-bottom: 12px;
}

[data-theme="dark"] .icon { background: #3a1718; color: #ffb4b0; }

.icon svg { width: 26px; height: 26px; }

.split { display: grid; gap: 28px; align-items: center; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 14px;
}

.tabs button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-d);
  font-weight: 700;
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

#shot-text { margin: 0; max-width: 46ch; color: var(--muted); }

.phone-stage { margin-inline: auto; }

.ticks { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--red-deep);
  border-bottom: 2px solid var(--red-deep);
  transform: rotate(-45deg);
}

.band {
  background: var(--red-deep);
  color: #fff;
  padding: 72px 0;
}

.band-inner { max-width: 740px; }
.band-kicker {
  margin: 0 0 10px;
  font-family: var(--font-d);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.band p { font-size: 1.15rem; max-width: 58ch; }
.band :focus-visible { outline-color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--red-deep);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  margin-top: 8px;
}

.btn:hover { background: #a9121a; color: #fff; }

.btn-light { background: #fff; color: var(--red-deep); }
.btn-light:hover { background: #ffe8e6; color: #8e1218; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.join-grid { display: grid; gap: 18px; margin-top: 28px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}

.card h3 { margin-top: 14px; }
.card > p { color: var(--muted); }

.card-rider {
  background: #1a1210;
  color: #f6f1ee;
  border-color: #1a1210;
}

.card-rider > p,
.card-rider .hint,
.card-rider .form-note,
.card-rider .req-note { color: #eadfd8; }

.logo-plate {
  background: #fff;
  width: fit-content;
  border-radius: 18px;
  padding: 6px;
  line-height: 0;
}

.logo-plate img { width: 132px; height: auto; display: block; }

.req-note { font-size: 0.92rem; margin: 18px 0 8px; }
abbr { text-decoration: none; }

.field { margin-top: 12px; }

.field label {
  display: block;
  font-family: var(--font-d);
  font-weight: 700;
  margin-bottom: 6px;
}

input, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--input);
  color: var(--ink);
  font-size: 16px;
}

.card-rider input,
.card-rider select {
  background: #fff;
  color: #1a1412;
  border-color: #e7d9d3;
}

.hint { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }

.field-error {
  margin: 0;
  color: var(--red-ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.field-error:not(:empty) { margin-top: 6px; }
.card-rider .field-error { color: #ffd0d2; }

input[aria-invalid="true"],
select[aria-invalid="true"] { border-color: var(--red-deep); }

.form-note { color: var(--muted); font-size: 0.95rem; }

.error-summary,
.form-status {
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff4f3;
  color: #1a1412;
}

.error-summary[hidden],
.form-status[hidden] { display: none; }

.error-summary { border: 1px solid #e7b4b2; margin-bottom: 8px; }
.error-summary p { margin: 0 0 6px; }
.error-summary a { min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.form-status { margin-top: 14px; }
.form-status p { margin: 0 0 8px; }
.form-status pre {
  white-space: pre-wrap;
  font-family: inherit;
  margin: 0 0 10px;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.local-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}

.local-points li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--font-d);
  font-weight: 700;
}

.faq { margin-top: 18px; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-d);
  font-weight: 700;
  list-style: none;
  padding: 8px 0;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform 200ms var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); max-width: 62ch; }

.download {
  background:
    radial-gradient(circle at 80% 20%, rgba(233, 33, 43, 0.16), transparent 28%),
    var(--bg-soft);
  padding: 80px 0;
}

.download-inner { text-align: center; }
.download-inner p { color: var(--muted); font-size: 1.15rem; }
.download .hero-actions { justify-content: center; }

.footer {
  background: var(--nav);
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
}

.footer-grid { display: grid; gap: 24px; }
.footer h2 { font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.footer a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--red-ink); }
.footer-logo img { width: 84px; height: 84px; }
.footer-base { margin-top: 20px; color: var(--muted); }
.footer-base p { margin: 0; }

.dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--nav);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dock p {
  margin: 0;
  font-family: var(--font-d);
  font-weight: 800;
}

.dock-actions { display: flex; gap: 8px; }

.dock a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
  background: #111;
}

.dock a:last-child { background: var(--red-deep); }

@media (min-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 64px)); }
  .br { display: inline; }
  .order-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .phone { width: 270px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav-tools { margin-left: 0; }
  .nav-panel {
    display: flex;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .join-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .order-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 96px 0; }
}

@media (min-width: 1100px) {
  .order-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 899px) {
  .nav-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .nav-panel.is-open { display: flex; }
  .nav-panel a { border-radius: 12px; }
  .nav-download { margin: 4px 0 0; justify-content: center; }
  .menu-btn { display: inline-flex; }
  body.has-dock { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .dock.is-on { display: flex; }
}

@media (min-width: 960px) {
  .hero { padding: 36px 0 28px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 24px; }
  .phone { width: 280px; }
  .split { grid-template-columns: 1fr 0.8fr; gap: 48px; }
  .split-reverse { grid-template-columns: 0.8fr 1fr; }
  .split-reverse .phone { order: -1; }
  .door {
    display: block;
    position: absolute;
    width: 200px;
    height: 320px;
    right: 16%;
    top: 78px;
    background: var(--red);
    border-radius: 10px 22px 22px 10px;
    transform: rotate(8deg);
    z-index: 0;
  }
  .knob {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    left: 22px;
    top: 46%;
  }
  .speed {
    display: flex;
    position: absolute;
    left: 2%;
    top: 46%;
    flex-direction: column;
    gap: 10px;
    z-index: 0;
  }
  .speed span {
    display: block;
    height: 8px;
    background: var(--red);
    border-radius: 99px;
  }
  .speed span:nth-child(1) { width: 58px; }
  .speed span:nth-child(2) { width: 40px; }
  .speed span:nth-child(3) { width: 24px; }
  .hero-phone { order: 0; grid-area: 1 / 1; }
  .phone-wrap .stickers {
    order: 0;
    grid-area: 1 / 1;
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    display: block;
    z-index: 2;
    pointer-events: none;
  }
  .flow { order: 0; grid-area: 2 / 1; }
  .sticker { position: absolute; }
  .sticker:first-child { left: 0; bottom: 72px; }
  .sticker:last-child { right: 0; top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .phone { animation: rise 480ms var(--ease) both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes flow-leave {
  from { transform: translateX(0) scale(1); opacity: 1; filter: brightness(1); }
  to { transform: translateX(-14%) scale(0.96); opacity: 1; filter: brightness(0.62); }
}

@keyframes flow-enter {
  from { transform: translateX(100%); opacity: 1; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes flow-leave-back {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 1; }
}

@keyframes flow-enter-back {
  from { transform: translateX(-14%) scale(0.96); opacity: 1; filter: brightness(0.62); }
  to { transform: translateX(0) scale(1); opacity: 1; filter: brightness(1); }
}
