/* =====================================================================
   FukaraDesk — public website (SPEC §5.9, brand §8.1). Owner: WS-WEB-PUBLIC.
   Warm paper background, ink typography, brand red accents, night cards.
   Fonts: Unbounded (display), Onest (body), JetBrains Mono (labels, IDs, code).
   ===================================================================== */

:root {
    --paper: #F5F3EF;
    --paper-2: #EBE8E2;
    --card: #FFFFFF;
    --ink: #141414;
    --ink-2: #2B2B2B;
    --muted: #66635D;
    --line: #DAD6CE;
    --line-soft: #E7E3DC;
    --red: #E31B23;
    --red-dark: #B5121A;
    --red-soft: #FDE8E8;
    --night: #121212;
    --night-2: #1C1C1C;
    --night-line: #2E2E2E;
    --night-text: #F1EFEA;
    --night-muted: #A19D95;
    --ok: #1FB46B;
    --ok-soft: #E3F3EA;
    --ok-ink: #0B6B3A;
    --warn: #E39B1B;
    --warn-soft: #FCF1DC;
    --warn-ink: #7A4D00;

    --font-display: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --wrap: 1240px;
    --gutter: 24px;
    --nav-h: 72px;
    --shadow-lg: 0 40px 80px -36px rgba(20, 20, 20, .42);
    --shadow-md: 0 22px 44px -26px rgba(20, 20, 20, .34);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 20px);
    overflow-x: clip;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; }
strong, b { font-weight: 600; }
code, kbd, samp { font-family: var(--font-mono); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: inherit;
    overflow-wrap: break-word;
}

p, li, dd, td, th { overflow-wrap: break-word; }

::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.site-main { flex: 1 0 auto; }
.site-main:focus { outline: none; }

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

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; left: 16px; top: -64px; z-index: 300;
    padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600;
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- small type helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; line-height: 1.4;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--red); flex: none; }
.on-dark .eyebrow { color: var(--night-muted); }

.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }

