/* ==========================================================================
   Inkday — landing page
   Design tokens mirror the app's Palette.swift (paper / ink / hairline / well)
   ========================================================================== */

:root {
    --paper: #F4F1EA;
    --paper-raised: #FFFCF6;
    --paper-deep: #ECE8DF;
    --ink: #1F1D1A;
    --ink-soft: #6B665E;
    --ink-faint: #9B958B;
    --hairline: #DCD7CC;
    --well: #1C1A17;
    --well-hairline: #5C5852;
    --well-ink: #EDE8DE;
    --accent: #A8734E;
    --accent-soft: rgba(201, 143, 107, 0.14);
    --shadow-color: 31 29 26;
    --grain-opacity: 0.32;

    --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "New York", ui-serif, Georgia, "Times New Roman", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --container: 1120px;
    --gutter: clamp(1.25rem, 4vw, 2rem);
    --section-y: clamp(4.5rem, 9vw, 8rem);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #161512;
        --paper-raised: #211F1B;
        --paper-deep: #1C1A17;
        --ink: #EDE8DE;
        --ink-soft: #989286;
        --ink-faint: #6E6960;
        --hairline: #35322C;
        --well: #0B0A09;
        --well-hairline: #3A3732;
        --well-ink: #EDE8DE;
        --accent: #D69E7B;
        --accent-soft: rgba(214, 158, 123, 0.12);
        --shadow-color: 0 0 0;
        --grain-opacity: 0.18;
    }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Paper grain — a fixed, very faint noise layer over everything */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: var(--grain-opacity);
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.42 0 0 0 0 0.38 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 240px 240px;
}

@media (prefers-color-scheme: dark) {
    body::before { mix-blend-mode: screen; }
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    text-wrap: pretty;
}

h2 {
    font-size: clamp(2rem, 3.8vw, 3.1rem);
}

h3 {
    font-size: 1.375rem;
    line-height: 1.25;
}

h1 em, h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--ink-soft);
}

p {
    margin: 0;
    color: var(--ink-soft);
}

p strong { color: var(--ink); font-weight: 600; }

a {
    color: inherit;
    text-decoration: none;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

svg { display: block; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

section { padding: var(--section-y) 0; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-sm);
    z-index: 1000;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-head {
    max-width: 680px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}

.section-head-left {
    margin-left: 0;
    text-align: left;
}

.section-lead {
    font-size: 1.125rem;
    line-height: 1.65;
    margin-top: 1.25rem;
    color: var(--ink-soft);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    border-radius: 14px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 1px 2px rgb(var(--shadow-color) / 0.2), 0 8px 24px -12px rgb(var(--shadow-color) / 0.5);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgb(var(--shadow-color) / 0.2), 0 14px 32px -12px rgb(var(--shadow-color) / 0.55);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--hairline);
}
.btn-ghost:hover {
    background: var(--paper-raised);
    border-color: var(--ink-faint);
}

.btn-small {
    padding: 0.6rem 1.05rem;
    font-size: 0.9rem;
    border-radius: 11px;
}

.btn-block { width: 100%; }

.btn-store {
    padding: 0.7rem 1.35rem 0.7rem 1.1rem;
    text-align: left;
}
.btn-store svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    flex: none;
}
.btn-store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.btn-store-text small {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.8;
    letter-spacing: 0.01em;
}
.btn-store-text strong {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--paper) 80%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.brand-mark {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 3.5;
}
.brand-mark circle { fill: var(--ink); stroke: none; }
.brand-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.site-nav {
    display: none;
    gap: 1.75rem;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--ink-soft);
}
.site-nav a { transition: color 0.2s var(--ease); }
.site-nav a:hover { color: var(--ink); }

@media (min-width: 840px) {
    .site-nav { display: flex; }
}

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

.hero {
    position: relative;
    padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
    overflow: hidden;
}

/* faint ruled paper lines behind the hero, fading out downwards */
.hero-ruled {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 35px,
        var(--hairline) 35px,
        var(--hairline) 36px
    );
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
}

