/* Remindora public website.
   Colours follow the app's design tokens (Smart Reminder/lib/theme/app_theme.dart). */

:root {
    --navy: #0B1F4D;
    --navy-2: #16307A;
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-soft: #E8F0FE;
    --indigo: #6366F1;

    --bg: #FFFFFF;
    --bg-tint: #F4F7FC;
    --surface: #FFFFFF;
    --border: #E3E8F2;
    --text: #111827;
    --text-2: #4B5563;
    --muted: #6B7280;

    --success: #16A34A;
    --danger: #DC2626;
    --orange: #F97316;
    --green: #16A34A;
    --red: #EF4444;
    --pink: #EC4899;
    --purple: #8B5CF6;
    --teal: #14B8A6;

    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 1px 2px rgba(11, 31, 77, .06), 0 8px 24px rgba(11, 31, 77, .08);
    --shadow-lg: 0 30px 60px -20px rgba(11, 31, 77, .35);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0B1220;
        --bg-tint: #0F182B;
        --surface: #151E31;
        --border: #26324A;
        --text: #F3F4F6;
        --text-2: #C2C9D6;
        --muted: #8F9AB0;
        --primary: #5B8CFF;
        --primary-dark: #3F74F5;
        --primary-soft: #1A2747;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .88em;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: .1em .4em;
    border-radius: 6px;
}
@media (prefers-color-scheme: dark) { code { color: #A9C2FF; } }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.125rem; color: var(--text-2); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.grad {
    background: linear-gradient(100deg, var(--primary), var(--indigo));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 22px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    font: inherit; font-weight: 700;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6);
}
.btn:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.btn--sm { padding: 9px 16px; font-size: .92rem; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); box-shadow: none; }
.btn--ghost:hover { background: var(--bg-tint); }
.link { font-weight: 700; }

/* Header */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.topbar.is-scrolled { border-color: var(--border); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--text-2); font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--primary); text-decoration: none; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 860px) {
    .menu-btn { display: block; }
    .nav {
        position: fixed; inset: 68px 0 0 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg);
        padding: 12px 20px 24px;
        transform: translateY(-8px); opacity: 0; pointer-events: none;
        transition: .2s ease;
    }
    .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
    .nav .btn { margin-top: 18px; padding: 14px; }
    .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Announcement */