.link { color: var(--red-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.link:hover { color: var(--red); }
.on-dark .link { color: #fff; }

kbd {
    display: inline-block; padding: 2px 10px; border-radius: 8px; border: 1px solid var(--line);
    border-bottom-width: 2px; background: var(--card); font-family: var(--font-body); font-weight: 600;
    font-size: .88em; line-height: 1.6; color: var(--ink); white-space: nowrap;
}

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section-tight { padding: 80px 0; }
/* two paper sections in a row share one gap instead of adding up both paddings */
.section:not(.band-white) + .section-tight:not(.band-white) { padding-top: 0; }
.band-white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
    display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: end;
    margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(30px, 3.7vw, 50px); margin-top: 18px; max-width: 20ch; }
.section-head > p { color: var(--muted); max-width: 46ch; justify-self: end; font-size: 18px; }
.on-dark .section-head > p { color: var(--night-muted); }

.page-head { padding: 72px 0 8px; }
.page-head h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 20px 0 20px; max-width: 18ch; }
.page-head .lead { margin-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
    font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap;
    cursor: pointer; text-decoration: none; user-select: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .icon-go { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { color: var(--ink-2); background: transparent; }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--red); color: #fff; }
.btn-night-line { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-night-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-soon { background: var(--red-soft); color: var(--red-dark); cursor: default; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; gap: 8px; }
.btn-sm .icon { width: 17px; height: 17px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.inline-form { display: inline-flex; margin: 0; }

/* ---------- announcement ---------- */
.announce { background: var(--night); color: var(--night-text); font-size: 14.5px; }
.announce-in { display: flex; align-items: center; gap: 14px; min-height: 44px; padding-top: 9px; padding-bottom: 9px; }
.announce-tag {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #fff;
}
.announce-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227, 27, 35, .25); }
.announce-text { min-width: 0; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(245, 243, 239, .86);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(245, 243, 239, .95); }
.header-in { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }

.brand {
    display: inline-flex; align-items: center; gap: 12px; flex: none;
    font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.035em; line-height: 1;
    color: var(--ink); border-radius: 12px;
}
.brand-mark { width: 36px; height: 36px; border-radius: 9px; }
.brand-desk { color: var(--red); }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a {
    display: inline-flex; align-items: center; height: 42px; padding: 0 14px; border-radius: 999px;
    font-weight: 500; font-size: 15.5px; color: var(--ink-2);
    transition: background-color .2s ease, color .2s ease;
}
.main-nav a:hover { background: var(--paper-2); color: var(--ink); }
.main-nav a[aria-current] { color: var(--red-dark); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-actions .btn[aria-current] { background: var(--ink); color: #fff; }

/* mobile menu (details/summary: works without JavaScript) */
.mnav { display: none; }
.mnav-toggle {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px;
    border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
    font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; user-select: none;
    transition: border-color .2s ease;
}
.mnav-toggle::-webkit-details-marker { display: none; }
.mnav-toggle::marker { content: ""; }
.mnav-toggle:hover { border-color: var(--ink); }
.mnav-toggle .icon { width: 20px; height: 20px; }
.mnav-close { display: none; }
.mnav[open] .mnav-open { display: none; }
.mnav[open] .mnav-close { display: inline; }
.mnav[open] .mnav-toggle { border-color: var(--ink); }
.mnav[open] > .mnav-toggle::before {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; z-index: 1;
    background: rgba(20, 20, 20, .4); cursor: default;
}
.mnav-panel {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 2;
    max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 28px;
    box-shadow: 0 40px 60px -40px rgba(20, 20, 20, .45);
}
.mnav-links a {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em;
    padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mnav-links a[aria-current] { color: var(--red-dark); }
.mnav-actions { display: grid; gap: 10px; margin-top: 24px; }
.mnav-actions .btn, .mnav-actions .inline-form, .mnav-actions .inline-form .btn { width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-text); padding-top: 88px; overflow: hidden; flex: none; }
.footer-top {
    display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 40px;
    padding-bottom: 56px; border-bottom: 1px solid var(--night-line);
}
.footer-logo { display: inline-block; border-radius: 10px; }
.footer-logo img { height: 40px; width: auto; }
.footer-brand p { color: var(--night-muted); margin-top: 20px; max-width: 36ch; font-size: 15.5px; }
.footer-maker {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding-bottom: 3px;
    color: #fff; font-weight: 600; font-size: 15px; border-bottom: 1px solid #4A4A4A;
    transition: border-color .2s ease, color .2s ease;
}
.footer-maker .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.footer-maker:hover { border-color: var(--red); }
.footer-maker:hover .icon { transform: translate(2px, -2px); }
.footer-title {
    font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--night-muted); margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: #DCD9D2; font-size: 15.5px; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--night-muted); transition: color .2s ease; }
.footer-contact:hover .icon { color: var(--red); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
    padding: 26px 0; color: var(--night-muted); font-size: 14px;
}
.footer-legal { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-legal a:hover { color: #fff; }
.footer-word {
    font-family: var(--font-display); font-weight: 700; letter-spacing: -.05em; line-height: .9;
    font-size: clamp(40px, 11.4vw, 158px); color: #1E1E1E; text-align: center; white-space: nowrap;
    user-select: none; margin: 20px 0 0; padding-bottom: 28px;
}
.site-footer :focus-visible { outline-color: #fff; }

/* focused layout (ViewData["Chrome"] = "focus", e.g. a required password change): logo + "Çıkış", compact footer */
.site-header-focus .header-actions { display: flex; margin-left: auto; }
.site-footer.site-footer-focus { padding-top: 0; }

/* ---------- cards & surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.night-card {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--night); color: var(--night-text); border-radius: var(--radius-lg); padding: 36px;
}
.night-card.glow {
    background:
        radial-gradient(110% 80% at 100% 0%, rgba(227, 27, 35, .30), rgba(227, 27, 35, 0) 58%),
        var(--night);
}

/* ---------- badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px;
    font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--paper-2); color: var(--ink-2);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.badge-ok { background: var(--ok-soft); color: var(--ok-ink); }
.badge-warn { background: var(--warn-soft); color: var(--warn-ink); }
.badge-danger { background: var(--red-soft); color: var(--red-dark); }
.badge-muted { background: var(--paper-2); color: var(--ink-2); }
.badge-night { background: rgba(255, 255, 255, .08); color: var(--night-text); }
.badge-plain::before { display: none; }
.pill {
    display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--card); font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}

/* ---------- alerts ---------- */
.alert {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid;
    font-size: 15px; line-height: 1.55;
}
.alert > .icon { width: 20px; height: 20px; margin-top: 1px; }
.alert p + p { margin-top: 4px; }
.alert-title { font-weight: 600; }
.alert-error { background: var(--red-soft); border-color: #F4C3C5; color: #8C0E14; }
.alert-warn { background: var(--warn-soft); border-color: #EFD39B; color: var(--warn-ink); }
.alert-ok { background: var(--ok-soft); border-color: #B8DEC8; color: #0A5B32; }
.alert-info { background: var(--card); border-color: var(--line); color: var(--ink-2); }
.alert-info > .icon { color: var(--red); }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-label { font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.field-hint { font-size: 13.5px; color: var(--muted); }
.field-error { font-size: 13.5px; color: var(--red-dark); font-weight: 500; }
.input {
    width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line);
    background: var(--card); font-size: 16px; color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.input:hover { border-color: #C2BDB3; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(227, 27, 35, .16); }
.input[aria-invalid="true"] { border-color: var(--red); }

/* ---------- lists ---------- */
.tick-list { display: grid; gap: 12px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; }
.tick-list .icon {
    width: 22px; height: 22px; padding: 4px; margin-top: 2px; border-radius: 50%;
    background: var(--red-soft); color: var(--red-dark); stroke-width: 2.6;
}
.on-dark .tick-list .icon, .night-card .tick-list .icon { background: rgba(227, 27, 35, .18); color: #FF6B70; }

/* ---------- data tables ---------- */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.data { width: 100%; font-size: 15px; }
.data th {
    text-align: left; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line);
    background: #FAF9F6; white-space: nowrap;
}
.data td { padding: 15px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover td { background: #FCFBF9; }
.data .mono { font-size: 14px; }
.data .num { text-align: right; white-space: nowrap; }
.cell-sub { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.empty-row { color: var(--muted); text-align: center; padding: 28px 18px !important; }

/* ---------- progress meter ---------- */
.meter { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.meter > span { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: var(--red); }
.meter.is-ok > span { background: var(--ok); }
.meter.is-warn > span { background: var(--warn); }
.meter.is-empty > span { min-width: 0; }
.night-card .meter { background: #2A2A2A; }

/* ---------- copy & hash ---------- */
.copy-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; flex: none;
    border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
    font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.copy-btn .icon { width: 16px; height: 16px; }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.is-copied { border-color: var(--ok); color: var(--ok-ink); background: var(--ok-soft); }
.copy-btn.is-failed { border-color: var(--red); color: var(--red-dark); }
.copy-btn[hidden] { display: none; }
.hash {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line);
}
.hash code { font-size: 13px; line-height: 1.55; color: var(--ink-2); word-break: break-all; min-width: 0; }
.codeline {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--night); color: var(--night-text);
}
.codeline code { font-size: 13.5px; line-height: 1.5; overflow-x: auto; white-space: nowrap; min-width: 0; }
.codeline .copy-btn { background: var(--night-2); border-color: var(--night-line); color: var(--night-text); }
.codeline .copy-btn:hover { border-color: #fff; }

/* =====================================================================
   Home
   ===================================================================== */
.hero { position: relative; padding: 64px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 70px); line-height: 1.02; letter-spacing: -.04em; margin: 24px 0 26px; }
.hero h1 .mark { position: relative; color: var(--red); white-space: nowrap; }
.hero h1 .mark::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .085em; border-radius: 4px;
    background: var(--red); transform-origin: left; animation: underline 1s .35s cubic-bezier(.7, 0, .2, 1) both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .lead { margin-bottom: 34px; }
.hero-meta {
    display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px;
    font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { width: 16px; height: 16px; color: var(--ink-2); }

.hero-visual { position: relative; padding: 0 0 28px 28px; }
.hero-screen {
    position: relative; background: var(--night); border-radius: var(--radius-lg); padding: 10px;
    box-shadow: var(--shadow-lg);
}
.hero-screen::before {
    content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
    background: radial-gradient(70% 60% at 85% 0%, rgba(227, 27, 35, .35), transparent 70%);
    filter: blur(28px); opacity: .9;
}
.hero-screen img { width: 100%; height: auto; border-radius: 20px; background: var(--paper-2); }
.float-chip {
    position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md);
}
.float-chip .chip-ico {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
    background: var(--ink); color: #fff;
}
.float-chip .chip-ico .icon { width: 20px; height: 20px; }
.float-chip b { display: block; font-size: 15px; line-height: 1.25; }
.float-chip small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.float-chip.chip-a { left: 0; bottom: 0; }
.float-chip.chip-b { right: 28px; top: -22px; padding: 10px 16px; gap: 10px; }
.float-chip.chip-b .status-dot { margin: 0; }
.status-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none;
    box-shadow: 0 0 0 0 rgba(31, 180, 107, .6); animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(31, 180, 107, .55); }
    70% { box-shadow: 0 0 0 8px rgba(31, 180, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 180, 107, 0); }
}

.stats { margin-top: 88px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 28px 24px 34px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b {
    display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.8vw, 40px);
    letter-spacing: -.03em; line-height: 1.12; margin-bottom: 6px;
}
.stat span { color: var(--muted); font-size: 15px; line-height: 1.5; display: block; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: feature; }
.feature {
    position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 28px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    counter-increment: feature; transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.feature::after {
    content: counter(feature, decimal-leading-zero); position: absolute; top: 26px; right: 24px;
    font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em;
}
.feature:hover { background: var(--card); border-color: #C9C3B8; transform: translateY(-2px); }
.feature-ico {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    background: var(--red-soft); color: var(--red); transition: background-color .2s ease, color .2s ease;
}
.feature-ico .icon { width: 22px; height: 22px; }
.feature:hover .feature-ico { background: var(--red); color: #fff; }
.feature h3 { font-size: 18px; line-height: 1.25; letter-spacing: -.02em; margin-top: 6px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step {
    position: relative; padding: 30px 28px 32px; border-radius: var(--radius); background: var(--card);
    border: 1px solid var(--line); counter-increment: step;
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
    background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 18px;
}
.step:nth-child(3) .step-num { background: var(--red); }
.step h3 { font-size: 21px; margin: 22px 0 10px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step-arrow { position: absolute; top: 44px; right: -22px; z-index: 1; width: 28px; height: 28px; color: var(--line); }
.step:last-child .step-arrow { display: none; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 22px; padding: 36px; border-radius: var(--radius-lg); }
.plan-free { background: var(--card); border: 1px solid var(--line); }
.plan-pro {
    color: var(--night-text); border: 1px solid var(--night-line);
    background:
        radial-gradient(120% 75% at 100% 0%, rgba(227, 27, 35, .30), rgba(227, 27, 35, 0) 60%),
        var(--night);
}
.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.plan h3 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 14px; }
.plan-sub { color: var(--muted); margin-top: 8px; font-size: 16px; }
.plan-pro .plan-sub { color: var(--night-muted); }
.plan-figure {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.plan-pro .plan-figure { border-color: var(--night-line); }
.plan-figure b { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.035em; line-height: 1; }
.plan-figure span { color: var(--muted); font-size: 15px; }
.plan-pro .plan-figure span { color: var(--night-muted); }
.plan .tick-list { flex: 1; align-content: start; font-size: 16px; }
.plan-pro .tick-list .icon { background: rgba(227, 27, 35, .2); color: #FF6D72; }
.plan-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.plan-cta { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--night-line); }
.plan-cta-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; color: #fff; }
.plan-note { color: var(--night-muted); font-size: 14px; }
.plan-free .plan-note { color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-aside { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq-aside h2 { font-size: clamp(30px, 3.6vw, 48px); margin: 18px 0 18px; }
.faq-aside p { color: var(--muted); max-width: 40ch; }
.faq-aside .btn-row { margin-top: 26px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px;
    cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; line-height: 1.4; border-radius: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:hover { color: var(--red-dark); }
.faq-toggle {
    flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    border: 1.5px solid var(--line); transition: transform .25s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.faq-toggle .icon { width: 18px; height: 18px; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.faq-answer { padding: 0 64px 24px 4px; color: var(--muted); font-size: 16.5px; }
.faq-answer p + p { margin-top: 10px; }
.faq-answer strong { color: var(--ink-2); }

/* final CTA band */
.cta-section { padding: 0 0 112px; }
.cta-band {
    display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center;
    padding: 64px; border-radius: var(--radius-lg); color: var(--night-text);
    background:
        radial-gradient(90% 120% at 0% 100%, rgba(227, 27, 35, .34), rgba(227, 27, 35, 0) 55%),
        var(--night);
}
.cta-band h2 { font-size: clamp(28px, 3.4vw, 46px); max-width: 20ch; color: #fff; margin-top: 16px; }
.cta-band p { color: var(--night-muted); margin-top: 16px; max-width: 52ch; }
.cta-band .btn-row { justify-content: flex-end; }

/* =====================================================================
   Download (/indir)
   ===================================================================== */
.dl-hero { padding: 64px 0 96px; }
.dl-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "intro card" "req card";
    grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 8px; align-items: start;
}
.dl-intro { grid-area: intro; }
.dl-req { grid-area: req; }
.dl-grid > .release-card { grid-area: card; }
.dl-intro h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 20px; }
.dl-intro .lead { margin-bottom: 28px; }
.req-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.req-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.req-list .icon { width: 22px; height: 22px; color: var(--red); margin-top: 2px; }
.req-list b { display: block; font-size: 16px; }
.req-list span { color: var(--muted); font-size: 15px; }

.release-card { padding: 32px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.release-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.release-version { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 4.4vw, 56px); letter-spacing: -.04em; line-height: 1; margin: 22px 0 6px; }
.release-version small { font-size: .42em; letter-spacing: -.01em; color: var(--muted); font-weight: 500; margin-right: 6px; }
.release-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.release-meta div { padding: 16px 12px 16px 0; }
.release-meta div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.release-meta dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.release-meta dd { font-weight: 600; font-size: 16px; margin-top: 4px; }
.release-hash-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.release-card .btn-lg { margin-top: 22px; }
.release-file { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--muted); }
.release-notes { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.release-notes h2 { font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.release-notes p { color: var(--ink-2); font-size: 15.5px; white-space: pre-line; }

.soon-card { text-align: left; }
.soon-card h2 { font-size: clamp(26px, 2.8vw, 34px); margin: 18px 0 12px; }
.soon-card p { color: var(--muted); }
.soon-card .btn-row { margin-top: 26px; }

.install-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: inst; }
.install-step { padding: 26px 24px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: inst; }
.install-step::before {
    content: counter(inst, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 12.5px;
    letter-spacing: .08em; color: var(--red-dark); margin-bottom: 18px;
}
.install-step h3 { font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.install-step p { color: var(--muted); font-size: 15px; }

.smartscreen { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 16px; }
.smartscreen-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn-ink); }
.smartscreen-ico .icon { width: 26px; height: 26px; }
.smartscreen h3 { font-size: 20px; margin-bottom: 10px; }
.smartscreen p { color: var(--muted); }
.smartscreen p + p { margin-top: 10px; }
.smartscreen .codeline { margin-top: 16px; }
.path-steps { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.path-steps .icon { width: 16px; height: 16px; color: var(--muted); }

.hash-group { display: inline-block; margin-right: .5em; }
.hash-group:last-child { margin-right: 0; }
.hash-short { font-size: 13px; color: var(--ink-2); }

.next-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.next-link {
    display: flex; align-items: center; gap: 16px; padding: 22px 22px 22px 20px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease;
}
.next-link:hover { border-color: var(--ink); transform: translateY(-2px); }
.next-link > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.next-link b { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; line-height: 1.3; }
.next-link small { color: var(--muted); font-size: 14.5px; line-height: 1.45; margin-top: 3px; }
.next-ico { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.next-ico .icon { width: 22px; height: 22px; }
.next-link .go { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.next-link:hover .go { transform: translateX(3px); color: var(--ink); }

.empty-card { color: var(--muted); }

/* =====================================================================
   Gallery (/gorseller) + lightbox
   ===================================================================== */
.gallery-section { padding-top: 56px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.shot { display: flex; flex-direction: column; gap: 16px; }
.shot-link {
    position: relative; display: block; border-radius: var(--radius-lg); padding: 10px; background: var(--night);
    box-shadow: var(--shadow-md); transition: transform .25s ease, box-shadow .25s ease; cursor: zoom-in;
}
.shot-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.shot-frame {
    position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden;
    background: linear-gradient(160deg, #262626, #171717);
}
.shot-frame img {
    position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px);
    object-fit: contain; object-position: center;
}
.shot-missing { cursor: default; box-shadow: none; }
.shot-missing:hover { transform: none; box-shadow: none; }
.shot-placeholder { display: grid; justify-items: center; gap: 10px; color: var(--night-muted); font-size: 14.5px; }
.shot-placeholder .icon { width: 32px; height: 32px; }
.shot-zoom {
    position: absolute; right: 22px; bottom: 22px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
}
.shot-zoom .icon { width: 18px; height: 18px; }
.shot-link:hover .shot-zoom, .shot-link:focus-visible .shot-zoom { opacity: 1; transform: none; }
.shot figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; padding: 0 6px; }
.shot-no { grid-row: span 2; font-family: var(--font-mono); font-size: 12.5px; color: var(--red-dark); padding-top: 4px; letter-spacing: .06em; }
.shot-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; line-height: 1.3; }
.shot-text { color: var(--muted); font-size: 15.5px; }

html.lb-open { overflow: hidden; }
.lightbox {
    position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
    border: 0; background: transparent; color: var(--night-text); overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 10, 10, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lb-figure {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    width: min(1280px, calc(100vw - 160px)); max-height: calc(100vh - 48px); margin: 0 auto;
}
.lb-img {
    width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 170px); border-radius: 14px;
    background: #1A1A1A; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
.lb-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 14px; text-align: center; max-width: 80ch; }
.lb-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #fff; }
.lb-text { color: var(--night-muted); font-size: 15px; }
.lb-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--night-muted); letter-spacing: .06em; }
.lb-btn {
    position: fixed; z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
    transition: background-color .2s ease, border-color .2s ease;
}
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-btn[hidden] { display: none; }

/* =====================================================================
   Auth pages (/giris, /cikis, /sifre-degistir)
   ===================================================================== */
.auth { padding: 64px 0 112px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 24px; max-width: 1080px; align-items: stretch; }
.auth-card {
    padding: 44px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    display: flex; flex-direction: column; gap: 0;
}
.auth-card > .alert { margin-bottom: 20px; }
.auth-card > .auth-title + .alert { margin-top: 12px; }
.auth-title { font-size: clamp(30px, 3.2vw, 40px); letter-spacing: -.035em; margin: 18px 0 10px; }
.auth-lead { color: var(--muted); margin-bottom: 28px; }
.auth-card .form { margin-top: 2px; }
.auth-card .btn-block { margin-top: 6px; }
.auth-foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.auth-side {
    display: flex; flex-direction: column; gap: 22px; padding: 44px; border-radius: var(--radius-lg); color: var(--night-text);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(227, 27, 35, .30), rgba(227, 27, 35, 0) 58%),
        var(--night);
}
.auth-side .eyebrow { color: var(--night-muted); }
.auth-side-title { font-size: clamp(24px, 2.4vw, 32px); color: #fff; max-width: 16ch; }
.auth-side .tick-list { font-size: 16px; color: #E4E1DA; }
.auth-side-note { margin-top: auto; display: flex; gap: 12px; align-items: flex-start; padding-top: 22px; border-top: 1px solid var(--night-line); color: var(--night-muted); font-size: 14.5px; }
.auth-side-note .icon { width: 20px; height: 20px; color: #fff; margin-top: 2px; }
.auth-narrow .auth-card { max-width: 560px; margin: 0 auto; }
.auth-card-center { align-items: center; text-align: center; }
.auth-card-center .auth-lead { margin-bottom: 26px; }
.auth-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.auth-icon .icon { width: 28px; height: 28px; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.auth-card-center > .alert { text-align: left; width: 100%; }

/* Second step of the administrator sign-in (/giris/kod) */
.otp-input {
    font-family: var(--font-mono); font-size: 26px; font-weight: 500; letter-spacing: .32em; text-align: center;
    padding-top: 14px; padding-bottom: 14px;
}
.otp-input::placeholder { color: #C2BDB3; letter-spacing: .32em; }
.otp-input-recovery { font-size: 18px; letter-spacing: .12em; text-transform: uppercase; }
.otp-input-recovery::placeholder { letter-spacing: .12em; }
.otp-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-top: 18px; }
.otp-actions .btn[disabled] { opacity: .6; cursor: not-allowed; }
.otp-cancel { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.link-button {
    padding: 0; border: 0; background: none; font: inherit; cursor: pointer;
    color: var(--red-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.link-button:hover { color: var(--red); }

/* =====================================================================
   Customer portal (/hesabim)
   ===================================================================== */
.portal-head { padding: 56px 0 36px; }
.portal-head-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.portal-head h1 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -.035em; margin: 18px 0 12px; max-width: 22ch; }
.portal-head p { color: var(--muted); }
.portal-head .btn-row { flex: none; }
.portal-body { padding-bottom: 112px; display: grid; gap: 56px; }
.portal-section h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.025em; }
.portal-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.portal-section-head p { color: var(--muted); font-size: 15px; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.summary { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.summary-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.summary-value { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; line-height: 1.1; }
.summary-value small { font-size: .5em; color: var(--muted); letter-spacing: 0; font-weight: 500; }
.summary-note { color: var(--muted); font-size: 14px; }
.summary.is-night { background: var(--night); border-color: var(--night-line); color: var(--night-text); }
.summary.is-night .summary-label, .summary.is-night .summary-note { color: var(--night-muted); }

.license-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.license { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.license.is-active { border-color: #C9C3B8; box-shadow: var(--shadow-md); }
.license-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.license-plan { font-size: 22px; letter-spacing: -.02em; }
.license-key { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); letter-spacing: .02em; }
.license-key .icon { width: 16px; height: 16px; color: var(--muted); }
.license-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.license-dates div { padding: 14px 10px 14px 0; min-width: 0; }
.license-dates div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.license-dates dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.license-dates dd { font-weight: 600; margin-top: 3px; }
.license-progress { display: grid; gap: 8px; }
.license-progress-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--muted); }
.license-progress-row b { color: var(--ink); }
.license-usage { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--paper); font-size: 15px; }
.license-usage b { font-family: var(--font-mono); font-size: 15px; }
.license-note { font-size: 14px; color: var(--muted); }

.renew {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center;
}
.renew h2 { font-size: clamp(24px, 2.6vw, 34px); color: #fff; margin: 16px 0 12px; }
.renew p { color: var(--night-muted); }
.renew-contacts { display: grid; gap: 10px; }
.renew-contact {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--night-2);
    border: 1px solid var(--night-line); color: #fff; transition: border-color .2s ease, background-color .2s ease;
}
.renew-contact:hover { border-color: var(--red); }
.renew-contact .icon { width: 20px; height: 20px; color: var(--night-muted); }
.renew-contact span { display: flex; flex-direction: column; min-width: 0; }
.renew-contact small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.renew-contact b { font-size: 16px; overflow-wrap: anywhere; }
.renew-contact .go { margin-left: auto; width: 18px; height: 18px; }

/* =====================================================================
   Privacy (/gizlilik) — prose with sticky table of contents
   ===================================================================== */
.doc-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 48px; padding-bottom: 112px; }
.toc { position: sticky; top: calc(var(--nav-h) + 28px); }
.toc-title { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a {
    display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent;
    font-size: 14.5px; line-height: 1.4; color: var(--muted); transition: color .2s ease, border-color .2s ease;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--red); }
.prose { max-width: 760px; }
.prose section + section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.025em; margin-bottom: 16px; }
.prose h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: 0; margin: 22px 0 8px; }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { display: grid; gap: 10px; margin: 14px 0; }
.prose ul li { position: relative; padding-left: 22px; color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--red); }
.prose .table-wrap { margin: 18px 0; }
.prose .callout { margin: 18px 0; }
.prose a:not(.btn) { color: var(--red-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc-updated { margin-top: 18px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }
.prose .controller { display: grid; gap: 14px; margin: 18px 0; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.prose .controller dt { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prose .controller dd { margin: 3px 0 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.prose .controller div + div dd { font-weight: 400; color: var(--ink-2); }

/* =====================================================================
   Error page
   ===================================================================== */
.error-page { padding: 88px 0 120px; }
.error-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.error-title { font-size: clamp(36px, 4.8vw, 62px); letter-spacing: -.04em; line-height: 1.04; margin: 22px 0 20px; }
.error-lead { font-size: 19px; color: var(--muted); max-width: 52ch; margin-bottom: 32px; }
.error-ref { margin-top: 26px; font-size: 14px; color: var(--muted); }
.error-ref code { color: var(--ink-2); font-size: 13px; word-break: break-all; }
.error-visual {
    position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; max-width: 440px; width: 100%; justify-self: end;
    border-radius: var(--radius-lg); overflow: hidden;
    background:
        radial-gradient(80% 80% at 100% 0%, rgba(227, 27, 35, .32), rgba(227, 27, 35, 0) 62%),
        var(--night);
}
.error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(76px, 8.6vw, 124px); letter-spacing: -.06em; color: #fff; line-height: 1; }
.error-mark { position: absolute; left: 28px; bottom: 28px; }
.error-mark img { width: 56px; height: 56px; border-radius: 14px; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1180px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .install-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
    .main-nav { display: none; }
    .mnav { display: block; }
    .header-actions { margin-left: auto; }
    .header-in { gap: 12px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .dl-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "card" "req"; grid-template-rows: none; row-gap: 32px; }
    .dl-intro .lead { margin-bottom: 0; }
    .hero-visual { max-width: 760px; }
    .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .faq-aside { position: static; }
    .cta-band { grid-template-columns: minmax(0, 1fr); padding: 48px; }
    .cta-band .btn-row { justify-content: flex-start; }
    .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
    .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .toc { position: static; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
    .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; gap: 0 18px; }
    .toc a { padding-left: 0; border-left: 0; }
    .toc a.is-active { border-left: 0; }
    .renew { grid-template-columns: minmax(0, 1fr); }
    .error-grid { grid-template-columns: minmax(0, 1fr); }
    .error-visual { justify-self: start; max-width: 360px; }
}

@media (max-width: 900px) {
    .next-links { grid-template-columns: minmax(0, 1fr); }
    .section { padding: 88px 0; }
    .section-head { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 40px; }
    .section-head > p { justify-self: start; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .step-arrow { display: none; }
    .plans { grid-template-columns: minmax(0, 1fr); }
    .auth-grid { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
    .license-grid { grid-template-columns: minmax(0, 1fr); }
    .gallery { grid-template-columns: minmax(0, 1fr); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 64px; }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
    /*
       Stacked tables: every row becomes a card, every cell a "LABEL ···· value" line. The label (td::before, from
       data-label) and the cell's own content form two table cells: all of the cell's content — text, inline elements
       such as kbd chains, bold + text or links, badges and block children — flows inside ONE anonymous table cell, so
       it wraps like normal text and is never split into separate grid/flex items. Both cells share a baseline.
       Cells without a data-label use the full width (e.g. an action button); .empty-row cells stay centred.
    */
    .table-stack thead { display: none; }
    .table-stack, .table-stack tbody, .table-stack tr { display: block; width: 100%; }
    .table-stack tr { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
    .table-stack tbody tr:last-child { border-bottom: 0; }
    .table-stack td, .table-stack td.num {
        display: table; width: 100%; border-collapse: separate; border-spacing: 0;
        padding: 6px 0; border: 0; text-align: right;
    }
    .table-stack td::before {
        content: attr(data-label); display: table-cell; width: 1px; padding-right: 16px; vertical-align: baseline;
        text-align: left; white-space: nowrap;
        font-family: var(--font-mono); font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: .08em;
        text-transform: uppercase; color: var(--muted);
    }
    .table-stack td:not([data-label])::before, .table-stack td[data-label=""]::before { display: none; }
    .table-stack td.empty-row { display: block; text-align: center; }
    .table-stack td.empty-row::before { display: none; }
    .table-stack tbody tr:hover td { background: transparent; }

    /* .table-stack-top: labels above the values, left aligned — for long prose cells (same look as the manual) */
    .table-stack-top td, .table-stack-top td.num { display: block; padding: 0; text-align: left; }
    .table-stack-top td + td { margin-top: 10px; }
    .table-stack-top td::before { display: block; width: auto; padding: 0 0 3px; white-space: normal; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; --nav-h: 64px; }
    body { font-size: 16px; }
    .section { padding: 72px 0; }
    .section-tight { padding: 56px 0; }
    .lead, .error-lead { font-size: 17px; }
    .header-actions { display: none; }
    .mnav { margin-left: auto; }
    .brand { font-size: 19px; gap: 10px; }
    .brand-mark { width: 32px; height: 32px; }
    .announce { font-size: 13.5px; }
    .announce-in { align-items: flex-start; gap: 10px; }
    .announce-tag { padding-top: 3px; }
    .hero { padding-top: 36px; }
    .hero h1 .mark { white-space: normal; }
    .hero .btn-row .btn, .cta-band .btn-row .btn { flex: 1 1 100%; }
    .hero-visual { padding: 0 0 54px; }
    .float-chip.chip-a { left: 12px; right: 12px; bottom: 0; }
    .float-chip.chip-b { display: none; }
    .stat { padding: 20px 14px 22px 0; }
    .stat + .stat { padding-left: 14px; }
    .stat:nth-child(3) { padding-left: 0; }
    .feature-grid { grid-template-columns: minmax(0, 1fr); }
    .install-steps { grid-template-columns: minmax(0, 1fr); }
    .summary-grid { grid-template-columns: minmax(0, 1fr); }
    .plan { padding: 26px 22px; }
    .faq-item summary { font-size: 16.5px; padding: 18px 0; }
    .faq-answer { padding: 0 0 20px; font-size: 15.5px; }
    .cta-band { padding: 32px 22px; }
    .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 20px; }
    .footer-col:last-child { grid-column: 1 / -1; }
    .site-footer { padding-top: 64px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .dl-hero { padding: 40px 0 72px; }
    .release-card { padding: 22px; }
    .release-meta { grid-template-columns: minmax(0, 1fr); }
    .release-meta div, .release-meta div + div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-left: 0; }
    .release-meta div + div { border-top: 1px solid var(--line); }
    .release-meta dd { margin-top: 0; text-align: right; }
    .hash, .codeline { flex-direction: column; align-items: stretch; }
    .hash .copy-btn, .codeline .copy-btn { align-self: flex-start; }
    .smartscreen { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .auth { padding: 32px 0 72px; }
    .auth-card, .auth-side { padding: 28px 22px; }
    .portal-head { padding: 36px 0 28px; }
    .portal-head-in { align-items: flex-start; }
    .portal-body { gap: 44px; padding-bottom: 72px; }
    .license { padding: 22px; }
    .license-dates { grid-template-columns: minmax(0, 1fr); }
    .license-dates div, .license-dates div + div { padding: 10px 0; border-left: 0; }
    .license-dates div + div { border-top: 1px solid var(--line); }
    .toc ol { grid-template-columns: minmax(0, 1fr); }
    .doc-grid { padding-top: 32px; padding-bottom: 72px; }
    .error-page { padding: 48px 0 80px; }
    .error-visual { aspect-ratio: 16 / 9; max-width: none; }
    .error-mark { left: 20px; bottom: 20px; }
    .error-mark img { width: 44px; height: 44px; border-radius: 11px; }
    .error-text .btn-row .btn { flex: 1 1 100%; }
    .page-head { padding: 40px 0 0; }
    .shot-link { padding: 8px; border-radius: 22px; }
    .shot-frame { border-radius: 15px; }
    .shot-frame img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
    .lb-figure { width: calc(100vw - 24px); }
    .lb-img { max-height: calc(100vh - 220px); }
    .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
    .lb-prev { left: calc(50% - 64px); }
    .lb-next { right: calc(50% - 64px); }
    .lb-close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
    .status-dot { animation: none; }
}

@media print {
    .site-header, .site-footer, .announce, .skip-link, .mnav, .copy-btn, .btn { display: none !important; }
    body { background: #fff; }
    .section, .auth, .portal-body { padding: 24px 0; }
}