.hero-grid {
    position: relative;
    display: grid;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.hero-copy { max-width: 620px; margin: 0 auto; }

.hero .lead {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    margin-top: 1.5rem;
    color: var(--ink-soft);
    text-wrap: pretty;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 2.25rem;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-top: 1.75rem;
    font-size: 0.875rem;
    color: var(--ink-soft);
}
.trust-row li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.trust-row li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        text-align: left;
        gap: 2rem;
    }
    .hero-copy { margin: 0; }
    .cta-row, .trust-row { justify-content: flex-start; }
}

/* ---- Phone mockup ---- */

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.phone {
    --screen: var(--paper);
    position: relative;
    width: min(300px, 82vw);
    aspect-ratio: 300 / 632;
    padding: 11px;
    border-radius: 48px;
    background: linear-gradient(160deg, #3a3631, #1b1917 55%, #2a2723);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.35),
        0 30px 60px -24px rgb(var(--shadow-color) / 0.55),
        0 60px 120px -40px rgb(var(--shadow-color) / 0.35);
    transition: transform 0.9s var(--ease);
}
@media (min-width: 900px) {
    .phone { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); }
    .phone:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
}

@media (prefers-color-scheme: dark) {
    .phone { --screen: #161512; }
}

.phone-screen {
    position: relative;
    height: 100%;
    border-radius: 38px;
    background: var(--screen);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    text-align: left;
}

.phone-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 26px 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.phone-status { display: flex; gap: 3px; align-items: flex-end; }
.phone-status i {
    display: block;
    width: 3px;
    background: var(--ink);
    border-radius: 1px;
}
.phone-status i:nth-child(1) { height: 5px; }
.phone-status i:nth-child(2) { height: 8px; }
.phone-status i:nth-child(3) { height: 11px; }

.phone-toolbar {
    display: flex;
    justify-content: space-between;
    padding: 14px 22px 0;
}
.phone-toolbar svg {
    width: 20px;
    height: 20px;
    fill: var(--ink-soft);
    color: var(--ink-soft);
}

.phone-page {
    flex: 1;
    padding: 22px 24px 0;
    transform-origin: 50% 0;
    will-change: transform, opacity;
}
.phone-page.is-flipping {
    animation: pageFlip 0.42s var(--ease);
}
@keyframes pageFlip {
    0%   { transform: perspective(900px) rotateX(0); opacity: 1; }
    45%  { transform: perspective(900px) rotateX(-70deg); opacity: 0.4; }
    55%  { transform: perspective(900px) rotateX(-70deg); opacity: 0.4; }
    100% { transform: perspective(900px) rotateX(0); opacity: 1; }
}

.phone-weekday {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.01em;
}
.phone-date {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--ink);
    margin-top: 2px;
    letter-spacing: -0.01em;
}
.phone-text {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--ink);
    margin-top: 18px;
    min-height: 9.5em;
}
.phone-audio {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    color: var(--ink-soft);
}
.phone-audio svg { width: 14px; height: 14px; fill: var(--ink-soft); }

.phone-well {
    position: relative;
    height: 108px;
    margin-top: auto;
    background: var(--well);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
}
.phone-paper-edge {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 16px;
    background: var(--screen);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 8px 16px -4px rgba(0,0,0,0.55);
}
.phone-well::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 96px;
    height: 4px;
    border-radius: 2px;
    background: rgba(237,232,222,0.55);
    transform: translateX(-50%);
}

