/* ============================================================
   shalwa — marketing site
   Brand: Shalwa Brand Book v1.0 · Clay→Electric · Sora + Manrope
   ============================================================ */

:root {
  --cream:    #fcfaf5;
  --bone:     #ece7dc;
  --sand:     #c8bfa9;
  --mute:     #6b6356;
  --ink:      #1a1d2e;
  --clay:     #e5743a;
  --electric: #1fb6c9;
  --ochre:    #e8b65c;
  --hibiscus: #c2425a;

  --gradient: linear-gradient(135deg, #e5743a 0%, #1fb6c9 100%);

  --font-display: "Sora", -apple-system, system-ui, sans-serif;
  --font-body:    "Manrope", -apple-system, system-ui, sans-serif;

  --nav-h: 72px;
  --maxw: 1180px;
  --radius: 20px;

  --shadow-sm: 0 6px 18px -10px rgba(26,29,46,0.22);
  --shadow-md: 0 18px 40px -22px rgba(26,29,46,0.40);
  --shadow-lg: 0 40px 80px -36px rgba(26,29,46,0.50);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; }
:focus-visible { outline: 2.5px solid var(--electric); outline-offset: 3px; border-radius: 4px; }

/* ---------- shared typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 18px;
}
.eyebrow-light { color: rgba(252,250,245,0.85); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gradient); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-ink     { background: var(--ink); color: var(--cream); }
.btn-ink:hover { box-shadow: var(--shadow-md); }
.btn-cream   { background: var(--cream); color: var(--ink); }
.btn-cream:hover { box-shadow: var(--shadow-md); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(252,250,245,0);
  transition: background 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}
.nav.scrolled {
  background: rgba(252,250,245,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(26,29,46,0.07);
}
.nav-inner {
  max-width: var(--maxw); height: 100%;
  margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600; letter-spacing: -0.04em;
  color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn) {
  font-size: 15px; font-weight: 500;
  color: rgba(252,250,245,0.9);
  transition: color 140ms ease;
}
.nav-links > a:not(.btn):hover { color: var(--cream); }

/* nav content adapts — light over the hero, dark once scrolled */
.nav .brand-name { color: var(--cream); transition: color 200ms ease; }
.nav .brand-mark { filter: brightness(0) invert(1); transition: filter 200ms ease; }
.nav-cta { background: var(--cream); color: var(--ink); }

.nav.scrolled .brand-name { color: var(--ink); }
.nav.scrolled .brand-mark { filter: none; }
.nav.scrolled .nav-links > a:not(.btn) { color: var(--mute); }
.nav.scrolled .nav-links > a:not(.btn):hover { color: var(--ink); }
.nav.scrolled .nav-cta { background: var(--gradient); color: var(--cream); box-shadow: var(--shadow-sm); }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease, background 200ms ease; }
.nav.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — centered, waitlist-focused
   ============================================================ */
.hero {
  background: var(--gradient);
  color: var(--cream);
  text-align: center;
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + 58px) 28px 80px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; top: -200px; right: -160px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.28), transparent 65%);
  pointer-events: none;
}
.hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 17px; border-radius: 999px;
  background: var(--hibiscus);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--cream);
  margin-bottom: 24px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(252,250,245,0.28);
}

.hero-title { font-size: clamp(38px, 5.4vw, 58px); margin-bottom: 20px; }
.hero-sub {
  font-size: clamp(16px, 1.7vw, 19px);
  color: rgba(252,250,245,0.92);
  max-width: 35em; margin: 0 auto 30px;
}

/* ============================================================
   WAITLIST FORM
   ============================================================ */
.waitlist-form { max-width: 470px; margin: 0 auto; }
.wl-grid { display: flex; flex-direction: column; gap: 10px; }
.wl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wl-phone { grid-template-columns: 128px 1fr; }

.wl-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px; color: var(--ink);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: border-color 140ms ease;
}
.wl-input::placeholder { color: var(--sand); }
.wl-input.is-error { border-color: var(--hibiscus); }

select.wl-input {
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b6356' stroke-width='2' stroke-linecap='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  text-overflow: ellipsis;
}
.wl-dial { padding-left: 13px; }

.wl-submit {
  width: 100%; margin-top: 12px;
  border: 2px solid var(--cream);
  box-shadow: var(--shadow-md);
}

.form-note {
  font-size: 13px; line-height: 1.5;
  color: rgba(252,250,245,0.82);
  margin-top: 13px;
}
.form-note.is-error   { color: #ffd9d0; font-weight: 600; }
.form-note.is-success { color: var(--cream); font-weight: 600; }
.form-note.is-success::before { content: "✓ "; font-weight: 700; }
.waitlist-form.is-done .wl-grid,
.waitlist-form.is-done .wl-submit { display: none; }

/* ---------- hero trust strip ---------- */
.hero-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 26px; margin-top: 32px;
}
.hero-strip li {
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  color: rgba(252,250,245,0.94);
  padding-left: 21px; position: relative;
}
.hero-strip li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 12px; height: 12px; transform: translateY(-50%);
  background: rgba(252,250,245,0.95);
  -webkit-mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
          mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section { padding: 100px 28px; }
.section-tint { background: var(--bone); }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 16px; }
.section-head p { color: var(--mute); font-size: 17px; }

/* ============================================================
   PAIN POINTS
   ============================================================ */
