/* ============================================================================
   KISA — Landing Page styles
   Tokens come from colors_and_type.css (loaded alongside this file).
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-sans);
  background: var(--surface-app);
  background:
    radial-gradient(120% 70% at 50% -6%, var(--surface-app-warm-from) 0%, var(--surface-app-warm-to) 58%);
  background-attachment: fixed;
}
::selection { background: rgba(114,5,21,0.12); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.serif { font-family: var(--font-serif); }
.shell { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }

section { position: relative; }
.eyebrow {
  font: var(--sans-section);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

/* ============================================================================
   TOP BAR
   ============================================================================ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: linear-gradient(to bottom, rgba(250,240,238,0.82), rgba(250,240,238,0.0));
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.topbar.scrolled {
  background: rgba(250,240,238,0.9);
  box-shadow: 0 1px 0 var(--stroke-divider);
}
.wordmark {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-serif);
  font-weight: 600; font-size: 23px; letter-spacing: 0.02em;
  color: var(--brand-primary);
}
.wordmark img { width: 26px; height: 26px; }
.topbar-cta {
  font: var(--sans-button); font-size: 14px; white-space: nowrap;
  color: var(--text-brand);
  padding: 9px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--stroke-glass);
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: transform 150ms var(--ease-out), background 150ms var(--ease-out), border-color 150ms;
}
.topbar-cta:hover { transform: translateY(-1px); background: #fff; border-color: var(--disabled); }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--stroke-glass); border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.45); padding: 2px; gap: 2px;
}
.lang-opt {
  border: none; cursor: pointer; background: transparent;
  font: 600 12px/1 var(--font-sans); letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 7px 11px; border-radius: var(--radius-pill);
  transition: color 150ms var(--ease-out), background 150ms var(--ease-out);
}
.lang-opt.on { background: var(--brand-primary); color: var(--text-on-brand); }
.lang-opt:not(.on):hover { color: var(--text-brand); }

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px;
  border: none; cursor: pointer;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  color: var(--text-on-brand);
  font: var(--sans-button);
  box-shadow: 0 2px 8px rgba(114,5,21,0.18), 0 10px 30px rgba(114,5,21,0.16);
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(114,5,21,0.22), 0 16px 40px rgba(114,5,21,0.22); }
.btn-primary:active { transform: scale(0.985); }
.btn-primary .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-primary[disabled] { background: var(--disabled); box-shadow: none; cursor: default; color: rgba(255,255,255,0.85); }

/* ============================================================================
   HERO
   ============================================================================ */
.hero { padding: 96px 0 84px; overflow: hidden; }
.hero .shell { display: flex; flex-direction: column; }

.reveal-stage { display: inline-flex; flex-direction: column; gap: 16px; }
.avatar-pair { display: flex; gap: 14px; }
.avatar {
  position: relative;
  width: 88px; height: 88px; border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(114,5,21,0.16);
}
.avatar::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
  box-shadow: inset 0 0 0 1px rgba(114,5,21,0.10);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.progress {
  display: flex; align-items: center; gap: 12px;
  font: var(--sans-counter); color: var(--text-secondary);
}
.progress-track {
  position: relative; flex: 1; height: 6px;
  background: var(--stroke-divider); border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: var(--brand-gradient); border-radius: var(--radius-pill);
}
.progress-pct { font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; color: var(--text-brand); font-weight: 600; }

.hero-headline {
  font-family: var(--font-serif); font-weight: 600;
  color: var(--text-primary);
  text-wrap: balance; letter-spacing: -0.01em;
}
.hero-sub {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--text-secondary);
  text-wrap: pretty;
}
.hero-cities {
  font: var(--sans-meta); text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); font-size: 12px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.hero-cities .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--disabled); }

/* centered layout */
.hero--centered .shell { align-items: center; text-align: center; max-width: 720px; }
.hero--centered .reveal-stage { align-items: stretch; width: 320px; margin: 4px auto 30px; }
.hero--centered .avatar-pair { justify-content: center; }
.hero--centered .hero-headline { font-size: 54px; line-height: 1.12; margin: 0 0 18px; }
.hero--centered .hero-sub { font-size: 18px; line-height: 1.6; max-width: 440px; margin: 0 0 32px; }
.hero--centered .hero-cta-row { margin-bottom: 26px; }
.hero--centered .hero-cities { justify-content: center; }

/* ============================================================================
   HOW IT WORKS
   ============================================================================ */
