/* Seamless Semester: calm, dense, readable. Colors from docs/design.md (light / dark). */

:root {
    --bg: #FAFAF9;
    --surface: #FFFFFF;
    --border: #E7E5E4;
    --text: #1C1917;
    --secondary: #78716C;
    --accent: #2563EB;
    --accent-text: #2563EB;
    --accent-tint: rgba(37, 99, 235, 0.10);
    --overdue: #DC2626;
    --shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 8px 28px rgba(28, 25, 23, 0.08);
    --shot-border: rgba(28, 25, 23, 0.10);

    --blue: #2563EB;
    --teal: #0D9488;
    --green: #16A34A;
    --orange: #EA580C;
    --purple: #9333EA;

    --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max: 1120px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111214;
        --surface: #1A1B1E;
        --border: #2A2C31;
        --text: #ECECEE;
        --secondary: #9A9AA2;
        --accent-text: #5B8DEF;
        --accent-tint: rgba(91, 141, 239, 0.16);
        --overdue: #F87171;
        --shadow: none;
        --shot-border: #2A2C31;

        --blue: #60A5FA;
        --teal: #2DD4BF;
        --green: #4ADE80;
        --orange: #FB923C;
        --purple: #C084FC;
    }
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

p {
    margin: 0;
}

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

/* ── Nav ───────────────────────────────────────────────────────────────── */

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 650;
    font-size: 17px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nav-logo:hover {
    text-decoration: none;
}

.nav-logo img {
    width: 30px;
    height: 30px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    text-decoration: none;
}

.nav-links .nav-cta {
    white-space: nowrap;
    color: #fff;
    background: var(--accent);
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-links .nav-cta:hover {
    color: #fff;
    background: #1D4ED8;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

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

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

.btn-primary:hover {
    background: #1D4ED8;
}

.btn-large {
    padding: 16px 30px;
    font-size: 18px;
}

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

.btn-secondary:hover {
    border-color: var(--secondary);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
    padding: 72px 0 24px;
    text-align: center;
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-text);
    background: var(--accent-tint);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 750;
    letter-spacing: -0.035em;
}

.hero-blurb {
    max-width: 640px;
    margin: 20px auto 0;
    font-size: 20px;
    color: var(--secondary);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

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

.hero-note svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 4px;
}

.hero-shots {
    position: relative;
    max-width: 1040px;
    margin: 56px auto 0;
    padding: 0 24px 0 24px;
}

.hero-shots .browser {
    margin-right: 120px;
}

.hero-shots .phone {
    position: absolute;
    right: 24px;
    bottom: -32px;
    width: 250px;
}

/* ── Screenshot frames ─────────────────────────────────────────────────── */

.browser {
    background: var(--surface);
    border: 1px solid var(--shot-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.browser-bar {
    height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.browser-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--border);
}

.browser-bar .url {
    width: auto;
    height: auto;
    border-radius: 6px;
    margin: 0 auto;
    padding: 2px 14px;
    font-size: 12px;
    color: var(--secondary);
    background: var(--surface);
    border: 1px solid var(--border);
}

.phone {
    border-radius: 34px;
    border: 6px solid #1C1917;
    overflow: hidden;
    background: #1C1917;
    box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
    .phone {
        border-color: #33353B;
        background: #33353B;
    }
}

.phone img {
    border-radius: 28px;
}

.tablet {
    border-radius: 22px;
    border: 8px solid #1C1917;
    overflow: hidden;
    background: #1C1917;
    box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
    .tablet {
        border-color: #33353B;
        background: #33353B;
    }
}

.tablet img {
    border-radius: 14px;
}

/* ── Sections ──────────────────────────────────────────────────────────── */

.section {
    padding: 96px 0;
}

.section + .section {
    border-top: 1px solid var(--border);
}

.intro {
    padding-top: 120px;
}

.section-eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
}

.section-subtitle {
    margin-top: 14px;
    font-size: 19px;
    color: var(--secondary);
    max-width: 680px;
}

.centered {
    text-align: center;
}

.centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Feature row: text on one side, screenshot on the other */
.feature {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: center;
}

.feature.flip {
    grid-template-columns: 7fr 5fr;
}

.feature.flip .feature-text {
    order: 2;
}

.feature.phone-only {
    grid-template-columns: 1fr 1fr;
}

.feature-text h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 700;
}

.feature-text > p {
    margin-top: 14px;
    font-size: 18px;
    color: var(--secondary);
}

.feature-points {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: 16px;
}

.feature-points li {
    position: relative;
    padding-left: 18px;
}

.feature-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot, var(--accent));
}

.feature-points li:nth-child(5n+1) { --dot: var(--blue); }
.feature-points li:nth-child(5n+2) { --dot: var(--teal); }
.feature-points li:nth-child(5n+3) { --dot: var(--orange); }
.feature-points li:nth-child(5n+4) { --dot: var(--purple); }
.feature-points li:nth-child(5n+5) { --dot: var(--green); }

