/* Munin — warm/light skin, overcoded family DNA. Shared by index/privacy/support. */
:root {
    --accent: #2FA69B;          /* calm teal — care / trust */
    --accent-ink: #268d84;      /* darker teal for gradients */
    --bg: #F7F5F0;              /* warm paper */
    --surface: #ffffff;
    --ink: #1A1D21;            /* raven ink */
    --muted: #6B7078;
    --stroke: rgba(26, 29, 33, 0.10);
    --radius: 18px;
    --shadow: 0 18px 50px rgba(26, 29, 33, 0.10);
    --max: 1020px;
    /* app counter-colors, echoed on the feature cards */
    --c-blue: #4B84F0;
    --c-orange: #E8934A;
    --c-violet: #7C5CD6;
    --c-teal: #2FA69B;
    --c-rose: #E5688A;
}

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

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

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

.bg-glow {
    position: fixed;
    inset: -20%;
    pointer-events: none;
    z-index: -1;
    background:
            radial-gradient(680px 480px at 18% 12%, rgba(47, 166, 155, 0.16), transparent 60%),
            radial-gradient(720px 520px at 85% 8%, rgba(232, 161, 58, 0.10), transparent 62%);
    opacity: 0.9;
}

.page {
    min-height: 100%;
    padding: 26px 18px 40px;
}

.shell {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
}

/* ---- Top bar / brand ---- */
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 4px 22px;
}

.brandline {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: block;
    box-shadow: 0 6px 16px rgba(26, 29, 33, 0.18);
}

.brand {
    letter-spacing: 0.4px;
    font-weight: 700;
    font-size: 18px;
}

.byline {
    color: var(--muted);
    font-size: 13px;
}

.byline a {
    border-bottom: 1px solid rgba(124, 92, 214, 0.45); /* overcoded violet tie-in */
}

.byline a:hover {
    border-bottom-color: rgba(124, 92, 214, 0.9);
}

/* ---- Buttons / pills ---- */
.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: #fff;
    font-weight: 600;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(26, 29, 33, 0.2);
}

.btn.primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, var(--accent), var(--accent-ink));
    box-shadow: 0 12px 30px rgba(47, 166, 155, 0.28);
}

.btn.primary:hover {
    box-shadow: 0 16px 38px rgba(47, 166, 155, 0.34);
}

/* App Store badge placeholder — real badge dropped in at launch */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 11px 18px;
    border-radius: 13px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(26, 29, 33, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 38px rgba(26, 29, 33, 0.28);
}

.badge .apple {
    font-size: 22px;
    line-height: 1;
}

.badge small {
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.8;
    text-transform: uppercase;
}

.badge strong {
    display: block;
    font-size: 17px;
    letter-spacing: 0.2px;
    margin-top: 1px;
}

.badge-note {
    color: var(--muted);
    font-size: 12px;
}

.meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: #fff;
    color: #3a3f45;
    font-size: 12.5px;
    font-weight: 600;
}

/* ---- Hero ---- */
.hero {
    padding: 20px 4px 8px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    align-items: center;
}

.hero-lead {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.hero-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    display: block;
    box-shadow: 0 16px 40px rgba(26, 29, 33, 0.22);
}

.hero-wordmark {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.hero-wordmark span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.3px;
}

.kicker {
    margin: 0 0 12px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 12.5px;
}

.headline {
    margin: 0 0 14px;
    font-size: clamp(34px, 4.6vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.8px;
    font-weight: 800;
}

.headline .accent {
    background: linear-gradient(90deg, var(--ink), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subhead {
    margin: 0 0 22px;
    max-width: 52ch;
    color: #3a3f45;
    font-size: 16.5px;
}

/* ---- Phone-ish preview showing the tally identity ---- */
.stage {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.card-emu {
    border-radius: 16px;
    padding: 16px 16px 14px;
    background: #fff;
    border: 1px solid var(--stroke);
    position: relative;
    overflow: hidden;
}

.card-emu + .card-emu {
    margin-top: 12px;
}

.bar {
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 5px;
    border-radius: 6px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 12px;
}

.name {
    font-weight: 700;
}

.all {
    text-align: right;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.all b {
    display: block;
    color: var(--ink);
    font-size: 18px;
}

.tally {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 12px 0 2px 12px;
}

.grp {
    position: relative;
    display: inline-flex;
    gap: 6px;
}

.st {
    width: 4px;
    height: 38px;
    border-radius: 2px;
    background: var(--accent);
}

.grp .cross {
    position: absolute;
    left: -4px;
    top: 16px;
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent);
    transform: rotate(-24deg);
}

.today {
    padding-left: 12px;
    color: var(--muted);
    font-size: 12.5px;
}

.today b {
    color: var(--ink);
    font-size: 26px;
    font-weight: 800;
    margin-right: 6px;
}

/* ---- Section scaffolding ---- */
.section {
    padding: 40px 4px 8px;
}

.section-head {
    max-width: 60ch;
    margin: 0 auto 26px;
    text-align: center;
}

.section-head .eyebrow {
    margin: 0 0 10px;
    color: var(--accent-ink);
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 12px;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -0.4px;
    font-weight: 800;
}

.section-head p {
    margin: 0;
    color: #4a4f55;
    font-size: 16px;
}

/* ---- Promise band ---- */
.promise {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 26px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-top: 8px;
}

.promise h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3.4vw, 34px);
    letter-spacing: -0.5px;
    font-weight: 800;
}

.promise p {
    margin: 0;
    color: #4a4f55;
    font-size: 16px;
    max-width: 40ch;
}

.promise-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.tap-btn {
    width: 108px;
    height: 108px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-ink));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    font-weight: 300;
    box-shadow: 0 18px 44px rgba(47, 166, 155, 0.4);
}

