/* Budget 66 — standalone product site. Shares nothing with the portfolio CSS
   on purpose: this should read as its own product, not a portfolio page. */

:root {
    --b66-bg: #ffffff;
    --b66-bg-alt: #f5f5f7;
    --b66-surface: #ffffff;
    --b66-surface-2: #f5f5f7;
    --b66-text: #1d1d1f;
    --b66-muted: #6e6e73;
    --b66-line: rgba(0, 0, 0, 0.10);
    --b66-gold: #E0A422;
    --b66-gold-soft: rgba(224, 164, 34, 0.12);
    --b66-green: #15803D;
    --b66-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06);
    --b66-nav-bg: rgba(255, 255, 255, 0.72);
    --b66-radius: 20px;
    --b66-max: 1120px;
}

.dark {
    --b66-bg: #000000;
    --b66-bg-alt: #09090b;
    --b66-surface: #111113;
    --b66-surface-2: #17171a;
    --b66-text: #f5f5f7;
    --b66-muted: #98989d;
    --b66-line: rgba(255, 255, 255, 0.12);
    --b66-gold: #F5C451;
    --b66-gold-soft: rgba(245, 196, 81, 0.14);
    --b66-green: #4ADE80;
    --b66-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .45);
    --b66-nav-bg: rgba(0, 0, 0, 0.68);
}

* { box-sizing: border-box; }

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

body.b66 {
    margin: 0;
    background: var(--b66-bg);
    color: var(--b66-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
}

.b66 a { color: inherit; text-decoration: none; }
.b66 img { max-width: 100%; display: block; }
.b66 h1, .b66 h2, .b66 h3, .b66 h4 { letter-spacing: -0.028em; line-height: 1.06; margin: 0; font-weight: 700; }

.b66-wrap { width: 100%; max-width: var(--b66-max); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.b66-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--b66-nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--b66-line);
}

.b66-nav-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 72px;
    max-width: var(--b66-max);
    margin: 0 auto;
    padding: 0 24px;
}

.b66-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; }
.b66-brand img { width: 28px; height: 28px; border-radius: 7px; }
.b66-brand-stack { display: flex; flex-direction: column; line-height: 1.15; }
.b66-brand-pre { font-size: 0.7rem; font-weight: 400; letter-spacing: 0; color: var(--b66-muted); }

.b66-nav-links { display: flex; align-items: center; gap: 26px; margin: 0 auto; }
.b66-nav-links a { font-size: 0.875rem; color: var(--b66-muted); transition: color .18s ease; }
.b66-nav-links a:hover, .b66-nav-links a.active { color: var(--b66-text); }

.b66-nav-actions { display: flex; align-items: center; gap: 10px; }

.b66-icon-btn {
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid var(--b66-line);
    background: transparent;
    color: var(--b66-text);
    cursor: pointer;
    padding: 0;
}
.b66-icon-btn:hover { background: var(--b66-surface-2); }
.b66-icon-btn .material-icons-round { font-size: 18px; }
.b66-burger { display: none; }

.b66-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease, background .15s ease;
    white-space: nowrap;
}
.b66-btn:active { transform: scale(0.97); }
/* `.b66 a { color: inherit }` outranks a single class, so these carry the
   .b66 prefix: without it a gold <a> button renders white-on-yellow in dark. */
.b66 .b66-btn--primary { background: var(--b66-text); color: var(--b66-bg); }
.b66 .b66-btn--primary:hover { opacity: .85; }
.b66 .b66-btn--gold { background: var(--b66-gold); color: #17120a; }
.b66 .b66-btn--gold:hover { opacity: .88; }
.b66 .b66-btn--ghost { border-color: var(--b66-line); color: var(--b66-text); background: transparent; }
.b66-btn--ghost:hover { background: var(--b66-surface-2); }
.b66-btn--sm { padding: 8px 16px; font-size: 0.82rem; }

.b66-nav .b66-btn--sm { display: inline-flex; }

/* mobile nav */
.b66-nav-drop { display: none; }
@media (max-width: 860px) {
    .b66-nav-links { display: none; }
    .b66-burger { display: grid; }
    .b66-nav-inner { gap: 12px; }
    .b66-nav.open .b66-nav-drop {
        display: block;
        border-top: 1px solid var(--b66-line);
        background: var(--b66-bg);
        padding: 8px 24px 18px;
    }
    .b66-nav-drop a {
        display: block;
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--b66-line);
        color: var(--b66-text);
    }
    .b66-nav-drop a:last-child { border-bottom: 0; }
}

