/* Tallē — YNAB-inspired, Google Sans Flex, dark/light auto. */

@font-face {
    font-family: "Google Sans Flex";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url("fonts/GoogleSansFlex-Regular.ttf") format("truetype");
}
@font-face {
    font-family: "Google Sans Flex";
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url("fonts/GoogleSansFlex-Medium.ttf") format("truetype");
}
@font-face {
    font-family: "Google Sans Flex";
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url("fonts/GoogleSansFlex-SemiBold.ttf") format("truetype");
}
@font-face {
    font-family: "Google Sans Flex";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url("fonts/GoogleSansFlex-Bold.ttf") format("truetype");
}

:root {
    --accent: #89ff00;           /* Tallē green, direct from logo — for backgrounds/buttons on dark */
    --accent-ink: #142200;        /* legible text atop accent */
    --accent-text: #3d7a00;       /* darker green for legible text on light backgrounds */
    --bg: #f4f4f4;                /* neutral light */
    --bg-soft: #eaeaea;
    --bg-elevated: #ffffff;
    --fg: #0e1116;
    --fg-muted: #5a6172;
    --fg-subtle: #8a90a0;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.16);
    --max-width: 1120px;
    --content-width: 760px;
    --radius: 14px;
    --radius-lg: 22px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #15181f;
        --bg-soft: #141820;
        --bg-elevated: #181c26;
        --fg: #ecedef;
        --fg-muted: #a1a7b3;
        --fg-subtle: #6e7482;
        --border: rgba(255, 255, 255, 0.08);
        --border-strong: rgba(255, 255, 255, 0.16);
        --accent-text: #a8ff33;   /* brighter green for legibility on dark */
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--fg);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
a:hover { opacity: 0.7; }

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.site-header .brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.site-header .brand img {
    height: 26px;
    width: auto;
}
.site-header .brand-img-light { display: block !important; }
.site-header .brand-img-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
    .site-header .brand-img-light { display: none !important; }
    .site-header .brand-img-dark { display: block !important; }
}
.site-header nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.site-header nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-muted);
}
.site-header nav a:hover { color: var(--fg); opacity: 1; }

/* Section rhythm */
section {
    padding: 80px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
}
section.tight { padding: 56px 32px; }

/* Hero */
.hero {
    padding: 80px 32px 120px;
    text-align: center;
}

/* Split hero — text left, device right, on desktop */
.hero-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
    text-align: left;
    padding: 40px 32px 64px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.hero-split .hero-copy {
    max-width: 620px;
}
.hero-split .eyebrow {
    margin-bottom: 24px;
}
.hero-split h1 {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    font-size: clamp(36px, 4.2vw, 56px);
    line-height: 1.08;
    white-space: nowrap;
}
@media (max-width: 960px) {
    .hero-split h1 { white-space: normal; }
}
.hero-split .lede {
    margin-left: 0;
    margin-right: 0;
    max-width: 520px;
}
.hero-split .cta-row {
    justify-content: flex-start;
}
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}
.hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(closest-side at 60% 50%, rgba(137, 255, 0, 0.22), rgba(137, 255, 0, 0) 70%),
        radial-gradient(closest-side at 30% 70%, rgba(137, 255, 0, 0.10), rgba(137, 255, 0, 0) 65%);
    filter: blur(8px);
    z-index: 0;
}
.hero-visual .hero-device {
    position: relative;
    z-index: 1;
    max-width: 290px;
    transform: rotate(-4deg);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-visual .hero-device:hover {
    transform: rotate(-2deg) translateY(-6px);
}
.hero-visual .hero-device img {
    border-radius: 44px;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        0 18px 40px rgba(0, 0, 0, 0.14),
        0 48px 100px rgba(0, 0, 0, 0.12);
}
@media (prefers-color-scheme: dark) {
    .hero-visual .hero-device img {
        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.5),
            0 28px 64px rgba(0, 0, 0, 0.45),
            0 56px 140px rgba(255, 255, 255, 0.08);
    }
    .hero-glow {
        background:
            radial-gradient(closest-side at 60% 50%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 70%),
            radial-gradient(closest-side at 30% 70%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 65%);
    }
}

/* Tablet: narrower but still side-by-side */
@media (max-width: 960px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
        padding: 64px 24px 96px;
    }
    .hero-split .hero-copy {
        max-width: 640px;
        margin: 0 auto;
    }
    .hero-split .cta-row {
        justify-content: center;
    }
    .hero-visual {
        min-height: 440px;
    }
    .hero-visual .hero-device {
        max-width: 280px;
        transform: rotate(-3deg);
    }
}
@media (max-width: 600px) {
    .hero-split {
        padding: 40px 20px 80px;
        gap: 40px;
    }
    .hero-visual {
        min-height: 380px;
    }
    .hero-visual .hero-device {
        max-width: 240px;
        transform: rotate(-3deg);
    }
    .hero-visual .hero-device img {
        border-radius: 38px;
    }
}
.hero .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fg-muted);
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-soft);
    margin-bottom: 32px;
}
.hero h1 {
    font-size: clamp(44px, 7vw, 88px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin: 0 0 24px;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}
/* hero h1 accent removed — both statements plain type */
.hero .lede {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--fg-muted);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.5;
}
.hero .cta-row {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(137, 255, 0, 0.18);
}
.btn-primary:hover { transform: translateY(-1px); opacity: 0.95; }
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: var(--fg);
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s ease;
}
.btn-ghost:hover { background: var(--bg-soft); opacity: 1; }

