/*
 * FaceFantasy tanıtım sitesi. Derleme adımı yok; sayfalar sıkı CSP ile sunulur (satır içi stil yok).
 * Değerler uygulamanın tasarım dilinden gelir (ios/FaceFantasy/DesignSystem/Tokens.swift): siyah zemin,
 * fildişi metin, tek vurgu saten altın. Yeni renk ya da ölçü önce buradaki değişkenlere eklenir.
 */

:root {
    color-scheme: dark;

    /* Renk (Palette) */
    --ink: #050505;
    --surface: #121110;
    --raised: #1d1b18;
    --line: #3b3427;
    --ivory: #f4efe6;
    --stone: #a09a8e;
    --gold: #c8a770;
    --on-gold: #0a0907;
    --hairline: rgb(200 167 112 / 35%);
    --gold-sheen: linear-gradient(135deg, #eddbb5 0%, #c7a670 58%, #ad8c58 100%);
    --veil: rgb(5 5 5 / 72%);
    --ivory-soft: #d9d3c8;

    /* Yazı */
    --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --step-1: clamp(1.125rem, 1.07rem + 0.3vw, 1.3125rem);
    --step-2: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
    --step-3: clamp(1.875rem, 1.55rem + 1.5vw, 2.75rem);
    --step-4: clamp(2.25rem, 1.75rem + 2.6vw, 3.875rem);
    --step-5: clamp(2.75rem, 1.9rem + 4.4vw, 5.75rem);

    /* Boşluk (Spacing 4–32 ve bölüm aralıkları) */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: clamp(3rem, 2rem + 4vw, 5rem);
    --section: clamp(4.5rem, 3rem + 7vw, 9rem);
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
    --max: 76rem;
    --measure: 68ch;

    /* Köşe (Radius) */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-phone: 13.5% / 6.2%;
    --r-pill: 999px;

    /* Gölge */
    --shadow-photo: 0 2.5rem 5rem -2rem rgb(0 0 0 / 90%);
    --shadow-gold: 0 0.75rem 2rem -0.75rem rgb(200 167 112 / 45%);

    /* Hareket (Motion.quick / Motion.standard) */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --quick: 160ms;
    --standard: 420ms;
    --reveal: 1400ms;
}

/* ---------------------------------------------------------------- Temel */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--sp-6);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--sans);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

a {
    color: var(--gold);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--ivory);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--gold);
    color: var(--on-gold);
}

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

main:focus {
    outline: none;
}

.skip-link {
    position: absolute;
    top: var(--sp-3);
    left: var(--sp-3);
    z-index: 20;
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-sm);
    background: var(--ivory);
    color: var(--ink);
    font-weight: 600;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

.container {
    width: 100%;
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.lead {
    color: var(--stone);
    font-size: var(--step-1);
    line-height: 1.55;
    max-width: 34em;
}

.small {
    color: var(--stone);
    font-size: var(--step--1);
    line-height: 1.55;
}

/* ---------------------------------------------------------------- Düğmeler */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    min-height: 48px;
    padding: var(--sp-3) var(--sp-5);
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font: 600 var(--step-0) / 1.2 var(--sans);
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--quick) var(--ease), box-shadow var(--quick) var(--ease), background-color var(--quick) var(--ease);
}

.button svg {
    flex: none;
    width: 1.25em;
    height: 1.25em;
}

.button-primary {
    background: var(--gold-sheen);
    color: var(--on-gold);
    box-shadow: var(--shadow-gold);
}

.button-primary:hover {
    color: var(--on-gold);
    transform: translateY(-1px);
}

.button-primary:active {
    transform: translateY(1px);
}

.button-secondary {
    border-color: var(--hairline);
    color: var(--ivory);
}

.button-secondary:hover {
    border-color: var(--gold);
    color: var(--ivory);
}

.button-small {
    min-height: 44px;
    padding: var(--sp-2) var(--sp-4);
    font-size: var(--step--1);
}