/* ---------- layout primitives ---------- */
.b66-section { padding: 96px 0; }
.b66-section--tight { padding: 64px 0; }
.b66-section--alt { background: var(--b66-bg-alt); }

.b66-h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; }
.b66-h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.b66-h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

.b66-lede {
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    color: var(--b66-muted);
    line-height: 1.5;
    max-width: 48ch;
    margin: 20px 0 0;
}

.b66-center { text-align: center; }
.b66-center .b66-lede { margin-left: auto; margin-right: auto; }

.b66-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.b66-center .b66-cta-row { justify-content: center; }

.b66-note { font-size: 0.82rem; color: var(--b66-muted); margin-top: 14px; }

/* ---------- hero ---------- */
.b66-hero { position: relative; padding: 88px 0 0; overflow: hidden; }
.b66-hero::before {
    content: "";
    position: absolute;
    top: -220px; left: 50%;
    width: 900px; height: 620px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, var(--b66-gold-soft), transparent);
    pointer-events: none;
}
.b66-hero-inner { position: relative; text-align: center; }
.b66-hero-inner .b66-cta-row { justify-content: center; }
.b66-hero-inner .b66-lede { margin-left: auto; margin-right: auto; }

.b66-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--b66-line);
    background: var(--b66-gold-soft);
    color: var(--b66-text);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.b66-badge span.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--b66-gold); }

.b66-hero-shots {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 22px;
    margin-top: 64px;
}
.b66-hero-shots .b66-phone { flex: 0 0 244px; }
.b66-hero-shots .b66-phone:nth-child(odd) { transform: translateY(28px) scale(.94); opacity: .92; }

@media (max-width: 760px) {
    .b66-hero-shots .b66-phone:nth-child(odd) { display: none; }
}

/* ---------- phone frame ---------- */
/* the screenshots are already framed device mockups on transparency,
   so the bezel below is only drawn for empty slots */
.b66-phone {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.28));
}
.b66-phone-screen {
    position: relative;
    aspect-ratio: 1419 / 2796;
    display: grid;
    place-items: center;
}
.b66-phone-screen img { width: 100%; height: 100%; object-fit: contain; }
.b66-phone-screen .b66-shot-ph {
    display: none;
    padding: 24px;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--b66-muted);
}
.b66-phone.is-empty .b66-phone-screen img { display: none; }
.b66-phone.is-empty .b66-shot-ph { display: block; }
.b66-phone.is-empty {
    border-radius: 42px;
    padding: 10px;
    background: linear-gradient(160deg, #2c2c2e, #0a0a0a);
    box-shadow: var(--b66-shadow);
    filter: none;
}
.b66-phone.is-empty .b66-phone-screen {
    border-radius: 33px;
    overflow: hidden;
    aspect-ratio: 9 / 19.5;
    background:
        repeating-linear-gradient(45deg, var(--b66-surface) 0 10px, var(--b66-surface-2) 10px 20px);
}
.b66-phone.is-empty::after {
    content: "";
    position: absolute;
    top: 20px; left: 50%;
    width: 82px; height: 22px;
    transform: translateX(-50%);
    background: #000;
    border-radius: 999px;
}
.b66-phone-cap { margin-top: 14px; text-align: center; font-size: 0.82rem; color: var(--b66-muted); }

/* ---------- strip ---------- */
.b66-strip {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
    padding: 26px 0;
    border-top: 1px solid var(--b66-line);
    border-bottom: 1px solid var(--b66-line);
    font-size: 0.86rem;
    color: var(--b66-muted);
}
.b66-strip span { display: inline-flex; align-items: center; gap: 8px; }
.b66-strip .material-icons-round { font-size: 17px; color: var(--b66-gold); }

/* ---------- cards ---------- */
.b66-grid { display: grid; gap: 20px; margin-top: 52px; }
.b66-grid--3 { grid-template-columns: repeat(3, 1fr); }
.b66-grid--2 { grid-template-columns: repeat(2, 1fr); }
.b66-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 940px) {
    .b66-grid--3, .b66-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .b66-grid--2, .b66-grid--3, .b66-grid--4 { grid-template-columns: 1fr; }
}

