/* ==========================================================================
   STEP TOMO — app pages (landing, support, privacy, terms, press)
   Keeps the Foggo Apps backbone (lowercase wordmark, bracketed nav) and
   dresses it in Step Tomo's own palette: lavender paper, ink outlines,
   pixel panels with a hard offset shadow, Fredoka body, Pixelify headings.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&family=Pixelify+Sans:wght@500;600;700&display=swap");

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

:root {
    --bg: #e8e5f2;
    --paper: #f7f5ff;
    --card: #ffffff;
    --alt: #ece8fa;
    --ink: #1e1a2b;
    --body: #3b364b;
    --muted: #5b5670;
    --line: #d6d1e8;
    --green: #7ed957;
    --green-ink: #2f7a1f;
    --gold: #ffc53d;
    --gold-ink: #8a5a00;
    --orange: #ff8a3d;
    --teal: #3fc1b0;
    --sky: #9db7ff;
    --blush: #ff8fb1;
    --shadow: 4px 4px 0 var(--ink);
    --pixel: "Pixelify Sans", "Fredoka", system-ui, sans-serif;
    --sans: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --maxw: 1080px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--pixel); color: var(--ink); line-height: 1.2; font-weight: 600; letter-spacing: 0.01em; }
a { color: #4b3fd1; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
.pixelated { image-rendering: pixelated; image-rendering: crisp-edges; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header / footer (Foggo backbone) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(232, 229, 242, 0.88); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 2px solid var(--ink); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.25rem; max-width: var(--maxw); margin: 0 auto; }
.wordmark { font-weight: 600; font-size: 1rem; color: var(--ink); text-transform: lowercase; text-decoration: none; }
.wordmark b { font-family: var(--pixel); font-weight: 600; }
.site-nav, .footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.site-nav a, .footer-links a { color: var(--body); font-size: 0.92rem; text-decoration: none; text-transform: lowercase; }
.site-nav a::before, .footer-links a::before { content: "["; color: var(--muted); opacity: 0.7; }
.site-nav a::after, .footer-links a::after { content: "]"; color: var(--muted); opacity: 0.7; }
.site-nav a:hover, .footer-links a:hover, .site-nav a[aria-current="page"] { color: #4b3fd1; }
@media (max-width: 620px) { .site-nav .hide-sm { display: none; } .site-nav { gap: 0.3rem 0.8rem; } }

.site-footer { border-top: 2px solid var(--ink); padding: 2rem 1.25rem; margin-top: 3rem; }
.footer-row { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.copyright { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 1.2rem; }

/* ---------- Pixel panel ---------- */
.panel { background: var(--card); border: 2px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--pixel); font-weight: 600; font-size: 1.05rem; color: var(--ink); background: var(--green); border: 2px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow); padding: 0.7rem 1.2rem; text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); color: var(--ink); }
.btn.alt { background: var(--card); }
.btn.gold { background: var(--gold); }

