/* Bob the Raccoon — marketing site. Plain CSS, no frameworks. */
:root {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --surface-2: #f3eadc;
  --text: #2a1e17;
  --muted: #5e4d42;
  --line: #e2d5c3;
  --accent: #fdb882;        /* Bob's peach, from the app's dark theme */
  --accent-ink: #3a1d05;    /* text on peach */
  --accent-strong: #8a4310; /* links on light backgrounds */
  --green: #1f4d2e;
  --navy: #1b2a5c;
  --red: #8b1a1a;
  --purple: #5b2a8c;
  --radius: 18px;
  --wrap: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1411;
    --surface: #251c18;
    --surface-2: #2e2420;
    --text: #f5ebe1;
    --muted: #c9b8aa;
    --line: #3d312b;
    --accent-strong: #fdb882;
    --green: #fdb882;
    --navy: #fdb882;
    --red: #fdb882;
    --purple: #fdb882;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.brand img { width: 52px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.site-nav a { display: inline-block; padding: 8px 12px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; }
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { background: var(--surface-2); }

/* Buttons — real text, never images */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 700 1.05rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.site-nav .btn { padding: 8px 18px; min-height: 40px; }
.site-nav .btn:hover { background: var(--accent); filter: brightness(0.95); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 72px 0; }
.alt { background: var(--surface-2); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .6em; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-art { justify-self: center; max-width: 340px; }
.hero .btn-row { margin-top: 28px; }
.small { font-size: .95rem; color: var(--muted); }

/* Phone screenshots */
.phone {
  background: #120d0b; padding: 10px; border-radius: 34px;
  box-shadow: 0 18px 40px -18px rgba(42,30,23,.45);
  max-width: 300px; margin: 0 auto;
}
.phone img { border-radius: 24px; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split + .split { margin-top: 72px; }
.split.flip > :first-child { order: 2; }

/* Promise list */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 32px 0 0; }
.promises li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.promises strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.dot.green { background: var(--green); } .dot.navy { background: var(--navy); }
.dot.red { background: var(--red); } .dot.purple { background: var(--purple); }
.card p { margin: 0; color: var(--muted); }

/* Bob wardrobe strip */
.wardrobe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 36px; align-items: end; list-style: none; padding: 0; }
.wardrobe figure { margin: 0; text-align: center; }
.wardrobe figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 3px solid var(--accent); }
.plan-notes { width: fit-content; max-width: 100%; margin: 24px auto 0; padding-left: 1.3em; text-align: left; color: var(--muted, inherit); }
.plan-notes li { margin: 4px 0; }
.plan .tag { align-self: flex-start; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.price { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1; margin: 6px 0 4px; }
.price .per { font-size: 1rem; font-family: var(--sans); font-weight: 600; color: var(--muted); }
.was { color: var(--muted); }
.plan ul { padding-left: 1.2em; margin: 14px 0 22px; color: var(--muted); }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { max-width: 760px; margin: 32px auto 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.faq details p { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer ul { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; flex-wrap: wrap; }

/* Theme-swapped screenshot */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) { .only-light { display: none; } .only-dark { display: block; } }

@media (max-width: 820px) {
  section { padding: 52px 0; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip > :first-child { order: 0; }
  .hero-art { max-width: 240px; }
  .wardrobe { grid-template-columns: repeat(3, 1fr); }
  .wardrobe li:nth-child(n+4) { display: none; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .brand span { font-size: 1.1rem; }
  .site-nav a { padding: 8px 10px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gift-code {
  font: 700 clamp(1.6rem, 6vw, 2.4rem)/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .08em; background: var(--surface); border: 2px dashed var(--accent);
  border-radius: 14px; padding: 16px 20px; margin: 8px 0 20px; display: inline-block; word-break: break-all;
}

/* Redeem a gift */
.redeem-form { margin: 20px 0 8px; max-width: 420px; }
.redeem-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.redeem-form input {
  width: 100%; box-sizing: border-box; min-height: 52px; padding: 10px 16px;
  font: 700 1.3rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em;
  color: var(--text); background: var(--surface); border: 2px solid var(--line); border-radius: 14px;
}
.redeem-form input:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.redeem-form input[aria-invalid="true"] { border-color: #c0392b; }
.redeem-form .btn { margin-top: 4px; }
.gift-callout {
  margin-top: 28px; padding: 20px 22px; max-width: 520px;
  background: var(--surface); border: 2px dashed var(--accent); border-radius: 18px;
}
.gift-callout h2 { font-size: 1.3rem; margin: 0 0 .4em; }
.gift-callout p { margin: 0 0 .6em; }

/* Home: small, friendly "redeem a gift" banner */
.gift-banner {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 6px 16px 6px 8px; border-radius: 999px; min-height: 44px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  text-decoration: none; font-size: .98rem;
}
.gift-banner img { height: 28px; width: auto; }
.gift-banner strong { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gift-banner:hover, .gift-banner:focus-visible { background: var(--surface-2); }
.gift-banner-arrow { transition: transform .15s; }
.gift-banner:hover .gift-banner-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .gift-banner-arrow { transition: none; } }
@media (max-width: 480px) { .gift-banner { font-size: .9rem; gap: 8px; text-align: left; } .gift-banner strong { white-space: nowrap; } }

/* Home: big Bob in the middle, little Bobs around him */
.hero-intro h1 { text-wrap: balance; }
.hero-intro .lede { margin-left: auto; margin-right: auto; }
.hero-intro .btn-row { justify-content: center; margin-top: 24px; }
.bob-cluster {
  display: grid; grid-template-columns: 1fr minmax(220px, .9fr) 1fr; gap: 20px 24px;
  align-items: center; margin-top: 44px;
}
.bob-main { grid-column: 2; grid-row: 1; width: 100%; max-width: 330px; justify-self: center; }
.bob-side, .bob-row { list-style: none; margin: 0; padding: 0; }
.bob-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px; grid-row: 1; }
.bob-left { grid-column: 1; }
.bob-right { grid-column: 3; }
.bob-row { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: nowrap; justify-content: center; gap: 16px clamp(8px, 2.4vw, 28px); }
.bob-side li, .bob-row li { display: flex; justify-content: center; align-items: flex-end; }
.bob-side img, .bob-row img { height: 150px; width: auto; }
.bob-caption { margin-top: 24px; color: var(--muted); font-size: 1.05rem; }
@media (max-width: 1000px) {
  .bob-side img, .bob-row img { height: 120px; }
}
@media (max-width: 820px) {
  /* 25 little Bobs = 5 rows of 5, so no Bob is ever left alone on a row */
  .bob-cluster { grid-template-columns: repeat(5, 1fr); gap: 14px 4px; }
  .bob-main { grid-column: 1 / -1; grid-row: 1; max-width: 230px; }
  .bob-side, .bob-row { display: contents; }
  .bob-side img, .bob-row img { height: 84px; }
}
@media (max-width: 380px) { .bob-side img, .bob-row img { height: 72px; } }
.hero.home .wrap { display: block; }

.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: var(--accent-ink); background: var(--accent); }