/* App Store henüz yayında değilken: tıklanmaz, açıklamasıyla görünür. */
.button-soon {
    border-color: var(--line);
    background: var(--surface);
    color: var(--stone);
    cursor: default;
}

.store-button {
    text-align: left;
}

.store-button span {
    display: grid;
    line-height: 1.15;
}

.store-button small {
    font-size: 0.72em;
    font-weight: 500;
    opacity: 0.8;
}

.button-small.store-button small {
    display: none;
}

/* ---------------------------------------------------------------- Üst bar */

.site-header {
    position: relative;
    z-index: 5;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    min-height: 4.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.brand img {
    width: auto;
    height: 2rem;
}

.site-nav {
    display: none;
}

.site-nav ul {
    display: flex;
    gap: var(--sp-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: var(--sp-3);
    color: var(--stone);
    font-size: var(--step--1);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--ivory);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

@media (min-width: 56rem) {
    .site-nav {
        display: block;
    }
}

/* Ana sayfada üst bar kapak görselinin üstünde durur. */
.page-home .site-header {
    position: absolute;
    inset: 0 0 auto;
}

/* ---------------------------------------------------------------- Kapak */

.hero {
    position: relative;
    display: grid;
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: relative;
    z-index: -1;
}

.hero-media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: 60% 50%;
}

/* Görselin altı ve solu siyah zemine erir; başlık her zaman koyu bir alanın üstünde okunur. */
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgb(5 5 5 / 55%) 0%, transparent 22%, transparent 45%, var(--ink) 98%);
}

.hero-copy {
    display: grid;
    gap: var(--sp-5);
    margin-top: -22vw;
    padding-bottom: var(--sp-8);
}

.hero h1 {
    font-size: var(--step-5);
    line-height: 1;
    letter-spacing: -0.02em;
    max-width: 9.5em;
}

.hero h1 span {
    display: block;
}

.hero .lead {
    max-width: 30em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3) var(--sp-5);
    margin-top: var(--sp-2);
}

.hero-note {
    margin-top: calc(-1 * var(--sp-2));
}

@media (min-width: 60rem) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        align-items: end;
        min-height: min(56rem, 100svh);
    }

    .hero-media {
        position: absolute;
        inset: 0 0 0 auto;
        width: min(62%, 60rem);
    }

    .hero-media img {
        height: 100%;
        aspect-ratio: auto;
    }

    .hero-media::after {
        background:
            linear-gradient(to right, var(--ink) 0%, rgb(5 5 5 / 70%) 22%, transparent 55%),
            linear-gradient(to bottom, rgb(5 5 5 / 60%) 0%, transparent 25%, transparent 70%, var(--ink) 100%);
    }

    .hero-copy {
        margin-top: 0;
        padding-block: 10rem var(--sp-8);
    }

    .hero-copy > * {
        max-width: 36rem;
    }

    .hero h1 {
        max-width: 8.5em;
    }
}

/* Tek açılış anı: görsel yavaşça netleşir, başlık ardından gelir. */
@media (prefers-reduced-motion: no-preference) {
    .hero-media img {
        animation: develop var(--reveal) var(--ease) both;
    }

    .hero-copy {
        animation: rise var(--reveal) var(--ease) 200ms both;
    }
}

@keyframes develop {
    from {
        opacity: 0;
        filter: saturate(0.2) brightness(0.6);
        transform: scale(1.04);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }
}

/* ---------------------------------------------------------------- Bölümler */

.section {
    padding-block: var(--section);
}

.section-head {
    display: grid;
    gap: var(--sp-4);
    max-width: 40rem;
    margin-bottom: var(--sp-7);
}

.section-head h2,
.split-copy h2 {
    font-size: var(--step-4);
}

.section-rule {
    border-top: 1px solid var(--line);
}

/* İki sütun: görsel ve metin. `split-flip` görseli sağa alır. */
.split {
    display: grid;
    gap: var(--sp-7);
    align-items: center;
}

.split-media {
    max-width: 36rem;
}

.split-media img {
    width: 100%;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-photo);
}

.split-copy {
    display: grid;
    gap: var(--sp-5);
    align-content: start;
}