.how { padding: 40px 0 64px; }
.how-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.how-head h2 { font-family: var(--font-serif); font-weight: 600; font-size: 36px; line-height: 1.15; margin: 14px 0 0; letter-spacing: -0.01em; }
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; align-items: stretch; position: relative;
}
.how-card {
  position: relative;
  background: linear-gradient(160deg, var(--surface-card-from) 0%, var(--surface-card-to) 100%);
  border: 1px solid var(--stroke-divider); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(114,5,21,0.04), 0 8px 24px rgba(114,5,21,0.06);
  padding: 26px 24px 30px;
  display: flex; flex-direction: column;
}
.step-pill {
  align-self: flex-start;
  background: var(--reward); color: #5a4500;
  font: 700 11px/1 var(--font-sans); letter-spacing: 0.02em;
  padding: 4px 9px; border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.how-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 21px; line-height: 1.2; margin: 0 0 12px; color: var(--text-primary); }
.how-card p { font: 400 15px/1.6 var(--font-sans); color: var(--text-secondary); margin: 0; text-wrap: pretty; }
.how-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--brand-secondary); z-index: 2;
}
.how-arrow.a1 { left: calc(33.33% - 10px); }
.how-arrow.a2 { left: calc(66.66% - 10px); }

/* ============================================================================
   MECHANIC
   ============================================================================ */
.mechanic { background: var(--surface-reveal); padding: 84px 0; margin-top: 24px; }
.mechanic-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }

.strip { display: flex; flex-direction: column; align-items: center; gap: 0; }
.strip-photo {
  position: relative; width: 240px; height: 300px; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-glass-md);
  border: 1px solid var(--stroke-glass);
}
.strip-photo img { width: 100%; height: 100%; object-fit: cover; transition: filter var(--dur-slow) var(--ease-out); }
.strip-photo .strip-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 18px 16px;
  background: linear-gradient(to top, rgba(26,5,8,0.62), rgba(26,5,8,0));
  color: #fff;
  font: 600 11px/1.3 var(--font-sans); text-transform: uppercase; letter-spacing: 0.1em;
  text-align: center;
  transition: opacity var(--dur-base) var(--ease-out);
}
.strip-steps { display: flex; gap: 7px; margin-top: 22px; }
.strip-steps .pip { width: 26px; height: 4px; border-radius: var(--radius-pill); background: var(--stroke-divider); transition: background var(--dur-base) var(--ease-out); }
.strip-steps .pip.on { background: var(--brand-primary); }
.strip-caption {
  margin-top: 16px; font-family: var(--font-serif); font-style: italic;
  font-size: 18px; color: var(--text-secondary); text-align: center; min-height: 28px;
  transition: opacity var(--dur-base) var(--ease-out);
}

.mechanic-copy h2 { font-family: var(--font-serif); font-weight: 600; font-size: 34px; line-height: 1.18; margin: 12px 0 22px; letter-spacing: -0.01em; }
.mechanic-copy p { font: 400 16px/1.72 var(--font-sans); color: var(--text-secondary); margin: 0 0 18px; max-width: 440px; text-wrap: pretty; }
.mechanic-copy p:last-child { margin-bottom: 0; }
.mechanic-copy strong { color: var(--text-primary); font-weight: 600; }

/* ============================================================================
   PULL QUOTE
   ============================================================================ */
.pullquote { padding: 88px 0; }
.pullquote .shell { max-width: 760px; }
.pq-card {
  background: var(--surface-card-to);
  border-left: 3px solid var(--brand-primary);
  border-radius: 4px;
  padding: 36px 28px 36px 32px;
}
.pq-card blockquote {
  margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1.5; color: var(--text-primary); text-wrap: balance;
}
.pq-card cite {
  display: block; margin-top: 20px; font: 400 13px/1.4 var(--font-sans);
  font-style: normal; color: var(--text-muted); letter-spacing: 0.02em;
}

/* ============================================================================
   WAITLIST FORM
   ============================================================================ */
.waitlist { padding: 40px 0 96px; }
.waitlist .shell { max-width: 520px; }
.form-card {
  background: linear-gradient(160deg, var(--surface-card-from) 0%, var(--surface-card-to) 100%);
  border: 1px solid var(--stroke-glass); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass-md);
  padding: 44px 40px 40px;
}
.form-card h2 { font-family: var(--font-serif); font-weight: 600; font-size: 30px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.01em; }
.form-card .lede { font: 400 15px/1.6 var(--font-sans); color: var(--text-secondary); margin: 0 0 28px; text-wrap: pretty; }