.feature-media {
    display: flex;
    justify-content: center;
}

.feature-media .phone {
    width: 300px;
}

.pair {
    position: relative;
    width: 100%;
    padding-bottom: 40px;
}

.pair .browser {
    margin-right: 110px;
}

.pair .phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 180px;
}

.chip-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.chip.on {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.chip .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

/* ── Claude conversation ──────────────────────────────────────────────── */

.chat {
    width: 100%;
    max-width: 520px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 22px;
    display: grid;
    gap: 14px;
    font-size: 15px;
}

.msg {
    padding: 12px 15px;
    border-radius: 12px;
    max-width: 90%;
}

.msg.you {
    justify-self: end;
    background: var(--accent-tint);
}

.msg.you .file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--secondary);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 4px 10px;
    border-radius: 8px;
}

.msg.claude {
    border: 1px solid var(--border);
}

.msg .who {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
}

.msg ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.msg .tool {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: var(--secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 8px;
    margin-bottom: 8px;
}

.chat-caption {
    font-size: 13px;
    color: var(--secondary);
    text-align: center;
    margin-top: 12px;
}

/* ── Everywhere grid ──────────────────────────────────────────────────── */

.everywhere-shot {
    max-width: 900px;
    margin: 48px auto 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 56px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.card h3 {
    font-size: 18px;
    font-weight: 650;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3 svg {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--accent-text);
}

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

.widget-shot {
    margin-top: 28px;
    max-width: 380px;
}

.widget-shot img {
    border-radius: 14px;
    border: 1px solid var(--shot-border);
}

.widget-shot p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--secondary);
}

/* ── Bottom CTA ───────────────────────────────────────────────────────── */

.cta {
    text-align: center;
    padding: 96px 24px;
    border-top: 1px solid var(--border);
}

.cta h2 {
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 700;
}

.cta p {
    margin: 14px auto 0;
    max-width: 560px;
    font-size: 18px;
    color: var(--secondary);
}

/* ── Inner pages (support, privacy) ───────────────────────────────────── */

.page-header {
    padding: 64px 24px 8px;
    max-width: 760px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: clamp(34px, 5vw, 44px);
    font-weight: 700;
}

.page-header p {
    margin-top: 10px;
    font-size: 19px;
    color: var(--secondary);
}

.content {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 24px 96px;
}

.content h2 {
    font-size: 22px;
    font-weight: 650;
    margin: 40px 0 12px;
}

.content p,
.content li {
    font-size: 16px;
}

.content p + p {
    margin-top: 12px;
}

.content ul {
    padding-left: 20px;
    margin: 12px 0 0;
}

.content li + li {
    margin-top: 8px;
}

.content .updated {
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 16px;
}

.contact-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px;
    margin-top: 16px;
}

.contact-box p {
    color: var(--secondary);
}

.contact-email {
    display: inline-block;
    margin-top: 6px;
    font-size: 19px;
    font-weight: 600;
}

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

.faq-item h3 {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.faq-item p {
    margin-top: 6px;
    color: var(--secondary);
}

.faq-item p + p {
    margin-top: 8px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

footer {
    border-top: 1px solid var(--border);
    padding: 36px 24px 44px;
}

.footer-container {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    font-size: 14px;
    color: var(--secondary);
}

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

.footer-brand img {
    width: 24px;
    height: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--secondary);
}

.footer-links a:hover {
    color: var(--text);
}

.copyright a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .feature,
    .feature.flip,
    .feature.phone-only {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature.flip .feature-text {
        order: 0;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-shots .browser {
        margin-right: 80px;
    }

    .hero-shots .phone {
        width: 190px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .nav-links {
        gap: 14px;
        font-size: 14px;
    }

    .nav-links .hide-sm {
        display: none;
    }

    .hero {
        padding-top: 48px;
    }

    .hero-blurb {
        font-size: 18px;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* On a phone, show the phone screenshot, not a squeezed desktop window. */
    .hero-shots {
        margin-top: 40px;
    }

    .hero-shots .browser {
        display: none;
    }

    .hero-shots .phone {
        position: static;
        width: 240px;
        margin: 0 auto;
    }

    .section {
        padding: 72px 0;
    }

    .intro {
        padding-top: 72px;
    }

    .feature-media .phone {
        width: 250px;
    }

    /* Same as the hero: a phone-sized screen reads better here than a shrunken desktop one. */
    .pair {
        padding-bottom: 0;
    }

    .pair .browser {
        display: none;
    }

    .pair .phone {
        position: static;
        width: 250px;
        margin: 0 auto;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .browser-bar {
        height: 26px;
    }

    .browser-bar .url {
        display: none;
    }
}

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