/* ------------------------------------------------------------------
   Unfined marketing site — shared styles
   Palette + typography mirror the iOS app so the landing page reads
   as the same product, not a separately branded splash.
------------------------------------------------------------------ */

:root {
    --indigo: #4F46E5;
    --indigo-dark: #3730A3;
    --indigo-soft: #EEF2FF;
    --orange: #F59E0B;
    --orange-soft: #FEF3C7;
    --green: #10B981;
    --green-soft: #D1FAE5;
    --red: #EF4444;

    --bg: #FAFAF9;
    --surface: #FFFFFF;
    --surface-raised: #F5F5F4;
    --border: #E7E5E4;

    --text: #1C1917;
    --text-muted: #57534E;
    --text-subtle: #A8A29E;

    --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
    --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08);
    --shadow-lg: 0 20px 48px rgba(79, 70, 229, 0.18);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;

    --max-width: 1120px;
    --gutter: 24px;

    --font-sans:
        -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display",
        "Segoe UI", "Helvetica Neue", Arial, "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-mono: "SF Mono", "Menlo", "Consolas", monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0C0A09;
        --surface: #1C1917;
        --surface-raised: #292524;
        --border: #292524;
        --text: #FAFAF9;
        --text-muted: #A8A29E;
        --text-subtle: #78716C;
        --indigo-soft: #1E1B4B;
        --orange-soft: #3F2C0F;
        --green-soft: #064E3B;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 20px 48px rgba(79, 70, 229, 0.3);
    }
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--indigo);
    text-decoration: none;
    transition: opacity 0.18s;
}

a:hover {
    opacity: 0.72;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
h4 {
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--text);
    font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; margin-bottom: 0.35em; }

p { color: var(--text-muted); }

/* Layout */
.container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

section {
    padding-block: clamp(56px, 8vw, 112px);
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(1.6) blur(18px);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 14px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
    font-size: 19px;
    letter-spacing: -0.02em;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    box-shadow: var(--shadow-sm);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
}

.nav-actions a:not(.btn) {
    color: var(--text-muted);
}

.nav-actions .lang {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--text);
    color: var(--bg);
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.18s, opacity 0.18s;
    white-space: nowrap;
}

.btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--indigo);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    opacity: 1;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

/* Hero */
.hero {
    padding-block: clamp(56px, 9vw, 128px) clamp(56px, 9vw, 96px);
    background:
        radial-gradient(ellipse 80% 80% at 20% 0%, color-mix(in srgb, var(--indigo) 14%, transparent), transparent 60%),
        radial-gradient(ellipse 60% 60% at 90% 40%, color-mix(in srgb, var(--orange) 12%, transparent), transparent 60%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 980px) {
    .hero-inner {
        grid-template-columns: 1.2fr 1fr;
        gap: 72px;
    }
}

.hero-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.hero-copy .eyebrow .dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
}

.hero-copy h1 {
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.hero-copy h1 .accent {
    color: var(--indigo);
}

.hero-copy .lead {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-foot {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-subtle);
}

.hero-foot .bullet {
    width: 4px;
    height: 4px;
    background: var(--text-subtle);
    border-radius: 50%;
}

/* iPhone mockup */
.phone {
    --phone-width: 320px;
    width: var(--phone-width);
    margin-inline: auto;
    background: #111;
    padding: 12px;
    border-radius: 48px;
    box-shadow: var(--shadow-lg), 0 0 0 6px color-mix(in srgb, #111 80%, transparent);
    position: relative;
}

@media (min-width: 980px) {
    .phone { --phone-width: 360px; justify-self: end; }
}

.phone-screen {
    background: #F2F2F7;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 320 / 650;
}

.phone-screen::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 30px;
    background: #111;
    border-radius: 999px;
    z-index: 3;
}

.phone-ui {
    padding: 62px 20px 32px;
    color: #1C1917;
    font-size: 13px;
    line-height: 1.45;
    height: 100%;
    overflow: hidden;
}

.phone-ui .header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.phone-ui .header .eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #8E8E93;
    text-transform: uppercase;
}

.phone-ui .header .city {
    font-size: 22px;
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: -0.02em;
}

.phone-ui .header .country {
    font-size: 11px;
    color: #8E8E93;
    margin-left: 4px;
    font-weight: 500;
}

.phone-ui .gear {
    width: 22px; height: 22px;
    color: #8E8E93;
}

.phone-ui .banner {
    background: #D1FAE5;
    border-radius: 14px;
    padding: 14px;
    display: flex; gap: 8px; align-items: flex-start;
    margin-bottom: 14px;
}

.phone-ui .banner.snooze {
    background: #FEF3C7;
}

