/* Foldate marketing site — tokens lifted from the app's own theme
   (lib/features/onboarding/onboarding_theme.dart: OnboardingColors,
   onboardingLora). Keep these in sync if the app's palette changes. */
:root {
  --primary: #C4714A;
  --glow: #E8915A;
  --background: #FAF7F0;
  --ink: #2C1A0E;
  --body: #6B5040;
  --muted: #9E8C7E;
  --border: #D4C4B0;
  --leaf: #52B788;
  --card-bg: #FFFFFF;

  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--body);
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; }

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

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-mark { display: block; }

.brand-word {
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}

.topnav {
  display: flex;
  gap: 28px;
}

.topnav a {
  text-decoration: none;
  color: var(--body);
  font-size: 15px;
}

.topnav a:hover { color: var(--primary); }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero-logo {
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  max-width: 720px;
  margin: 0 auto;
}

.hero-sub {
  max-width: 540px;
  margin: 20px auto 0;
  font-size: 18px;
  color: var(--body);
}

.store-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 14px 24px;
  border-radius: 14px;
  background: var(--primary);
  color: #FFF8F2;
  text-decoration: none;
  font-family: 'Lora', serif;
  box-shadow: 0 10px 24px rgba(196, 113, 74, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.store-cta:hover {
  background: var(--glow);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(196, 113, 74, 0.34);
}

.store-cta--soon {
  cursor: default;
  background: var(--muted);
  box-shadow: none;
}

.store-cta--soon:hover {
  background: var(--muted);
  transform: none;
  box-shadow: none;
}

.store-cta-icon {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  font-size: 17px;
  font-weight: 600;
}

.store-cta-text small {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* ---------- Features ---------- */

.features {
  padding: 56px 0 88px;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 10px 28px rgba(44, 26, 14, 0.05);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FBE8DC;
  color: var(--primary);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-card p {
  margin: 0;
  color: var(--body);
  font-size: 15.5px;
}

/* ---------- Screenshots ---------- */

.screenshots {
  padding: 24px 0 96px;
  text-align: center;
}

.screenshots h2 {
  font-size: 30px;
  margin-bottom: 40px;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.shot-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(44, 26, 14, 0.14);
  line-height: 0;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14.5px;
}

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

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

.footer-copy {
  width: 100%;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .topnav { display: none; }

  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }

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

  .shot-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .shot-row { grid-template-columns: 1fr 1fr; gap: 14px; }
}