.tap-caption {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

/* ---- Feature grid ---- */
.features {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    padding: 0 4px;
}

.feat {
    grid-column: span 4;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 18px 16px 20px;
    position: relative;
    overflow: hidden;
}

.feat .fbar {
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 5px;
    border-radius: 6px;
}

.feat h3 {
    margin: 2px 0 6px;
    font-size: 15.5px;
}

.feat p {
    margin: 0;
    color: #4a4f55;
    font-size: 13.5px;
}

/* ---- Screenshots — real shots in tasteful device frames ---- */
.shots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    padding: 0 4px;
    justify-items: center;
}

.shot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 240px;
    width: 100%;
}

/* iPhone-style frame around each screenshot */
.phone {
    position: relative;
    width: 100%;
    aspect-ratio: 1320 / 2868;
    background: #1A1D21;
    border-radius: 30px;
    padding: 9px;
    box-shadow: var(--shadow);
}

.phone::before {
    /* the pill / dynamic-island notch */
    content: "";
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 34%;
    height: 12px;
    border-radius: 999px;
    background: #000;
    z-index: 2;
}

.phone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.shot .shot-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #5a5f65;
    text-align: center;
}

/* ---- Story ---- */
.story {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 26px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-top: 8px;
}

.story-mark {
    display: flex;
    justify-content: center;
}

.story-mark img {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    box-shadow: 0 18px 44px rgba(26, 29, 33, 0.24);
}

.story h2 {
    margin: 0 0 12px;
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: -0.4px;
    font-weight: 800;
}

.story p {
    margin: 0 0 12px;
    color: #3a3f45;
    font-size: 16px;
}

.story p:last-child {
    margin-bottom: 0;
}

.story .quote {
    font-weight: 700;
    color: var(--ink);
}

/* ---- Privacy line ---- */
.privacy-line {
    text-align: center;
    background: linear-gradient(180deg, rgba(47, 166, 155, 0.08), rgba(47, 166, 155, 0.03));
    border: 1px solid rgba(47, 166, 155, 0.25);
    border-radius: 22px;
    padding: 34px 26px;
    margin-top: 8px;
}

.privacy-line h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: -0.4px;
    font-weight: 800;
}

.privacy-line p {
    margin: 0 auto 16px;
    max-width: 54ch;
    color: #3a3f45;
    font-size: 16px;
}

.privacy-line a.link {
    color: var(--accent-ink);
    font-weight: 700;
    border-bottom: 1px solid rgba(47, 166, 155, 0.5);
}

.privacy-line a.link:hover {
    border-bottom-color: var(--accent-ink);
}

/* ---- Footer ---- */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 4px 0;
    border-top: 1px solid var(--stroke);
    margin-top: 44px;
    color: var(--muted);
    font-size: 13px;
    flex-wrap: wrap;
}

.footer a {
    border-bottom: 1px solid var(--stroke);
}

.footer a:hover {
    border-bottom-color: rgba(26, 29, 33, 0.35);
}

.footer-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links .sep {
    opacity: 0.4;
}

/* ---- Content pages (privacy / support) ---- */
.doc {
    max-width: 760px;
    margin: 0 auto;
}

.doc-card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 36px 40px;
}

.doc h1 {
    margin: 0 0 6px;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.6px;
    font-weight: 800;
}

.doc .updated {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 13.5px;
}

.doc .lead {
    font-size: 17px;
    color: #3a3f45;
    margin: 0 0 22px;
}

.doc h2 {
    margin: 26px 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.doc h2:first-of-type {
    margin-top: 8px;
}

.doc p {
    margin: 0 0 14px;
    color: #3a3f45;
    font-size: 15.5px;
}

.doc a.inline {
    color: var(--accent-ink);
    font-weight: 600;
    border-bottom: 1px solid rgba(47, 166, 155, 0.5);
}

.doc a.inline:hover {
    border-bottom-color: var(--accent-ink);
}

.doc .highlight {
    background: linear-gradient(180deg, rgba(47, 166, 155, 0.10), rgba(47, 166, 155, 0.04));
    border: 1px solid rgba(47, 166, 155, 0.25);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 0 0 22px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.doc .contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 12px 20px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(180deg, var(--accent), var(--accent-ink));
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(47, 166, 155, 0.28);
}

.doc .contact-cta:hover {
    box-shadow: 0 16px 38px rgba(47, 166, 155, 0.34);
}

.doc .contact-cta + h2 {
    margin-top: 34px;
}

/* FAQ */
.faq {
    margin-top: 6px;
}

.faq-item {
    border-top: 1px solid var(--stroke);
    padding: 18px 2px;
}

.faq-item:last-child {
    border-bottom: 1px solid var(--stroke);
}

.faq-item h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.faq-item p {
    margin: 0;
    color: #3a3f45;
    font-size: 15px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
    color: var(--muted);
    font-weight: 600;
    font-size: 13.5px;
}

.back-link:hover {
    color: var(--ink);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .promise,
    .story {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .promise p,
    .story p {
        max-width: none;
    }

    .promise-visual {
        order: -1;
    }

    .story-mark {
        order: -1;
    }

    .shots {
        grid-template-columns: repeat(2, 1fr);
    }

    .feat {
        grid-column: span 6;
    }
}

@media (max-width: 560px) {
    .top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .feat {
        grid-column: span 12;
    }

    .shots {
        grid-template-columns: repeat(2, 1fr);
    }

    .doc-card {
        padding: 26px 22px;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