.scrubber {
    display: flex;
    align-items: center;
    gap: 12px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
    padding: 0 6px;
}
.dot {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    transition: transform 0.35s var(--ease);
}
.dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mood, var(--well-hairline));
    opacity: 0.6;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.dot-empty::before {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--well-hairline);
    opacity: 1;
}
.dot:hover::before { transform: scale(1.25); opacity: 0.9; }
.dot svg {
    position: absolute;
    width: 26px;
    height: 26px;
    fill: var(--mood, var(--well-ink));
    opacity: 0;
    transform: scale(0.4);
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.dot-active { width: 30px; height: 30px; }
.dot-active::before { transform: scale(0); opacity: 0; }
.dot-active svg { opacity: 1; transform: scale(1); }
.dot-active.dot-empty svg { fill: var(--well-ink); }

.phone-hint {
    font-size: 0.8rem;
    color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Promise strip
   -------------------------------------------------------------------------- */

.promise {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}
.promise-text {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1.4;
    text-align: center;
    color: var(--ink);
    max-width: 820px;
    margin: 0 auto;
    text-wrap: balance;
}
.promise-text span {
    display: block;
    font-style: italic;
    color: var(--ink-soft);
    margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.steps {
    display: grid;
    gap: 1.25rem;
    counter-reset: step;
}
@media (min-width: 760px) {
    .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.step {
    position: relative;
    padding: 1.75rem;
    background: var(--paper-raised);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
}
.step-visual {
    height: 150px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--hairline);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.step-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--ink-faint);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}
.step h3 { margin-bottom: 0.6rem; }
.step p { font-size: 1rem; }

/* the ink orb */
.orb {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #3a3631, var(--well) 70%);
    box-shadow: 0 10px 24px -10px rgba(0,0,0,0.6);
}
@media (prefers-color-scheme: dark) {
    .orb { background: radial-gradient(circle at 35% 30%, #fffcf6, #cfc8ba 70%); }
}
.orb span {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid var(--ink-faint);
    opacity: 0.6;
    animation: orbPulse 3.2s var(--ease) infinite;
}
@keyframes orbPulse {
    0%   { transform: scale(0.85); opacity: 0.5; }
    70%  { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
}

/* waveform */
.waveform {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 56px;
}
.waveform i {
    display: block;
    width: 4px;
    height: 30%;
    border-radius: 2px;
    background: var(--ink);
    opacity: 0.85;
    animation: wave 1.6s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -0.11s);
}
.waveform i:nth-child(1)  { --i: 1;  height: 24%; }
.waveform i:nth-child(2)  { --i: 2;  height: 46%; }
.waveform i:nth-child(3)  { --i: 3;  height: 70%; }
.waveform i:nth-child(4)  { --i: 4;  height: 42%; }
.waveform i:nth-child(5)  { --i: 5;  height: 88%; }
.waveform i:nth-child(6)  { --i: 6;  height: 58%; }
.waveform i:nth-child(7)  { --i: 7;  height: 96%; }
.waveform i:nth-child(8)  { --i: 8;  height: 50%; }
.waveform i:nth-child(9)  { --i: 9;  height: 76%; }
.waveform i:nth-child(10) { --i: 10; height: 38%; }
.waveform i:nth-child(11) { --i: 11; height: 64%; }
.waveform i:nth-child(12) { --i: 12; height: 30%; }
.waveform i:nth-child(13) { --i: 13; height: 48%; }
.waveform i:nth-child(14) { --i: 14; height: 22%; }
@keyframes wave {
    0%, 100% { transform: scaleY(0.55); }
    50%      { transform: scaleY(1.15); }
}

/* mini page */
.mini-page {
    position: relative;
    width: 96px;
    height: 118px;
    padding: 16px 14px;
    background: var(--paper-raised);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    box-shadow: 0 10px 24px -14px rgb(var(--shadow-color) / 0.5);
    transform: rotate(-3deg);
}
.mini-line {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--ink);
    opacity: 0.55;
}
.mini-line.w80 { width: 80%; }
.mini-line.w95 { width: 95%; }
.mini-line.w60 { width: 60%; }
.mini-line.w90 { width: 90%; }
.mini-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #7E9A78;
}

/* --------------------------------------------------------------------------
   Features — bento
   -------------------------------------------------------------------------- */

.features { background: var(--paper-deep); }

.bento {
    display: grid;
    gap: 1.1rem;
}
@media (min-width: 640px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .card-wide { grid-column: span 2; }
}
@media (min-width: 980px) {
    .bento { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
    .card-wide, .card-timeline, .card-theme { grid-column: span 2; }
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--paper-raised);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px -28px rgb(var(--shadow-color) / 0.45);
    border-color: var(--ink-faint);
}
.card-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--paper);
    border: 1px solid var(--hairline);
    color: var(--ink);
    margin-bottom: 1.25rem;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 1rem; }
.card-foot {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--hairline);
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--ink);
}
.card-wide p:not(.card-foot) { max-width: 60ch; }

/* timeline strip */
.card-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 72px;
    margin-top: 1.5rem;
    border-radius: 14px;
    background: var(--well);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}
.card-strip i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mood);
    opacity: 0.65;
}
.card-strip i.empty { background: transparent; box-shadow: inset 0 0 0 1px var(--well-hairline); opacity: 1; }
.card-strip i.big { width: 20px; height: 20px; opacity: 1; }

