/* ── Eased website. Warm-neutral palette mirrored from the iOS app theme.
   Vanilla CSS, no build step. Mobile-first, scales up at 720/1024. ── */

:root {
  --canvas: #F8F4ED;
  --surface: #FFFFFF;
  --tint: #F0E9DC;
  --ink: #2A1F18;
  --walnut-deep: #4A382C;
  --walnut-mid: #8E7B68;
  --camel: #B8946E;
  --camel-soft: #D9C2A4;
  --clay-bg: #F0DFD0;
  --clay-deep: #8E5A3D;
  --border: #E5DCCB;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --inset: 22px;
  --maxw: 1100px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.serif { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--camel); }

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

/* ── Layout primitives ── */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--inset);
}

.section {
  padding: 64px 0;
}
@media (min-width: 720px) {
  .section { padding: 96px 0; }
}

.cap {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--walnut-mid);
  font-weight: 500;
}

.h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}

.body {
  color: var(--walnut-deep);
  font-size: 16px;
  line-height: 1.6;
}

.sub {
  color: var(--walnut-mid);
  font-size: 15px;
  line-height: 1.55;
}

/* ── Top nav ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 237, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(14px, 1.4vw, 22px) var(--inset);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-feature-settings: "kern" 1, "liga" 1;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--walnut-mid);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }

@media (max-width: 540px) {
  .nav-links a:not(.cta-mini) { display: none; }
}

.cta-mini {
  background: var(--ink);
  color: var(--canvas) !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
}
.cta-mini:hover { color: var(--canvas) !important; opacity: 0.9; }

/* ── Hero ── */

.hero {
  padding: 56px 0 32px;
}
@media (min-width: 900px) {
  .hero { padding: 88px 0 48px; }
}

/* Single-screen layout: hero fills viewport between nav and footer. */
body.single-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.single-screen .hero-only {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 32px 0;
}
body.single-screen .hero-only .wrap { width: 100%; }
@media (min-width: 900px) {
  body.single-screen .hero-only { padding: 48px 0; }
}

.footer-minimal { padding: 18px 0; }
.footer-minimal .footer-inner { gap: 12px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}

.hero-cap {
  margin-bottom: 14px;
}

.hero h1 {
  margin-bottom: 18px;
}

.hero .lede {
  font-size: 18px;
  color: var(--walnut-mid);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Official Apple App Store badge — minimum height 40px per Apple
   marketing guidelines. Don't apply background, border, or filters
   to the SVG itself. */
.app-badge-link {
  display: inline-block;
  transition: opacity 0.2s;
}
.app-badge-link:hover { opacity: 0.85; }
.app-badge-img {
  display: block;
  height: 48px;
  width: auto;
}

.cta-aside {
  font-size: 13px;
  color: var(--walnut-mid);
}

/* ── Phone mockup (CSS only) ── */

.phone {
  width: 280px;
  margin: 0 auto;
  border-radius: 38px;
  background: linear-gradient(180deg, #F0E9DC 0%, #F8F4ED 100%);
  padding: 14px 12px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 22px 60px rgba(74, 56, 44, 0.18),
    inset 0 0 0 1px rgba(74, 56, 44, 0.08);
  position: relative;
}
@media (min-width: 900px) {
  .phone { width: 320px; }
}

.phone-notch {
  width: 100px;
  height: 22px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  margin: -14px auto 18px;
}

.phone-body {
  background: var(--canvas);
  border-radius: 26px;
  padding: 22px 18px 26px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
}

.phone-cap {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--walnut-mid);
  margin-bottom: 14px;
  text-align: center;
}

.phone-note {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  line-height: 1.32;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 22px;
  flex-grow: 1;
}

.phone-meta {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--walnut-mid);
}

/* ── Feature rows ── */

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 88px;
}
.feature-row:last-child { margin-bottom: 0; }

@media (min-width: 820px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .feature-row.flip .feature-text { order: 2; }
  .feature-row.flip .feature-visual { order: 1; }
}

.feature-text .cap { margin-bottom: 12px; }
.feature-text h2 { margin-bottom: 14px; }
.feature-text p { color: var(--walnut-mid); font-size: 17px; max-width: 460px; }

