/* Vink — landing styles. Tailwind blue 600 on light + system fonts. */

:root {
    --brand: #2563EB;
    --brand-dark: #1D4ED8;
    --bg: #FFFFFF;
    --bg-alt: #F7F7FA;
    --text: #1C1C1E;
    --text-secondary: #6C6C70;
    --border: #E5E5EA;
    --pending: #FF9500;
    --replied: #34C759;
    --max: 980px;
    --max-narrow: 720px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.section { padding-top: 56px; padding-bottom: 56px; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 {
    font-family: -apple-system, "SF Pro Display", "Inter", sans-serif;
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    font-weight: 700;
}

h2 {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 19px;
    margin: 0 0 6px;
    font-weight: 600;
}

p { margin: 0 0 16px; }

ul { padding-left: 22px; }
li { margin-bottom: 6px; }

/* Header */
.site-header {
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
}

/* The wordmark image replaces the old "v in a square" CSS mark.
   Display height controls layout; width auto-scales. We ship a 1x and
   2x source so retina screens stay sharp without making mobile pull
   the bigger file. */
.brand-mark {
    height: 32px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    border-radius: 7px;
}

.nav { display: flex; gap: 24px; }
.nav a { color: var(--text-secondary); }

/* Hero */
.hero {
    padding: 80px 0 56px;
    text-align: center;
}

.hero h1 { max-width: 760px; margin-left: auto; margin-right: auto; }

.hero .lead {
    font-size: 21px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 16px auto 32px;
}

.hero .meta {
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 13px;
}

.cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: background 120ms ease, transform 120ms ease;
}

.btn-primary {
    background: var(--brand);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.85;
}

.btn-secondary {
    color: var(--brand);
    background: transparent;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    text-decoration: none;
}

/* Apple's official "Download on the App Store" badge. We use the SVG
   at a fixed display height so it scales the same across the hero
   and final CTA, with the hover lift the other buttons get.
   Height matches .btn's computed total (13px top + 16px text + 13px
   bottom + a hair of breathing room) so the badge reads as the same
   weight as the other CTAs. */
.app-store-badge {
    display: inline-block;
    height: 56px;
    width: auto;
    transition: transform 120ms ease;
}
.app-store-badge:hover {
    transform: translateY(-1px);
}
.app-store-badge img { display: block; height: 100%; width: auto; }

/* QR block — small "scan with your phone" callout under the App Store
   badge. Desktop-only; hidden on touch widths where the badge tap is
   the obvious flow. */
.qr-block {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 14px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}
.qr-block img {
    display: block;
    width: 120px;
    height: 120px;
}
.qr-label {
    font-size: 12px;
    color: #555;
    letter-spacing: 0.01em;
}

/* Hero screenshot collage — sits below the App Store badge */
.hero-screens {
    display: block;
    margin: 40px auto 0;
    max-width: 980px;
}
.hero-screens img {
    display: block;
    width: 100%;
    height: auto;
}

/* Section helpers */
.lead-secondary {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 0 32px;
}

.muted { color: var(--text-secondary); }
.muted.small { font-size: 13px; }

/* Steps */
.steps {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.steps li {
    background: var(--bg-alt);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 0;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand);
    color: white;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.steps p { color: var(--text-secondary); font-size: 15px; margin: 0; }

/* Features grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin: 32px 0 0;
}

.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-secondary); font-size: 15px; margin: 0; }

/* Privacy block */
.privacy-block {
    background: var(--bg-alt);
    padding: 56px 0;
    margin: 56px 0;
}

.privacy-block .container { padding-top: 0; padding-bottom: 0; }

.checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    max-width: 640px;
}

.checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--replied);
    font-weight: 700;
}

/* Comparison table */
.comparison-wrap { overflow-x: auto; margin-top: 28px; }

.comparison {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.comparison th, .comparison td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.comparison th {
    background: var(--bg-alt);
    font-weight: 600;
}

.comparison th:first-child { border-top-left-radius: 12px; }
.comparison th:last-child { border-top-right-radius: 12px; }

.comparison td.ok { color: var(--replied); font-weight: 600; }
.comparison td.no { color: var(--text-secondary); }
.comparison td.muted-cell { color: var(--text-secondary); }

/* Pricing */
.plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 28px;
    max-width: 720px;
}

.plan {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    position: relative;
}

.plan.featured {
    border: 2px solid var(--brand);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 16px;
    background: var(--brand);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan h3 { margin: 0 0 8px; font-size: 16px; color: var(--text-secondary); font-weight: 600; }

.price {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    line-height: 1;
}

.price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

.plan ul { margin: 16px 0 0; padding-left: 22px; }
.plan li { color: var(--text-secondary); font-size: 14px; margin-bottom: 4px; }

/* FAQ */
.faq { margin-top: 24px; max-width: var(--max-narrow); }

.faq details {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    list-style: none;
    position: relative;
    padding-right: 32px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--text-secondary);
    line-height: 0;
    transition: transform 150ms ease;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    margin: 12px 0 0;
    color: var(--text-secondary);
    font-size: 15px;
}