/* Uzun metinli bölümde görsel üstte hizalanır. */
.split-top {
    align-items: start;
}

.split-copy > p {
    max-width: 32em;
}

@media (min-width: 52rem) {
    .split {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        gap: clamp(3rem, 2rem + 4vw, 7rem);
    }

    .split-media {
        max-width: none;
    }

    .split-flip .split-media {
        order: 2;
    }

    .split-flip {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }
}

/* Özellik listesi: başlık ve tek cümle; ince çizgiyle ayrılır. */
.features {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature {
    display: grid;
    gap: var(--sp-1);
    padding-block: var(--sp-4);
    border-top: 1px solid var(--line);
}

.feature:last-child {
    border-bottom: 1px solid var(--line);
}

.feature h3 {
    font-size: var(--step-1);
    line-height: 1.3;
}

.feature p {
    color: var(--stone);
}

/* ---------------------------------------------------------------- Filtre karşılaştırıcı */

/* Bölümün tamamı tek bir `.viewer`: seçici ve sahne aynı kapsayıcıda (:has eşlemesi için). */
.viewer {
    display: grid;
    grid-template-areas: "intro" "stage" "picker" "note";
    gap: var(--sp-5);
}

.atelier-intro {
    grid-area: intro;
    display: grid;
    gap: var(--sp-4);
    margin-bottom: var(--sp-3);
}

.atelier-intro h2 {
    font-size: var(--step-4);
}

.viewer-stage {
    --split: 50%;

    grid-area: stage;
    position: relative;
    width: 100%;
    max-width: 36rem;
    margin-inline: auto;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-photo), 0 0 0 1px var(--hairline);
    aspect-ratio: 3 / 4;
}

.viewer-pair {
    display: none;
    position: absolute;
    inset: 0;
    margin: 0;
}

.viewer-pair:first-child {
    display: block;
}

.viewer-pair img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viewer-pair .viewer-after {
    clip-path: inset(0 0 0 var(--split));
}

.viewer-tag {
    position: absolute;
    bottom: var(--sp-4);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--r-pill);
    background: var(--veil);
    color: var(--ivory);
    font-size: var(--step--1);
    line-height: 1.5;
    pointer-events: none;
}

.viewer-tag-before {
    left: var(--sp-4);
}

.viewer-tag-after {
    right: var(--sp-4);
    color: var(--gold);
}

/* Ayırıcı çizgi ve tutamak; JavaScript yoksa ortada sabit durur. */
.viewer-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--split);
    width: 2px;
    margin-left: -1px;
    background: var(--gold);
    pointer-events: none;
}

.viewer-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.75rem;
    height: 2.75rem;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background:
        linear-gradient(var(--gold), var(--gold)) center / 2px 40% no-repeat,
        var(--veil);
    transform: translate(-50%, -50%);
}

.viewer-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    touch-action: pan-y;
}

