/* Vela marketing site — dark-first design matching the iOS app's
   locked direction (caps tracked-out chrome, amber accent, New York
   body, edge-strip rows). Auto-switches to light. */

:root {
    color-scheme: light dark;
    --bg:            #0B0B0E;
    --bg-elev:       #15161A;
    --surface:       #1C1E24;
    --text:          #F2F1EC;
    --text-secondary:#A4A3AB;
    --text-tertiary: #6F6E76;
    --accent:        #F0B255;
    --accent-deep:   #C67E1D;
    --accent-muted:  rgba(240, 178, 85, 0.14);
    --danger:        #E66052;
    --divider:       #262830;
    --max-width: 1080px;
    --container-pad: max(20px, calc((100vw - var(--max-width)) / 2));
}
@media (prefers-color-scheme: light) {
    :root {
        --bg:            #F8F7F4;
        --bg-elev:       #ECEAE5;
        --surface:       #FFFFFF;
        --text:          #0B0B0E;
        --text-secondary:#4D4C56;
        --text-tertiary: #8A8990;
        --accent:        #C67E1D;
        --accent-deep:   #9C5F0F;
        --accent-muted:  rgba(198, 126, 29, 0.10);
        --divider:       #D9D7D2;
    }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'New York', 'NewYork-Regular', Georgia, serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

.chrome { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.caps {
    text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Layout ───────────────────────────────────────────────── */

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

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

nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    border-bottom: 1px solid var(--divider);
}
nav .row {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav .brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text);
    font-family: -apple-system, sans-serif;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.01em;
}
nav .brand img {
    width: 32px; height: 32px;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
nav .links {
    display: flex; gap: 28px;
    align-items: center;
}
nav .links a {
    color: var(--text-secondary);
    font-family: -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
nav .links a:hover { color: var(--text); }
nav .nav-cta {
    background: var(--accent);
    color: #0B0B0E;
    padding: 8px 16px;
    border-radius: 999px;
    font-family: -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
nav .nav-cta:hover { color: #0B0B0E; opacity: 0.9; }

@media (max-width: 720px) {
    nav .links { display: none; }
    nav .nav-cta { display: inline-flex; }
}

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

.hero {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-muted) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.hero .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero .copy { max-width: 540px; }
.hero .icon {
    width: 88px; height: 88px;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28),
                0 4px 12px rgba(0, 0, 0, 0.16);
    margin-bottom: 28px;
}
.hero h1 {
    font-size: 64px;
    line-height: 1.02;
    letter-spacing: -2.2px;
    margin-bottom: 24px;
    font-weight: 700;
}
.hero h1 em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}
.hero .lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 32px;
}
.cta-row {
    display: flex; gap: 12px; flex-wrap: wrap;
}
.cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-family: -apple-system, sans-serif;
    font-size: 13px; font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: transform 0.15s, opacity 0.15s;
}
.cta:hover { transform: translateY(-1px); }
.cta.primary {
    background: var(--accent);
    color: #0B0B0E;
}
.cta.primary:hover { color: #0B0B0E; opacity: 0.9; }
.cta.secondary {
    color: var(--text);
    border: 1px solid var(--divider);
    background: var(--surface);
}
.cta.secondary:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 920px) {
    .hero { padding: 56px 0 72px; }
    .hero .row { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 44px; letter-spacing: -1.4px; }
    .hero .icon { width: 72px; height: 72px; }
}

/* ─── Phone mockup ─────────────────────────────────────────── */

.phone-stack {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.phone {
    width: 320px;
    height: 660px;
    background: var(--bg-elev);
    border-radius: 48px;
    border: 8px solid #1A1B1F;
    box-shadow:
        0 0 0 2px #2A2B30,
        0 30px 60px -12px rgba(0, 0, 0, 0.5),
        0 18px 36px -18px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
}
.phone::before {
    content: "";
    position: absolute;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 28px;
    background: #1A1B1F;
    border-radius: 16px;
    z-index: 10;
}

/* Phone screen content */
.phone-screen {
    padding: 56px 16px 16px;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
}
.phone-strap {
    font-family: -apple-system, sans-serif;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 700;
    margin-bottom: 6px;
}
.phone-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.6px;
    margin-bottom: 16px;
}
.phone-segments {
    display: flex; gap: 6px;
    margin-bottom: 16px;
}
.phone-seg {
    font-family: -apple-system, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--divider);
    color: var(--text-secondary);
}
.phone-seg.on {
    background: var(--accent);
    color: #0B0B0E;
    border-color: var(--accent);
}