.b66-card {
    background: var(--b66-surface);
    border: 1px solid var(--b66-line);
    border-radius: var(--b66-radius);
    padding: 28px;
    box-shadow: var(--b66-shadow);
}
.b66-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.b66-card p { margin: 0; color: var(--b66-muted); font-size: 0.95rem; }

.b66-card-icon {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--b66-gold-soft);
    color: var(--b66-gold);
    margin-bottom: 18px;
}
.b66-card-icon .material-icons-round { font-size: 22px; }

/* ---------- alternating feature rows ---------- */
.b66-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 72px 0;
    border-top: 1px solid var(--b66-line);
}
.b66-row:first-of-type { border-top: 0; }
.b66-row--flip .b66-row-media { order: -1; }
@media (max-width: 860px) {
    .b66-row { grid-template-columns: 1fr; gap: 40px; padding: 52px 0; }
    .b66-row--flip .b66-row-media { order: 0; }
}

.b66-list { margin: 26px 0 0; padding: 0; list-style: none; }
.b66-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--b66-muted);
    font-size: 0.97rem;
}
.b66-list li strong { color: var(--b66-text); font-weight: 600; }
.b66-list li::before {
    content: "check";
    font-family: "Material Icons Round";
    position: absolute;
    left: 0; top: 1px;
    font-size: 18px;
    color: var(--b66-gold);
}
.b66-list li.no::before { content: "close"; color: var(--b66-muted); }

/* ---------- steps ---------- */
.b66-steps { counter-reset: step; display: grid; gap: 18px; margin-top: 40px; }
.b66-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 18px;
    align-items: start;
    padding: 20px 22px;
    border: 1px solid var(--b66-line);
    border-radius: 16px;
    background: var(--b66-surface);
}
.b66-step::before {
    counter-increment: step;
    content: counter(step);
    display: grid; place-items: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--b66-gold);
    color: #17120a;
    font-weight: 700;
    font-size: 0.85rem;
}
.b66-step h4 { font-size: 1rem; margin-bottom: 4px; }
.b66-step p { margin: 0; color: var(--b66-muted); font-size: 0.92rem; }

/* ---------- pricing ---------- */
.b66-toggle {
    position: relative;
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: var(--b66-surface-2);
    border: 1px solid var(--b66-line);
    margin: 32px auto 0;
}
/* the pill slides between the two halves instead of blinking across */
.b66-toggle::before {
    content: "";
    position: absolute;
    top: 4px; bottom: 4px; left: 0;
    width: var(--thumb-w, 50%);
    transform: translateX(var(--thumb-x, 4px));
    border-radius: 999px;
    background: var(--b66-text);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1), width .32s cubic-bezier(.4, 0, .2, 1);
}
.b66-toggle button {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    color: var(--b66-muted);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s ease;
}
.b66-toggle button.active { color: var(--b66-bg); }
@media (prefers-reduced-motion: reduce) { .b66-toggle::before { transition: none; } }
.b66-save { color: var(--b66-gold); font-size: 0.78rem; font-weight: 700; }
.b66-toggle button.active .b66-save { color: inherit; opacity: .8; }

.b66-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; align-items: start; }
@media (max-width: 940px) { .b66-plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.b66-plan { position: relative; display: flex; flex-direction: column; height: 100%; }
.b66-plan--featured { border-color: var(--b66-gold); }
.b66-plan-tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--b66-gold); color: #17120a;
    font-size: 0.7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 999px;
}
.b66-plan-name { font-size: 1.05rem; font-weight: 700; }
.b66-plan-desc { color: var(--b66-muted); font-size: 0.9rem; margin: 6px 0 20px; min-height: 2.6em; }
.b66-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 22px; }
.b66-price-amt { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; }
.b66-price-per { color: var(--b66-muted); font-size: 0.9rem; }
.b66-plan .b66-list { margin-top: 0; flex: 1; }
.b66-plan .b66-btn { width: 100%; margin-top: 24px; }

