/* RoamFolio marketing site — shared styles
   Palette sampled directly from the app (RoamFolio/ContentView.swift):
   cream canvas #F7F6F2, deep sage #4A6B4F, warm peach #F4DCC0,
   passport cover green #4D8C52, passport ink green #244D2B */

:root {
  --cream: #f7f6f2;
  --sage: #4a6b4f;
  --peach: #f4dcc0;
  --cover-green: #4d8c52;
  --ink-green: #244d2b;
  --ink: #22281f;
  --ink-soft: #55604f;
  --card: #ffffff;
  --border: rgba(36, 77, 43, 0.12);
  --shadow: 0 12px 30px rgba(36, 77, 43, 0.08);
  --max-width: 1080px;
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink-green);
}

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

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 242, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-green);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink-green);
}

.nav-cta {
  background: var(--cover-green);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sage) 0%, var(--peach) 55%, var(--cream) 100%);
}

.hero .wrap {
  position: relative;
  padding: 88px 24px 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 18px;
  color: #1c2b1f;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #263424;
  max-width: 46ch;
  margin: 0 0 30px;
}

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

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: default;
  opacity: 0.92;
}

.store-badge svg {
  flex-shrink: 0;
}

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

.store-badge .store-text small {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.85;
}

.store-badge .store-text strong {
  font-size: 1.05rem;
}

.pill-note {
  font-size: 0.85rem;
  color: #2f3f2c;
  font-weight: 600;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art .icon-frame {
  width: min(280px, 60vw);
  aspect-ratio: 1;
  border-radius: 26%;
  box-shadow: 0 30px 60px rgba(20, 40, 22, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

/* Sections */
section {
  padding: 84px 0;
}

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

.section-head .kicker {
  color: var(--cover-green);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 12px;
  color: var(--ink-green);
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cover-green), var(--ink-green));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
  font-size: 1.3rem;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* How it works */
.steps {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow);
}

.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 0;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--ink-green);
  font-weight: 700;
  margin-bottom: 14px;
}

.steps h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.steps p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Passport strip */
.passport-strip {
  background: var(--ink-green);
  color: #f2efe6;
}

.passport-strip .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 72px 24px;
}

.passport-strip h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 16px;
}

.passport-strip p {
  color: #d7e0d3;
  margin: 0 0 14px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.badge-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #f2efe6;
}

.stat-card-mini {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 26px;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-tile {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px;
}

.stat-tile .num {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--serif);
}

.stat-tile .label {
  font-size: 0.78rem;
  color: #bcc9b7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Final CTA */
.final-cta {
  text-align: center;
}

.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--ink-green);
  margin: 0 0 14px;
}

.final-cta p {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 30px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--cream);
}

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

footer .foot-links {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
}

footer .foot-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

footer .foot-links a:hover {
  color: var(--ink-green);
}

footer .copyright {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Privacy policy page */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-family: var(--serif);
  color: var(--ink-green);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: 6px;
}

.legal .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--serif);
  color: var(--ink-green);
  font-size: 1.3rem;
  margin-top: 44px;
  margin-bottom: 12px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.legal h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal h3 {
  font-size: 1.02rem;
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--ink);
}

.legal p,
.legal li {
  color: #333d2f;
  font-size: 0.98rem;
}

.legal ul {
  padding-left: 22px;
}

.legal .callout {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--cover-green);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.legal th,
.legal td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.legal th {
  background: #fff;
  color: var(--ink-green);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.back-link:hover {
  color: var(--ink-green);
}

/* Responsive */
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-top: 56px;
    text-align: center;
  }

  .cta-row {
    justify-content: center;
  }

  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-art {
    order: -1;
  }

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

  .steps ol {
    grid-template-columns: 1fr 1fr;
  }

  .passport-strip .wrap {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .steps ol {
    grid-template-columns: 1fr;
  }

  .nav-links a.hide-mobile {
    display: none;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }
}