/* Hero device base */
.hero-device {
    display: block;
    line-height: 0;
}
.hero-device img {
    display: block;
    width: 100%;
    height: auto;
}

/* Manifesto */
.manifesto {
    text-align: center;
    padding: 72px 32px;
}
.manifesto .script {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}
.manifesto h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 24px;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}
.manifesto p {
    font-size: 19px;
    color: var(--fg-muted);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}
/* DIAGNOSTIC v2 — minimal test styles, no pseudo-elements, no section. prefix */
.verse-band-v2 {
    background: #0a0c10;
    color: #f7f7ea;
    padding: 96px 32px;
    text-align: center;
}
.verse-eyebrow-v2 {
    color: #89ff00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 40px;
}
.verse-text-v2 {
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: 44px;
    font-style: italic;
    line-height: 1.3;
    max-width: 820px;
    margin: 0 auto 36px;
}
.verse-cite-v2 {
    color: #89ff00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .verse-band-v2 { padding: 80px 24px; }
    .verse-text-v2 { font-size: 28px; }
    .verse-eyebrow-v2 { margin-bottom: 28px; }
}

/* Studios row */
.studios {
    padding: 80px 32px;
}
.studios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.studio-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.studio-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.studio-card h3 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 8px;
}
.studio-card .studio-wordmark {
    margin: 0 0 16px;
    line-height: 0;
}
.studio-card .studio-wordmark img {
    height: 36px;
    width: auto;
    display: block;
}
@media (max-width: 600px) {
    .studio-card .studio-wordmark img { height: 30px; }
}
.studio-card .tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--fg-subtle);
    margin-bottom: 12px;
}
.studio-card p {
    color: var(--fg-muted);
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
}
@media (max-width: 760px) {
    .studios-grid { grid-template-columns: 1fr; }
    .studio-card { padding: 32px; }
}

/* Pillars */
.pillars h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0 auto 12px;
    max-width: 760px;
}
.pillars .section-lede {
    text-align: center;
    color: var(--fg-muted);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto 64px;
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pillar {
    padding: 32px 28px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
.pillar .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--accent-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 20px;
}
.pillar h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
.pillar p {
    color: var(--fg-muted);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 760px) {
    .pillars-grid { grid-template-columns: 1fr; }
}

/* Problem / Solution matrix */
.pain {
    background: var(--bg-soft);
    padding: 88px 32px;
    max-width: none;
    margin: 0;
}
.pain .inner {
    max-width: var(--max-width);
    margin: 0 auto;
}
.pain h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0 auto 56px;
    max-width: 760px;
}
.pain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.pain-item {
    padding: 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.pain-item .q {
    font-size: 17px;
    font-weight: 600;
    color: var(--fg);
    margin: 0 0 8px;
}
.pain-item .a {
    font-size: 15px;
    color: var(--fg-muted);
    margin: 0;
    line-height: 1.55;
}
.pain-item .a .accent-text {
    color: var(--accent-text);
    font-weight: 600;
}
@media (max-width: 760px) {
    .pain-grid { grid-template-columns: 1fr; }
}

/* Early access CTA */
.early {
    text-align: center;
    padding: 96px 32px;
}
.early h2 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 auto 16px;
    max-width: 680px;
    line-height: 1.1;
}
.early p {
    font-size: 18px;
    color: var(--fg-muted);
    max-width: 520px;
    margin: 0 auto 36px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 32px;
    margin-top: 0;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    color: var(--fg-muted);
    font-size: 14px;
}
.footer-inner .tag {
    color: var(--fg-subtle);
    font-size: 13px;
    letter-spacing: 0.02em;
}
.footer-inner nav {
    display: flex;
    gap: 24px;
}
.footer-inner nav a {
    color: var(--fg-muted);
    font-size: 14px;
}
.footer-inner nav a:hover { color: var(--fg); opacity: 1; }

/* Long-form pages (privacy, terms) */
article.long-form {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 48px 32px 96px;
}
article.long-form h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
article.long-form .updated {
    color: var(--fg-muted);
    font-size: 14px;
    margin-bottom: 40px;
}
article.long-form h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 40px 0 14px;
}
article.long-form p,
article.long-form ul,
article.long-form ol {
    margin: 0 0 16px;
}
article.long-form ul, article.long-form ol { padding-left: 24px; }
article.long-form li { margin-bottom: 6px; }
article.long-form strong { color: var(--fg); }
article.long-form hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}
article.long-form .callout {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    font-size: 15px;
    color: var(--fg-muted);
    margin: 28px 0;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .site-header { padding: 18px 20px; }
    .site-header .brand img { height: 22px; }
    section, .pain { padding: 64px 20px; }
    .hero { padding: 56px 20px 80px; }
    .manifesto { padding: 72px 20px; }
    .early { padding: 80px 20px; }
    article.long-form { padding: 32px 20px 64px; }
    article.long-form h1 { font-size: 32px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