.phone-row {
    display: grid;
    grid-template-columns: auto 36px 1fr auto;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    background: var(--surface);
    border: 0.5px solid var(--divider);
    margin-bottom: 8px;
    align-items: center;
}
.phone-row.unread {
    background: var(--accent-muted);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.phone-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: transparent;
}
.phone-row.unread .phone-dot { background: var(--accent); }
.phone-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: -apple-system, sans-serif;
    font-weight: 800;
    font-size: 12px;
    color: white;
}
.phone-text { min-width: 0; }
.phone-sender {
    font-family: -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.phone-row:not(.unread) .phone-sender { color: var(--text-secondary); }
.phone-subject {
    font-family: -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.phone-row:not(.unread) .phone-subject { color: var(--text-secondary); font-weight: 500; }
.phone-snippet {
    font-family: 'New York', Georgia, serif;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.phone-time {
    font-family: -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-tertiary);
}
.phone-row.unread .phone-time { color: var(--accent); }

/* Calendar mockup */
.phone-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 16px;
}
.phone-cal-day {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    font-family: -apple-system, sans-serif;
    font-size: 11px;
    color: var(--text-secondary);
    border-radius: 6px;
}
.phone-cal-day.today {
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 700;
}
.phone-cal-day.selected {
    background: var(--accent);
    color: #0B0B0E;
    font-weight: 800;
}
.phone-cal-day.has-events::after {
    content: "•";
    position: absolute;
    color: var(--accent);
    margin-top: 16px;
    font-size: 16px;
}

.phone-event {
    display: grid;
    grid-template-columns: 50px 3px 1fr;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface);
    border: 0.5px solid var(--divider);
    border-radius: 10px;
    margin-bottom: 6px;
    align-items: stretch;
}
.phone-event-time {
    font-family: -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    text-align: right;
}
.phone-event-strip { background: var(--accent); border-radius: 1.5px; }
.phone-event-strip.blue { background: #4F8CD4; }
.phone-event-strip.green { background: #5BBE8A; }
.phone-event-title {
    font-family: -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}
.phone-event-loc {
    font-family: -apple-system, sans-serif;
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* Tasks mockup */
.phone-task {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px;
    background: var(--surface);
    border: 0.5px solid var(--divider);
    border-radius: 10px;
    margin-bottom: 6px;
}
.phone-task-check {
    width: 18px; height: 18px; border-radius: 50%;
    border: 1.5px solid var(--text-tertiary);
    flex-shrink: 0;
    margin-top: 2px;
}
.phone-task-check.done {
    background: var(--accent);
    border-color: var(--accent);
    position: relative;
}
.phone-task-check.done::after {
    content: "✓";
    position: absolute;
    color: #0B0B0E;
    font-weight: 900;
    font-size: 11px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.phone-task-body { flex: 1; min-width: 0; }
.phone-task-title {
    font-family: -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.phone-task.done .phone-task-title {
    color: var(--text-tertiary);
    text-decoration: line-through;
}
.phone-task-meta {
    display: flex; gap: 6px; align-items: center;
    flex-wrap: wrap;
}
.phone-chip {
    font-family: -apple-system, sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--bg-elev);
    color: var(--text-tertiary);
}
.phone-chip.due-today { background: var(--accent-muted); color: var(--accent); }
.phone-chip.overdue { background: rgba(230, 96, 82, 0.18); color: var(--danger); }
.phone-chip.flag { color: var(--danger); }

/* Floating phones */
.phone.tilt-left {
    transform: rotate(-4deg) translateX(-30px);
    z-index: 1;
    opacity: 0.55;
    filter: blur(0.5px);
    position: absolute;
    left: 0;
}
.phone.tilt-right {
    transform: rotate(4deg) translateX(30px);
    z-index: 1;
    opacity: 0.55;
    filter: blur(0.5px);
    position: absolute;
    right: 0;
}
.phone.center {
    z-index: 2;
    position: relative;
}

@media (max-width: 920px) {
    .phone-stack { height: 540px; max-width: 320px; margin: 0 auto; }
    .phone.tilt-left, .phone.tilt-right { display: none; }
}

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

section.block { padding: 96px 0; border-top: 1px solid var(--divider); }
section.block .strap {
    color: var(--accent);
    font-family: -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
section.block h2 {
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -1.4px;
    margin-bottom: 20px;
    max-width: 720px;
}
section.block .sub {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.5;
    margin-bottom: 48px;
}

@media (max-width: 720px) {
    section.block { padding: 64px 0; }
    section.block h2 { font-size: 32px; letter-spacing: -1px; }
    section.block .sub { font-size: 17px; }
}

/* ─── Feature grid ────────────────────────────────────────── */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.feature {
    padding: 28px;
    border: 1px solid var(--divider);
    border-radius: 18px;
    background: var(--surface);
    transition: border-color 0.2s, transform 0.2s;
}
.feature:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.feature .icon-tile {
    width: 44px; height: 44px;
    border-radius: 11px;
    background: var(--accent-muted);
    color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.feature .icon-tile svg { width: 22px; height: 22px; }
.feature h3 {
    font-size: 19px;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.2px;
}
.feature p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ─── Privacy callout ─────────────────────────────────────── */

.callout {
    padding: 56px 48px;
    background: linear-gradient(135deg, var(--accent-muted) 0%, var(--surface) 100%);
    border: 1px solid var(--accent);
    border-radius: 24px;
    margin: 24px 0;
}
.callout .strap {
    color: var(--accent);
    font-family: -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.callout h3 {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--text);
    margin-bottom: 16px;
    max-width: 720px;
}
.callout p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 720px;
}
@media (max-width: 720px) {
    .callout { padding: 36px 28px; border-radius: 18px; }
    .callout h3 { font-size: 24px; }
}

/* ─── Pricing ─────────────────────────────────────────────── */

.pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
.plan {
    padding: 36px;
    border: 1px solid var(--divider);
    border-radius: 18px;
    background: var(--surface);
}
.plan.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--accent-muted) 0%, var(--surface) 100%);
    position: relative;
}
.plan.featured::before {
    content: "Most popular";
    position: absolute;
    top: -12px; left: 28px;
    background: var(--accent);
    color: #0B0B0E;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.plan h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}
.plan .price {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--text);
    margin-bottom: 4px;
}
.plan .price small {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0;
}
.plan .price-alt {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    font-family: -apple-system, sans-serif;
}
.plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}
.plan li {
    font-family: -apple-system, sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0 8px 24px;
    position: relative;
    line-height: 1.45;
}
.plan li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 900;
}

