/* ===== Design tokens ===== */
:root {
  --color-bg: #fbf8f0;
  --color-bg-alt: #e8dfc9;
  --color-surface: #fefcf5;
  --color-text: #071a34;
  --color-text-muted: #4c5b6b;
  --color-primary: #0c6b63;
  --color-primary-dark: #084f49;
  --color-gold: #cbaa79;
  --color-success: #15803d;
  --color-danger: #b91c1c;
  --color-border: #e3d8be;
  --shadow-soft: 0 1px 2px rgba(7, 26, 52, 0.05), 0 8px 24px rgba(7, 26, 52, 0.06);
  --shadow-lift: 0 24px 56px rgba(7, 26, 52, 0.16);
  --radius-md: 10px;
  --radius-lg: 20px;
  --max-width: 1120px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #071a34;
    --color-bg-alt: #0c3547;
    --color-surface: #0e2840;
    --color-text: #f4eedd;
    --color-text-muted: #a9b4bd;
    --color-primary: #1c9186;
    --color-primary-dark: #35c0b3;
    --color-gold: #d8bc8c;
    --color-success: #4ade80;
    --color-danger: #f87171;
    --color-border: #163b52;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 24px 56px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: inherit;
}

svg {
  display: block;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--color-text);
}

.nav-brand .logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.nav-links a.active {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.nav-links a.btn-cta {
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 600;
  margin-left: 6px;
}

.nav-links a.btn-cta:hover {
  background: var(--color-primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-text);
}

/* ===== Hero ===== */
.hero {
  padding: 96px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-primary);
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  line-height: 1.06;
  margin: 0 0 22px;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 46ch;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.store-badge .icon {
  width: 22px;
  height: 22px;
  color: var(--color-text);
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge-text .eyebrow-tiny {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-badge-text strong {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ===== Phone frame (shared: hero mock + about-page screenshot slots) ===== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 270px;
  aspect-ratio: 9 / 19.5;
  background: var(--color-text);
  border-radius: 44px;
  box-shadow: var(--shadow-lift);
  padding: 12px;
  position: relative;
}

.phone-frame-inner {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background: var(--color-surface);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 22px;
  border-radius: 999px;
  background: var(--color-text);
  z-index: 2;
}

.phone-screen-content {
  flex: 1;
  padding: 46px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-line {
  height: 8px;
  border-radius: 6px;
  background: var(--color-bg-alt);
}

.mock-line.short {
  width: 55%;
}

.mock-para {
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 6px 0;
}

.mock-word {
  display: inline-block;
  padding: 2px 7px;
  margin: 1px 2px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--color-primary) 15%, transparent);
  color: var(--color-primary);
}

.phone-tabbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
}

.phone-tabbar .icon {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}

.phone-tabbar .icon.is-active {
  color: var(--color-primary);
}

/* About-page screenshot placeholder slots reuse .phone-frame */
.screenshot-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  padding: 24px;
  background: var(--color-bg-alt);
}

.screenshot-placeholder .icon {
  width: 26px;
  height: 26px;
  opacity: 0.55;
}

/* ===== Sections ===== */
section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ===== Feature grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.feature-card .icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card .icon-badge .icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

/* ===== About page: feature rows with screenshots ===== */
.feature-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row.reverse {
  grid-template-columns: 1.15fr 0.85fr;
}

.feature-row.reverse .feature-row-text {
  order: 2;
}

.feature-row.reverse .feature-row-shot {
  order: 1;
}

.feature-row-text .icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-row-text .icon-badge .icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.feature-row-text .tag {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.feature-row-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.55rem;
  margin: 0 0 14px;
}

.feature-row-text p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  margin: 0 0 14px;
}

.feature-row-text ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--color-text-muted);
}

.feature-row-text li {
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.feature-row-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1.5px;
  background: var(--color-primary);
}

.feature-row-shot .phone-frame {
  margin: 0 auto;
}

/* ===== Waitlist form ===== */
.waitlist-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  font-family: var(--font-body);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group input[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 14px;
}

/* Formspree AJAX widget hooks: form-level success/error banners... */
div[data-fs-success],
div[data-fs-error] {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
}

div[data-fs-success]:empty,
div[data-fs-error]:empty {
  display: none;
  margin: 0;
  padding: 0;
}

div[data-fs-success] {
  background: color-mix(in srgb, var(--color-success) 14%, transparent);
  color: var(--color-success);
}

div[data-fs-error] {
  background: color-mix(in srgb, var(--color-danger) 14%, transparent);
  color: var(--color-danger);
}

/* ...and inline field-level error text */
span[data-fs-error] {
  display: block;
  color: var(--color-danger);
  font-size: 0.82rem;
  margin-top: 6px;
}

span[data-fs-error]:empty {
  display: none;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

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

/* ===== Page hero (About / Waitlist) ===== */
.page-hero {
  padding: 60px 0 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.page-hero p {
  color: var(--color-text-muted);
  max-width: 56ch;
  margin: 0 auto;
  font-size: 1.06rem;
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    width: 230px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-row.reverse .feature-row-text,
  .feature-row.reverse .feature-row-shot {
    order: unset;
  }

  .feature-row-shot .phone-frame {
    width: 220px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-links a.btn-cta {
    margin-left: 0;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .waitlist-card {
    padding: 28px 22px;
  }
}