.viewer-stage:has(.viewer-range:focus-visible) {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* Filtre seçici: radyo düğmeleri; seçili filtrenin çifti gösterilir (JavaScript gerekmez). */
.viewer-picker {
    grid-area: picker;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.viewer-chips {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 5.5rem;
    gap: var(--sp-3);
    margin: 0 calc(-1 * var(--gutter));
    padding: var(--sp-2) var(--gutter) var(--sp-3);
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.viewer-chip {
    scroll-snap-align: start;
}

.viewer-chip label {
    position: relative;
    display: grid;
    gap: var(--sp-2);
    cursor: pointer;
}

.viewer-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.viewer-chip img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--r-md);
    outline: 1px solid var(--line);
    outline-offset: -1px;
    transition: outline-color var(--quick) var(--ease), opacity var(--quick) var(--ease);
    opacity: 0.72;
}

.viewer-chip-name {
    font-family: var(--serif);
    font-size: var(--step-0);
    line-height: 1.2;
}

.viewer-chip-kind {
    margin-top: calc(-1 * var(--sp-2));
    color: var(--stone);
    font-size: var(--step--1);
}

.viewer-chip:hover img {
    opacity: 1;
}

.viewer-chip:has(input:checked) img {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    opacity: 1;
}

.viewer-chip:has(input:checked) .viewer-chip-name {
    color: var(--gold);
}

.viewer-chip:has(input:focus-visible) img {
    outline: 2px solid var(--ivory);
    outline-offset: 4px;
}

.viewer:has(.viewer-chip input:checked) .viewer-pair {
    display: none;
}

.viewer:has(.viewer-chip:nth-child(1) input:checked) .viewer-pair:nth-child(1),
.viewer:has(.viewer-chip:nth-child(2) input:checked) .viewer-pair:nth-child(2),
.viewer:has(.viewer-chip:nth-child(3) input:checked) .viewer-pair:nth-child(3),
.viewer:has(.viewer-chip:nth-child(4) input:checked) .viewer-pair:nth-child(4),
.viewer:has(.viewer-chip:nth-child(5) input:checked) .viewer-pair:nth-child(5),
.viewer:has(.viewer-chip:nth-child(6) input:checked) .viewer-pair:nth-child(6),
.viewer:has(.viewer-chip:nth-child(7) input:checked) .viewer-pair:nth-child(7),
.viewer:has(.viewer-chip:nth-child(8) input:checked) .viewer-pair:nth-child(8),
.viewer:has(.viewer-chip:nth-child(9) input:checked) .viewer-pair:nth-child(9),
.viewer:has(.viewer-chip:nth-child(10) input:checked) .viewer-pair:nth-child(10) {
    display: block;
}

.viewer-note {
    grid-area: note;
    max-width: 36rem;
}

@media (min-width: 60rem) {
    .viewer {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        grid-template-rows: auto auto auto 1fr;
        grid-template-areas: "stage intro" "stage picker" "stage note" "stage .";
        column-gap: clamp(3rem, 1rem + 5vw, 6rem);
        row-gap: var(--sp-5);
    }

    /* Sahne ekran yüksekliğine sığar; geniş ekranda sütunun sağına yaslanır. */
    .viewer-stage {
        width: min(100%, 66svh);
        max-width: none;
        margin: 0;
        align-self: start;
    }

    .viewer-chips {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-flow: row;
        grid-auto-columns: auto;
        margin: 0;
        padding: var(--sp-2) 0 0;
        overflow: visible;
    }
}

/* ---------------------------------------------------------------- Uygulama ekranları */

.screens {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(72vw, 18rem);
    gap: var(--sp-5);
    margin: 0 calc(-1 * var(--gutter));
    padding: var(--sp-2) var(--gutter) var(--sp-4);
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.screen {
    display: grid;
    gap: var(--sp-4);
    align-content: start;
    margin: 0;
    scroll-snap-align: start;
}

.screen img {
    width: 100%;
    border-radius: var(--r-phone);
    box-shadow: var(--shadow-photo), 0 0 0 1.5px var(--hairline);
}

.screen figcaption {
    display: grid;
    gap: var(--sp-1);
    max-width: 22em;
}

.screen figcaption strong {
    font-family: var(--serif);
    font-size: var(--step-1);
    font-weight: 400;
}

.screen figcaption span {
    color: var(--stone);
}

@media (min-width: 52rem) {
    .screens {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(1.5rem, 1rem + 3vw, 4.5rem);
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .screens > li:nth-child(2) {
        margin-top: var(--sp-8);
    }
}

/* ---------------------------------------------------------------- Gizlilik */

.privacy {
    background:
        radial-gradient(60rem 30rem at 15% 0%, rgb(200 167 112 / 9%), transparent 70%),
        var(--ink);
}

.privacy-statement {
    display: grid;
    gap: var(--sp-5);
    max-width: 50rem;
    margin-bottom: var(--sp-8);
}

.privacy-statement h2 {
    font-size: var(--step-5);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.facts {
    display: grid;
    gap: var(--sp-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.fact {
    display: grid;
    gap: var(--sp-2);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--hairline);
}

.fact h3 {
    font-size: var(--step-2);
}

.fact p {
    color: var(--stone);
}

.privacy-link {
    margin-top: var(--sp-7);
}

@media (min-width: 48rem) {
    .facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--sp-6);
    }
}

/* ---------------------------------------------------------------- Pro */

.pro-plans {
    display: grid;
    gap: var(--sp-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan {
    display: grid;
    gap: var(--sp-1);
    padding: var(--sp-4) var(--sp-5);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}

.plan-featured {
    border-color: var(--hairline);
}

.plan h3 {
    font-size: var(--step-1);
    line-height: 1.3;
}

.plan p {
    color: var(--stone);
}

@media (min-width: 30rem) {
    .pro-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------------------------------------------------------------- SSS */

.faq {
    display: grid;
    gap: var(--sp-7);
}

.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: var(--sp-4);
    min-height: 44px;
    padding-block: var(--sp-4);
    font-family: var(--serif);
    font-size: var(--step-1);
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker,
.toc summary::-webkit-details-marker {
    display: none;
}

/* Artı işareti; açıkken eksiye döner. */
.faq-item summary::after,
.toc summary::after {
    content: "";
    flex: none;
    width: 0.875rem;
    height: 0.875rem;
    background:
        linear-gradient(var(--gold), var(--gold)) center / 100% 1.5px no-repeat,
        linear-gradient(var(--gold), var(--gold)) center / 1.5px 100% no-repeat;
    transition: transform var(--quick) var(--ease);
}

.faq-item[open] summary::after,
.toc[open] summary::after {
    background: linear-gradient(var(--gold), var(--gold)) center / 100% 1.5px no-repeat;
}

.faq-item summary:hover {
    color: var(--gold);
}

.faq-answer {
    max-width: 40em;
    padding-bottom: var(--sp-5);
    color: var(--stone);
}

@media (min-width: 60rem) {
    .faq {
        grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
        align-items: start;
    }
}

/* ---------------------------------------------------------------- Son çağrı */

.closing {
    display: grid;
    justify-items: center;
    gap: var(--sp-5);
    text-align: center;
}

.closing img {
    width: 4.5rem;
}

.closing h2 {
    font-size: var(--step-4);
    max-width: 14em;
}

/* ---------------------------------------------------------------- Alt bilgi */

.site-footer {
    padding-block: var(--sp-8) var(--sp-6);
    border-top: 1px solid var(--line);
    background: var(--ink);
    color: var(--stone);
    font-size: var(--step--1);
}

.footer-grid {
    display: grid;
    gap: var(--sp-6);
}

.footer-brand {
    display: grid;
    align-content: start;
    gap: var(--sp-3);
    max-width: 22rem;
}

.footer-brand img {
    width: auto;
    height: 1.75rem;
}

.site-footer h2 {
    margin-bottom: var(--sp-2);
    font-family: var(--sans);
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--ivory);
    letter-spacing: 0;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--stone);
    text-decoration: none;
}

.site-footer li a:hover {
    color: var(--ivory);
}

.site-footer address {
    font-style: normal;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--sp-3);
    margin-top: var(--sp-7);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--line);
}

@media (min-width: 48rem) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ---------------------------------------------------------------- Yasal sayfalar */

.legal {
    padding-block: var(--sp-6) var(--section);
}

.legal-head {
    display: grid;
    gap: var(--sp-4);
    max-width: var(--measure);
    padding-bottom: var(--sp-6);
    margin-bottom: var(--sp-6);
    border-bottom: 1px solid var(--line);
}

.legal-head h1 {
    font-size: var(--step-4);
}

.legal-updated {
    color: var(--stone);
    font-size: var(--step--1);
}

.legal-layout {
    display: grid;
    gap: var(--sp-6);
}

.legal-aside {
    display: grid;
    gap: var(--sp-5);
    align-content: start;
    font-size: var(--step--1);
}

.legal-aside h2 {
    margin-bottom: var(--sp-2);
    font-family: var(--sans);
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--ivory);
    letter-spacing: 0;
}

.legal-aside ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-aside a {
    display: block;
    padding-block: var(--sp-2);
    color: var(--stone);
    line-height: 1.4;
    text-decoration: none;
}

.legal-aside a:hover,
.legal-aside a[aria-current="page"] {
    color: var(--gold);
}

.toc {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}

.toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    min-height: 48px;
    padding-inline: var(--sp-4);
    color: var(--ivory);
    font-weight: 600;
    cursor: pointer;
}

