/* ==========================================================================
   Tapadoo Planner (ganttmac.com)
   Hand-written, no framework. Swap --accent for the final brand colour.
   ========================================================================== */

/* Self-hosted Inter (SIL OFL), latin subset */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }

:root {
    --accent: #0A84FF;          /* macOS system blue. PLACEHOLDER: swap for brand */
    --accent-dark: #0060df;
    --ink: #1c1c1e;
    --ink-soft: #48484a;
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --border: #e5e5ea;
    --radius: 14px;
    --maxw: 1080px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Inline prose links stay distinguishable without relying on colour alone (WCAG). */
.faq-item a, .legal a { text-decoration: underline; }

/* --- Visible keyboard focus --- */
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 2px;
    border-radius: 4px;
}
.footer a:focus-visible, .store-badge:focus-visible { outline-color: #fff; }

/* --- Skip link (a11y) --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    z-index: 100;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* --- Placeholder boxes (swap for real <img> / badge) --- */
.placeholder-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--ink-soft);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.app-icon {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    border-radius: 22px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.tagline {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    color: var(--ink-soft);
    max-width: 640px;
    margin: 0 auto 28px;
}
.features-summary {
    list-style: none;
    padding: 0;
    margin: 0 auto 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.features-summary li {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-soft);
}
.hero-shot {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 40px auto 0;
}

/* --- Store badge (placeholder styling) --- */
.store-badge {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}
.store-badge strong { font-size: 1.25rem; font-weight: 600; }
.store-badge:hover { text-decoration: none; transform: translateY(-2px); background: #000; }
.placeholder-badge { opacity: 0.9; }

/* ===== Feature sections ===== */
.feature { padding: 72px 0; }
.feature.alt { background: var(--bg-alt); }
.feature-row {
    display: flex;
    align-items: center;
    gap: 56px;
}
.feature.alt .feature-row { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}
.feature-text p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.feature-media {
    flex: 1;
    height: clamp(240px, 32vw, 360px);
}
.feature-shot {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    height: auto;
}

/* ===== FAQ ===== */
.faq {
    background: var(--bg);
    padding: 80px 0;
}
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0 0 40px;
}
.faq-list { display: flex; flex-direction: column; gap: 28px; }
.faq-item h3 {
    font-size: 1.12rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--ink);
}
.faq-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.6;
}

/* ===== CTA ===== */
.cta {
    text-align: center;
    padding: 88px 0;
    background: var(--bg-alt);
}
.cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.cta p { color: var(--ink-soft); margin: 0 0 28px; }

/* ===== Footer ===== */
.footer {
    background: var(--ink);
    color: #d0d0d5;
    padding: 32px 0;
    font-size: 0.9rem;
}
.footer a { color: #fff; }
/* Comfortable tap targets on touch devices (WCAG 2.5.8). */
.footer-content a { display: inline-block; padding: 6px 2px; }
.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    justify-content: space-between;
    align-items: center;
}
.footer p { margin: 0; }

/* ===== Responsive ===== */
/* Stack feature rows on tablet portrait and below, so the screenshots get full width
   instead of being squeezed into a narrow half-column. */
@media (max-width: 860px) {
    .feature-row,
    .feature.alt .feature-row { flex-direction: column; gap: 32px; }
    .feature { padding: 56px 0; }
    .hero { padding: 56px 0 40px; }
}

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