/* PocketRoo marketing site. Same palette and fonts as the app (web/src/styles.css), plus a dark theme. */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  color-scheme: light dark;
  --ground: #F7F2EA; --card: #FFFFFF; --line: #E9E1D4; --line-soft: #F1EBE0;
  --ink: #1F1B16; --ink2: #4A433B; --muted: #6B6259;
  --teal: #0E7490; --teal-dark: #155E75; --teal-tint: #E0F2F5; --teal-tint2: #EAF6F8; --on-teal: #FFFFFF;
  --gold: #F5B841; --gold-ink: #7A4D00; --tan: #E9A868; --orange: #C2410C; --orange-tint: #FDEBE0;
  --badge: #1F1B16; --badge-ink: #FFFFFF;
  --display: 'Fredoka', 'Arial Rounded MT Bold', system-ui, sans-serif; --body: 'Nunito', system-ui, sans-serif;
  --radius: 22px; --radius-sm: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #15191B; --card: #1F2528; --line: #313A3E; --line-soft: #28302F;
    --ink: #F3EEE6; --ink2: #D8D1C6; --muted: #A69E92;
    --teal: #4CB8D4; --teal-dark: #7FD0E4; --teal-tint: #15333C; --teal-tint2: #122A31; --on-teal: #0B1A20;
    --gold: #F5B841; --gold-ink: #F5B841; --tan: #E9A868; --orange: #F08A5B; --orange-tint: #3A2219;
    --badge: #F3EEE6; --badge-ink: #15191B;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 7vw, 56px); }
h2 { font-size: clamp(26px, 4.5vw, 36px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.eyebrow { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 800; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink2); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: var(--on-teal); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 24px; }
.brand svg { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; font-weight: 800; font-size: 15px; }
.nav a { color: var(--ink2); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--teal); }
.nav .btn { padding: 0 14px; height: 38px; font-size: 14px; }
@media (max-width: 640px) { .nav .nav-sec { display: none; } } /* phones: one row, the sections are a scroll away */
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 36px 0 44px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; }
.site-footer a { color: var(--ink2); }

/* Buttons and badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--card); color: var(--ink2); font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--on-teal); }
.btn-outline { border-color: var(--teal); color: var(--teal); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.badge { display: inline-flex; flex-direction: column; justify-content: center; min-height: 58px; padding: 8px 18px 8px 16px; border-radius: 12px; background: var(--badge); color: var(--badge-ink); text-decoration: none; line-height: 1.15; min-width: 190px; }
.badge small { font-size: 11px; font-weight: 700; opacity: .8; letter-spacing: .02em; }
.badge strong { font-size: 18px; font-family: var(--display); font-weight: 600; }
.badge-note { font-size: 14px; color: var(--muted); }

/* Hero */
.hero { padding: 48px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.hero-mark { width: min(260px, 60vw); margin: 0 auto; }
.hero-mark svg { width: 100%; height: auto; }
.hero h1 .pouch { color: var(--teal); display: block; }
.hero .lead { margin-top: 16px; }
@media (min-width: 760px) {
  .hero { padding: 72px 0 40px; }
  .hero .wrap { grid-template-columns: 1.3fr 1fr; gap: 40px; }
  .hero-mark { margin: 0; width: 100%; max-width: 340px; justify-self: center; }
}

/* Sections */
section { padding: 44px 0; }
section + section { border-top: 1px solid var(--line-soft); }
.section-head { max-width: 680px; margin-bottom: 28px; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink2); font-size: 16px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); font-family: var(--display); font-weight: 600; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.two-faces { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .two-faces { grid-template-columns: 1fr 1fr; } }
.face { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.face h3 { font-size: 24px; margin-bottom: 4px; }
.face .sub { color: var(--muted); font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.face ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.face li { padding-left: 28px; position: relative; color: var(--ink2); }
.face li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 3px var(--card); border: 1.5px solid var(--gold-ink); }
.callout { background: var(--teal-tint2); border: 1px solid var(--teal-tint); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; grid-template-columns: 1fr; }
.callout .big { font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--teal); }
.speaker { width: 56px; height: 56px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--teal); }
@media (min-width: 760px) { .callout { grid-template-columns: auto 1fr; align-items: center; } }

/* Buddies */
.buddies { display: flex; flex-wrap: wrap; gap: 10px; }
.buddy { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-weight: 800; font-size: 15px; color: var(--ink2); }
.buddy i { width: 26px; height: 26px; border-radius: 50%; display: inline-block; background: var(--c); border: 2px solid color-mix(in srgb, var(--c) 70%, #000); }

/* Screens */
.screens { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .screens { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.screens figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.screens img { border-radius: 12px; border: 1px solid var(--line-soft); width: 100%; }
.screens figcaption { padding: 10px 6px 2px; font-size: 15px; font-weight: 700; color: var(--ink2); }

/* Pricing */
.price-card { background: var(--card); border: 2px solid var(--teal); border-radius: var(--radius); padding: 28px; max-width: 520px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 10px 0 6px; }
.price .amt { font-family: var(--display); font-weight: 600; font-size: 44px; color: var(--teal); line-height: 1; }
.price .per { color: var(--muted); font-weight: 700; }
.price-card ul { margin: 16px 0 0; padding-left: 22px; color: var(--ink2); }
.price-card li { margin: 6px 0; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-family: var(--display); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 14px; color: var(--ink2); }

/* Legal and support pages */
.doc { padding: 36px 0 0; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; }
.doc ul, .doc ol { padding-left: 24px; color: var(--ink2); }
.doc li { margin: 6px 0; }
.doc p { color: var(--ink2); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0 20px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 800; color: var(--ink); }
.doc .meta { color: var(--muted); font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.draft { display: inline-block; background: var(--orange-tint); color: var(--orange); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; margin-bottom: 14px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 20px 0 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.toc a { text-decoration: none; }
kbd { font-family: var(--body); font-weight: 800; background: var(--line-soft); border-radius: 6px; padding: 1px 7px; font-size: 15px; }
.help-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 640px) { .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.help-grid a.card { text-decoration: none; color: var(--ink); }
.help-grid a.card:hover { border-color: var(--teal); }

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