/* ============================================================
   Probate Calculator — landing page
   Type-led, light material, single accent, generous spacing.
   System font stack matches the Mac app's aesthetic.
   ============================================================ */

:root {
    --navy: #1B3358;
    --navy-deep: #0F1E36;
    --accent: #2E5BFF;            /* link / button blue, slightly warmer than system */
    --ink: #1A1F2B;               /* body text */
    --ink-soft: #4A5266;          /* secondary text */
    --ink-muted: #7A828F;         /* tertiary / footnote */
    --bg: #FBFCFE;
    --bg-elevated: #FFFFFF;
    --hairline: rgba(15, 30, 54, 0.10);
    --shadow-card: 0 1px 2px rgba(15, 30, 54, 0.04),
                   0 8px 24px rgba(15, 30, 54, 0.06);
    --radius: 12px;
    --max-content: 760px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #E8ECF2;
        --ink-soft: #B4BCCA;
        --ink-muted: #7E8693;
        --bg: #0E1422;
        --bg-elevated: #16203A;
        --hairline: rgba(255, 255, 255, 0.12);
        --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4),
                       0 12px 32px rgba(0, 0, 0, 0.3);
    }
}

* { box-sizing: border-box; }

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family:
        -apple-system, BlinkMacSystemFont,
        "SF Pro Text", "SF Pro Display",
        "Helvetica Neue", Helvetica, Arial,
        system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background:
        radial-gradient(ellipse at top, rgba(46, 91, 255, 0.06), transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
    background-attachment: fixed;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: rgba(251, 252, 254, 0.85);
    border-bottom: 1px solid var(--hairline);
}

@media (prefers-color-scheme: dark) {
    .site-header { background: rgba(14, 20, 34, 0.85); }
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    max-width: var(--max-content);
    margin: 0 auto;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.brand img {
    border-radius: 7px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ============================================================
   Main + sections
   ============================================================ */

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

section {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}

section:last-of-type { border-bottom: none; }

h1, h2, h3 {
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}

h1 {
    font-size: clamp(40px, 6vw, 56px);
    font-weight: 700;
    margin: 24px 0 16px;
}

h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 600;
    margin: 0 0 24px;
}

h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
    text-align: center;
    padding-top: 96px;
    padding-bottom: 80px;
    border-bottom: none;
}

.hero-icon {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    box-shadow:
        0 1px 3px rgba(15, 30, 54, 0.12),
        0 20px 60px rgba(15, 30, 54, 0.18);
    display: block;
    margin: 0 auto;
}

.tagline {
    font-size: clamp(18px, 2.2vw, 22px);
    color: var(--ink-soft);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.4;
}

.cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.cta-ios {
    font-size: 14px;
    color: var(--ink-muted);
}

/* ============================================================
   Buttons
   ============================================================ */

.button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.25;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button-primary {
    background: var(--accent);
    color: white;
    box-shadow:
        0 1px 2px rgba(46, 91, 255, 0.25),
        0 8px 24px rgba(46, 91, 255, 0.22);
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 2px rgba(46, 91, 255, 0.3),
        0 12px 32px rgba(46, 91, 255, 0.28);
}

.button-primary:active {
    transform: translateY(0);
}

.button-sub {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.01em;
}

/* ============================================================
   Story
   ============================================================ */

.story p { font-size: 18px; color: var(--ink-soft); line-height: 1.6; }
.story p strong { color: var(--ink); }

blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
    box-shadow: var(--shadow-card);
}

blockquote p {
    font-size: 19px;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 12px;
}

blockquote em {
    font-style: italic;
    color: var(--ink);
}

blockquote footer {
    font-size: 14px;
    color: var(--ink-muted);
    font-style: normal;
}

/* ============================================================
   Features grid
   ============================================================ */

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 580px;
}

.feature h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.feature h3 {
    color: var(--ink);
}

.feature p {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.55;
}

/* ============================================================
   Screenshot
   ============================================================ */

.screenshot { text-align: center; }

.screenshot-frame {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: var(--bg-elevated);
    border: 1px solid var(--hairline);
}

.screenshot-frame img,
.screenshot-frame video {
    width: 100%;
    height: auto;
    display: block;
}

.caption {
    margin-top: 16px;
    font-size: 14px;
    color: var(--ink-muted);
}

/* ============================================================
   Download
   ============================================================ */

.download p.cta-row {
    margin: 24px 0;
}

.download .sub {
    color: var(--ink-muted);
    font-size: 15px;
}

/* ============================================================
   Disclaimer + footer
   ============================================================ */

.disclaimer p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
}

.disclaimer strong { color: var(--ink); }

.site-footer {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 40px 24px 64px;
    border-top: 1px solid var(--hairline);
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.6;
}

.site-footer a {
    color: var(--ink-soft);
    text-decoration: underline;
    text-decoration-color: var(--hairline);
    text-underline-offset: 3px;
    transition: color 0.12s ease, text-decoration-color 0.12s ease;
}

.site-footer a:hover {
    color: var(--ink);
    text-decoration-color: var(--ink-muted);
}

/* ============================================================
   Misc
   ============================================================ */

code {
    background: var(--bg-elevated);
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: 1px 6px;
    font-family: "SF Mono", Menlo, monospace;
    font-size: 0.92em;
    color: var(--ink);
}