.appstore-badge { display: inline-flex; align-items: center; gap: 0.6rem; background: #111; color: #fff; border-radius: 12px; padding: 0.55rem 1.05rem; text-decoration: none; border: 2px solid #111; }
.appstore-badge:hover { color: #fff; }
.appstore-badge svg { width: 24px; height: 24px; }
.appstore-badge span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore-badge small { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.85; }
.appstore-badge b { font-size: 1.05rem; font-weight: 600; }
.appstore-badge.soon { background: #3b3650; border-color: #3b3650; cursor: default; }
.appstore-badge.soon small { color: var(--gold); opacity: 1; }

/* ---------- Legal / support shell ---------- */
.legal-shell { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 1rem; }
.kicker { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--pixel); font-weight: 600; color: var(--muted); font-size: 0.95rem; margin-bottom: 0.6rem; }
.kicker img { width: 28px; height: 28px; border-radius: 7px; border: 2px solid var(--ink); }
.legal-shell h1 { font-size: clamp(2rem, 6vw, 2.6rem); margin-bottom: 0.4rem; }
.updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.8rem; }
.legal-card { padding: 1.6rem 1.5rem; margin-bottom: 1.6rem; }
.legal-card h2 { font-size: 1.3rem; margin: 1.8rem 0 0.6rem; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { font-size: 1.05rem; margin: 1.2rem 0 0.4rem; }
.legal-card p, .legal-card li { font-size: 1rem; }
.legal-card p { margin-bottom: 0.9rem; }
.legal-card ul, .legal-card ol { margin: 0 0 1rem 1.3rem; }
.legal-card li { margin-bottom: 0.45rem; }
.short { background: #fff8e1; border: 2px solid var(--ink); border-radius: 6px; padding: 1rem 1.15rem; margin-bottom: 1.6rem; box-shadow: var(--shadow); }
.short p { margin: 0; }
.short p + p, .short ul { margin-top: 0.6rem; }
.short ul { margin-left: 1.2rem; }
.toc { margin: 0 0 1.4rem; padding: 1rem 1.2rem; background: var(--paper); border: 2px dashed var(--line); border-radius: 6px; }
.toc p { font-family: var(--pixel); font-weight: 600; color: var(--ink); margin-bottom: 0.3rem; }
.toc ol { margin-left: 1.2rem; columns: 2; column-gap: 2rem; font-size: 0.95rem; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
table.data { width: 100%; border-collapse: collapse; margin: 0.6rem 0 1.2rem; font-size: 0.95rem; }
table.data th, table.data td { border: 1px solid var(--line); padding: 0.55rem 0.65rem; text-align: left; vertical-align: top; }
table.data th { background: var(--alt); color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.contact-card { padding: 1.4rem 1.5rem; margin-bottom: 1.6rem; background: #eafbe3; }
.contact-card h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.contact-card p { margin-bottom: 0.7rem; }
.contact-card .btn { margin-top: 0.3rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.8rem; }
.faq details { background: var(--card); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 0.9rem 2.6rem 0.9rem 1.1rem; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1rem; top: 0.7rem; font-family: var(--pixel); font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 1.1rem 1rem; }
.faq .answer p { margin-bottom: 0.6rem; }
.faq .answer ul, .faq .answer ol { margin: 0 0 0.6rem 1.2rem; }
.faq-group { font-size: 1.25rem; margin: 2rem 0 0.8rem; }

/* ---------- Landing ---------- */
.hero { padding: 3.5rem 1.25rem 1rem; text-align: center; max-width: 860px; margin: 0 auto; }
.hero .app-mark { width: 96px; height: 96px; margin: 0 auto 1.1rem; border-radius: 22px; border: 3px solid var(--ink); box-shadow: var(--shadow); }
.hero .platforms { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.8rem; }
.hero .platforms strong { color: var(--ink); }
.hero h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); margin-bottom: 0.9rem; }
.hero h1 .hl { background: linear-gradient(transparent 62%, rgba(126, 217, 87, 0.7) 62%); padding: 0 0.1em; }
.hero .jp { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); margin: -0.2rem 0 1rem; }
.hero .lede { font-size: 1.12rem; max-width: 600px; margin: 0 auto 1.6rem; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; align-items: center; }
.cta-note { color: var(--muted); font-size: 0.88rem; margin-top: 0.9rem; }

.phone-row { display: flex; justify-content: center; align-items: flex-end; gap: 1.2rem; margin: 2.6rem auto 0; padding: 0 1rem; max-width: 980px; }
.phone { width: 230px; flex: 0 1 230px; border: 3px solid var(--ink); border-radius: 30px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); background: var(--ink); }
.phone img { width: 100%; height: auto; }
.phone.tilt-l { transform: rotate(-3deg) translateY(10px); }
.phone.tilt-r { transform: rotate(3deg) translateY(10px); }
@media (max-width: 700px) { .phone-row { gap: 0.6rem; } .phone { border-radius: 20px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); } .phone.hide-sm { display: none; } }

.section { padding: 4rem 1.25rem; }
.section + .section { border-top: 2px dashed var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.2rem; }
.eyebrow { font-family: var(--pixel); font-weight: 600; color: var(--muted); font-size: 0.95rem; margin-bottom: 0.4rem; }
.section-head h2 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); margin-bottom: 0.7rem; }
.section-head p { font-size: 1.05rem; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; max-width: var(--maxw); margin: 0 auto; }
.steps3 .panel { padding: 1.3rem 1.2rem; }
.steps3 .num { display: inline-block; font-family: var(--pixel); font-weight: 700; background: var(--gold); border: 2px solid var(--ink); border-radius: 4px; padding: 0 0.5rem; margin-bottom: 0.6rem; color: var(--ink); }
.steps3 h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; max-width: var(--maxw); margin: 0 auto; }
.split.reverse .split-text { order: 2; }
.split-text h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin-bottom: 0.8rem; }
.split-text p { margin-bottom: 0.9rem; font-size: 1.03rem; }
.split-media { display: flex; justify-content: center; gap: 1rem; }
.split-media .phone { width: 240px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 2rem; } .split.reverse .split-text { order: 0; } }

