/* Üretilmiştir: apps/web/build.mjs. Renkler: packages/ui/theme.ts */
:root {
  --bg: #3B2A22;
  --card: #4C382E;
  --frame: #2A1D17;
  --text: #F3E9DF;
  --text-secondary: #C9B8A8;
  --accent: #8EC9FF;
  --on-accent: #1C2A3A;
  --danger: #FF9F8E;
  --recording: #FF7A66;
}

/*
 * Telve web sitesi. Renk kodu YAZILMAZ: yalnızca build.mjs'in packages/ui/theme.ts'ten ürettiği
 * değişkenler (--bg, --card, --frame, --text, --text-secondary, --accent, --on-accent, --danger)
 * ve onlardan color-mix ile türetilen tonlar kullanılır. Nazar mavisi (--accent) yalnızca mikrofon
 * ve vurgular içindir. Betik yok; her şey CSS.
 */

@font-face { font-family: Inter; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }

:root {
  --line: color-mix(in srgb, var(--text) 14%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 28%, transparent);
  --wash: color-mix(in srgb, var(--frame) 55%, var(--bg));
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 42rem;
  --wide: 68rem;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'calt', 'case';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p, li { text-wrap: pretty; }

.skip { position: absolute; left: -200vw; top: 0.75rem; background: var(--accent); color: var(--on-accent); padding: 0.5rem 0.9rem; border-radius: 0.6rem; font-weight: 600; text-decoration: none; z-index: 10; }
.skip:focus { left: 0.75rem; }

/* Üst şerit ve alt bilgi -------------------------------------------------------------------- */

.site-header, .site-footer { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.site-header nav { display: flex; gap: clamp(1rem, 4vw, 1.75rem); }
.site-header nav a, .site-footer nav a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding-block: 0.4rem; }
.site-header nav a:hover, .site-footer nav a:hover, nav a[aria-current='page'] { color: var(--text); }

.brand { text-decoration: none; color: var(--text); display: inline-flex; padding-block: 0.25rem; }
.wordmark { font-weight: 700; font-size: 1.55rem; letter-spacing: -0.045em; line-height: 1; }

.site-footer { border-top: 1px solid var(--line); margin-top: clamp(4rem, 10vw, 7rem); padding-block: 2.5rem 3.5rem; display: grid; gap: 1.25rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; }
.site-footer p { margin: 0; color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; }
.site-footer p a { color: inherit; }

/* Ana sayfa -------------------------------------------------------------------------------- */

.home main > section { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }

.hero { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 8vw, 6rem) clamp(3rem, 8vw, 6rem); }
@media (min-width: 56rem) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }

.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1.5rem; padding: 0.4rem 0.85rem 0.4rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; }
.eyebrow::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }

