/* ReadIndy landing — shared styles for index.html and privacy.html */

:root {
    color-scheme: light dark;

    --accent: #007aff;
    --accent-soft: rgba(0, 122, 255, 0.12);
    --bg: #ffffff;
    --bg-elevated: #f5f5f7;
    --bg-card: #ffffff;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    --radius: 20px;
    --max-width: 1080px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #0a84ff;
        --accent-soft: rgba(10, 132, 255, 0.18);
        --bg: #000000;
        --bg-elevated: #101012;
        --bg-card: #16161a;
        --text: #f5f5f7;
        --text-secondary: #a1a1a6;
        --border: rgba(255, 255, 255, 0.1);
        --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wrap {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 22px;
}

/* Header ------------------------------------------------------------------ */

header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    border-bottom: 1px solid var(--border);
}

.bar {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 60px;
}

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

.brand:hover {
    text-decoration: none;
}

.brand img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

nav {
    display: flex;
    gap: 20px;
    margin-left: auto;
    font-size: 15px;
}

nav a {
    color: var(--text-secondary);
}

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

select.lang {
    font: inherit;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
}

@media (max-width: 760px) {
    nav {
        display: none;
    }

    select.lang {
        margin-left: auto;
    }
}

/* Buttons ----------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid transparent;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

/* Hero -------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 84px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -40% 20% auto -20%;
    height: 620px;
    background: radial-gradient(closest-side, var(--accent-soft), transparent);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(38px, 5.4vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 16px 0 14px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.lede {
    font-size: 19px;
    color: var(--text-secondary);
    margin: 0 0 28px;
    max-width: 30em;
}

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

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-art {
    display: flex;
    justify-content: center;
}

.hero-art .phone {
    max-width: 300px;
    transform: rotate(2deg);
}

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-art {
        order: -1;
    }

    .hero-art .phone {
        max-width: 230px;
        transform: none;
    }
}

/* Sections ---------------------------------------------------------------- */

section {
    padding: 68px 0;
}

section.tinted {
    background: var(--bg-elevated);
}

h2 {
    font-size: clamp(28px, 3.4vw, 38px);
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.section-lede {
    color: var(--text-secondary);
    margin: 0 0 34px;
    max-width: 46em;
}

/* Feature cards ----------------------------------------------------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.card .glyph {
    font-size: 26px;
    line-height: 1;
    margin-bottom: 14px;
}

.card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

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

/* Screenshots ------------------------------------------------------------- */

.shots {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 6px 22px 26px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.shots::-webkit-scrollbar {
    height: 8px;
}

.shots::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.phone {
    flex: 0 0 auto;
    width: 250px;
    border-radius: 34px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--bg-card);
    scroll-snap-align: center;
    display: block;
}

/* Pro comparison ---------------------------------------------------------- */

/* Wide content scrolls inside its own box; the page itself never does. */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
}

.compare {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 15px;
}

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

.compare thead th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
    border-bottom: none;
}

.compare tbody th {
    font-weight: 500;
}

.compare td.pro {
    color: var(--accent);
    font-weight: 600;
}

.note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Prose ------------------------------------------------------------------- */

.prose {
    max-width: 44em;
}

.prose p {
    color: var(--text-secondary);
}

.prose h2 {
    margin-top: 40px;
    font-size: 24px;
    color: var(--text);
}

.prose h2:first-of-type {
    margin-top: 24px;
}

.prose ul {
    color: var(--text-secondary);
    padding-left: 20px;
}

.prose li {
    margin-bottom: 6px;
}

.store-copy {
    white-space: pre-line;
    color: var(--text-secondary);
    margin: 0;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

/* Footer ------------------------------------------------------------------ */

footer {
    border-top: 1px solid var(--border);
    padding: 34px 0 46px;
    font-size: 14px;
    color: var(--text-secondary);
}

.foot-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    align-items: center;
}

.foot-row .spacer {
    flex: 1;
}
