/* ============================================================
   Shelfie storefront — static, mobile-first
   Palette mirrors the web app: cream, ink, amber, stone.
   ============================================================ */

:root {
  --cream: #faf5ec;
  --ink: #2a211a;
  --wood: #8a5a2b;
  --leaf: #0f7a4d;
  --amber: #d97706;
  --amber-dark: #b45309;
  --amber-soft: #fef3c7;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.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;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .container { padding: 0 2rem; } }
.container.narrow { max-width: 48rem; }
.text-center { text-align: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 245, 236, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(138, 90, 43, 0.08);
}
.nav-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) { .nav-inner { padding: 0.85rem 2rem; } }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.6rem; background: var(--amber);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav-links { display: none; gap: 1.75rem; font-weight: 500; font-size: 0.9rem; color: var(--stone-600); }
.nav-links a { text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--amber-dark); }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-cta { display: none; flex-shrink: 0; }
@media (min-width: 480px) { .nav-cta { display: inline-flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:disabled { cursor: not-allowed; opacity: 0.7; }
.btn-amber { background: var(--amber); color: #fff; box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3); }
.btn-amber:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn-ghost {
  background: #fff; color: var(--stone-600); border-color: var(--stone-300);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-dark); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.875rem; }
.btn-block { width: 100%; padding: 0.95rem 1.5rem; font-size: 0.95rem; }
.arrow { transition: transform 0.15s; }
.btn-ghost:hover .arrow { transform: translateY(2px); }

/* ---------- Store download buttons ---------- */
.store-buttons {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  justify-content: center;
}
@media (min-width: 640px) { .store-buttons { justify-content: flex-start; } }
.store-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 1.1rem;
  border-radius: 0.75rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  min-width: 200px;
  justify-content: flex-start;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s, opacity 0.15s;
}
.store-btn-icon { display: block; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn-sm { font-size: 0.66rem; color: #d6d3d1; }
.store-btn-main { font-size: 1.05rem; font-weight: 700; }
.store-btn.is-placeholder { background: var(--stone-500); }
.store-btn.is-placeholder .store-btn-sm { color: #e7e5e4; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; top: -10rem; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 480px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.35), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 76rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 640px) { .hero-inner { padding: 5rem 2rem 6rem; } }
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; padding: 6rem 2rem; }
}
.hero-copy { text-align: center; }
@media (min-width: 1024px) { .hero-copy { text-align: left; } }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(217, 119, 6, 0.2);
  background: rgba(254, 243, 199, 0.7);
  color: #92400e;
  padding: 0.35rem 0.8rem;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pill-icon { color: var(--amber); }

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 1.25rem 0 0;
}
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.4rem; } }
.highlight {
  position: relative;
  color: var(--amber-dark);
  white-space: nowrap;
}
.underline-svg {
  position: absolute; bottom: -0.35rem; left: 0;
  height: 0.75rem; width: 100%;
  color: rgba(217, 119, 6, 0.5);
}

.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--stone-600);
}
@media (min-width: 640px) { .hero-sub { font-size: 1.2rem; } }
@media (min-width: 1024px) { .hero-sub { margin-left: 0; } }

.store-buttons { margin-top: 1.75rem; }
.hero-note { margin-top: 1.25rem; font-size: 0.85rem; font-weight: 500; color: var(--stone-500); }
.hero-cta-row {
  margin-top: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
@media (min-width: 640px) { .hero-cta-row { flex-direction: row; } }
@media (min-width: 1024px) { .hero-cta-row { justify-content: flex-start; } }
.hero-cta-row .btn { padding: 1rem 2rem; font-size: 1rem; }

/* ---------- Phone mockup ---------- */
.phone-wrap { position: relative; width: 264px; margin: 0 auto; }
@media (min-width: 640px) { .phone-wrap { width: 292px; } }
.phone-glow {
  position: absolute; inset: -2.5rem;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.3), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}