.pain-list { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.pain {
  background: var(--cream);
  border: 1.5px solid var(--bone);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; grid-template-columns: 1.32fr 1fr;
}
.pain-problem { padding: 34px 34px 36px; }
.pain-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--hibiscus);
  margin-bottom: 14px;
}
.pain-problem h3 { font-size: 22px; line-height: 1.24; margin-bottom: 10px; }
.pain-problem p { color: var(--mute); font-size: 15px; }

.pain-fix {
  padding: 32px 34px;
  background: linear-gradient(150deg, rgba(229,116,58,0.10), rgba(31,182,201,0.10));
  border-left: 1.5px solid var(--bone);
  display: flex; flex-direction: column; justify-content: center; gap: 9px;
}
.pain-fix-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--clay);
}
.pain-fix-label svg { width: 15px; height: 15px; }
.pain-fix p { color: var(--ink); font-size: 15px; font-weight: 500; }

/* ---------- steps ---------- */
.steps {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.step {
  background: var(--cream);
  border: 1.5px solid var(--bone);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.step-no {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700; letter-spacing: 0.1em;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 21px; margin: 14px 0 10px; }
.step p { color: var(--mute); }

/* ---------- showcase ---------- */
.showcase { padding: 104px 28px; }
.showcase-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.showcase-copy h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.showcase-copy p { color: var(--mute); font-size: 17px; margin-bottom: 26px; max-width: 30em; }
.showcase-visual { display: flex; justify-content: center; }
.app-shot {
  width: 300px; max-width: 76vw; height: auto;
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
}

/* ---------- features ---------- */
.features {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
  background: var(--cream);
  border: 1.5px solid var(--bone);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--sand); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(31,182,201,0.12);
  color: var(--clay);
  margin-bottom: 18px;
}
.feature-icon svg { width: 25px; height: 25px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--mute); font-size: 15px; }

/* ============================================================
   LAUNCH BAND
   ============================================================ */
.launch { background: var(--ink); color: var(--cream); padding: 96px 28px; text-align: center; }
.launch-inner { max-width: 720px; margin: 0 auto; }
.launch-inner h2 { font-size: clamp(28px, 3.8vw, 44px); margin-bottom: 18px; }
.launch-inner p { color: rgba(252,250,245,0.72); font-size: 17px; max-width: 34em; margin: 0 auto 30px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1.5px solid var(--bone); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 24px 44px 24px 4px;
  position: relative;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600; letter-spacing: -0.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { position: absolute; right: 6px; top: 27px; width: 16px; height: 16px; }
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; background: var(--clay);
  border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease;
}
.faq-mark::before { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-mark::after  { left: 0; top: 7px; width: 16px; height: 2px; }
.faq-item[open] .faq-mark::before { transform: rotate(90deg); opacity: 0; }
.faq-body { padding: 0 44px 26px 4px; }
.faq-body p { color: var(--mute); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta { background: var(--gradient); color: var(--cream); padding: 104px 28px; position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; bottom: -200px; left: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 65%);
  pointer-events: none;
}
.cta-inner { max-width: 560px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.cta-inner p { color: rgba(252,250,245,0.92); font-size: 17px; margin-bottom: 30px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--cream); padding: 60px 28px 32px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(252,250,245,0.12);
}
.footer-brand { max-width: 320px; }
.footer .brand-name { color: var(--cream); }
.footer .brand-mark { filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(252,250,245,0.62); font-size: 14px; margin-top: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(252,250,245,0.78); font-size: 15px; transition: color 140ms ease; }
.footer-links a:hover { color: var(--cream); }
.footer-base {
  max-width: var(--maxw); margin: 28px auto 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(252,250,245,0.5);
}
.footer-tag { font-weight: 600; letter-spacing: 0.04em; color: rgba(252,250,245,0.7); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 620ms cubic-bezier(.2,.7,.2,1), transform 620ms cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.pain-list [data-reveal]:nth-child(2),
.steps [data-reveal]:nth-child(2),
.features [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.pain-list [data-reveal]:nth-child(3),
.steps [data-reveal]:nth-child(3),
.features [data-reveal]:nth-child(3) { transition-delay: 160ms; }
.features [data-reveal]:nth-child(4) { transition-delay: 60ms; }
.features [data-reveal]:nth-child(5) { transition-delay: 140ms; }
.features [data-reveal]:nth-child(6) { transition-delay: 220ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

@media (max-width: 940px) {
  .pain { grid-template-columns: 1fr; }
  .pain-fix { border-left: none; border-top: 1.5px solid var(--bone); }
  .showcase-inner { grid-template-columns: 1fr; gap: 44px; justify-items: center; text-align: center; }
  .showcase-copy p { margin-left: auto; margin-right: auto; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream);
    padding: 16px 24px 26px;
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform 260ms cubic-bezier(.2,.7,.2,1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a:not(.btn) { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--bone); }
  .nav-links .btn { margin-top: 12px; }
  .nav.scrolled .nav-links { background: var(--cream); }
  .nav-links.open > a:not(.btn) { color: var(--mute); }
  .nav-links.open .nav-cta { background: var(--gradient); color: var(--cream); }

  .section, .showcase { padding: 72px 24px; }
  .launch, .cta { padding: 76px 24px; }
  .steps, .features { grid-template-columns: 1fr; }
  .wl-pair { grid-template-columns: 1fr; }
  .wl-phone { grid-template-columns: 128px 1fr; }
  .app-shot { width: 264px; border-radius: 30px; }
  .footer-inner { flex-direction: column; gap: 32px; }
}

@media (max-width: 420px) {
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-title { font-size: 35px; }
  .pain-problem, .pain-fix { padding: 26px 24px; }
  .app-shot { width: 232px; border-radius: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .feature:hover { transform: none; }
}
