/* SnapPea site. Colors mirror ios/FiveTens/App/FiveTensApp.swift and the app icon. */
:root {
  --page: #fbf9f4;          /* warm off-white from the login screen */
  --ink: #141611;
  --ink-soft: #4b5145;
  --pea: #a9d429;           /* wordmark / icon green */
  --pea-bright: #b0ee56;    /* brandGreen */
  --pea-pale: #effbe4;      /* brandPaleGreen */
  --pea-tile: #f0fbe7;      /* statTileFill */
  --deep: #3f6212;          /* deepGreen */
  --saved: #ffc24a;         /* savedFill */
  --saved-pale: #fff4d6;
  --rest: #a8d4ff;          /* restFill */
  --line: #e6e6e6;          /* cardBorder */
  --radius: 24px;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }

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

/* ---------- Header ---------- */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.wordmark {
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.045em;
  color: var(--pea);
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover { color: var(--pea); }

.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--deep); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 72px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }

.hero h1 {
  font-size: clamp(44px, 9vw, 84px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--pea); }

.lede { margin-top: 22px; font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-soft); max-width: 30em; }

.store {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 30px; padding: 13px 22px;
  background: var(--ink); color: #fff;
  border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none;
}
.store:hover { color: #fff; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: 0.7; line-height: 1.2; }
.store .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pea-bright); flex: none; }

.hero-art { margin: 0 auto; width: min(100%, 540px); }
.hero-art img { width: 100%; height: auto; }

/* ---------- Image slots (placeholders until real assets arrive) ---------- */
.phone {
  margin: 0;
  aspect-ratio: 9 / 19.5;
  border: 8px solid var(--ink);
  border-radius: 40px;
  background: var(--pea-pale);
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(63, 98, 18, 0.45);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

.illo { margin: 0; position: relative; aspect-ratio: 200 / 190; }
.illo > svg { width: 100%; height: 100%; }
/* multiply drops an illustration's white paper, so the pentagon outline shows through it */
.illo img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; }
/* For art on warm off-white paper (~#FCF7F4): a slight lift turns the paper pure white
   so multiply can drop it, without visibly changing the drawing. */
.illo img.warm-paper { filter: brightness(1.045); }
.illo .ph { position: absolute; inset: 22% 24%; border: 0; background: none; }

.ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 14px; text-align: center;
  font-size: 13px; line-height: 1.35; color: var(--deep);
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(63, 98, 18, 0.06) 11px 12px),
    var(--pea-pale);
}
.ph b { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.band { background: var(--pea-pale); }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--deep); margin-bottom: 12px;
}
.section-title { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -0.035em; max-width: 16em; }
.section-intro { margin-top: 14px; color: var(--ink-soft); max-width: 36em; }

/* How it works */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .illo { width: min(100%, 300px); margin: 0 auto 20px; }
/* In the steps the art fills nearly the whole pentagon and may cross its outline, as the
   pentagon illustrations do in the app. */
.step .illo img { inset: 4% 3% 0; width: 94%; height: 96%; }
.step .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--pea-bright); color: var(--ink); font-weight: 800; font-size: 15px; margin-bottom: 12px;
}
.step h3 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 16px; }

/* Feature rows */
.features { display: grid; gap: 72px; margin-top: 56px; }
.feature { display: grid; gap: 28px; align-items: center; }
.feature .phone { width: min(64%, 250px); margin: 0 auto; }
/* Unframed artwork in a feature row, for example a transparent badge composite */
.feature .feature-art { width: min(64%, 250px); margin: 0 auto; }
.feature .feature-art img { width: 100%; height: auto; }
/* Square-ish art needs more width than a tall phone-shaped image to read at the same size */
.feature .feature-art.wide { width: min(100%, 420px); }
.feature h3 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.feature p { margin-top: 12px; color: var(--ink-soft); max-width: 30em; }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; }
.feature li { padding-left: 26px; position: relative; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 13px; height: 13px; border-radius: 50%; background: var(--pea-bright);
}
.feature li.saved::before { background: var(--saved); }
.feature li.rest::before { background: var(--rest); }

/* Benefits */
.benefits { display: grid; gap: 16px; margin-top: 40px; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.benefit h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.02em; }
.benefit p { color: var(--ink-soft); font-size: 16px; }

/* Closing call to action */
/* The scene illustration fills the closing section behind the text. A soft oval of
   the illustration's paper color sits behind the text and button so they stay legible
   over the line art, fading out toward the figures. The section is at least half as
   tall as it is wide (the illustration's 2:1 shape), so on desktop the whole scene
   shows; on narrow screens it is cropped to the middle. */
.cta {
  --paper: 252, 247, 242;
  text-align: center;
  min-height: min(50vw, 640px);
  --oval: 80% 44%;          /* wide on phones, where the text spans the screen */
  background:
    radial-gradient(ellipse var(--oval) at 50% 42%, rgba(var(--paper), 0.94) 45%, rgba(var(--paper), 0) 100%),
    url("assets/homepage-hero.jpg") center bottom / cover no-repeat,
    rgb(var(--paper));
}
@media (min-width: 720px) {
  .cta { --oval: 42% 46%; }
}
.cta .mark { width: 92px; margin: 0 auto 22px; }
.cta h2 { font-size: clamp(34px, 6vw, 56px); font-weight: 900; letter-spacing: -0.04em; margin: 0 auto; }
.cta p { margin: 14px auto 0; color: var(--ink-soft); max-width: 28em; }

/* ---------- Text pages (privacy, support) ---------- */
.doc { padding: 32px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 7vw, 56px); font-weight: 900; letter-spacing: -0.04em; }
.doc .meta { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
.doc h2 { font-size: 24px; font-weight: 800; margin: 44px 0 12px; }
.doc h3 { font-size: 18px; font-weight: 700; margin: 26px 0 6px; letter-spacing: -0.01em; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .card {
  background: var(--pea-pale); border-radius: var(--radius); padding: 24px; margin: 28px 0;
}
.doc .card h2 { margin-top: 0; }
.doc .card p:last-child { margin-bottom: 0; }
.doc details { border-top: 1px solid var(--line); padding: 16px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--line); }
.doc summary { font-weight: 700; cursor: pointer; }
.doc details p { margin: 10px 0 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 15px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--ink-soft); }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature:nth-child(even) .phone,
  .feature:nth-child(even) .feature-art { order: 2; }
  .feature .phone,
  .feature .feature-art { width: min(70%, 270px); }
}

@media (min-width: 960px) {
  .hero { padding: 48px 0 96px; }
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; }
  .benefits { grid-template-columns: repeat(4, 1fr); }
  section { padding: 96px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
