/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
    /* Palette echoes the Spectra 6 e-paper colors used on the device */
    --color-water:        #2c6db5;
    --color-water-deep:   #1c4d85;
    --color-sky:          #ffffff;
    --color-sun:          #f5c518;
    --color-warn:         #d93030;
    --color-text:         #1f2937;
    --color-text-muted:   #5b6675;
    --color-text-soft:    #98a3b3;
    --color-bg:           #fdfdfd;
    --color-bg-tint:      #f5f8fc;
    --color-border:       #e6ebf2;

    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;

    --shadow-sm: 0 1px 3px rgba(15, 30, 60, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 30, 60, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 30, 60, 0.10);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: ui-serif, Georgia, "Times New Roman", serif;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.55;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--color-water); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--color-text); }
h1 { font-size: 3rem; line-height: 1.1; margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 1.25rem; letter-spacing: -0.005em; }
h3 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 0.6rem; }

p { margin: 0 0 1rem; }

/* ── Layout ────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 680px; }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--color-water); font-weight: 600; }
.logo:hover { text-decoration: none; }
.logo-mark { display: inline-flex; }
.logo-text { font-family: var(--font-display); font-size: 1.3rem; color: var(--color-text); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--color-text-muted); font-size: 0.95rem; }
.site-nav a:hover { color: var(--color-text); text-decoration: none; }

.purchase-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.purchase-wrap .coming-soon { font-size: 0.7rem; color: var(--color-text-soft); letter-spacing: 0.04em; text-transform: uppercase; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.95rem; font-weight: 500;
    transition: background-color 120ms ease, transform 120ms ease;
    background: transparent;
}
.btn-primary { background: var(--color-water); color: white; }
.btn-primary:hover:not(.btn-disabled) { background: var(--color-water-deep); }
.btn-large { padding: 12px 28px; font-size: 1.05rem; }
.btn-disabled { background: #cdd5e0 !important; color: #6f7a8a !important; cursor: not-allowed; opacity: 0.85; }
.btn:disabled { cursor: not-allowed; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 100%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.hero-copy h1 { font-size: 3.4rem; }
.hero-kicker {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-water);
    margin: 0 0 0.75rem;
}
.lede { font-size: 1.2rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.lede-meta { font-size: 1.2rem; color: var(--color-text); font-weight: 500; margin-bottom: 1rem; }
.lede-literal { font-size: 0.95rem; color: var(--color-text-soft); line-height: 1.55; margin: 0 0 1.8rem; max-width: 36rem; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.coming-soon-large { font-size: 0.85rem; }

/* ── Device frame ──────────────────────────────────────────────────── */
.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.device-frame {
    width: 100%; max-width: 540px;
    aspect-ratio: 800 / 480;
    padding: 18px;
    background: linear-gradient(145deg, #fafbfc 0%, #eef1f6 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.device-frame canvas {
    width: 100%; height: 100%;
    display: block;
    border-radius: 4px;
    background: white;
}
.hero-demo-caption { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }

/* ── Sections ──────────────────────────────────────────────────────── */
.section { padding: 90px 0; }
.section-tinted { background: var(--color-bg-tint); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section h2 { margin-bottom: 2rem; }
.section-intro { color: var(--color-text-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.section-body { color: var(--color-text-muted); font-size: 1rem; line-height: 1.6; margin-bottom: 2rem; max-width: 56rem; }
.section-body strong { color: var(--color-text); font-weight: 600; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 3rem; }
.two-col p { color: var(--color-text-muted); }

.quote-block {
    border-left: 4px solid var(--color-water);
    padding: 20px 28px;
    background: white;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-sm);
}
.quote-block p {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--color-text);
    font-style: italic;
}

/* ── Steps ─────────────────────────────────────────────────────────── */
.steps {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px;
}
.steps li {
    padding: 28px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.step-num {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--color-water);
    color: white;
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 16px;
}
.steps p { color: var(--color-text-muted); margin: 0; }

/* ── Features ──────────────────────────────────────────────────────── */
.features-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.feature {
    padding: 24px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.feature-icon {
    color: var(--color-water);
    margin-bottom: 14px;
}
.feature p { color: var(--color-text-muted); margin: 0; }

/* ── Three-up category landscape (#three-clocks) ──────────────────── */
.three-up {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-top: 2rem;
}
.three-up-col {
    padding: 28px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.three-up-col h3 {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 1.1rem;
}
.three-up-col p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.97rem;
    line-height: 1.6;
}
.three-up-col-highlight {
    border-color: rgba(44, 109, 181, 0.35);
    box-shadow: 0 4px 16px rgba(15, 30, 60, 0.08);
}
.three-up-col-highlight h3 {
    color: var(--color-water);
    border-bottom-color: rgba(44, 109, 181, 0.2);
}
.three-up-col-highlight p { color: var(--color-text); }

/* ── Multi-category comparison table (how-it-compares.html) ──────── */
.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: white;
    box-shadow: var(--shadow-sm);
}
.compare-table {
    width: 100%; border-collapse: collapse; font-size: 0.92rem;
    min-width: 760px;
}
.compare-table th,
.compare-table td {
    padding: 14px 16px; text-align: left; vertical-align: top;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    line-height: 1.5;
}
.compare-table thead th {
    background: var(--color-bg-tint);
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--color-border);
}
.compare-table tbody th {
    color: var(--color-text);
    font-weight: 600;
    background: var(--color-bg-tint);
}
.compare-table thead th.col-highlight,
.compare-table tbody td.col-highlight {
    background: rgba(44, 109, 181, 0.06);
    color: var(--color-text);
    font-weight: 500;
}
.compare-table thead th.col-highlight {
    color: var(--color-water);
    font-weight: 700;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }

/* ── vs. analog comparison ────────────────────────────────────────── */
.compare-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.compare-col {
    padding: 28px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.compare-col-positive { border-color: rgba(44, 109, 181, 0.35); }
.compare-col h3 {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
.compare-col-positive h3 { color: var(--color-water); }
.compare-col ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 12px;
}
.compare-col li {
    position: relative;
    padding-left: 26px;
    color: var(--color-text-muted);
    line-height: 1.55;
}
.compare-col li::before {
    position: absolute; left: 0; top: 0;
    font-weight: 700;
}
.compare-col-negative li::before { content: "−"; color: var(--color-text-soft); font-size: 1.2rem; line-height: 1.3; }
.compare-col-positive li::before { content: "✓"; color: var(--color-water); }

/* ── Where it works ───────────────────────────────────────────────── */
.aside {
    margin-top: 1rem;
    padding: 18px 22px;
    background: white;
    border-left: 3px solid var(--color-water);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}
.text-link {
    color: var(--color-water);
    font-weight: 500;
    font-size: 1rem;
}
.text-link:hover { text-decoration: underline; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.faq-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--color-border);
}
.faq-item:last-child { border-bottom: 0; }
.faq-item dt {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}
.faq-item dd {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.65;
}
.faq-item dd a { color: var(--color-water); }

/* ── Contact form ──────────────────────────────────────────────────── */
.contact-form {
    background: white;
    padding: 36px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}
.form-row input,
.form-row textarea {
    width: 100%;
    padding: 10px 14px;
    font: inherit;
    color: var(--color-text);
    background: #fafbfc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color 120ms ease, background 120ms ease;
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--color-water);
    background: white;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-actions { margin-bottom: 0; }

.form-status { min-height: 24px; margin-top: 12px; font-size: 0.95rem; }
.form-status.success { color: #2c8a4a; }
.form-status.error { color: var(--color-warn); }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
    padding: 36px 0;
    background: var(--color-bg-tint);
    border-top: 1px solid var(--color-border);
}
.footer-inner p { margin: 0 0 4px; color: var(--color-text-muted); font-size: 0.9rem; }
.footer-links { font-size: 0.85rem; }
.footer-links a { color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-text); }