/* year dots */
.year-dots {
    display: grid;
    grid-template-columns: repeat(26, 1fr);
    gap: 5px;
    margin-top: 1.5rem;
}
.year-dots i {
    display: block;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--mood, transparent);
    box-shadow: var(--mood, inset 0 0 0 1px var(--hairline));
}
.year-dots i.today { box-shadow: inset 0 0 0 1px var(--ink); }

/* mood row */
.mood-row {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}
.mood-row i {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mood);
}

/* theme swatches */
.theme-swatches {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}
.swatch {
    flex: 1;
    height: 64px;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    border: 1px solid var(--hairline);
}
.swatch b { display: block; height: 3px; border-radius: 2px; width: 70%; }
.swatch b:nth-child(2) { width: 90%; }
.swatch b:nth-child(3) { width: 45%; }
.swatch-light { background: #F4F1EA; }
.swatch-light b { background: #1F1D1A; opacity: 0.6; }
.swatch-dark { background: #161512; border-color: #35322C; }
.swatch-dark b { background: #EDE8DE; opacity: 0.7; }

/* --------------------------------------------------------------------------
   Privacy
   -------------------------------------------------------------------------- */

.privacy-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 900px) {
    .privacy-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
}
.privacy-copy .section-lead { margin-top: 1.25rem; }

.check-list {
    margin-top: 2rem;
    display: grid;
    gap: 0.9rem;
}
.check-list li {
    position: relative;
    padding-left: 2rem;
    color: var(--ink-soft);
    font-size: 1rem;
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.32em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23000'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' stroke='%23fff' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23000'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' stroke='%23fff' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check-list strong { color: var(--ink); }

.privacy-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.stat {
    padding: 1.75rem 1.5rem;
    background: var(--paper-raised);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.stat-num {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.stat-num small { font-size: 0.5em; letter-spacing: 0; }
.stat-label {
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.stat-accent {
    background: var(--ink);
    border-color: var(--ink);
}
.stat-accent .stat-num { color: var(--paper); }
.stat-accent .stat-label { color: var(--paper); opacity: 0.75; }

/* comparison table */
.compare {
    max-width: 960px;
    margin: clamp(3rem, 6vw, 5rem) auto 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.compare table {
    width: 100%;
    min-width: 560px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--paper-raised);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-size: 0.975rem;
}
.compare caption {
    caption-side: top;
    text-align: left;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--ink);
    padding: 0 0 1rem 0.25rem;
}
.compare th, .compare td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--hairline);
    vertical-align: middle;
}
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    background: var(--paper);
}
.compare tbody th {
    font-weight: 500;
    color: var(--ink);
    width: 34%;
}
.compare td { color: var(--ink-soft); }
.compare .compare-us {
    background: var(--accent-soft);
    color: var(--ink);
    font-weight: 600;
}
.compare thead .compare-us { color: var(--ink); }

@media (max-width: 640px) {
    .compare table { min-width: 0; font-size: 0.875rem; }
    .compare th, .compare td { padding: 0.8rem 0.75rem; }
    .compare tbody th { width: auto; }
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing { background: var(--paper-deep); }

.plans {
    display: grid;
    gap: 1.25rem;
    max-width: 860px;
    margin: 0 auto;
    align-items: stretch;
}
@media (min-width: 760px) {
    .plans { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--paper-raised);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
}
.plan-featured {
    border-color: var(--ink);
    box-shadow: 0 30px 60px -36px rgb(var(--shadow-color) / 0.5);
}
.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    background: color-mix(in srgb, var(--accent) 28%, var(--paper-raised));
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgb(var(--shadow-color) / 0.12);
}
.plan-head {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 1.5rem;
}
.plan-head h3 { font-size: 1.15rem; color: var(--ink-soft); font-family: var(--font-sans); font-weight: 600; }
.plan-price {
    margin-top: 0.75rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.plan-price .amount {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.plan-price .period { color: var(--ink-soft); font-size: 1rem; }
.plan-tagline {
    margin-top: 0.75rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--ink);
    font-size: 1.05rem;
}
.plan-list {
    display: grid;
    gap: 0.75rem;
    font-size: 0.975rem;
    color: var(--ink-soft);
    margin-bottom: 1.75rem;
}
.plan-list li {
    position: relative;
    padding-left: 1.5rem;
}
.plan-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink);
    opacity: 0.85;
}
.plan .btn { margin-top: auto; }

.pricing-note {
    max-width: 620px;
    margin: 2rem auto 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-inner {
    display: grid;
    gap: 2.5rem;
}
@media (min-width: 900px) {
    .faq-inner { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; }
    .faq-inner .section-head { position: sticky; top: 100px; margin-bottom: 0; }
}

.faq-list details {
    border-top: 1px solid var(--hairline);
}
.faq-list details:last-child { border-bottom: 1px solid var(--hairline); }

.faq-list summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 0;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--ink);
    transition: color 0.2s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "";
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--hairline);
    background:
        linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat;
    transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--accent); }

