/* Sallo — sallo.in landing. Mobile-first. Matches the app's editorial brand:
   Playfair headline, cinematic burgundy, warm cream, restrained spacing. */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --burgundy: #b01818;
  --burgundy-dark: #7a1010;
  --ink: #1a1512;
  --body: #4a4540;
  --muted: #8a847f;
  --muted-light: #a49d97;
  --panel-line: #f2f0ed;
}

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

/* Ensure the hidden attribute wins over element display rules (e.g. the form's
   and success box's `display: grid`), so JS show/hide toggling works. */
[hidden] {
  display: none !important;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: #4f080b;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100dvh;
  padding: 20px 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(43, 3, 6, 0.22), rgba(43, 3, 6, 0.4)),
    radial-gradient(circle at 20% 0%, rgba(200, 80, 80, 0.16), transparent 46%),
    url("/assets/onboarding-texture-mobile.webp");
  background-color: #4f080b;
  background-size: cover;
  background-position: center;
}

.panel {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #ffffff, #f7f6f4);
  border-radius: 26px;
  padding: 34px 26px 26px;
  box-shadow: 0 22px 64px rgba(18, 2, 4, 0.34);
}

.wordmark {
  display: block;
  height: 30px;
  width: auto;
  margin: 0 auto 34px;
  color: var(--burgundy); /* the SVG uses currentColor */
}

/* 1 · Hero */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: 13px;
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(31px, 8.6vw, 38px);
  line-height: 1.02;
  color: var(--ink);
  margin-bottom: 18px;
}

/* 2 · What Sallo is */
.intro {
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
  margin-bottom: 11px;
}

.intro-support {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 24px;
}

/* 3 · Join waitlist */
.join {
  display: grid;
  gap: 9px;
}

.email {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  font-family: inherit;
  font-size: 15px; /* 16px-ish keeps iOS Safari from zooming on focus */
  color: var(--ink);
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 13px;
}

.email::placeholder {
  color: #aaa;
}

.email:focus-visible {
  outline: none;
  border-color: rgba(176, 24, 24, 0.5);
  box-shadow: 0 0 0 3px rgba(176, 24, 24, 0.13);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cta {
  height: 48px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--burgundy);
  border: none;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.cta:hover {
  background: var(--burgundy-dark);
}

.cta:active {
  transform: translateY(1px);
}

.cta:disabled {
  opacity: 0.7;
  cursor: default;
}

.cta:focus-visible {
  outline: 3px solid rgba(176, 24, 24, 0.28);
  outline-offset: 3px;
}

.form-error {
  font-size: 12.5px;
  color: var(--burgundy-dark);
  line-height: 1.4;
  margin-top: 2px;
}

/* 3b · Success */
.success {
  display: grid;
  gap: 3px;
  padding: 16px;
  background: #fdf4ee;
  border: 1px solid rgba(176, 24, 24, 0.16);
  border-radius: 13px;
}

.success strong {
  font-size: 15px;
}

.success span {
  font-size: 13px;
  color: var(--body);
}

/* 4 · Reassurance */
.reassurance {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 14px;
}

/* 5 · How it works + Why Sallo (restrained, editorial — not a grid) */
.block {
  margin-top: 28px;
  border-top: 1px solid var(--panel-line);
  padding-top: 22px;
}

.block-label {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 600;
  margin-bottom: 16px;
}

.steps {
  list-style: none;
  display: grid;
  gap: 18px;
}

.step {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.step-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  color: var(--muted-light);
  font-weight: 500;
  min-width: 20px;
}

.step-body {
  display: grid;
  gap: 3px;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.step-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.reasons {
  list-style: none;
  display: grid;
  gap: 11px;
}

.reasons li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  color: var(--ink);
}

.reasons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--burgundy);
}

/* Research page */
.wordmark-link {
  display: block;
  text-align: center;
}

.research-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(28px, 7.6vw, 34px);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
}

.survey-cards {
  display: grid;
  gap: 12px;
  margin: 24px 0 20px;
}

.survey-card {
  display: flex;
  gap: 14px;
  padding: 18px 16px;
  border: 1px solid #ece7e2;
  border-radius: 16px;
  background: #fffdfb;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.survey-card:hover {
  border-color: rgba(176, 24, 24, 0.35);
  transform: translateY(-1px);
}

.survey-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--burgundy);
}

.survey-icon svg {
  width: 100%;
  height: 100%;
}

.survey-card-body {
  display: grid;
  gap: 4px;
}

.survey-kicker {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 600;
}

.survey-card-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.survey-card-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.survey-cta {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--burgundy);
}

.research-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.research-thanks {
  text-align: center;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted-light);
}

.inline-link {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 6 · Trust + footer */
.trust {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
}

.footer {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  font-size: 11px;
  color: #b3aca6;
}

.footer a {
  color: #b3aca6;
  text-decoration: none;
}

.footer a:hover {
  color: var(--burgundy);
}

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

@media (min-width: 640px) {
  .panel {
    max-width: 460px;
    padding: 40px 34px 30px;
  }
  h1 {
    font-size: 40px;
  }
}

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