.phone {
  position: relative;
  border-radius: 2.75rem;
  border: 1px solid rgba(42, 33, 26, 0.12);
  background: #1c1917;
  padding: 0.5rem;
  box-shadow: 0 25px 50px rgba(69, 26, 3, 0.3);
}
.phone-screen {
  border-radius: 2.25rem;
  background: #fff;
  overflow: hidden;
  padding-bottom: 0;
}
.phone-shot { display: block; width: 100%; height: auto; }

}
.phone-statusbar {
  display: flex; align-items: center; justify-content: space-between;
  background: #fffbeb;
  padding: 0.6rem 1.5rem 0.35rem;
  font-size: 0.625rem; font-weight: 700; color: var(--stone-600);
  position: relative;
}
.notch {
  position: absolute; left: 50%; top: 0.75rem;
  transform: translateX(-50%);
  width: 5rem; height: 1rem; border-radius: 9999px;
  background: #1c1917;
}
.battery { width: 1.1rem; height: 0.6rem; border-radius: 2px; background: #1c1917; }
.app-head { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1rem 0.5rem; }
.app-eyebrow { margin: 0; font-size: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone-400); }
.app-title { margin: 0; font-size: 0.8rem; font-weight: 800; color: #1c1917; }
.cam-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: 9999px;
  background: var(--amber); color: #fff;
}
.search-bar {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 1rem;
  background: #f5f5f4;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.625rem; color: var(--stone-400);
}
.chip-row { display: flex; gap: 0.4rem; padding: 0.6rem 1rem 0; }
.chip {
  border-radius: 9999px; padding: 0.25rem 0.6rem;
  font-size: 0.5rem; font-weight: 700;
  background: #f5f5f4; color: var(--stone-500);
}
.chip-active { background: var(--amber); color: #fff; }
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  padding: 0.75rem 1rem 0.25rem;
}
.tile {
  height: 4rem; display: flex; align-items: center; justify-content: center;
  border-radius: 0.6rem;
}
.tile-coffee { background: linear-gradient(135deg, #fcd34d, #f97316); }
.tile-oats { background: linear-gradient(135deg, #fde68a, #fbbf24); }
.tile-serum { background: linear-gradient(135deg, #a7f3d0, #2dd4bf); }
.tile-butter { background: linear-gradient(135deg, #fecdd3, #fb7185); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; scroll-margin-top: 4rem; }
@media (min-width: 640px) { .section { padding: 6rem 0; } }
.theme-white { background: #fff; }
.theme-cream { background: var(--cream); }

.section-head { max-width: 42rem; margin: 0 auto; text-align: center; }
.section-head.text-left { margin-left: 0; }
.eyebrow {
  margin: 0;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--amber-dark);
}
.section-title {
  margin: 0.75rem 0 0;
  font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em;
}
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
.section-body {
  margin: 1rem auto 0; max-width: 38rem;
  font-size: 1rem; line-height: 1.6; color: var(--stone-600);
}
@media (min-width: 640px) { .section-body { font-size: 1.1rem; } }

/* ---------- Steps ---------- */
.steps {
  margin-top: 3.5rem;
  display: grid; gap: 1.5rem;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid rgba(231, 229, 228, 0.8);
  background: var(--cream);
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature { display: flex; gap: 1rem; background: #fff; }
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(138, 90, 43, 0.08); }
}
.step .step-num {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 3rem; font-weight: 800; color: rgba(217, 119, 6, 0.16);
}
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.8rem;
  background: var(--amber); color: #fff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}
.icon-tile.soft { background: #fef3c7; color: var(--amber-dark); box-shadow: none; width: 2.75rem; height: 2.75rem; border-radius: 0.6rem; }
.card-title { margin: 1.1rem 0 0; font-size: 1.15rem; font-weight: 700; }
.feature .card-title { margin-top: 0; font-size: 1rem; }
.card-body { margin: 0.5rem 0 0; font-size: 0.92rem; line-height: 1.55; color: var(--stone-600); }

.features-grid {
  margin-top: 3.5rem;
  display: grid; gap: 1.25rem;
}

/* ---------- Pricing ---------- */
.pricing-card {
  position: relative;
  max-width: 28rem;
  margin: 3.5rem auto 0;
  border-radius: 1.5rem;
  border: 2px solid var(--amber);
  background: var(--cream);
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(138, 90, 43, 0.15);
}
.trial-badge {
  position: absolute; top: -0.9rem; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--amber); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}
.pricing-title { margin: 0; font-size: 1.15rem; font-weight: 800; }
.pricing-blurb { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--stone-500); }
.pricing-price { display: flex; align-items: baseline; gap: 0.5rem; margin: 1.25rem 0 0; }
.price-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; }
.price-cadence { font-size: 0.9rem; font-weight: 500; color: var(--stone-500); }
.pricing-features { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.pricing-features li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--stone-600); }
.check { flex-shrink: 0; margin-top: 0.1rem; color: var(--amber); }
.pricing-card .btn { margin-top: 2rem; display: flex; }
.pricing-note {
  max-width: 28rem; margin: 1.5rem auto 0;
  text-align: center; font-size: 0.75rem; color: var(--stone-400);
}

/* ---------- Waitlist form ---------- */
.waitlist-form {
  display: flex; flex-direction: column; gap: 0.75rem;
  max-width: 28rem; margin: 2rem auto 0;
}
@media (min-width: 640px) { .waitlist-form { flex-direction: row; } }
.waitlist-form input {
  flex: 1;
  border-radius: 9999px;
  border: 1px solid var(--stone-300);
  background: #fff;
  padding: 0.9rem 1.25rem;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.waitlist-form input::placeholder { color: var(--stone-400); }
.waitlist-form input:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.18); }
.waitlist-form .btn { padding: 0.9rem 1.4rem; font-size: 0.92rem; flex-shrink: 0; }
.waitlist-note { margin: 0.85rem auto 0; max-width: 28rem; font-size: 0.78rem; color: var(--stone-500); }
.form-status { max-width: 28rem; margin: 1rem auto 0; }
.form-status:empty { display: none; }
.form-status .msg {
  border-radius: 0.9rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem; text-align: left;
}
.form-status .msg-success { border: 1px solid #bbe7c9; background: #ecfdf3; color: #14532d; }
.form-status .msg-error { border: 1px solid #fecaca; background: #fef2f2; color: #7f1d1d; }
.form-status .msg-amber { border: 1px solid #fde68a; background: #fffbeb; color: #78350f; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(138, 90, 43, 0.08); background: #fff; }
.footer-inner {
  max-width: 76rem; margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; padding: 2.5rem 2rem; }
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand .brand-mark { width: 2rem; height: 2rem; }
.footer-tag { margin: 0; font-size: 0.9rem; color: var(--stone-500); }
.footer-links { display: flex; align-items: center; gap: 1.25rem; font-size: 0.85rem; color: var(--stone-500); }
.footer-links a { text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--amber-dark); }
.footer-legal { margin: 0; font-size: 0.78rem; color: var(--stone-400); }

/* ---------- Legal / support pages ---------- */
.legal-page { padding: 3.5rem 0 5rem; }
@media (min-width: 640px) { .legal-page { padding: 5rem 0 6rem; } }
.legal-title { margin: 1rem 0 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
@media (min-width: 640px) { .legal-title { font-size: 2.4rem; } }
.legal-meta { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--stone-500); }
.legal-body { margin-top: 2.5rem; display: grid; gap: 2rem; }
.legal-block h2 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.legal-block p { margin: 0.5rem 0 0; font-size: 0.95rem; line-height: 1.65; color: var(--stone-600); }
.legal-block ul { margin: 0.5rem 0 0; padding-left: 1.15rem; display: grid; gap: 0.45rem; }
.legal-block li { font-size: 0.95rem; line-height: 1.6; color: var(--stone-600); }
.legal-block li strong { color: var(--ink); }
.legal-block a { color: var(--amber-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-block a:hover { color: var(--amber); }

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