.faq-body {
    padding: 0 3.5rem 1.5rem 0;
    animation: faqIn 0.35s var(--ease);
}
.faq-body p { font-size: 1rem; line-height: 1.7; }
@keyframes faqIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta { padding-top: 0; }

.final-card {
    position: relative;
    padding: clamp(3rem, 6vw, 5rem) var(--gutter);
    text-align: center;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.final-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 35px,
        rgba(244, 241, 234, 0.08) 35px,
        rgba(244, 241, 234, 0.08) 36px
    );
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    pointer-events: none;
}
.final-card > * { position: relative; }
.final-card .eyebrow { color: var(--paper); opacity: 0.6; }
.final-card h2 { color: var(--paper); }
.final-card h2 em { color: var(--paper); opacity: 0.65; }
.final-card .section-lead {
    color: var(--paper);
    opacity: 0.75;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.final-card .btn-primary {
    background: var(--paper);
    color: var(--ink);
}
.final-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--paper);
    opacity: 0.55;
}
.cta-center { justify-content: center; }

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

.site-footer {
    border-top: 1px solid var(--hairline);
    padding: 3rem 0 2.5rem;
}
.footer-inner {
    display: grid;
    gap: 2rem;
}
@media (min-width: 760px) {
    .footer-inner {
        grid-template-columns: 1fr auto;
        align-items: start;
    }
    .footer-legal { grid-column: 1 / -1; }
}
.footer-brand p {
    margin-top: 0.85rem;
    max-width: 38ch;
    font-size: 0.95rem;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 0.925rem;
    color: var(--ink-soft);
}
.footer-nav a:hover { color: var(--ink); }
.footer-legal {
    padding-top: 1.5rem;
    border-top: 1px solid var(--hairline);
    font-size: 0.8rem;
    color: var(--ink-faint);
    max-width: none;
}

/* --------------------------------------------------------------------------
   Legal pages (privacy / support)
   -------------------------------------------------------------------------- */

.legal-main {
    padding: clamp(2.5rem, 6vw, 5rem) 0 4rem;
}
.legal-main .container {
    max-width: 42rem;
}
.legal-main h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.5rem;
}
.legal-main .legal-meta {
    color: var(--ink-soft);
    margin: 0 0 2.25rem;
    font-size: 0.95rem;
}
.legal-main h2 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2.1rem 0 0.65rem;
}
.legal-main h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.4rem 0 0.45rem;
}
.legal-main p,
.legal-main li {
    color: var(--ink);
}
.legal-main ul,
.legal-main ol {
    padding-left: 1.2rem;
}
.legal-main a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}
.legal-main address {
    font-style: normal;
    line-height: 1.7;
}
.legal-dl {
    display: grid;
    grid-template-columns: minmax(8rem, 11rem) 1fr;
    gap: 0.55rem 1.25rem;
    margin: 1.25rem 0 1.75rem;
}
.legal-dl dt {
    color: var(--ink-soft);
    font-size: 0.9rem;
}
.legal-dl dd {
    margin: 0;
}
.legal-lang {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.legal-lang a + a::before {
    content: " · ";
    color: var(--ink-faint);
    text-decoration: none;
}
.footer-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* --------------------------------------------------------------------------
   Scroll reveal (only when JS is present and motion is allowed)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    html.js [data-reveal] {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
        transition-delay: var(--reveal-delay, 0ms);
    }
    html.js [data-reveal].is-in {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .orb span, .waveform i { animation: none; }
    .phone { transform: none; transition: none; }
    .phone-page.is-flipping { animation: none; }
    .card, .btn { transition: none; }
}