.field { margin-bottom: 14px; }
.field label { display: block; font: var(--sans-meta); color: var(--text-muted); margin: 0 0 7px; letter-spacing: 0.02em; }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 16px;
  background: var(--surface-composition);
  border: 1px solid var(--stroke-glass); border-radius: var(--radius-md);
  font: 400 16px/1.2 var(--font-sans); color: var(--text-primary);
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
  appearance: none; -webkit-appearance: none;
}
.field select { cursor: pointer; background-image: none; }
.field .select-wrap { position: relative; }
.field .select-wrap .chev {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--text-muted);
}
.field input::placeholder { color: var(--text-muted); font-style: italic; }
.field input:focus, .field select:focus {
  outline: none; border: 1.5px solid var(--brand-primary);
  box-shadow: var(--shadow-focus);
}
.field.invalid input { border-color: var(--danger); }
.field-error { font: var(--sans-meta); color: var(--danger); margin: 6px 0 0; min-height: 0; }

.invite-toggle {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: var(--sans-microcopy); color: var(--text-brand); margin: 2px 0 16px;
  background: none; border: none; padding: 0;
}
.invite-toggle .ico { transition: transform var(--dur-base) var(--ease-out); }
.invite-toggle.open .ico { transform: rotate(45deg); }
.invite-wrap { overflow: hidden; transition: max-height var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }

.form-card .btn-primary { width: 100%; margin-top: 6px; }
.privacy-note { font: italic 400 12px/1.5 var(--font-sans); color: var(--text-muted); text-align: center; margin: 16px 0 0; }
.privacy-note a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }

/* success state */
.success { text-align: center; animation: successIn var(--dur-base) var(--ease-out) both; }
@keyframes successIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.success .check {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center;
  background: rgba(242,183,7,0.16); color: var(--reward);
}
.success h2 { font-family: var(--font-serif); font-weight: 600; font-size: 26px; line-height: 1.2; margin: 0 0 12px; }
.success p { font: 400 15px/1.65 var(--font-sans); color: var(--text-secondary); margin: 0 auto 24px; max-width: 360px; text-wrap: pretty; }
.share-row {
  display: flex; align-items: center; gap: 8px; max-width: 380px; margin: 0 auto;
  background: var(--surface-composition); border: 1px solid var(--stroke-glass);
  border-radius: var(--radius-md); padding: 7px 7px 7px 16px;
}
.share-row .url { flex: 1; font: 400 13px/1.2 var(--font-sans); color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-row .copy-btn {
  border: none; cursor: pointer; flex: none;
  background: var(--brand-primary); color: #fff;
  font: var(--sans-button); font-size: 13px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  transition: background 150ms;
}
.share-row .copy-btn.copied { background: var(--positive); }

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer { background: var(--text-primary); color: var(--text-muted); padding: 56px 0 40px; }
.footer .shell { display: flex; flex-direction: column; gap: 22px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer .wordmark { color: #F2F2F2; }
.footer .wordmark img { filter: brightness(1.4) saturate(1.1); }
.footer-tag { font: 400 13px/1.5 var(--font-sans); color: var(--text-muted); margin-top: 8px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font: 400 13px/1.2 var(--font-sans); color: var(--text-muted); transition: color 150ms; }
.footer-links a:hover { color: var(--brand-secondary); }
.footer-rule { height: 1px; background: rgba(154,104,112,0.22); }
.footer-legal { font: 400 12px/1.4 var(--font-sans); color: rgba(154,104,112,0.7); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1023px) {
  .mechanic-grid { grid-template-columns: 1fr; gap: 48px; }
  .mechanic .shell { max-width: 560px; }
}
@media (max-width: 760px) {
  .shell { padding: 0 22px; }
  .topbar { padding: 14px 22px; }
  .hero { padding: 64px 0 56px; }
  .hero--centered .hero-headline { font-size: 42px; line-height: 1.12; }
  .avatar { width: 64px !important; height: 64px !important; }
  .how-grid { grid-template-columns: 1fr; gap: 16px; }
  .how-arrow { display: none; }
  .how-head h2, .form-card h2 { font-size: 28px; }
  .mechanic-copy h2 { font-size: 28px; }
  .pq-card blockquote { font-size: 22px; }
  .form-card { padding: 32px 24px 28px; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 600px) {
  .topbar-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