/* Final CTA */
.final-cta { text-align: center; padding-top: 64px; padding-bottom: 80px; }
.final-cta h2 { margin-bottom: 8px; }
.final-cta .lead-secondary { margin-left: auto; margin-right: auto; text-align: center; }

/* Inline footnote reference — small superscript link from a feature
   blurb into the matching FAQ entry. */
.footnote-ref {
    font-size: 0.7em;
    vertical-align: super;
    line-height: 0;
    margin-left: 1px;
    text-decoration: none;
}
.footnote-ref:hover { text-decoration: underline; }

/* Contact section — explicit support pointer near the bottom */
.contact-section {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 72px;
    border-top: 1px solid var(--border);
}
.contact-section h2 { margin-bottom: 8px; }
.contact-section .lead-secondary {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0 48px;
    color: var(--text-secondary);
    font-size: 14px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer .links a {
    color: var(--text-secondary);
    margin-right: 16px;
}

/* Legal pages */
article.legal {
    max-width: var(--max-narrow);
    padding-top: 32px;
}

article.legal h1 { font-size: 36px; margin-bottom: 8px; }
article.legal .updated { color: var(--text-secondary); font-size: 14px; margin-bottom: 32px; }
article.legal h2 { font-size: 22px; margin-top: 40px; }
article.legal ul { padding-left: 24px; }
article.legal li { margin-bottom: 6px; }

/* Guide pages — step-by-step walkthroughs with screenshots and callouts.
   Same narrow column as legal pages, plus figure and callout styles. */
article.guide {
    /* No max-width override — inherits .container's --max so the guide reads the same width as the rest of the site. */
    padding-top: 32px;
}
article.guide h1 { font-size: 36px; margin-bottom: 8px; }
article.guide .updated { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }
article.guide .lead { font-size: 18px; color: var(--text-secondary); margin-bottom: 28px; }
article.guide h2 { font-size: 22px; margin-top: 44px; }
article.guide ul { padding-left: 24px; }
article.guide li { margin-bottom: 8px; }
article.guide code {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.92em;
}

.guide-figure {
    margin: 24px 0;
    padding: 0;
}
.guide-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.guide-figure figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.guide-callout {
    margin: 20px 0;
    padding: 14px 16px;
    border-left: 3px solid var(--brand);
    background: var(--bg-alt);
    border-radius: 0 8px 8px 0;
    font-size: 15px;
}
.guide-callout strong { color: var(--text); }
.guide-callout--good { border-left-color: #16a34a; }
.guide-callout--warn { border-left-color: #d97706; }

/* Theme model:
   - Default :root above is the light palette.
   - <html data-theme="dark"> forces the dark palette (user picked dark).
   - <html class="theme-system"> follows the OS via prefers-color-scheme.
   - <html data-theme="light"> just lands on the default :root.
   The script in <head> picks one of the three based on localStorage. */
:root[data-theme="dark"] {
    --bg: #000000;
    --bg-alt: #111114;
    --text: #FFFFFF;
    --text-secondary: #98989E;
    --border: #2C2C2E;
    --brand: #3B82F6;
}

@media (prefers-color-scheme: dark) {
    :root.theme-system {
        --bg: #000000;
        --bg-alt: #111114;
        --text: #FFFFFF;
        --text-secondary: #98989E;
        --border: #2C2C2E;
        --brand: #3B82F6;
    }
}

/* Theme switcher in the nav — three little buttons with SVG icons.
   The currently-active button gets the brand color + a subtle pill
   background so the user can tell at a glance which mode they're in. */
.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 12px;
    padding: 3px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.theme-switch button {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 6px 8px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 120ms ease, color 120ms ease;
}
.theme-switch button:hover {
    color: var(--text);
}
.theme-switch button[aria-pressed="true"] {
    background: var(--bg);
    color: var(--brand);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.theme-switch svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Mobile */
@media (max-width: 720px) {
    h1 { font-size: 40px; }
    h2 { font-size: 26px; }
    .hero { padding: 56px 0 40px; }
    .steps { grid-template-columns: 1fr; }
    .plans { grid-template-columns: 1fr; max-width: 420px; }
    .comparison th, .comparison td { padding: 12px 10px; font-size: 14px; }
    /* QR is a desktop convenience — on a phone, the badge tap is the
       direct flow, so hide it to avoid clutter. */
    .qr-block { display: none; }
}
/* Touch devices on larger screens (e.g. iPad) also don't need the QR. */
@media (hover: none) and (pointer: coarse) {
    .qr-block { display: none; }
}
