/* ---- fonts ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/fraunces.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic.woff2') format('woff2');
}

/* ---- tokens ---- */
:root {
  --bg:            #FAF5EA;
  --surface:       #FFFFFF;
  --surface-muted: #F5EFE0;
  --surface-sun:   #EDE5D0;
  --border:        #E8DFCD;
  --text:          #1C1917;
  --text-muted:    #3A3330;
  --text-dim:      #6B6055;
  --accent:        #C2410C;
  --accent-text:   #7C2D12;
  --accent-light:  #FED7AA;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-xxl: 24px;
  --space-xxxl: 32px;
  --space-huge: 48px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --shadow-sm: 0 1px 4px rgba(28,25,23,0.06);
  --shadow-md: 0 4px 12px rgba(28,25,23,0.08);
  --shadow-lg: 0 8px 24px rgba(28,25,23,0.10);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ---- typography ---- */
.display-hero {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.4px;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
em.accent {
  font-style: italic;
  color: var(--accent);
}
em.dim {
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.85em;
}
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}
.body-lg {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
}
.body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.caption {
  font-size: 12px;
  color: var(--text-dim);
}

/* ---- layout ---- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.section {
  padding: 96px 0;
}
.section--alt {
  background: var(--surface);
}
.section--muted {
  background: var(--surface-muted);
}

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-xxl);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}
.nav__wordmark {
  height: 28px;
  width: auto;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

/* ---- store buttons ---- */
.store-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-xxxl);
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: 11px 20px;
  background: var(--text);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  min-width: 164px;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.store-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.store-btn__icon { flex-shrink: 0; }
.store-btn__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}
.store-btn__label {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.65;
  line-height: 1;
}
.store-btn__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.download .store-btn {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.download .store-btn:hover { background: rgba(255,255,255,0.25); }

/* ---- inline wordmark ---- */
.wordmark-inline {
  display: inline;
  vertical-align: -0.26em;
  width: auto;
}

/* ---- hero ---- */
.hero {
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__content {
  max-width: 520px;
}
.hero__sub {
  margin-top: var(--space-xxl);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 440px;
}
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---- phone mockup ---- */
.phone {
  position: relative;
  width: 260px;
  background: #1C1917;
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--shadow-lg), 0 32px 80px rgba(28,25,23,0.18);
}
.phone::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 22px;
  background: #1C1917;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone__screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}
.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.screenshot-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  padding: var(--space-lg);
}
.screenshot-placeholder__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.7;
}

/* ---- story ---- */
.story__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.story__text p + p {
  margin-top: var(--space-xl);
}

/* ---- features ---- */
.features__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-huge);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xxl);
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.feature-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
  flex: 1;
}
.feature-card__screen {
  margin-top: var(--space-sm);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 9 / 16;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---- highlighted features ---- */
.features-highlight {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-bottom: 80px;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row--reverse .feature-row__visual {
  order: -1;
}
.feature-row__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}
.feature-row__title {
  margin-top: var(--space-sm);
}
.feature-row__desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 420px;
}
.feature-row__visual {
  display: flex;
  justify-content: center;
}
.phone--small {
  width: 220px;
}

/* ---- download CTA ---- */
.download {
  background: var(--accent);
  padding: 96px 0;
  color: #FFFFFF;
}
.download__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.download .display-lg {
  color: #FFFFFF;
}
.download em.accent {
  color: var(--accent-light);
}
.download .store-buttons {
  justify-content: center;
  margin-top: var(--space-xxxl);
}
.download .store-btn--light {
  filter: brightness(0) invert(1);
}
.download__sub {
  margin-top: var(--space-xl);
  font-size: 16px;
  color: rgba(255,255,255,0.75);
}

/* ---- callout ---- */
.callout {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

/* ---- footer ---- */
.footer {
  background: var(--text);
  color: rgba(250,245,234,0.6);
  padding: 48px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xxl);
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.footer__wordmark {
  width: auto;
}
.footer__tagline {
  font-size: 13px;
  color: rgba(250,245,234,0.45);
}
.footer__copy {
  font-size: 12px;
}
.download__eyebrow {
  color: rgba(255,255,255,0.6);
}

/* ---- legal pages ---- */
.legal-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}
.legal-hero__meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: var(--space-xl);
}
.legal-body {
  padding: 72px 0 96px;
}
.legal-body__inner {
  max-width: 720px;
}
.legal-section {
  margin-top: 56px;
}
.legal-section:first-child {
  margin-top: 0;
}
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}
.legal-section h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-top: var(--space-xxl);
  margin-bottom: var(--space-md);
}
.legal-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-section ul {
  margin: var(--space-lg) 0 var(--space-xl) var(--space-xxl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.legal-section li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}
.legal-nav {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.legal-nav a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-nav a:hover {
  color: var(--text);
}
.footer__legal {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  align-items: center;
}
.footer__legal a {
  font-size: 12px;
  color: rgba(250,245,234,0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__legal a:hover {
  color: rgba(250,245,234,0.75);
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero__inner,
  .story__inner,
  .feature-row {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__visual { order: -1; }
  .feature-row--reverse .feature-row__visual { order: 0; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
}

@media (max-width: 600px) {
  .container { padding: 0 var(--space-lg); }
  .features__grid { grid-template-columns: 1fr; }
  .display-hero { font-size: 36px; }
  .display-lg { font-size: 28px; }
  .store-buttons { flex-direction: column; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