.announce { background: var(--navy); color: #DCE6FF; font-size: .92rem; padding: 10px 0; text-align: center; }
.announce strong { color: #fff; margin-right: 6px; }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 80px;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(99, 102, 241, .16), transparent 60%),
        radial-gradient(700px 400px at 0% 0%, rgba(37, 99, 235, .10), transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__cta--center { justify-content: center; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-weight: 600; font-size: .95rem; }
.ticks li::before {
    content: "✓"; display: inline-grid; place-items: center;
    width: 20px; height: 20px; margin-right: 8px; border-radius: 50%;
    background: rgba(22, 163, 74, .14); color: var(--success); font-size: .75rem; font-weight: 800;
}
.ticks--col { flex-direction: column; margin-top: 18px; }

.hero__art { position: relative; display: flex; justify-content: center; padding: 20px 0; }

/* Phone mock-up (mirrors the app's Today screen) */
.phone {
    position: relative;
    width: 300px; height: 610px;
    border-radius: 46px;
    background: #0B1220;
    padding: 12px;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px #26324A;
    transform: rotate(-2deg);
}
.phone__notch { position: absolute; top: 18px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%); background: #0B1220; border-radius: 20px; z-index: 2; }
.phone__screen {
    position: relative; height: 100%;
    border-radius: 36px; overflow: hidden;
    background: #F4F7FC; color: #111827;
    padding: 52px 16px 16px;
    font-size: 13px;
}
.ph-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ph-head small { display: block; color: #6B7280; font-size: 11px; }
.ph-head b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.ph-streak { background: #FFF4E5; color: #B45309; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.ph-quick { background: #fff; border: 1px solid #E3E8F2; border-radius: 12px; padding: 10px 12px; font-size: 12px; color: #374151; margin-bottom: 10px; }
.ph-quick i { font-style: normal; font-weight: 700; border-radius: 6px; padding: 0 4px; }
.t-cat { background: #E8F0FE; color: #1D4ED8; }
.t-tag { background: #EDE9FE; color: #6D28D9; }
.t-pri { background: #FEE2E2; color: #B91C1C; }
.ph-chips { display: flex; gap: 6px; margin-bottom: 8px; }
.ph-chips span { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid #E3E8F2; color: #4B5563; }
.ph-chips .on { background: #2563EB; color: #fff; border-color: #2563EB; }
.ph-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6B7280; margin: 12px 2px 6px; }
.ph-card {
    display: flex; gap: 10px; align-items: center;
    background: #fff; border-radius: 14px; padding: 11px 12px; margin-bottom: 8px;
    border-left: 4px solid var(--c, #2563EB);
    box-shadow: 0 1px 2px rgba(11, 31, 77, .06);
}
.ph-card b { display: block; font-size: 13px; }
.ph-card small { color: #6B7280; font-size: 11px; }
.ph-card--red { --c: #EF4444; }
.ph-card--red small { color: #DC2626; }
.ph-card--blue { --c: #2563EB; }
.ph-card--green { --c: #16A34A; }
.ph-card--purple { --c: #8B5CF6; }
.ph-check { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--c); }
.ph-fab {
    position: absolute; right: 18px; bottom: 18px;
    width: 52px; height: 52px; border-radius: 16px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #2563EB, #6366F1); color: #fff;
    font-size: 28px; font-weight: 400;
    box-shadow: 0 10px 20px -6px rgba(37, 99, 235, .6);
}

.bubble {
    position: absolute;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 12px 14px;
    font-size: .88rem; font-weight: 600;
    max-width: 230px;
}
.bubble--voice { left: -24px; top: 250px; display: flex; gap: 10px; align-items: flex-start; animation: float 6s ease-in-out infinite; }
.bubble--voice .mic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #0EA5E9, #2563EB); }
.bubble--alert { right: -6px; bottom: 60px; display: flex; gap: 10px; align-items: center; animation: float 6s ease-in-out -3s infinite; }
.bubble--alert img { border-radius: 8px; }
.bubble--alert b { display: block; }
.bubble--alert small { color: var(--muted); font-weight: 500; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none !important; } html { scroll-behavior: auto; } }

@media (max-width: 960px) {
    .hero { padding-top: 40px; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__copy { text-align: center; }
    .hero__copy .lead { margin-left: auto; margin-right: auto; }
    .hero__cta, .ticks { justify-content: center; }
}
@media (max-width: 520px) {
    .phone { width: 270px; height: 560px; }
    .bubble--voice { left: 0; top: 240px; max-width: 200px; font-size: .8rem; }
    .bubble--alert { right: 0; bottom: 40px; }
}

/* Strip */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-tint); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__grid div { padding: 22px 12px; text-align: center; }
.strip__grid div + div { border-left: 1px solid var(--border); }
.strip b { display: block; font-size: 1.1rem; }
.strip span { color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) {
    .strip__grid { grid-template-columns: repeat(2, 1fr); }
    .strip__grid div:nth-child(3) { border-left: 0; }
    .strip__grid div:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* Sections */
.section { padding: 88px 0; }
.section--flush { padding-top: 8px; }
.section--tint { background: var(--bg-tint); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__head .lead { margin: 0 auto; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--text-2); margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.icon svg { width: 24px; height: 24px; fill: currentColor; }
.icon--blue { background: linear-gradient(135deg, #0EA5E9, #2563EB); }
.icon--indigo { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.icon--green { background: linear-gradient(135deg, #22C55E, #16A34A); }
.icon--orange { background: linear-gradient(135deg, #F59E0B, #F97316); }
.icon--teal { background: linear-gradient(135deg, #14B8A6, #0D9488); }
.icon--pink { background: linear-gradient(135deg, #EC4899, #DB2777); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: relative; }
.steps p { color: var(--text-2); margin: 0; }
.step__n {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--navy); color: #fff; font-weight: 800;
    margin-bottom: 16px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; gap: 40px; }
    .split--rev > :first-child { order: 2; }
}

.progress-card, .privacy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}
.pc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.pc-top small { display: block; color: var(--muted); }
.pc-top b { font-size: 1.6rem; font-weight: 800; }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 170px; padding-bottom: 24px; }
.bars span { position: relative; flex: 1; height: var(--h); background: var(--primary-soft); border-radius: 10px; }
.bars span.on { background: linear-gradient(180deg, var(--indigo), var(--primary)); }
.bars i { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font-style: normal; font-size: .8rem; color: var(--muted); font-weight: 600; }
.pc-goal { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 16px; font-weight: 600; font-size: .92rem; }
.meter { height: 10px; background: var(--primary-soft); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--success), #4ADE80); border-radius: 999px; }

.privacy-card { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border: 0; }
.privacy-card .lock { width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 26px; margin-bottom: 20px; }
.privacy-card ul { list-style: none; padding: 0; margin: 0; }
.privacy-card li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.privacy-card b { display: block; }
.privacy-card span { color: #B8C6EA; font-size: .92rem; }

/* FAQ */
.faq {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 0 22px;
}
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 28px 18px 0;
    font-weight: 700;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; font-weight: 500; color: var(--primary); transition: transform .2s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--text-2); margin: 0 0 16px; }
.faq p:last-child { padding-bottom: 4px; }

/* CTA */
.cta {
    background:
        radial-gradient(600px 300px at 80% 0%, rgba(99, 102, 241, .45), transparent 60%),
        linear-gradient(160deg, var(--navy), var(--navy-2));
    color: #fff;
    padding: 88px 0;
    text-align: center;
}
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__inner img { border-radius: 18px; margin-bottom: 20px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.cta p { color: #C7D3F5; font-size: 1.1rem; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }
.store {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px 10px 14px;
    border-radius: 12px;
    background: #000; color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    min-width: 190px;
}
.store:hover { text-decoration: none; background: #111; }
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 1.05rem; text-align: left; }
.store small { font-weight: 500; font-size: .7rem; opacity: .8; }
.store--soon { opacity: .7; cursor: default; }

/* Inner pages */
.page-hero { padding: 64px 0 40px; background: radial-gradient(700px 300px at 50% 0%, rgba(37, 99, 235, .10), transparent 70%); }
.page-hero--tall { padding: 120px 0; }

.feature-group { padding: 40px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.feature-group:first-child { border-top: 0; }
.feature-group > h2 { font-size: 1.5rem; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 36px; }
.feature-list h3 { margin-bottom: 6px; }
.feature-list p { color: var(--text-2); margin: 0; }
@media (max-width: 760px) {
    .feature-group { grid-template-columns: 1fr; gap: 16px; }
    .feature-list { grid-template-columns: 1fr; }
}

.search { position: relative; max-width: 560px; margin: 24px auto 0; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: var(--muted); }
.search input {
    width: 100%; font: inherit;
    padding: 16px 16px 16px 48px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--surface); color: var(--text);
    box-shadow: var(--shadow);
}
.search input:focus { outline: none; border-color: var(--primary); }

.note {
    display: flex; flex-direction: column; gap: 4px;
    margin-top: 36px; padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--primary-soft);
    color: var(--text-2);
}
.note b { color: var(--text); }

.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; max-width: 980px; }
.form {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
    display: grid; gap: 16px;
}
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
    font: inherit; font-weight: 400;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--bg); color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); }
.form .btn { justify-self: start; }
.form .muted { margin: 0; }
.form__msg { margin: 0; font-weight: 600; font-size: .92rem; }
.form__msg.is-error { color: var(--danger); }
.form__msg.is-ok { color: var(--success); }
.contact__side { display: grid; gap: 16px; align-content: start; }
.side-card { background: var(--bg-tint); border-radius: var(--radius-lg); padding: 22px 24px; }
.side-card p { margin: 0 0 6px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--bg-tint); border-top: 1px solid var(--border); padding: 56px 0 24px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer__grid a:not(.brand) { display: block; color: var(--text-2); margin-bottom: 8px; word-break: break-word; }
.footer__grid a:not(.brand):hover { color: var(--primary); }
.brand--footer { margin-bottom: 12px; }
.footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
    margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
    color: var(--muted); font-size: .88rem;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