.toc ul {
    padding: 0 var(--sp-4) var(--sp-3);
}

.toc-wide {
    display: none;
}

@media (min-width: 68rem) {
    .legal-layout {
        grid-template-columns: 15rem minmax(0, var(--measure));
        gap: clamp(3rem, 2rem + 4vw, 6rem);
    }

    .legal-head,
    .legal-more {
        margin-left: calc(15rem + clamp(3rem, 2rem + 4vw, 6rem));
    }

    .legal-aside {
        position: sticky;
        top: var(--sp-6);
        max-height: calc(100vh - 2 * var(--sp-6));
        overflow-y: auto;
    }

    .toc {
        display: none;
    }

    .toc-wide {
        display: block;
    }

    .toc-wide a {
        padding-left: var(--sp-3);
        border-left: 1px solid var(--line);
    }
}

/* Markdown'dan gelen metin. */
.prose {
    min-width: 0;
    max-width: var(--measure);
    overflow-wrap: break-word;
    line-height: 1.7;
}

.prose > * + * {
    margin-top: var(--sp-4);
}

.prose h2 {
    margin-top: var(--sp-7);
    font-size: var(--step-3);
    line-height: 1.15;
}

.prose h3 {
    margin-top: var(--sp-6);
    font-size: var(--step-2);
    line-height: 1.2;
}