@media (max-width: 720px) {
    .pricing { grid-template-columns: 1fr; }
}

/* ─── Long-form (privacy / terms) ─────────────────────────── */

article {
    padding: 64px 0 96px;
    max-width: 720px;
    margin: 0 auto;
}
article h1 {
    font-size: 44px;
    line-height: 1.08;
    margin-bottom: 12px;
    letter-spacing: -1.4px;
    font-weight: 700;
}
article .updated {
    color: var(--text-tertiary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-family: -apple-system, sans-serif;
    margin-bottom: 40px;
    font-weight: 700;
}
article h2 {
    font-size: 24px;
    margin: 40px 0 12px;
    line-height: 1.25;
    letter-spacing: -0.4px;
    font-weight: 700;
}
article p, article li {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.65;
}
article ul, article ol {
    padding-left: 24px;
    margin-bottom: 14px;
}
article li::marker { color: var(--text-tertiary); }
article strong { color: var(--text); font-weight: 700; }
article code {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 13px;
    background: var(--bg-elev);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text);
}

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

footer {
    border-top: 1px solid var(--divider);
    padding: 48px 0 64px;
    margin-top: 64px;
}
footer .row {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
footer .brand-mini {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text);
    font-family: -apple-system, sans-serif;
    font-weight: 800;
    font-size: 14px;
}
footer .brand-mini img {
    width: 24px; height: 24px;
    border-radius: 6px;
}
footer .copyright {
    color: var(--text-tertiary);
    font-family: -apple-system, sans-serif;
    font-size: 12px;
}
footer .links { display: flex; gap: 24px; flex-wrap: wrap; }
footer .links a {
    color: var(--text-secondary);
    font-family: -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
footer .links a:hover { color: var(--accent); }