/* ── Pre-order modal ───────────────────────────────────────────────── */
.modal {
    position: fixed; inset: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 30, 60, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.modal-card {
    position: relative;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 40px 36px 32px;
    max-width: 440px; width: 100%;
    animation: modal-pop 160ms ease-out;
}
@keyframes modal-pop {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
.modal-card h2 {
    margin: 0 0 12px;
    font-size: 1.6rem;
}
.modal-card p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}
.modal-card .form-row { margin-bottom: 16px; }
.modal-card .btn { width: 100%; }
.modal-close {
    position: absolute; top: 12px; right: 14px;
    width: 32px; height: 32px;
    border: none; background: transparent;
    color: var(--color-text-muted);
    font-size: 1.6rem; line-height: 1;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.modal-close:hover { color: var(--color-text); background: var(--color-bg-tint); }

/* ── Legal pages (Privacy, Terms) ──────────────────────────────────── */
.legal-page h1 { margin-bottom: 8px; }
.legal-effective { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.4rem; margin-top: 32px; margin-bottom: 12px; }
.legal-page p { color: var(--color-text); }
.legal-page strong { color: var(--color-text); }
.legal-list { color: var(--color-text); padding-left: 20px; margin-bottom: 1rem; }
.legal-list li { margin-bottom: 8px; }
.legal-disclaimer {
    margin-top: 40px;
    padding: 16px 20px;
    background: var(--color-bg-tint);
    border-left: 3px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 880px) {
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.7rem; }
    .hero { padding: 56px 0 72px; }
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero-copy h1 { font-size: 2.4rem; }
    .lede { font-size: 1.1rem; }
    .section { padding: 64px 0; }
    .two-col { grid-template-columns: 1fr; gap: 28px; }
    .steps { grid-template-columns: 1fr; gap: 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .compare-grid { grid-template-columns: 1fr; gap: 16px; }
    .three-up { grid-template-columns: 1fr; gap: 16px; }
    .site-nav { gap: 16px; font-size: 0.9rem; }
    .site-nav a:not(.purchase-wrap *) { display: none; }
}
@media (max-width: 520px) {
    .header-inner { height: 56px; }
    .container { padding: 0 18px; }
    .hero-copy h1 { font-size: 2rem; }
    .contact-form { padding: 24px; }
}