.hero h1 { font-size: clamp(2.6rem, 8.2vw, 4.75rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; }
.hero h1 span { display: block; color: var(--text-secondary); }
.lede { margin: 1.5rem 0 0; max-width: 34rem; font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.55; color: var(--text-secondary); }
.lede strong { color: var(--text); font-weight: 500; }

/* Örnek kartı: fincanın dibindeki telve halkası üzerinde "söylenen → yazılan". */
.demo { position: relative; isolation: isolate; }
.demo::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -12% -8% -14% -8%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--frame) 0 46%, transparent 47%),
    radial-gradient(closest-side, transparent 0 61%, var(--wash) 62% 71%, transparent 72%),
    radial-gradient(closest-side, transparent 0 87%, var(--line) 88% 89%, transparent 90%);
}
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: 1.5rem; padding: clamp(1.25rem, 4vw, 1.75rem); display: grid; gap: 1.1rem; box-shadow: 0 1.5rem 3rem -1.5rem var(--frame); }
.sheet h2 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); display: flex; align-items: center; gap: 0.6rem; }
.said { margin: 0; color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }
.said s { text-decoration-color: var(--danger); text-decoration-thickness: 2px; color: color-mix(in srgb, var(--text-secondary) 70%, var(--card)); }
.sheet hr { border: 0; border-top: 1px dashed var(--line-strong); margin: 0; }
.written { margin: 0; font-size: clamp(1.3rem, 3.4vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.mic { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.mic::before { content: ''; width: 0.5rem; height: 0.8rem; border-radius: 0.3rem; background: var(--on-accent); }
.pen { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text); font-size: 0.8rem; font-weight: 700; }
.pen::before { content: '\2713'; }

@media (prefers-reduced-motion: no-preference) {
  .sheet > * { animation: rise 0.7s both cubic-bezier(0.2, 0.7, 0.2, 1); }
  .sheet > :nth-child(2) { animation-delay: 0.08s; }
  .sheet > :nth-child(4) { animation-delay: 0.3s; }
  .sheet > :nth-child(5) { animation-delay: 0.38s; }
  @keyframes rise { from { opacity: 0; transform: translateY(0.5rem); } }
}

.block { padding-block: clamp(3rem, 8vw, 5.5rem); border-top: 1px solid var(--line); }
.block > h2 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.035em; max-width: 22ch; }
.block > .intro { margin: 1rem 0 0; max-width: 38rem; color: var(--text-secondary); font-size: 1.1rem; }

.steps { list-style: none; margin: clamp(2rem, 5vw, 3rem) 0 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 2px solid var(--line-strong); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 0.875rem; font-weight: 600; font-feature-settings: 'tnum'; color: var(--text-secondary); margin-bottom: 0.9rem; }
.steps h3 { font-size: 1.25rem; font-weight: 600; }
.steps p { margin: 0.5rem 0 0; color: var(--text-secondary); }

.spoken { margin: clamp(2rem, 5vw, 3rem) 0 0; padding: 1.1rem 1.25rem; border-left: 3px solid var(--accent); background: var(--wash); border-radius: 0 1rem 1rem 0; max-width: 46rem; }
.spoken b { display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.35rem; }
.spoken p { margin: 0; color: var(--text); }

.modes { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .modes { grid-template-columns: repeat(3, 1fr); } }
.modes li { background: var(--card); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.25rem 1.25rem 1.35rem; display: grid; gap: 0.6rem; align-content: start; }
.modes h3 { font-size: 1.15rem; font-weight: 600; display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.modes h3 small { font-size: 0.75rem; font-weight: 500; letter-spacing: 0; color: var(--text-secondary); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.1rem 0.55rem; white-space: nowrap; }
.modes p { margin: 0; color: var(--text-secondary); font-size: 0.975rem; line-height: 1.55; }
.modes q { quotes: none; display: block; color: var(--text); font-size: 1rem; line-height: 1.5; padding-top: 0.7rem; border-top: 1px dashed var(--line-strong); }
.after { margin: 1.5rem 0 0; max-width: 46rem; color: var(--text-secondary); }
.after strong { color: var(--text); font-weight: 600; }

.promises { list-style: none; margin: clamp(2rem, 5vw, 3rem) 0 0; padding: 0; display: grid; gap: 0; max-width: 50rem; }
.promises li { display: grid; grid-template-columns: 1.75rem 1fr; gap: 1rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.promises li:last-child { border-bottom: 1px solid var(--line); }
.promises li::before { content: '\2713'; font-weight: 700; color: var(--accent); line-height: 1.65; }
.promises strong { display: block; font-weight: 600; }
.promises span { color: var(--text-secondary); }
.more { display: inline-block; margin-top: 1.75rem; font-weight: 600; }

.soon { text-align: left; }
.soon p { margin: 1rem 0 0; color: var(--text-secondary); max-width: 36rem; font-size: 1.1rem; }

/* Metin sayfaları (gizlilik, koşullar, hesap silme, destek) ---------------------------------- */

.doc main { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) 0; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; letter-spacing: -0.04em; }
.doc .meta { margin: 1rem 0 0; color: var(--text-secondary); font-size: 0.95rem; font-feature-settings: 'tnum'; }
.doc .summary { margin: 2rem 0 0; padding: 1.25rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: 1.25rem; }
.doc .summary h2 { margin: 0 0 0.6rem; padding: 0; border: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.doc .summary ul { margin: 0; padding-left: 1.15rem; }
.doc .summary li { margin-block: 0.3rem; }

.doc .toc { margin: 2rem 0 0; padding: 0; }
.doc .toc h2 { margin: 0 0 0.5rem; padding: 0; border: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); }
.doc .toc ol { margin: 0; padding: 0; list-style: none; columns: 2 14rem; column-gap: 2rem; }
.doc .toc li { margin: 0; padding-block: 0.2rem; break-inside: avoid; font-size: 0.975rem; }
.doc .toc a { color: var(--text-secondary); text-decoration: none; }
.doc .toc a:hover { color: var(--text); text-decoration: underline; }

.doc h2 { font-size: 1.45rem; font-weight: 700; margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.doc h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; margin: 1.75rem 0 0; scroll-margin-top: 1rem; }
.doc p { margin: 0.9rem 0 0; }
.doc ul, .doc ol { margin: 0.9rem 0 0; padding-left: 1.3rem; }
.doc li { margin-block: 0.4rem; }
.doc li::marker { color: var(--text-secondary); }
.doc strong { font-weight: 600; }
.doc .note { margin: 1.25rem 0 0; padding: 0.9rem 1.1rem; border-left: 3px solid var(--accent); background: var(--wash); border-radius: 0 0.9rem 0.9rem 0; }
.doc .note p:first-child { margin-top: 0; }
.doc code { font: inherit; background: var(--wash); border-radius: 0.35rem; padding: 0.05rem 0.35rem; }

.table { margin: 1.25rem calc(-1 * var(--gutter)) 0; padding-inline: var(--gutter); overflow-x: auto; }
.table table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.925rem; line-height: 1.5; }
.table th, .table td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.table th { font-weight: 600; color: var(--text-secondary); font-size: 0.8125rem; letter-spacing: 0.02em; white-space: nowrap; }
.table td:first-child { font-weight: 600; }

.doc .steps-plain { margin-top: 1.25rem; counter-reset: s; list-style: none; padding: 0; }
.doc .steps-plain li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: baseline; padding-block: 0.6rem; border-bottom: 1px solid var(--line); margin: 0; }
.doc .steps-plain li::before { content: counter(s); font-weight: 700; font-feature-settings: 'tnum'; color: var(--text-secondary); }

.mail { display: inline-block; margin-top: 1.25rem; padding: 0.9rem 1.3rem; background: var(--card); border: 1px solid var(--line-strong); border-radius: 0.9rem; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.mail:hover { border-color: var(--accent); }

.notfound { padding-block: clamp(3rem, 12vw, 8rem); }