.prose h2 + *,
.prose h3 + * {
    margin-top: var(--sp-3);
}

.prose > :first-child {
    margin-top: 0;
}

.prose strong {
    color: var(--ivory);
    font-weight: 600;
}

.prose ul,
.prose ol {
    padding-left: 1.25em;
}

.prose li + li {
    margin-top: var(--sp-2);
}

.prose li::marker {
    color: var(--gold);
}

.prose a {
    overflow-wrap: anywhere;
}

.prose blockquote {
    margin-inline: 0;
    padding: var(--sp-4) var(--sp-5);
    border-left: 2px solid var(--gold);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    background: var(--surface);
    color: var(--ivory);
}

.prose hr {
    height: 1px;
    margin-block: var(--sp-7);
    border: 0;
    background: var(--line);
}

.prose code {
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: var(--raised);
    font-size: 0.9em;
}

.prose p,
.prose li {
    color: var(--ivory-soft);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--step--1);
    line-height: 1.5;
}

/* Üç ve daha çok sütunlu tablolar dar ekranda sıkışmaz, kendi kutusunda yana kayar. */
.prose table:has(th:nth-child(3)) {
    min-width: 36rem;
}

.prose th,
.prose td {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.prose th {
    color: var(--ivory);
    font-weight: 600;
    background: var(--raised);
}

.prose tr:last-child td {
    border-bottom: 0;
}

.prose td:first-child {
    color: var(--ivory);
}

.legal-more {
    max-width: var(--measure);
    margin-top: var(--sp-8);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--line);
}

.legal-more h2 {
    margin-bottom: var(--sp-4);
    font-size: var(--step-2);
}

.doc-links {
    display: grid;
    gap: var(--sp-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-links a {
    display: grid;
    gap: var(--sp-1);
    height: 100%;
    padding: var(--sp-4) var(--sp-5);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--ivory);
    text-decoration: none;
    transition: border-color var(--quick) var(--ease);
}

.doc-links a:hover {
    border-color: var(--gold);
}

.doc-links strong {
    font-family: var(--serif);
    font-size: var(--step-1);
    font-weight: 400;
}

.doc-links span {
    color: var(--stone);
    font-size: var(--step--1);
}

@media (min-width: 40rem) {
    .doc-links {
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    }
}

/* ---------------------------------------------------------------- Hareket azaltma */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