/* Feature visual cards */

.fcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}

.voice-stack { display: flex; flex-direction: column; gap: 10px; }
.voice-pill {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  background: var(--canvas);
}
.voice-pill.selected {
  border-color: var(--ink);
  border-width: 1.5px;
  background: var(--tint);
}
.voice-pill .vname { font-weight: 500; }
.voice-pill .vsub {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--walnut-mid);
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.lib-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--canvas);
  border: 1px solid var(--border);
}
.lib-cell.fill-1 { background: var(--tint); }
.lib-cell.fill-2 { background: var(--clay-bg); }
.lib-cell.fill-3 { background: var(--camel-soft); }

.time-list { display: flex; flex-direction: column; gap: 8px; }
.time-row {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--border);
  background: var(--canvas);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}
.time-row .lbl { color: var(--walnut-mid); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.time-row .val { font-weight: 500; }
.time-add {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  color: var(--walnut-mid);
  font-size: 13px;
}

/* ── Principles ── */

.principles {
  background: var(--tint);
}

.princ-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 36px;
}
@media (min-width: 720px) { .princ-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (min-width: 1024px) { .princ-grid { grid-template-columns: repeat(4, 1fr); } }

.princ {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.princ .num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  color: var(--camel);
  margin-bottom: 8px;
}
.princ h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--ink);
}
.princ p { color: var(--walnut-mid); font-size: 14.5px; line-height: 1.55; }

.pull-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.3;
  color: var(--walnut-deep);
  text-align: center;
  max-width: 720px;
  margin: 56px auto 0;
  font-style: italic;
}

/* ── Closing CTA ── */

.cta-section {
  text-align: center;
  background: var(--canvas);
}
.cta-section .h2 { margin-bottom: 18px; }
.cta-section .lede {
  color: var(--walnut-mid);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 28px;
}
.cta-section .cta-row { justify-content: center; }

/* ── Footer (dark bar pinned to bottom) ── */

.footer {
  background: var(--walnut-deep);
  color: var(--camel-soft);
  padding: 22px 0;
  margin-top: auto;   /* pin to bottom inside flex column body */
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--inset);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  width: clamp(40px, 3.6vw, 56px);
  height: clamp(40px, 3.6vw, 56px);
  background: var(--canvas);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1;
  font-weight: 500;
  color: var(--walnut-deep);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.footer-meta {
  font-size: 13px;
  color: var(--camel-soft);
  opacity: 0.85;
  white-space: nowrap;
}
.footer-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--canvas);
  opacity: 0.9;
  transition: opacity 0.15s;
}
.footer-links a:hover { opacity: 1; color: var(--canvas); }

.footer-social {
  display: flex;
  align-items: center;
}
.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--canvas);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--walnut-deep);
  transition: transform 0.15s;
}
.footer-social a:hover { transform: scale(1.06); color: var(--walnut-deep); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* Tablet: collapse the meta into one line under the brand. */
@media (max-width: 820px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }
  .footer-brand { justify-content: center; }
  .footer-meta { white-space: normal; }
  .footer-social { justify-content: center; }
  .footer-links { gap: 22px; }
}

/* Phone: tighten gaps + slightly smaller text. */
@media (max-width: 480px) {
  .footer { padding: 20px 0; }
  .footer-links { gap: 16px; font-size: 12.5px; }
  .footer-meta { font-size: 12.5px; }
}

.footer-minimal { padding: 22px 0; }

/* ── Legal pages (terms / privacy) ── */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px var(--inset) 88px;
}
.legal h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 8px;
  color: var(--ink);
}
.legal .updated {
  font-size: 13px;
  color: var(--walnut-mid);
  margin-bottom: 36px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 8px;
  color: var(--ink);
}
.legal p, .legal ul { color: var(--walnut-deep); font-size: 15.5px; line-height: 1.65; margin-bottom: 14px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--camel); text-decoration: underline; }
.legal a:hover { color: var(--clay-deep); }

.legal-back {
  display: inline-block;
  font-size: 13px;
  color: var(--walnut-mid);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.legal-back:hover { color: var(--ink); }