.phone-ui .banner .icon {
    color: #10B981; font-weight: 700; font-size: 15px;
}
.phone-ui .banner.snooze .icon { color: #F59E0B; }

.phone-ui .banner .title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.phone-ui .banner .subtitle {
    color: #6B7280;
    font-size: 12px;
}

.phone-ui .card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.phone-ui .section-label {
    font-size: 10px;
    color: #8E8E93;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.phone-ui .fines {
    display: flex; gap: 12px;
}

.phone-ui .fine {
    flex: 1;
}

.phone-ui .fine .label {
    font-size: 10px;
    color: #8E8E93;
    margin-bottom: 2px;
}

.phone-ui .fine .amount {
    color: #EF4444;
    font-weight: 700;
    font-size: 18px;
}

.phone-ui .fine .suffix {
    color: #EF4444;
    font-size: 10px;
    margin-left: 2px;
}

.phone-ui .link {
    color: #4F46E5;
    font-size: 13px;
    font-weight: 500;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.phone-ui .empty {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    color: #8E8E93;
    font-size: 12px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.phone-ui .pill {
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #F59E0B;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    margin-top: auto;
}

/* Section headings */
.section-head {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: 48px;
}

.section-head .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--indigo);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-head p {
    font-size: 17px;
    max-width: 560px;
    margin-inline: auto;
}

/* Feature cards */
.features {
    background: var(--surface);
    border-block: 1px solid var(--border);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 720px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-card .glyph {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.feature-card .glyph.indigo {
    background: var(--indigo-soft);
    color: var(--indigo);
}

.feature-card .glyph.orange {
    background: var(--orange-soft);
    color: var(--orange);
}

.feature-card .glyph.green {
    background: var(--green-soft);
    color: var(--green);
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 15px; }

/* Cities */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (min-width: 720px) {
    .cities-grid { grid-template-columns: repeat(4, 1fr); }
}

.city-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.city-card .flag {
    font-size: 28px;
    margin-bottom: 6px;
}

.city-card .name {
    font-weight: 600;
    color: var(--text);
}

.city-card .country {
    font-size: 13px;
    color: var(--text-subtle);
}

/* Privacy promise */
.promise {
    background: linear-gradient(135deg, var(--indigo), var(--indigo-dark));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promise::after {
    content: "";
    position: absolute;
    inset: auto -60px -120px auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 60%);
}

.promise h2 {
    color: #fff;
    margin-bottom: 20px;
}

.promise p {
    color: rgba(255,255,255,0.85);
    max-width: 640px;
    margin-inline: auto;
    font-size: 17px;
}

.promise ul {
    list-style: none;
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 560px;
    margin-inline: auto;
    text-align: left;
}

@media (min-width: 640px) {
    .promise ul { grid-template-columns: 1fr 1fr; }
}

.promise li {
    background: rgba(255,255,255,0.1);
    padding: 14px 16px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.promise li::before {
    content: "✓";
    color: var(--orange);
    font-weight: 700;
}

/* Founder */
.founder {
    background: var(--surface);
    border-block: 1px solid var(--border);
}

.founder-card {
    max-width: 720px;
    margin-inline: auto;
    padding-inline: 8px;
    text-align: center;
}

.founder blockquote {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 20px;
}

.founder blockquote::before {
    content: "\201C";
    font-size: 3rem;
    color: var(--indigo);
    line-height: 0;
    vertical-align: -0.3em;
    margin-right: 4px;
}

.founder blockquote::after {
    content: "\201D";
    font-size: 3rem;
    color: var(--indigo);
    line-height: 0;
    vertical-align: -0.3em;
    margin-left: 2px;
}

.founder .byline {
    font-size: 14px;
    color: var(--text-subtle);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 800px;
    margin-inline: auto;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-item summary::after {
    content: "+";
    color: var(--text-subtle);
    font-size: 22px;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin-top: 10px;
    font-size: 15px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding-block: 48px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

@media (min-width: 720px) {
    .footer-grid {
        grid-template-columns: 1fr auto auto;
        gap: 48px;
    }
}

.footer-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}

.footer-brand .tagline {
    font-size: 13px;
    color: var(--text-subtle);
    margin-top: 2px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
}

/* Privacy page */
.privacy-page {
    max-width: 760px;
    margin-inline: auto;
    padding: 48px var(--gutter) 80px;
}

.privacy-page header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.privacy-page h1 {
    margin-bottom: 8px;
}

.privacy-page .meta {
    font-size: 14px;
    color: var(--text-subtle);
    display: flex;
    gap: 16px;
}

.privacy-page h2 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 12px;
}

.privacy-page h3 {
    font-size: 1.1rem;
    margin-top: 28px;
    margin-bottom: 8px;
}

.privacy-page p,
.privacy-page li {
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.65;
}

.privacy-page ul,
.privacy-page ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.privacy-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.privacy-page th,
.privacy-page td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.privacy-page th {
    font-weight: 600;
    color: var(--text);
    background: var(--surface-raised);
}

.privacy-page code {
    background: var(--surface-raised);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 0.88em;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--indigo);
    outline-offset: 3px;
    border-radius: 6px;
}
