/* =================================================================
   Notesipper — landing page styles
   Palette derived directly from the app icon:
     deep navy:        #0E2A3A   (page background)
     teal squircle:    #2D5760 → #1A3947 (cards, hero glow)
     accent cyan:      #5BA8B3   (links, highlights)
     cream paper:      #F5F1E8   (primary text)
     drop ink white:   #FFFFFF   (headlines)
================================================================= */

:root {
    --bg-deep:        #0E2A3A;
    --bg-mid:         #14384A;
    --surface:        #1F4855;
    --surface-hover:  #2A5560;
    --border:         rgba(255, 255, 255, 0.08);
    --teal-1:         #2D5760;
    --teal-2:         #1A3947;
    --accent:         #5BA8B3;
    --accent-glow:    rgba(91, 168, 179, 0.35);
    --text:           #F5F1E8;
    --text-muted:     rgba(245, 241, 232, 0.65);
    --text-dim:       rgba(245, 241, 232, 0.45);
    --headline:       #FFFFFF;
    --shadow-md:      0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg:      0 12px 48px rgba(0, 0, 0, 0.45);
    --shadow-glow:    0 0 80px rgba(91, 168, 179, 0.15);
    --radius:         14px;
    --radius-lg:      22px;
    --max-w:          1080px;
    --gap:            24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
                 Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse at 50% -10%, rgba(91, 168, 179, 0.20) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 50%, rgba(91, 168, 179, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, var(--bg-deep) 0%, #08202C 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
    color: #7DC5CF;
}

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

/* ── Top nav ────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    background: rgba(14, 42, 58, 0.65);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.nav-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
    font-size: 16px;
}
.nav-mark img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}
.nav-spacer { flex: 1; }
.nav-link {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}
.nav-link:hover { color: var(--text); }
.nav-cta {
    background: var(--accent);
    color: var(--bg-deep);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}
.nav-cta:hover {
    color: var(--bg-deep);
    background: #7DC5CF;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
    padding: 96px 0 80px;
    text-align: center;
    position: relative;
}
.hero-icon-wrap {
    display: inline-block;
    margin-bottom: 36px;
    position: relative;
}
.hero-icon-wrap::before {
    content: "";
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(20px);
}
.hero-icon {
    width: 160px;
    height: 160px;
    border-radius: 36px;
    box-shadow: var(--shadow-lg);
    image-rendering: -webkit-optimize-contrast;
}
.hero h1 {
    font-family: -apple-system, "SF Pro Display", BlinkMacSystemFont, sans-serif;
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--headline);
    margin-bottom: 12px;
    line-height: 1.05;
}
.hero-tagline {
    font-size: clamp(17px, 2.2vw, 22px);
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 36px;
    max-width: 540px;
    margin-inline: auto;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: var(--bg-deep);
    box-shadow: 0 6px 20px rgba(91, 168, 179, 0.25);
}
.btn-primary:hover {
    background: #7DC5CF;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(91, 168, 179, 0.4);
    color: var(--bg-deep);
}
.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--surface-hover);
    color: var(--text);
}
.btn .price {
    opacity: 0.75;
    font-weight: 500;
}

/* ── Section base ───────────────────────────────────────────────── */
.section {
    padding: 80px 0;
}
.section-narrow {
    padding: 60px 0;
}
.section h2 {
    font-family: -apple-system, "SF Pro Display", BlinkMacSystemFont, sans-serif;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: var(--headline);
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}
.section h2.center,
.section .center { text-align: center; }
.section-lead {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}

/* ── Pillars row ────────────────────────────────────────────────── */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 40px auto 0;
    max-width: 880px;
}
.pillar {
    text-align: center;
    padding: 28px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.pillar:hover {
    transform: translateY(-2px);
    border-color: rgba(91, 168, 179, 0.4);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
}
.pillar-num {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}
.pillar h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--headline);
    margin-bottom: 4px;
}
.pillar p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ── Features grid ──────────────────────────────────────────────── */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.feature:hover {
    transform: translateY(-3px);
    border-color: rgba(91, 168, 179, 0.35);
}
.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--teal-1) 0%, var(--teal-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 18px;
}
.feature h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--headline);
    margin-bottom: 6px;
}
.feature p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ── Big quote / value statement ────────────────────────────────── */
.value-block {
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(180deg, var(--teal-2) 0%, var(--bg-mid) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-glow);
    margin: 40px 0;
}
.value-block h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--headline);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.value-block p {
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
    font-size: 17px;
}
.value-actions {
    margin: 16px 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.05em;
}

/* ── "What it doesn't do" — anti-bloat callout ──────────────────── */
.no-list {
    list-style: none;
    margin: 0 auto;
    max-width: 600px;
    padding: 0;
    display: grid;
    gap: 10px;
    text-align: left;
}
.no-list li {
    background: var(--bg-mid);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 18px;
    color: var(--text-muted);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.no-list li::before {
    content: "✕";
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Specs block ────────────────────────────────────────────────── */
.specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 720px;
    margin: 32px auto 0;
}
.spec {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
}
.spec dt {
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    font-weight: 600;
}
.spec dd {
    color: var(--headline);
    font-size: 18px;
    font-weight: 600;
}

/* ── CTA strip ──────────────────────────────────────────────────── */
.cta-strip {
    text-align: center;
    padding: 80px 24px;
}
.cta-strip h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 24px;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    margin-top: 80px;
    padding: 40px 24px 60px;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}
.footer a {
    color: var(--text-muted);
}
.footer a:hover {
    color: var(--text);
}
.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* ── Privacy / policy pages ─────────────────────────────────────── */
.legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px 60px;
}
.legal h1 {
    font-family: -apple-system, "SF Pro Display", BlinkMacSystemFont, sans-serif;
    font-size: 36px;
    color: var(--headline);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.legal .updated {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 36px;
}
.legal h2 {
    font-size: 19px;
    color: var(--headline);
    margin: 32px 0 10px;
    font-weight: 700;
}
.legal p, .legal ul {
    color: var(--text);
    margin-bottom: 14px;
}
.legal ul {
    margin-left: 22px;
    line-height: 1.7;
}
.legal code {
    background: var(--bg-mid);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .pillars,
    .features { grid-template-columns: 1fr 1fr; }
    .specs   { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .hero { padding: 64px 0 48px; }
    .hero-icon { width: 128px; height: 128px; border-radius: 28px; }
    .section { padding: 60px 0; }
    .pillars,
    .features { grid-template-columns: 1fr; }
    .nav-link:not(.nav-cta) { display: none; }
    .value-block { padding: 60px 20px; }
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