.ticks { list-style: none; margin-top: 0.4rem; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; background: var(--green); border: 2px solid var(--ink); }

.pets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem; max-width: var(--maxw); margin: 0 auto; }
.pet-card { padding: 1rem 0.9rem 1.1rem; text-align: center; }
.pet-card .sprite { height: 150px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 0.6rem; border-radius: 4px; overflow: hidden; }
.pet-card .sprite img { max-height: 150px; width: auto; }
.pet-card h3 { font-size: 1.3rem; }
.pet-card .role { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }
.pet-card p { font-size: 0.92rem; }
.pet-card .stages { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }
@media (max-width: 960px) { .pets { grid-template-columns: repeat(2, 1fr); } .pet-card:last-child { grid-column: span 2; } }
@media (max-width: 460px) { .pets { grid-template-columns: 1fr; } .pet-card:last-child { grid-column: auto; } }

.lineup { max-width: 760px; margin: 2rem auto 0; padding: 0.8rem; }
.lineup img { width: 100%; height: auto; border-radius: 3px; }
.caption { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 0.7rem; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; max-width: var(--maxw); margin: 0 auto; }
.gallery figure { padding: 0; overflow: hidden; }
.gallery img { width: 100%; height: auto; }
.gallery figcaption { font-size: 0.85rem; padding: 0.5rem 0.7rem; border-top: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.watch-strip { max-width: var(--maxw); margin: 0 auto; padding: 0.7rem; background: #000; border: 2px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow); overflow-x: auto; }
.watch-strip img { min-width: 900px; width: 100%; height: auto; }
.watch-gifs { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.4rem; }
.watch-gifs img { width: 120px; height: auto; border-radius: 22px; border: 3px solid var(--ink); background: #000; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; max-width: 900px; margin: 0 auto; }
.plan { padding: 1.4rem 1.3rem; position: relative; }
.plan h3 { font-size: 1.35rem; }
.plan .price { font-family: var(--pixel); font-weight: 700; font-size: 2rem; color: var(--ink); margin: 0.3rem 0 0.1rem; }
.plan .per { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.7rem; }
.plan .badge { position: absolute; top: -0.8rem; right: 1rem; background: var(--gold); border: 2px solid var(--ink); border-radius: 4px; font-family: var(--pixel); font-weight: 700; font-size: 0.85rem; padding: 0.05rem 0.5rem; color: var(--ink); }
.plan.best { background: #fffbea; }
.fine { max-width: 760px; margin: 1.6rem auto 0; font-size: 0.88rem; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

.closing { text-align: center; padding: 4.5rem 1.25rem 2rem; }
.closing h2 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); margin-bottom: 1rem; }
.closing img.egg { width: 88px; margin: 0 auto 1rem; }

/* ---------- Press kit ---------- */
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.asset { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.asset .thumb { background: var(--paper); display: flex; align-items: center; justify-content: center; min-height: 180px; padding: 0.6rem; }
.asset .thumb img { max-height: 260px; width: auto; }
.asset .meta { border-top: 2px solid var(--ink); padding: 0.6rem 0.8rem; font-size: 0.88rem; display: flex; justify-content: space-between; gap: 0.6rem; align-items: center; }
.asset .meta a { font-weight: 600; white-space: nowrap; }
.copybox { position: relative; background: var(--paper); border: 2px dashed var(--line); border-radius: 6px; padding: 1rem 1.1rem; margin: 0.4rem 0 1.2rem; }
.copybox p { margin-bottom: 0.6rem; }
.copybox p:last-child { margin-bottom: 0; }
.copy-btn { position: absolute; top: 0.5rem; right: 0.5rem; font: 600 0.8rem var(--sans); background: var(--card); border: 2px solid var(--ink); border-radius: 4px; padding: 0.15rem 0.55rem; cursor: pointer; color: var(--ink); }
.copy-btn:hover { background: var(--green); }
.swatches { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.6rem 0 1rem; }
.swatch { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; background: var(--card); border: 2px solid var(--ink); border-radius: 4px; padding: 0.25rem 0.55rem 0.25rem 0.3rem; }
.swatch i { width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 3px; display: inline-block; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Brand wordmark: pixel art, only ever at whole multiples (122 x 23 grid). */
.hero .brand-wordmark { display: block; width: 244px; height: auto; margin: 0 auto 0.9rem; }
@media (min-width: 560px) { .hero .brand-wordmark { width: 366px; } }
.kicker img.kicker-wordmark { width: 122px; height: 23px; border: 0; border-radius: 0; }
