/* Bütçe Planla — promotional site. Colours are the app's own (Mobile/Resources/Styles/Colors.xaml), the *Dark keys for dark mode. */
:root {
    --bg: #F4F7F7;
    --surface: #FFFFFF;
    --surface-alt: #EAF1F1;
    --text: #152526;
    --muted: #5E7072;
    --border: #DDE7E7;
    --primary: #0E7C82;
    --primary-soft: #E2F4F3;
    /* The app's meaning colours; the *-text variants are darker so small text on light backgrounds stays readable (WCAG AA). */
    --income: #10B981;
    --income-soft: #E3F8F0;
    --income-text: #047857;
    --expense: #F43F5E;
    --expense-soft: #FDE7EB;
    --expense-text: #BE123C;
    --warning: #D97706;
    --warning-soft: #FEF3E2;
    --warning-text: #B45309;
    --info: #2563EB;
    --info-soft: #E7EEFD;
    --info-text: #1D4ED8;
    /* The app icon's gradient; filled buttons end on a deeper violet so white text keeps its contrast. */
    --icon-grad: linear-gradient(180deg, #14B8A6, #0E8C92);
    --btn-grad: linear-gradient(135deg, #0E8C92, #0B6E73);
    --accent-text: linear-gradient(92deg, #0E7C82, #12A39B 55%, #D4930C);
    --radius: 22px;
    --shadow-sm: 0 1px 2px rgba(21, 37, 38, .05), 0 6px 16px -8px rgba(10, 80, 84, .12);
    --shadow: 0 2px 6px rgba(21, 37, 38, .04), 0 20px 44px -20px rgba(10, 80, 84, .3);
    --shadow-lg: 0 34px 70px -30px rgba(10, 80, 84, .5), 0 14px 30px -18px rgba(21, 37, 38, .3);
    --max: 1160px;
    --gutter: 24px;
    --nav-h: 68px;
    color-scheme: light;
}

/* Dark colours: the visitor chose dark with the header button, or chose nothing and the system is dark. The choice is
   remembered (localStorage) and set on <html data-theme> before the first paint. */
:root[data-theme="dark"] {
    --bg: #0C1516;
    --surface: #142022;
    --surface-alt: #1B2B2D;
    --text: #EEF5F5;
    --muted: #9DB1B2;
    --border: #253739;
    --primary: #1FA39C;
    --primary-soft: #123536;
    --income: #34D399;
    --income-soft: #123A2E;
    --income-text: #34D399;
    --expense: #FB7185;
    --expense-soft: #44192A;
    --expense-text: #FB7185;
    --warning: #FBBF24;
    --warning-soft: #3D2E12;
    --warning-text: #FBBF24;
    --info: #60A5FA;
    --info-soft: #172846;
    --info-text: #60A5FA;
    --accent-text: linear-gradient(92deg, #5EEAD4, #2DD4BF 55%, #FCD34D);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow: 0 20px 44px -22px rgba(0, 0, 0, .75);
    --shadow-lg: 0 34px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(31, 163, 156, .06);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0C1516;
        --surface: #142022;
        --surface-alt: #1B2B2D;
        --text: #EEF5F5;
        --muted: #9DB1B2;
        --border: #253739;
        --primary: #1FA39C;
        --primary-soft: #123536;
        --income: #34D399;
        --income-soft: #123A2E;
        --income-text: #34D399;
        --expense: #FB7185;
        --expense-soft: #44192A;
        --expense-text: #FB7185;
        --warning: #FBBF24;
        --warning-soft: #3D2E12;
        --warning-text: #FBBF24;
        --info: #60A5FA;
        --info-soft: #172846;
        --info-text: #60A5FA;
        --accent-text: linear-gradient(92deg, #5EEAD4, #2DD4BF 55%, #FCD34D);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
        --shadow: 0 20px 44px -22px rgba(0, 0, 0, .75);
        --shadow-lg: 0 34px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(31, 163, 156, .06);
        color-scheme: dark;
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
    margin: 0;
    font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    /* Decorations bleed past the edges on purpose; the page itself never scrolls sideways. */
    overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
    position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 12px;
    background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

/* Meaning tones: --tone is the solid colour (chart marks, dots), --tone-soft / --tone-text the badge look. */
.tone-primary { --tone: var(--primary); --tone-soft: var(--primary-soft); --tone-text: var(--primary); }
.tone-income { --tone: var(--income); --tone-soft: var(--income-soft); --tone-text: var(--income-text); }
.tone-expense { --tone: var(--expense); --tone-soft: var(--expense-soft); --tone-text: var(--expense-text); }
.tone-warning { --tone: var(--warning); --tone-soft: var(--warning-soft); --tone-text: var(--warning-text); }
.tone-info { --tone: var(--info); --tone-soft: var(--info-soft); --tone-text: var(--info-text); }
.tone-unpaid { --tone: color-mix(in srgb, var(--expense) 55%, transparent); }

/* ---------- Top bar ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 10px 30px -22px rgba(10, 80, 84, .45); }
.nav-bar { position: relative; display: flex; align-items: center; gap: 16px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.015em; white-space: nowrap; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 11px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--surface-alt); }
.nav-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-links + .nav-end { margin-left: 8px; }
.lang {
    display: inline-flex; align-items: center; gap: 1px; padding: 3px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--border);
}
.lang a { padding: 4px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: var(--primary-soft); color: var(--primary); }
/* Light / dark switch: shows the theme it switches to. */
.theme-toggle {
    display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 999px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 16px;
}
.theme-toggle:hover { color: var(--text); }
.nav-toggle {
    display: none; place-items: center; width: 44px; height: 44px; margin-right: -6px; border: 0; border-radius: 12px;
    background: none; color: var(--text); font-size: 26px; cursor: pointer;
}

/* ---------- Buttons and store badges ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 14px;
    font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s;
}
.btn-primary { background: var(--btn-grad); color: #fff; box-shadow: 0 10px 24px -12px rgba(14, 124, 130, .8); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(14, 124, 130, .9); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 12px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
    display: inline-flex; align-items: center; gap: 12px; min-width: 178px; padding: 10px 18px 10px 14px; border-radius: 14px;
    background: #131A1B; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .14);
    transition: transform .15s, box-shadow .2s;
}
a.store:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store i { font-size: 26px; line-height: 1; }
.store small { display: block; font-size: 10.5px; line-height: 1.2; letter-spacing: .04em; opacity: .8; }
.store strong { display: block; font-size: 17px; line-height: 1.25; font-weight: 700; white-space: nowrap; }
/* Not in the store yet: a quiet dashed badge, clearly not a button. */
.store.is-soon { background: var(--surface); color: var(--muted); border: 1.5px dashed color-mix(in srgb, var(--primary) 40%, var(--border)); cursor: default; }
.store.is-soon small { color: var(--primary); font-weight: 800; opacity: 1; }
.store.is-soon strong { color: var(--text); }

/* ---------- Hero ---------- */
/* The hero starts under the translucent top bar, so its glow has no hard edge there, and fades out before it ends. */
.hero { position: relative; overflow: clip; margin-top: calc(-1 * var(--nav-h)); padding: calc(48px + var(--nav-h)) 0 88px; }
.hero-deco { position: absolute; inset: 0; pointer-events: none; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.blob { position: absolute; border-radius: 50%; filter: blur(20px); }
.blob.b1 { width: 620px; height: 620px; right: -160px; top: -180px; background: radial-gradient(circle, rgba(20, 184, 166, .28), transparent 64%); }
.blob.b2 { width: 520px; height: 520px; left: -200px; bottom: -220px; background: radial-gradient(circle, rgba(247, 183, 51, .20), transparent 64%); }
/* The icon's three-quarter ring, large and faint behind the phones. */
.dial {
    position: absolute; right: max(-60px, calc((100vw - var(--max)) / 2 - 60px)); top: 50%; width: 600px; aspect-ratio: 1;
    transform: translateY(-50%); border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(14, 124, 130, .20) 0 268deg, rgba(14, 124, 130, .06) 268deg 360deg);
    -webkit-mask: radial-gradient(circle, transparent 61%, #000 61.5%, #000 69%, transparent 69.5%);
    mask: radial-gradient(circle, transparent 61%, #000 61.5%, #000 69%, transparent 69.5%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); color: var(--primary); font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; margin: 22px 0 20px; }
/* The gradient is clipped to the text but painted only inside the box, and the tight line-height leaves descenders (g, y)
   outside it: pad the box down past them and pull the next line back so the layout doesn't move. */
.hero h1 .accent { display: inline-block; background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .22em; margin-bottom: -.16em; }
.hero .lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.ticks li { display: inline-flex; align-items: center; gap: 7px; }
.ticks i { color: var(--income-text); }

.hero-visual { position: relative; height: 620px; }
.hero-visual .phone { position: absolute; }
.phone-front { --w: 292px; left: 6%; top: 0; z-index: 3; animation: float 7s ease-in-out infinite; }
.phone-back { --w: 250px; right: 0; top: 66px; z-index: 2; transform: rotate(5deg); }
.float-chip {
    position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; max-width: 260px; padding: 10px 14px 10px 10px;
    border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
    color: var(--muted); font-size: 12.5px; line-height: 1.35; text-align: left;
}
.float-chip b { display: block; color: var(--text); font-size: 14px; }
.float-chip .ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; background: var(--tone-soft); color: var(--tone-text); }
/* Placed off the key figures: the loan chip over the Raporlar phone's chart, the month-end chip by the Özet phone's foot. */
.chip-loan { right: -5%; top: 318px; animation: float 6s ease-in-out infinite .6s; }
.chip-end { left: -7%; bottom: 64px; animation: float 7.5s ease-in-out infinite 1.2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Phone frame (a neutral phone: thin bezel, punch-hole camera); everything scales with --w ---------- */
.phone {
    --w: 260px;
    position: relative; flex: 0 0 auto; width: var(--w); aspect-ratio: 9 / 19.5;
    padding: calc(var(--w) * .03); border-radius: calc(var(--w) * .155);
    background: linear-gradient(150deg, #34464A, #151D1E 42%, #0A0F10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), var(--shadow-lg);
}
.phone::after {
    content: ""; position: absolute; z-index: 5; top: calc(var(--w) * .058); left: 50%; width: calc(var(--w) * .042); aspect-ratio: 1;
    border-radius: 50%; background: #060909; box-shadow: inset 0 0 0 calc(var(--w) * .008) #1E2A2B; transform: translateX(-50%);
}
.phone .screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * .125); background: var(--bg); }
.phone img.shot { object-fit: cover; object-position: top; background: var(--surface); }

/* ---------- The app drawn in HTML: 1em = 15 pt of the app's 390 pt wide screen ---------- */
.app {
    position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
    font-size: calc(var(--w) * .0362); line-height: 1.35; color: var(--text); background: var(--bg); text-align: left;
}
.app i { line-height: 1; }
.app-status { display: flex; justify-content: space-between; align-items: center; padding: 1.15em 2em .3em 2.1em; font-size: .8em; font-weight: 700; }
.app-status span { display: inline-flex; gap: .4em; }
.app-scroll { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 1.07em; padding: .45em 1.07em 0; }
.app-header { display: flex; justify-content: space-between; align-items: center; }
.app-caption { font-size: .867em; color: var(--muted); }
.app-small { font-size: .8em; }
.app-month { display: flex; align-items: center; gap: .1em; margin-left: -.25em; font-size: 1.47em; font-weight: 600; }
.app-month i { font-size: .75em; color: var(--muted); }
.app-actions { display: flex; align-items: center; gap: .55em; font-size: 1.45em; }
.app-bell { position: relative; display: inline-flex; }
.app-bell b {
    position: absolute; top: -.35em; right: -.45em; min-width: 1.2em; height: 1.2em; padding: 0 .3em; border-radius: 999px;
    display: grid; place-items: center; background: var(--warning); color: #fff; font-size: .5em; font-weight: 700;
}
.app-hero { display: flex; flex-direction: column; gap: .35em; padding: 1.33em; border-radius: 1.6em; background: #0E7C82; color: #fff; }
.app-hero-label { font-size: .933em; opacity: .85; }
.app-hero-amount { font-size: 2.53em; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.app-progress { height: .3em; margin: .45em 0; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.app-progress span { display: block; height: 100%; border-radius: inherit; background: #fff; }
.app-hero-row { display: flex; justify-content: space-between; gap: .5em; font-size: .867em; }
.app-card { padding: 1.07em; border-radius: 1.33em; background: var(--surface); border: 1px solid var(--border); }
.app-forecast { display: flex; align-items: flex-start; gap: .8em; padding: .93em; }
.app-badge { flex: 0 0 auto; width: 2.67em; height: 2.67em; border-radius: .89em; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone); }
.app-badge i { font-size: 1.25em; }
.app-forecast-amount { font-size: 1.2em; font-weight: 600; color: var(--income); }
.app-section { display: flex; justify-content: space-between; align-items: baseline; margin: .25em .27em -.55em; }
.app-section b { font-size: 1.13em; font-weight: 600; }
.app-section span { font-size: .867em; font-weight: 600; color: var(--primary); }
.app-indent { margin: 0 .27em -.45em; }
.app-list { padding: .2em .93em; }
.app-row { display: grid; grid-template-columns: 2.93em minmax(0, 1fr) auto; align-items: center; gap: .8em; padding: .67em 0; }
.app-row + .app-row { border-top: 1px solid var(--border); }
.app-icon { width: 2.93em; height: 2.93em; border-radius: .93em; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.app-icon i { font-size: 1.3em; }
.app-row-text { min-width: 0; display: flex; flex-direction: column; }
.app-row-text b, .app-row-text span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-row-text b { font-weight: 600; }
.app-row-text span { font-size: .867em; color: var(--muted); }
.app-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: .3em; }
.app-row-end b { font-weight: 600; }
.app-pill { padding: .3em .92em; border-radius: 1.23em; background: var(--primary-soft); color: var(--primary); font-size: .867em; font-weight: 600; white-space: nowrap; }
.app-fab {
    position: absolute; right: 1.33em; bottom: 5.4em; width: 4em; height: 4em; border-radius: 50%;
    display: grid; place-items: center; background: #0E7C82; color: #fff; box-shadow: 0 .4em 1.07em rgba(14, 124, 130, .4);
}
.app-fab i { font-size: 1.8em; }
.app-tabs { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: .55em .4em 1.7em; background: var(--surface); border-top: 1px solid var(--border); }
.app-tabs span { display: flex; flex-direction: column; align-items: center; gap: .2em; font-size: .733em; font-weight: 600; color: var(--muted); }
.app-tabs i { font-size: 1.9em; }
.app-tabs .on { color: var(--primary); }
.app-title { margin-top: .15em; font-size: 1.73em; font-weight: 600; }
.app-chart { display: block; width: 100%; height: auto; overflow: visible; }
.app-chart .grid { stroke: var(--border); stroke-width: 1; }
.app-chart .grid.zero { stroke: var(--muted); stroke-opacity: .45; }
.app-chart text { fill: var(--muted); font-family: inherit; }
.app-chart .axis { font-size: 10px; text-anchor: end; }
.app-chart .month { font-size: 11px; text-anchor: middle; }
.app-chart .bar-in { fill: var(--income); }
.app-chart .bar-paid { fill: var(--primary); }
.app-chart .bar-unpaid { fill: var(--expense); fill-opacity: .55; }
.app-chart .net-line { fill: none; stroke: var(--text); stroke-opacity: .75; stroke-width: 2; stroke-linejoin: round; }
.app-chart .net-halo { fill: var(--surface); }
.app-chart .net-dot { fill: var(--income); }
.app-chart .net-dot.neg { fill: var(--expense); }
.app-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .15em .9em; margin: .45em 0 .35em; font-size: .8em; color: var(--muted); }
.app-legend span { display: inline-flex; align-items: center; gap: .35em; }
.sw { display: inline-block; width: .8em; height: .8em; border-radius: .25em; background: var(--tone); }
.sw.line { width: 1.1em; height: .22em; border-radius: 1px; background: var(--text); }
.app-donut-card { display: grid; grid-template-columns: 8.4em minmax(0, 1fr); align-items: center; gap: 1.07em; }
.app-donut { display: block; width: 100%; height: auto; }
.app-donut .track { fill: none; stroke: var(--surface-alt); }
.app-donut .slice { fill: none; stroke: var(--tone); }
.app-donut .donut-title { font-size: 9.5px; fill: var(--muted); text-anchor: middle; }
.app-donut .donut-value { font-size: 13px; font-weight: 600; fill: var(--text); text-anchor: middle; }
.app-donut-legend { display: flex; flex-direction: column; gap: .45em; min-width: 0; }
.app-donut-legend div { display: flex; align-items: center; gap: .5em; min-width: 0; }
.app-donut-legend b { display: block; font-size: .867em; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-donut-legend small { display: block; font-size: .8em; color: var(--muted); }
.dot { flex: 0 0 auto; width: .67em; height: .67em; border-radius: 50%; background: var(--tone); }

/* ---------- Sections ---------- */
.block { padding: 96px 0; }
.band { background: var(--surface); border-block: 1px solid var(--border); }
.head { max-width: 680px; margin: 0 0 44px; }
.kicker {
    display: inline-flex; align-items: center; gap: 7px; margin: 0 0 14px; padding: 6px 13px; border-radius: 999px;
    background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px;
}
.kicker.soon { background: var(--warning-soft); color: var(--warning-text); }
.head h2 { margin: 0 0 14px; font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.head p:not(.kicker) { margin: 0; color: var(--muted); font-size: 18px; }

/* Features: a bento of cards, two of them wide with a small picture of what they do */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 18px; }
.tile {
    display: flex; flex-direction: column; padding: 26px 24px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s;
}
.tile:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }
.tile.wide { grid-column: span 2; }
.tile-ic {
    flex: 0 0 auto; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 14px;
    display: grid; place-items: center; font-size: 21px; background: var(--tone-soft); color: var(--tone-text);
}
.tile h3 { margin: 0 0 8px; font-size: 18.5px; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }
.mini-track { height: 10px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; }
.mini-track span { display: block; height: 100%; border-radius: inherit; background: var(--icon-grad); }
.mini-month { margin-top: auto; padding-top: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.mini-fig small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.mini-fig b { font-size: 23px; letter-spacing: -.02em; white-space: nowrap; }
.mini-fig.end { text-align: right; }
.mini-fig.end b { color: var(--income-text); }
.mini-loan { margin-top: auto; padding-top: 20px; display: grid; gap: 8px; }
.mini-loan span { color: var(--primary); font-weight: 700; font-size: 13.5px; }
.mini-ahead { margin-top: auto; padding-top: 24px; height: 176px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 10px; }
.mini-ahead .col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.mini-ahead .col span {
    width: 100%; max-width: 46px; height: calc((100% - 50px) * var(--h)); min-height: 8px; border-radius: 10px 10px 4px 4px;
    background: color-mix(in srgb, var(--primary) 28%, transparent);
}
.mini-ahead .col.after span { background: var(--icon-grad); }
.mini-ahead small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.mini-ahead em {
    position: relative; z-index: 1; font-style: normal; white-space: nowrap; padding: 3px 8px; border-radius: 999px;
    background: var(--income-soft); color: var(--income-text); font-size: 11.5px; font-weight: 700;
}
.mini-toggles { list-style: none; margin: auto 0 0; padding: 20px 0 0; display: grid; gap: 8px; }
.mini-toggles li {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px;
    background: var(--surface-alt); font-size: 14px; font-weight: 600;
}
.switch { position: relative; flex: 0 0 auto; width: 34px; height: 20px; border-radius: 999px; background: var(--border); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(14px); }
.extras { margin-top: 24px; }
.extras ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.extras li {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14.5px;
}
.extras i { color: var(--primary); }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.step-no {
    width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; display: grid; place-items: center;
    background: var(--btn-grad); color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 8px 18px -8px rgba(14, 124, 130, .8);
}
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0 0 20px; color: var(--muted); font-size: 15.5px; }
.step-art { margin-top: auto; display: grid; gap: 8px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.app-ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; background: var(--tone-soft); color: var(--tone-text); }
.mini-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 14px; }
.mini-row b { display: flex; flex-direction: column; min-width: 0; font-weight: 700; line-height: 1.3; }
.mini-row small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pill { padding: 5px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill.tap { animation: tap 2.4s ease-out infinite; }
@keyframes tap { 0% { box-shadow: 0 0 0 0 rgba(14, 124, 130, .45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(14, 124, 130, 0); } }
.chip-done { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 10px; background: var(--income-soft); color: var(--income-text); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.step-arrow { justify-self: center; color: var(--muted); }
.mini-forecast { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.mini-forecast small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.mini-forecast b { font-size: 24px; letter-spacing: -.02em; color: var(--income-text); }

/* Shared budget (coming soon) */
.shared { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.shared .head { margin-bottom: 28px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; }
.checks i { flex: 0 0 auto; color: var(--primary); font-size: 20px; line-height: 1.35; }
.shared-art { position: relative; padding: 12px; }
.shared-art::before {
    content: ""; position: absolute; inset: 28px 0 0 28px; border-radius: 30px; background: var(--icon-grad); opacity: .16; transform: rotate(4deg);
}
.house-card { position: relative; max-width: 420px; margin: 0 auto; padding: 24px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.draft { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; background: var(--warning-soft); color: var(--warning-text); font-size: 11.5px; font-weight: 700; }
.house-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-right: 96px; }
.house-head b { display: block; font-size: 18px; line-height: 1.2; }
.house-head small { color: var(--muted); font-size: 13px; }
.house-pot { display: grid; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--bg); }
.house-pot > small { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.house-row { display: grid; grid-template-columns: 32px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 14.5px; }
.house-row em { font-style: normal; color: var(--muted); font-size: 13px; }
.house-row strong { font-weight: 700; white-space: nowrap; }
.house-row.costs { grid-template-columns: 32px minmax(0, 1fr) auto; padding-top: 10px; border-top: 1px dashed var(--border); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-alt); color: var(--muted); font-size: 13px; font-weight: 800; }
.avatar.a1 { background: #0E7C82; color: #fff; }
.avatar.a2 { background: #B45309; color: #fff; }
.house-result { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--expense-soft); color: var(--expense-text); font-weight: 700; }
.house-result strong { font-size: 22px; letter-spacing: -.02em; white-space: nowrap; }
.house-quote { margin: 16px 2px 0; color: var(--muted); font-size: 14px; font-style: italic; }

/* Screenshots */
.shots { overflow: clip; }
.shots .head { margin-bottom: 28px; }
.gallery {
    --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
    padding: 18px var(--edge) 26px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--primary) 35%, transparent) transparent;
}
.gallery:focus-visible { outline-offset: -3px; }
.gallery figure { flex: 0 0 auto; margin: 0; text-align: center; scroll-snap-align: start; }
/* Centred while they fit; from the left and scrollable once they don't. */
.gallery > figure:first-child { margin-left: auto; }
.gallery > figure:last-child { margin-right: auto; }
.gallery .phone { --w: 240px; }
.gallery figcaption { margin-top: 18px; }
.gallery figcaption b { display: block; font-size: 16px; }
.gallery figcaption small { display: block; color: var(--muted); font-size: 14px; }
.gallery-nav { display: flex; justify-content: center; gap: 10px; }
.round-btn {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 18px; box-shadow: var(--shadow-sm);
}
.round-btn:disabled { opacity: .4; cursor: default; }

/* Privacy */
.trust-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.trust .head { margin: 0; }
.never { padding: 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.never h3 { margin: 0 0 14px; font-size: 16px; }
.never ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.never li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.never li i { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--expense-soft); color: var(--expense-text); }
.never li:not(.ok) { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--expense) 55%, transparent); }
.never li.ok i { background: var(--income-soft); color: var(--income-text); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.trust-item { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--border); }
.trust-item .tile-ic { width: 42px; height: 42px; margin: 0; font-size: 19px; }
.trust-item h3 { margin: 0 0 4px; font-size: 16.5px; }
.trust-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 24px); margin: 0; }
.faq { display: grid; gap: 12px; }
.faq details { padding: 0 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; list-style: none; cursor: pointer; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "\F4FE"; font-family: "bootstrap-icons"; font-weight: normal; flex: 0 0 auto; width: 30px; height: 30px;
    display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 20px; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* Download band */
.cta-wrap { padding: 16px 0 96px; }
.cta {
    position: relative; overflow: hidden; padding: 64px 28px; border-radius: 32px; text-align: center; color: #fff;
    background:
        radial-gradient(600px 300px at 88% 0%, rgba(52, 211, 153, .26), transparent 60%),
        radial-gradient(520px 280px at 0% 100%, rgba(251, 113, 133, .22), transparent 60%),
        var(--btn-grad);
    box-shadow: var(--shadow-lg);
}
.cta-dial {
    position: absolute; right: -150px; top: -180px; width: 470px; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: conic-gradient(from 0deg, rgba(255, 255, 255, .22) 0 268deg, rgba(255, 255, 255, .07) 268deg 360deg);
    -webkit-mask: radial-gradient(circle, transparent 61%, #000 61.5%, #000 70%, transparent 70.5%);
    mask: radial-gradient(circle, transparent 61%, #000 61.5%, #000 70%, transparent 70.5%);
}
.cta > :not(.cta-dial) { position: relative; }
.cta-logo { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 16px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.cta h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; }
.cta p { max-width: 560px; margin: 0 auto 28px; font-size: 18px; color: rgba(255, 255, 255, .92); }
.cta .stores { justify-content: center; }
.cta .store { background: #0A0F10; }
.cta .store.is-soon { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); color: #fff; }
.cta .store.is-soon small, .cta .store.is-soon strong { color: #fff; }

/* Footer */
.foot { padding: 48px 0 36px; background: var(--surface); border-top: 1px solid var(--border); color: var(--muted); font-size: 14.5px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-brand p { max-width: 400px; margin: 10px 0 0; }
.foot .brand img { width: 32px; height: 32px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.foot-links a { color: var(--text); font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--primary); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.foot-lang { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; text-decoration: none; }
.foot-lang:hover { color: var(--primary); }

/* /indir and the error pages */
.solo { position: relative; overflow: clip; display: grid; place-items: center; min-height: calc(100vh - var(--nav-h) - 170px); padding: 64px 0 80px; }
.solo-card { position: relative; max-width: 660px; text-align: center; }
.solo-logo { width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 22px; box-shadow: var(--shadow); }
.solo h1 { margin: 0 0 14px; font-size: clamp(32px, 5vw, 50px); font-weight: 800; letter-spacing: -.035em; }
.solo .lead { max-width: 540px; margin: 0 auto 28px; color: var(--muted); font-size: 18px; }
.solo .stores { justify-content: center; }
.qr-box { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin: 32px auto 0; color: var(--muted); font-size: 14px; }
.qr { width: 180px; padding: 14px; border-radius: 18px; line-height: 0; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.qr svg { width: 100%; height: auto; }
.solo-more { margin: 30px 0 8px; }
.solo-note { margin: 0; color: var(--muted); font-size: 15px; }
.solo-code {
    margin: 0 0 6px; font-size: clamp(72px, 13vw, 128px); font-weight: 800; line-height: 1; letter-spacing: -.05em;
    background: var(--icon-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Shared budget invite page (/davet/{code}). Its policy loads no icon font, so the store badges go without their icons. */
.invite .store i { display: none; }
.invite .store { justify-content: center; padding: 10px 18px; }
.invite .solo h1 { font-size: clamp(28px, 4.4vw, 42px); }
.invite-open { margin: 0 0 24px; }
.invite-code {
    display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; margin: 0 auto 28px; padding: 20px 22px;
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.invite-code-label { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.invite-code-value {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(28px, 7vw, 36px); font-weight: 700;
    letter-spacing: .12em; color: var(--text); user-select: all; -webkit-user-select: all;
}
.invite-copy { background: var(--primary-soft); color: var(--primary); }
.invite-code small { color: var(--muted); font-size: 13.5px; }
.invite-missing { max-width: 520px; margin: 0 auto 28px; padding: 14px 18px; border-radius: 14px; background: var(--warning-soft); color: var(--warning-text); }
.invite-steps { max-width: 520px; margin: 0 auto 28px; text-align: left; }
.invite-steps h2 { margin: 0 0 10px; font-size: 18px; }
.invite-steps ol { margin: 0 0 10px; padding-left: 22px; }
.invite-steps li + li { margin-top: 4px; }
.invite-steps p { margin: 0; color: var(--muted); font-size: 15px; }
.invite-private { max-width: 520px; margin: 24px auto 0; }
.invite .foot { padding: 24px 0; }

/* Fade-in as sections come into view (only when scripts run: see the "js" class in the layout) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nav-links a { padding: 8px 8px; font-size: 14px; }
}
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .hero-copy { display: flex; flex-direction: column; align-items: center; }
    .hero .lead { margin-left: auto; margin-right: auto; }
    .hero .stores, .ticks { justify-content: center; }
    .hero-visual { width: 100%; max-width: 540px; margin: 16px auto 0; }
    .dial { right: 50%; top: auto; bottom: -40px; transform: translateX(50%); }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: minmax(0, 1fr); max-width: 600px; margin: 0 auto; }
    .shared, .trust-side, .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faq-head { position: static; }
}
@media (max-width: 980px) {
    .nav-links {
        display: none; position: absolute; top: calc(var(--nav-h) - 6px); left: 0; right: 0; margin: 0;
        flex-direction: column; gap: 2px; padding: 8px; border-radius: 18px;
        background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 13px 14px; color: var(--text); font-size: 15.5px; }
    .nav-links + .nav-end { margin-left: auto; }
    .nav-toggle { display: grid; }
}
@media (max-width: 600px) {
    :root { --gutter: 16px; --nav-h: 62px; }
    .nav-cta { display: none; }
    .brand { font-size: 17px; }
    .brand img { width: 32px; height: 32px; }
    .hero { padding: calc(32px + var(--nav-h)) 0 64px; }
    .hero .lead { margin-bottom: 26px; }
    .hero-visual { height: 520px; }
    .phone-front { --w: 228px; left: 3%; }
    .phone-back { --w: 188px; right: 2%; top: 58px; }
    .float-chip { max-width: 200px; padding: 8px 10px 8px 8px; font-size: 11.5px; gap: 8px; }
    .float-chip b { font-size: 12.5px; }
    .float-chip .ic { width: 32px; height: 32px; font-size: 15px; }
    /* No room beside the phones: the loan chip would cover the to-do list, so only the month-end one stays. */
    .chip-loan { display: none; }
    .chip-end { left: 0; bottom: 30px; }
    .block { padding: 72px 0; }
    .head { margin-bottom: 32px; }
    .head p:not(.kicker) { font-size: 17px; }
    .bento { grid-template-columns: minmax(0, 1fr); }
    .tile.wide { grid-column: auto; }
    .tile { padding: 22px 20px; }
    .mini-month { grid-template-columns: 1fr 1fr; gap: 12px; }
    .mini-month .mini-track { grid-column: 1 / -1; grid-row: 2; }
    .mini-ahead { gap: 6px; }
    .mini-ahead em { font-size: 10.5px; padding: 2px 6px; }
    .trust-grid { grid-template-columns: minmax(0, 1fr); }
    .gallery .phone { --w: 216px; }
    .gallery { gap: 20px; }
    .cta-wrap { padding-bottom: 72px; }
    .cta { padding: 48px 20px; border-radius: 26px; }
    .house-card { padding: 20px; }
    .house-head { padding-right: 0; margin-top: 22px; }
    .draft { top: 14px; right: 14px; }
    .store { flex: 1 1 150px; min-width: 0; padding: 10px 14px 10px 12px; gap: 10px; }
    .store strong { font-size: 15.5px; }
    .store i { font-size: 23px; }
    .foot-grid { flex-direction: column; }
}
/* Phone header: the brand ("Budget Planner" in English) needs the room, so the language switch shows only the language it
   switches to, like the theme button shows the theme it switches to. */
@media (max-width: 420px) {
    .lang span, .lang a[aria-current] { display: none; }
    .nav-end { gap: 8px; }
    .brand { font-size: 16px; gap: 8px; }
    .brand img { width: 30px; height: 30px; }
    .theme-toggle { width: 34px; height: 34px; }
}
@media (max-width: 380px) {
    .hero h1 { font-size: 36px; }
    .phone-front { --w: 212px; }
    .phone-back { --w: 176px; }
    .hero-visual { height: 490px; }
}
@media (max-width: 340px) {
    .brand { font-size: 15px; }
    .theme-toggle { width: 30px; height: 30px; font-size: 14px; }
    .nav-toggle { width: 38px; }
}