.b66-table-wrap { overflow-x: auto; margin-top: 44px; border: 1px solid var(--b66-line); border-radius: var(--b66-radius); }
.b66-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; background: var(--b66-surface); }
.b66-table th, .b66-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--b66-line); }
.b66-table th { font-weight: 600; }
.b66-table thead th { font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--b66-muted); }
.b66-table td { color: var(--b66-muted); }
.b66-table tr:last-child th, .b66-table tr:last-child td { border-bottom: 0; }
.b66-table .yes { color: var(--b66-green); font-weight: 600; }

/* ---------- FAQ ---------- */
.b66-faq { margin-top: 44px; border-top: 1px solid var(--b66-line); }
.b66-faq details { border-bottom: 1px solid var(--b66-line); }
.b66-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 40px 22px 0;
    font-weight: 600;
    font-size: 1.02rem;
    position: relative;
}
.b66-faq summary::-webkit-details-marker { display: none; }
.b66-faq summary::after {
    content: "add";
    font-family: "Material Icons Round";
    position: absolute; right: 0; top: 20px;
    font-size: 22px;
    color: var(--b66-muted);
    transition: transform .2s ease;
}
.b66-faq details[open] summary::after { content: "remove"; }
.b66-faq .b66-faq-a { padding: 0 40px 24px 0; margin: 0; color: var(--b66-muted); font-size: 0.97rem; }

/* ---------- changelog ---------- */
.b66-release { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--b66-line); }
.b66-release-meta { color: var(--b66-muted); font-size: 0.9rem; }
.b66-release-ver { font-size: 1.4rem; font-weight: 700; color: var(--b66-text); letter-spacing: -0.03em; }
@media (max-width: 700px) { .b66-release { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- doc pages (privacy / terms / support) ---------- */
.b66-doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 40px; }
.b66-doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.b66-doc .b66-doc-meta { color: var(--b66-muted); font-size: 0.9rem; margin: 14px 0 44px; }
.b66-doc h2 { font-size: 1.25rem; margin: 44px 0 12px; }
.b66-doc p, .b66-doc li { color: var(--b66-muted); font-size: 1rem; line-height: 1.7; }
.b66-doc strong { color: var(--b66-text); font-weight: 600; }
.b66-doc a { color: var(--b66-gold); text-decoration: underline; text-underline-offset: 3px; }
.b66-doc ul { padding-left: 22px; }
.b66-doc li { margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.b66-cta-band {
    border-radius: 28px;
    border: 1px solid var(--b66-line);
    background: var(--b66-surface);
    padding: 64px 32px;
    text-align: center;
    box-shadow: var(--b66-shadow);
}

/* ---------- footer ---------- */
.b66-footer {
    border-top: 1px solid var(--b66-line);
    padding: 56px 0 40px;
    background: var(--b66-bg-alt);
    font-size: 0.88rem;
}
.b66-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 780px) { .b66-footer-grid { grid-template-columns: 1fr 1fr; } }
.b66-footer h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--b66-muted); margin-bottom: 14px; font-weight: 600; }
.b66-footer a { display: block; color: var(--b66-muted); padding: 6px 0; }
.b66-footer a:hover { color: var(--b66-text); }
.b66-footer-about p { color: var(--b66-muted); max-width: 34ch; margin: 14px 0 0; }
.b66-footer-bottom {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
    margin-top: 44px; padding-top: 24px;
    border-top: 1px solid var(--b66-line);
    color: var(--b66-muted);
}

/* ---------- reveal ---------- */
.b66-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.b66-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .b66-reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* footer links are block-level; the brand lockup is not */
.b66-footer .b66-brand { display: inline-flex; padding: 0; color: var(--b66-text); }
.b66-footer .b66-brand:hover { color: var(--b66-text); }
