/* ============================================================================
   ROVYOX — TEMEL: reset, tipografi, yerleşim yardımcıları
   REDESIGN.md "Görsel dil / Tipografi". Renk/ölçü yalnızca tokens.css'ten.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hd-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  min-height: 100vh;
  background: var(--bg-subtle);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }
[hidden] { display: none !important; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
  color: var(--ink);
}
p { text-wrap: pretty; }
strong, b { font-weight: var(--fw-semibold); }
code, kbd, pre, .mono { font-family: var(--font-mono); }
small { font-size: var(--fs-xs); }

/* ---- Yerleşim ------------------------------------------------------------ */
.container, .wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.container--wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }

/* overflow-x: clip — hiçbir genişlikte yatay kaydırma olmasın (dekoratif taşmalar
   kırpılır); clip, hidden'dan farklı olarak sticky konumlandırmayı bozmaz. */
main { position: relative; z-index: var(--z-content); display: block; outline: none; overflow-x: clip; }
.view { display: none; }
.view.active { display: block; animation: rx-view-in var(--dur-slow) var(--ease-out); }
@keyframes rx-view-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .view.active { animation: none; } }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem); }

/* ---- Tipografi ölçeği ---------------------------------------------------- */
.display {
  font-size: var(--fs-display);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: var(--fw-bold);
}
.h-page {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
}
.h-section {
  font-size: var(--fs-h2);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.h-sub { font-size: var(--fs-h3); letter-spacing: -0.012em; }
.lead {
  font-size: clamp(1rem, .94rem + .3vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 64ch;
}
.muted { color: var(--muted); }

/* Başlıktaki vurgulu kısım. Her başlıkta renkli kelime şablon gibi
   duruyordu: vurgu yalnızca ana sayfa hero başlığında, düz renk olarak kalır;
   diğer başlıklarda metin normal renktedir. */
.hl { font-style: normal; color: inherit; }
/* Hero başlığındaki vurgulu kısım: yalnızca renk; altında çizgi / fosforlu iz yok. */
.display .hl { color: inherit; }
.hl:empty { display: none; }

/* Bölüm etiketi — çerçevesiz, sade metin */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--accent-ink);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
}
.eyebrow-pill__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-cyan) 25%, transparent);
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* ---- İkonlar (SVG sprite) ------------------------------------------------- */
.ic {
  width: 20px; height: 20px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic--sm { width: 16px; height: 16px; }
.ic--xs { width: 13px; height: 13px; }
/* Metin içindeki ikon (not satırları, iletişim satırları) */
.ic--inline { vertical-align: -.2em; margin-right: .35em; }
.ic--lg { width: 24px; height: 24px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: var(--fw-semibold);
  color: var(--accent-ink);
}
.link-arrow .ic { transition: transform var(--dur) var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .ic { transform: translateX(3px); }

/* Tool ikon kutusu */
.tool-ic {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: var(--r);
  background: linear-gradient(145deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, var(--surface)));
  border: 1px solid var(--accent-line);
  color: var(--accent-ink);
}
.tool-ic .ic { width: 20px; height: 20px; stroke-width: 1.4; }
.tool-ic--sm { width: 34px; height: 34px; border-radius: var(--r-sm); }
.tool-ic--sm .ic { width: 17px; height: 17px; }
.tool-ic--lg { width: 46px; height: 46px; }
.tool-ic--lg .ic { width: 23px; height: 23px; }

/* Küçük sektör etiketi */
.chip-mini {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
}

/* Bal küpü alanı — botlar görür, insanlar görmez */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Ekran okuyucu */
.rx-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; }

@media print {
  .site-header, .site-footer, .rx-bg, .cookie, .cookie-dim, #waWidget, .tool-related, .mnav { display: none !important; }
  body { background: #fff; }
}
