/* Dynext AI (deneme9): açık yüzeyli, mint + mavi ikinci renk ailesi, degrade zemin, hap düğmeler, ortalı hero ve pencere içinde canlı sohbet.
   Tek dosya. Tüm renk, boşluk, yazı boyutu, yarıçap, gölge ve süre :root içindeki token'lardan gelir (ADR-004).
   Tek tema (açık). Cam, blur ve glow yok. */

/* Yazı tipi: IBM Plex Sans (400, 600, 600 italik). OFL, self-host, latin + latin-ext. İtalik yalnız .accent içinde kullanılır. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-ext-600-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;

  /* Nötr (8 ton: ADR-004 K1 ile kabul edilen istisna) */
  --background: oklch(0.99 0.004 200);
  --card: oklch(1 0 0);
  --muted: oklch(0.97 0.012 220);
  --border: oklch(0.92 0.012 230);
  --border-strong: oklch(0.84 0.02 235);
  --muted-foreground: oklch(0.44 0.020 255);
  --foreground: oklch(0.21 0.030 255);

  /* Eylem: koyu hap düğme, gönder, kullanıcı balonu */
  --primary: var(--foreground);
  --primary-hover: oklch(0.30 0.03 255);
  --primary-foreground: oklch(0.99 0.004 200);

  /* Mavi ailesi: bağlantı, odak, ilerleme, Rubick bloğu */
  --blue: oklch(0.44 0.14 258);
  --blue-mid: oklch(0.48 0.15 250);
  --blue-deep: oklch(0.38 0.13 262);
  --blue-wash: oklch(0.95 0.035 240);

  /* Mint ailesi: vurgu ucu, adım numarası, aktif mod */
  --mint: oklch(0.57 0.11 170);
  --mint-ink: oklch(0.45 0.09 172);
  --mint-wash: oklch(0.94 0.05 170);
  --mint-soft: oklch(0.96 0.03 170);

  /* Mavi blok üstü */
  --on-blue: oklch(0.99 0.004 200);
  --on-blue-muted: oklch(0.92 0.02 250);
  --on-blue-line: oklch(1 0 0 / 0.28);
  --on-blue-fill: oklch(1 0 0 / 0.12);

  /* Durum: yalnız durumda */
  --success: oklch(0.52 0.14 150);
  --warning: oklch(0.55 0.13 70);
  --destructive: oklch(0.53 0.21 27);

  /* Rol takma adları */
  --ring: var(--blue);
  --link: var(--blue);
  --logo-filter: invert(1);

  /* Degrade (5) */
  --grad-hero:
    radial-gradient(ellipse 48rem 28rem at 16% 4rem, var(--mint-wash), transparent 70%),
    radial-gradient(ellipse 46rem 28rem at 86% 8rem, var(--blue-wash), transparent 70%);
  --grad-cta:
    radial-gradient(ellipse 36rem 20rem at 12% 0%, var(--mint-wash), transparent 70%),
    radial-gradient(ellipse 36rem 20rem at 92% 100%, var(--blue-wash), transparent 70%);
  --grad-panel: linear-gradient(135deg, var(--mint-soft), var(--blue-wash));
  --grad-accent: linear-gradient(90deg, var(--mint), var(--blue-mid));
  --grad-deep: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));

  /* Gölge (2): cam, blur, glow yok */
  --shadow-sm: 0 0.0625rem 0.125rem oklch(0.21 0.03 255 / 0.06);
  --shadow-lg: 0 1.5rem 4rem oklch(0.21 0.03 255 / 0.08), 0 0.25rem 1rem oklch(0.21 0.03 255 / 0.04);

  /* Tipografi: tek aile */
  --font-sans: "IBM Plex Sans", system-ui, "Segoe UI", Arial, sans-serif;
  --weight-regular: 400;
  --weight-strong: 600;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-lead: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  --text-h2: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  --text-hero: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
  --leading-heading: 1.1;
  --leading-title: 1.3;
  --leading-body: 1.5;
  --leading-relaxed: 1.6;
  --tracking-heading: -0.01em;
  --measure-hero: 17em;
  --measure-head: 46rem;
  --measure-heading: 18em;
  --measure-lede: 34em;
  --measure-text: 62ch;
  --underline-offset: 0.25em;

  /* Boşluk */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Boyut */
  --container: 75rem;
  --chat-width: 52rem;
  --dialog-width: 32rem;
  --chat-log-max: 26rem;
  --chat-min: 36rem;
  --chat-min-sm: 46rem;
  --media-h: 12rem;
  --target: 2.75rem;
  --nav-height: calc(var(--space-2) * 2 + var(--target) + var(--space-1) * 2);
  --icon: 1.25rem;
  --icon-sm: 1rem;
  --stroke: 2;
  --logo-height: 1.75rem;
  --dot: 0.5rem;
  --orb: 4.5rem;
  --orb-lg: 6rem;
  --border-width: 1px;
  --ring-width: 2px;
  --ring-offset: 2px;
  --scroll-width: 0.25rem;
  --dock-height: calc(var(--space-4) * 2 + var(--space-12));

  /* Köşe (ölçek; hap yalnız düğme, çip, menü, gösterge) */
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-pill: 999rem;
  --radius: var(--radius-sm);
  --radius-full: var(--radius-pill);

  /* Hareket */
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 250ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  /* Katman */
  --z-nav: 10;
  --z-toast: 60;
  --z-voice: 65;
  --z-modal: 70;
  --z-lightbox: 100;

  /* Ses durumları */
  --voice-idle: var(--muted-foreground);
  --voice-listen: var(--blue);
  --voice-think: var(--muted-foreground);
  --voice-speak: var(--success);
  --voice-busy: var(--border-strong);
  --voice-error: var(--destructive);
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-height) + var(--space-4)); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-sans); font-size: var(--text-base); font-weight: var(--weight-regular); line-height: var(--leading-relaxed);
  font-variant-numeric: lining-nums;
  color: var(--foreground);
  background-color: var(--background); background-image: var(--grad-hero); background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--primary); color: var(--primary-foreground); }
/* Tarayıcı yüzeyleri paletten: yazı imleci, form kontrolleri */
:root { accent-color: var(--blue); }
textarea, input { caret-color: var(--blue); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
/* Satır kırılımı: gövde metni son satırda tek sözcük bırakmaz. Tarayıcı desteklemezse varsayılan akış sürer. */
p, li, dd, figcaption { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:where(a, button, textarea, input, select, summary, [tabindex]):focus-visible {
  outline: var(--ring-width) solid var(--ring); outline-offset: var(--ring-offset);
}
.sr-only { position: absolute; width: var(--border-width); height: var(--border-width); overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: var(--space-4); top: var(--space-2); z-index: var(--z-modal);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill);
  background: var(--primary); color: var(--primary-foreground); font-weight: var(--weight-strong);
  transform: translateY(-300%);
}
.skip:focus { transform: none; }
/* Yan dolgu en az 24 px; çentikli telefonda yatay konumda güvenli alan kadar büyür (viewport-fit=cover) */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-left: max(var(--space-6), env(safe-area-inset-left)); padding-right: max(var(--space-6), env(safe-area-inset-right)); }
.icon { flex-shrink: 0; width: var(--icon); height: var(--icon); fill: none; stroke: currentColor; stroke-width: var(--stroke); stroke-linecap: round; stroke-linejoin: round; }
/* object-fit: dar kapta logo sıkışırsa oranı bozulmaz, küçülür */
.logo { display: block; height: var(--logo-height); width: auto; object-fit: contain; object-position: left center; filter: var(--logo-filter); }

/* Başlık rolleri: hepsi Plex 600 */
h1, h2, h3 { font-weight: var(--weight-strong); letter-spacing: var(--tracking-heading); line-height: var(--leading-heading); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-lg); line-height: var(--leading-title); }

/* Renkli ikinci satır: yalnız başlıklarda, Plex 600 italik; degrade yalnız @supports içinde, yüksek kontrastta düz renk */
.accent {
  display: block; width: fit-content; font-style: italic; color: var(--mint-ink);
  padding-inline: var(--space-1); padding-block-end: var(--space-1);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.head-center .accent, .hero-copy .accent, .cta-panel .accent { margin-inline: auto; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .accent { background-image: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
@media (forced-colors: active) {
  .accent { background-image: none; -webkit-text-fill-color: currentColor; color: inherit; }
}

/* ---------- Düğme (hap) ve metin bağlantısı ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--target); padding-inline: var(--space-6); cursor: pointer; text-align: center;
  font-size: var(--text-base); font-weight: var(--weight-strong); line-height: 1;
  border: var(--border-width) solid transparent; border-radius: var(--radius-pill);
  transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-hover); }
/* Açık düğme: hero "Görüşme iste" ile sohbet içi ikincil kontroller (kapsam onayı, ses, abonelik) */
.btn-outline { background: var(--card); color: var(--foreground); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--muted); }
.btn-lg { min-height: var(--space-12); padding-inline: var(--space-8); font-size: var(--text-base); }
.link {
  display: inline; padding: 0; cursor: pointer; font: inherit; color: var(--link); background: none; border: 0;
  text-decoration: underline; text-decoration-thickness: var(--border-width); text-underline-offset: var(--underline-offset);
}
.link:hover { text-decoration-thickness: var(--ring-width); }

/* ---------- Üst menü: yüzen hap ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-nav); padding-block: var(--space-2); }
.nav-pill {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-6);
  background: var(--card); border: var(--border-width) solid var(--border); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.nav-brand { display: inline-flex; align-items: center; min-height: var(--target); border-radius: var(--radius-pill); }
.nav-links { display: none; align-items: center; gap: var(--space-1); margin: 0 auto 0 var(--space-4); }
.nav-link {
  display: inline-flex; align-items: center; min-height: var(--target); padding-inline: var(--space-2);
  font-size: var(--text-sm); color: var(--muted-foreground); border-radius: var(--radius-pill); white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
}
.nav-link:hover { color: var(--foreground); background: var(--muted); }
.nav-right { display: flex; align-items: center; gap: var(--space-2); }
/* Düğme ≥48em görünür; altında mobil menüde ve sabit çubukta */
.nav-cta { display: none; flex-shrink: 0; white-space: nowrap; }
.burger {
  flex-shrink: 0; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--space-1);
  width: var(--target); height: var(--target); padding: 0; cursor: pointer; background: none; border: 0; border-radius: var(--radius-pill);
}
.burger:hover { background: var(--muted); }
.burger span { display: block; width: var(--icon); height: var(--ring-width); border-radius: var(--radius-pill); background: var(--foreground); transition: transform var(--duration-base) var(--ease-standard), opacity var(--duration-base) var(--ease-standard); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(var(--space-2)) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(calc(-1 * var(--space-2))) rotate(-45deg); }
.mobile-menu {
  position: absolute; top: calc(100% + var(--space-2)); left: 0; right: 0; display: flex; flex-direction: column; gap: var(--space-1);
  max-height: calc(100vh - var(--nav-height)); max-height: calc(100dvh - var(--nav-height)); overflow-y: auto;
  padding: var(--space-2); background: var(--card); border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(calc(-1 * var(--space-2)));
  transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard), visibility var(--duration-base);
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { display: flex; align-items: center; min-height: var(--target); padding-inline: var(--space-4); font-size: var(--text-base); border-radius: var(--radius-sm); }
.mobile-menu a:hover { background: var(--muted); }
.mobile-menu .btn { margin-top: var(--space-2); }

/* ---------- Hero: ortalı başlık, pencere içinde canlı Invoker, kanal şeridi ---------- */
.hero { padding-block: var(--space-16) 0; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-12); }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); text-align: center; }
.hero h1 { max-width: var(--measure-hero); }
.lede { max-width: var(--measure-lede); font-size: var(--text-lead); line-height: var(--leading-relaxed); color: var(--muted-foreground); }
.hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-4); width: 100%; margin: 0; }
.hero-chat { width: 100%; min-width: 0; }
.window { width: 100%; max-width: var(--chat-width); margin-inline: auto; background: var(--card); border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
/* Pencere çubuğu süstür; telefonda yer kazanmak için gizli. Kimlik zaten sohbet kartının başlığında. */
.window-bar { display: none; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); border-bottom: var(--border-width) solid var(--border); }
.dots { display: flex; gap: var(--space-2); }
.dots i { display: block; width: var(--space-2); height: var(--space-2); border-radius: var(--radius-pill); background: var(--border-strong); }
.channels { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.channels p { font-size: var(--text-sm); color: var(--muted-foreground); }
.channel-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.channel { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); background: var(--card); border: var(--border-width) solid var(--border); border-radius: var(--radius-pill); }

/* ---------- Bölümler: ritim boşlukla kurulur; üst çizgi yok ---------- */
.section { padding-block: var(--space-16); }
.head-center { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); max-width: var(--measure-head); margin-inline: auto; text-align: center; }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.section-head h2, .split-head h2 { max-width: var(--measure-heading); }
.section-head p, .split-head p, .lead { max-width: var(--measure-text); font-size: var(--text-lead); line-height: var(--leading-relaxed); color: var(--muted-foreground); }
.note { max-width: var(--measure-text); line-height: var(--leading-relaxed); color: var(--muted-foreground); }

/* Sol başlık + gövde: Nasıl, Sektörler, Kurumsal, Güvenlik, SSS */
.split { display: grid; gap: var(--space-12); }
.split-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.split-head .note { font-size: var(--text-base); }
.split-body { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.block { display: flex; flex-direction: column; gap: var(--space-4); }
.block-title { margin-top: var(--space-8); }
.block > .block-title { margin-top: 0; }
#urunler { margin-top: var(--space-16); }

/* Çözümler kartları */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); margin-top: var(--space-12); }
.card { display: flex; flex-direction: column; padding: var(--space-2); background: var(--card); border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-media { display: flex; height: var(--media-h); padding: var(--space-4); background: var(--grad-panel); border-radius: var(--radius-md); }
.card-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6) var(--space-4) var(--space-4); }
.card-body p { color: var(--muted-foreground); }
.sk { display: block; height: var(--space-6); background: var(--card); border: var(--border-width) solid var(--border); border-radius: var(--radius-pill); }
.sk-w40 { width: 40%; }
.sk-w60 { width: 60%; }
.sk-dark { background: var(--primary); border-color: var(--primary); }
.m-chat { flex-direction: column; justify-content: center; gap: var(--space-2); }
.m-chat .sk-dark { align-self: flex-end; width: 50%; }
.mini-chip { align-self: flex-start; margin-top: var(--space-2); padding: var(--space-1) var(--space-4); background: var(--mint-wash); color: var(--mint-ink); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: var(--weight-strong); }
.m-flow { align-items: center; justify-content: center; }
.node { flex: 1 1 0; min-width: 0; padding: var(--space-2) var(--space-1); background: var(--card); border: var(--border-width) solid var(--border); border-radius: var(--radius-sm); font-size: var(--text-sm); text-align: center; }
.node-main { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.link-line { flex: 0 0 var(--space-4); height: var(--border-width); background: var(--border-strong); }
.site { position: relative; width: 100%; background: var(--card); border: var(--border-width) solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.site-bar { display: flex; gap: var(--space-1); padding: var(--space-2); border-bottom: var(--border-width) solid var(--border); }
.site-bar i { display: block; width: var(--space-2); height: var(--space-2); border-radius: var(--radius-pill); background: var(--border-strong); }
.site-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); }
.site-chat { position: absolute; right: var(--space-2); bottom: var(--space-2); width: var(--space-8); height: var(--space-8); border-radius: var(--radius-pill); background: var(--grad-accent); }

/* Liste paneli: Hazır ürünler, Kurumsal ajanlar, Güvenlik. Satır ayracı yalnız 1 px çizgi. overflow:hidden halkayı keser; odak içe doğru. */
.list-panel { display: flex; flex-direction: column; background: var(--card); border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.list-panel :focus-visible { outline-offset: calc(var(--ring-offset) * -1); }
.list-panel > * + * { border-top: var(--border-width) solid var(--border); }
.product { text-decoration: none; color: inherit; cursor: pointer; text-align: left; background: none; border: 0; transition: background-color var(--duration-fast) var(--ease-standard); }
.product-row, .agent { display: grid; gap: var(--space-2) var(--space-8); padding: var(--space-6); }
.product-row { width: 100%; min-height: var(--target); align-items: baseline; }
.product-row:hover { background: var(--muted); }
.product-title { font-size: var(--text-lg); font-weight: var(--weight-strong); line-height: var(--leading-title); }
.product-text, .agent dd { line-height: var(--leading-relaxed); color: var(--muted-foreground); }
.agent dt { font-weight: var(--weight-strong); line-height: var(--leading-title); }
.prose p { padding: var(--space-6); line-height: var(--leading-relaxed); }
.prose strong { font-weight: var(--weight-strong); }

/* Nasıl çalışıyoruz: gerçek sıra, numara anlamlı */
.steps { display: flex; flex-direction: column; gap: var(--space-4); counter-reset: step; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-6); background: var(--card); border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: var(--space-8); height: var(--space-8); border-radius: var(--radius-pill); background: var(--mint-wash); color: var(--mint-ink); font-weight: var(--weight-strong); }
.step > div { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.step p { color: var(--muted-foreground); }
.step-meta { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1) var(--space-4); margin: var(--space-2) 0 0; padding-top: var(--space-4); border-top: var(--border-width) solid var(--border); font-size: var(--text-sm); }
.step-meta dt { font-weight: var(--weight-strong); }
.step-meta dd { color: var(--muted-foreground); }
.step-meta dd + dt { margin-top: var(--space-2); }

/* Akordeon kart: Sektörler ve SSS */
.sector-list, .faq { display: flex; flex-direction: column; gap: var(--space-2); }
.sector, .q { background: var(--card); border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); }
.sector[open], .q[open] { box-shadow: var(--shadow-sm); }
.sector summary, .q summary { min-height: var(--target); padding: var(--space-4) var(--space-6); border-radius: var(--radius-lg); cursor: pointer; list-style: none; font-weight: var(--weight-strong); }
.sector summary::-webkit-details-marker, .q summary::-webkit-details-marker { display: none; }
.sector summary:hover, .q summary:hover { color: var(--link); }
.sector summary::after, .q summary::after { content: "+"; content: "+" / ""; display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--space-8); height: var(--space-8); border-radius: var(--radius-pill); background: var(--primary); color: var(--primary-foreground); font-size: var(--text-lg); line-height: 1; font-weight: var(--weight-regular); }
.sector[open] summary::after, .q[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.q summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.sector summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-4); align-items: center; }
.sector summary h3 { grid-column: 1; }
.sector-lead { grid-column: 1; margin-top: var(--space-1); font-weight: var(--weight-regular); color: var(--muted-foreground); line-height: var(--leading-relaxed); }
.sector summary::after { grid-column: 2; grid-row: 1 / span 2; }
.sector-points { display: flex; flex-direction: column; gap: var(--space-2); padding: 0 var(--space-6) var(--space-6); line-height: var(--leading-relaxed); color: var(--muted-foreground); }
.sector-ask { max-width: var(--measure-text); margin-top: var(--space-4); line-height: var(--leading-relaxed); color: var(--muted-foreground); }
.sector-ask strong { font-weight: var(--weight-strong); color: var(--foreground); }
.q p { padding: 0 var(--space-6) var(--space-6); line-height: var(--leading-relaxed); color: var(--muted-foreground); }

/* Kurumsal altyapı paneli */
.panel-soft { padding: var(--space-6); background: var(--grad-panel); border: var(--border-width) solid var(--border); border-radius: var(--radius-xl); }
.tools { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2) var(--space-8); }
.tools dt { font-weight: var(--weight-strong); }
.tools dd { color: var(--muted-foreground); }

/* ---------- Rubick: sayfanın tek dolu mavi bloğu (metin, bağlantı ve karusel aynı; yalnız görünüm) ---------- */
.panel-blue { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-8) var(--space-4); background-color: var(--blue-deep); background-image: var(--grad-deep); color: var(--on-blue); border-radius: var(--radius-lg); }
#rubick :focus-visible { outline-color: var(--on-blue); }
#rubick .carousel-viewport :focus-visible { outline-color: var(--ring); }
#rubick h2 { color: var(--on-blue); }
#rubick .section-head p { color: var(--on-blue-muted); font-size: var(--text-lead); }
.rubick-top { display: grid; gap: var(--space-8); align-items: start; margin: 0; }
#rubick .checks { display: flex; flex-direction: column; gap: var(--space-2); }
#rubick .checks li { display: flex; align-items: flex-start; gap: var(--space-2); line-height: var(--leading-relaxed); }
#rubick .checks li::before { content: "\2713" / ""; flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--space-6); height: var(--space-6); border-radius: var(--radius-pill); background: var(--on-blue-fill); color: var(--on-blue); font-size: var(--text-xs); font-weight: var(--weight-strong); }
#rubick .hero-actions { margin-top: var(--space-6); }
#rubick .hero-actions .link { display: inline-flex; align-items: center; justify-content: center; min-height: var(--target); padding-inline: var(--space-6); border: var(--border-width) solid transparent; border-radius: var(--radius-pill); font-weight: var(--weight-strong); text-decoration: none; transition: background-color var(--duration-fast) var(--ease-standard); }
#rubick .hero-actions .link:first-child { background: var(--on-blue); color: var(--blue-deep); }
#rubick .hero-actions .link:first-child:hover { background: var(--mint-soft); }
#rubick .hero-actions .link:last-child { border-color: var(--on-blue-line); color: var(--on-blue); }
#rubick .hero-actions .link:last-child:hover { background: var(--on-blue-fill); }
.carousel { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.carousel:focus-visible { outline: var(--ring-width) solid var(--link); outline-offset: var(--space-2); border-radius: var(--radius-lg); }
.carousel-viewport { overflow: hidden; background: var(--card); border: var(--border-width) solid var(--on-blue-line); border-radius: var(--radius-lg); touch-action: pan-y; }
.slide { position: relative; margin: 0; }
.slide img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.slide figcaption { padding: var(--space-4) var(--space-6); font-size: var(--text-sm); color: var(--foreground); border-top: var(--border-width) solid var(--border); }
/* 360 px: ok + 9 nokta (24 px hedef) + ok = 312 px; blok içinde karusel 328 px'e yayılır, düğmeler 44 px kalır */
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: var(--space-1); }
.carousel-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: var(--target); height: var(--target); cursor: pointer; color: var(--on-blue); background: var(--on-blue-fill); border: var(--border-width) solid var(--on-blue-line); border-radius: var(--radius-pill); transition: background-color var(--duration-fast) var(--ease-standard); }
.carousel-btn:hover { background: var(--on-blue-line); }
.carousel-dots { display: flex; align-items: center; min-width: 0; }
.carousel-dot { display: inline-flex; align-items: center; justify-content: center; flex: 0 1 auto; width: var(--space-6); min-width: 0; height: var(--target); padding: 0; cursor: pointer; background: none; border: 0; }
.carousel-dot::before { content: ""; width: var(--space-2); height: var(--space-2); border-radius: var(--radius-pill); background: transparent; border: var(--border-width) solid var(--on-blue-muted); transition: background-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); }
.carousel-dot[aria-current="true"]::before { background: var(--on-blue); border-color: var(--on-blue); transform: scale(1.5); }
.carousel-dot:hover::before { background: var(--on-blue-line); }

/* ---------- Kapanış ---------- */
.cta { padding-bottom: var(--space-16); }
.cta-panel { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); padding: var(--space-16) var(--space-6); text-align: center; background-color: var(--card); background-image: var(--grad-cta); border: var(--border-width) solid var(--border); border-radius: var(--radius-xl); }
.cta-panel h2 { max-width: var(--measure-head); }

/* ---------- Sohbet (Invoker) ---------- */
.chat { width: 100%; display: flex; flex-direction: column; padding: var(--space-4); background: var(--grad-panel); }
/* Sohbet kartı yüksekliği sabit: öneri çipleri geç gelince (veya çevrimdışıyken hiç gelmeyince) alttaki bölüm kaymaz (CLS) */
.hero-chat .chat { min-height: var(--chat-min-sm); }
.hero-chat .chat-log { flex: 1 1 auto; }
@media (min-width: 48em) {
  .hero-chat .chat { min-height: var(--chat-min); }
}
.chat-log { display: flex; flex-direction: column; gap: var(--space-2); max-height: var(--chat-log-max); min-height: var(--space-24); overflow-y: auto; overscroll-behavior: contain; padding: var(--space-2); }
.row { display: flex; }
.row.ai { justify-content: flex-start; }
.row.user { justify-content: flex-end; }
.bubble {
  max-width: 85%; padding: var(--space-2) var(--space-4); font-size: var(--text-base); line-height: var(--leading-relaxed);
  border-radius: var(--radius-md); overflow-wrap: anywhere;
  animation: fade var(--duration-fast) var(--ease-standard) both;
}
.bubble-ai { background: var(--card); color: var(--foreground); border: var(--border-width) solid var(--border); border-bottom-left-radius: var(--space-1); }
.bubble-user { background: var(--primary); color: var(--primary-foreground); border-bottom-right-radius: var(--space-1); }
.bubble.err { background: var(--card); color: var(--foreground); border: var(--border-width) solid var(--destructive); }
/* Akan yanıt her parçada yeniden dizilir; satır kırılımı oynamasın diye varsayılan akış */
.bubble p, .bubble li { text-wrap: wrap; }
.bubble p { margin: 0 0 var(--space-2); }
.bubble p:last-child { margin: 0; }
.bubble ul { margin: var(--space-1) 0 var(--space-2); padding-left: var(--space-6); }
.bubble li + li { margin-top: var(--space-1); }
.bubble strong { font-weight: var(--weight-strong); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.typing { display: inline-flex; gap: var(--space-1); padding: var(--space-1) 0; }
.typing i { width: var(--dot); height: var(--dot); border-radius: var(--radius-full); background: var(--muted-foreground); animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.35; } 30% { opacity: 1; } }

.scrollbar-gray { scrollbar-width: thin; scrollbar-color: var(--muted-foreground) transparent; }
.scrollbar-gray::-webkit-scrollbar { width: var(--scroll-width); }
.scrollbar-gray::-webkit-scrollbar-thumb { background: var(--muted-foreground); border-radius: var(--radius-full); }

/* Asistan kimliği: kart üstünde ad + tek satır açıklama */
.chat-head { display: flex; flex-direction: column; margin: 0 var(--space-2) var(--space-4); }
.chat-name { font-weight: var(--weight-strong); line-height: var(--leading-title); }
.chat-role { font-size: var(--text-sm); line-height: var(--leading-body); color: var(--muted-foreground); }

/* Mod göstergesi: iki seçenekli hap segment */
.modes { display: flex; gap: var(--space-1); margin: 0 0 var(--space-4); padding: var(--space-1); background: var(--card); border: var(--border-width) solid var(--border); border-radius: var(--radius-pill); }
.mode {
  flex: 1; min-height: var(--target); padding: 0 var(--space-2); cursor: pointer; text-align: center;
  font-size: var(--text-sm); font-weight: var(--weight-regular); color: var(--muted-foreground);
  background: transparent; border: 0; border-radius: var(--radius-pill);
  transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.mode:hover { color: var(--foreground); }
.mode[aria-pressed="true"] { font-weight: var(--weight-strong); color: var(--mint-ink); background: var(--mint-soft); }

/* Yönlendirme ipucu */
.hint { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 var(--space-2) var(--space-4); font-size: var(--text-sm); color: var(--muted-foreground); }
.hint-go { min-height: var(--target); padding: 0 var(--space-4); cursor: pointer; font-size: var(--text-sm); font-weight: var(--weight-strong); color: var(--link); background: var(--card); border: var(--border-width) solid var(--border-strong); border-radius: var(--radius-pill); }
.hint-go:hover { background: var(--muted); }
.hint-close { display: inline-flex; align-items: center; justify-content: center; width: var(--target); height: var(--target); padding: 0; cursor: pointer; color: var(--muted-foreground); background: none; border: 0; border-radius: var(--radius-pill); }

/* Kapsam göstergesi (JEV) */
.jev { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-2) var(--space-2) var(--space-4); font-size: var(--text-sm); color: var(--muted-foreground); }
.jev[hidden], .jev-approve[hidden], .new-chat[hidden] { display: none; }
.jev-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); }
.jev-label { font-weight: var(--weight-strong); color: var(--foreground); }
.jev-bar { height: var(--space-2); overflow: hidden; background: var(--border-strong); border-radius: var(--radius-full); }
.jev-bar i { display: block; width: 100%; height: 100%; background: var(--blue); transform: scaleX(var(--jev, 0)); transform-origin: left; transition: transform var(--duration-slow) var(--ease-standard); }
.jev-approve { align-self: flex-start; min-height: var(--target); }
.new-chat { min-height: var(--target); margin: 0 var(--space-2); padding: 0 var(--space-2); cursor: pointer; font-size: var(--text-sm); color: var(--muted-foreground); background: none; border: 0; text-decoration: underline; }
.typing-note { margin-left: var(--space-2); font-size: var(--text-sm); color: var(--muted-foreground); }
.late-note { margin: 0; padding-inline: var(--space-4); font-size: var(--text-sm); line-height: var(--leading-body); color: var(--muted-foreground); }

/* Soru çipleri (öneri + açılış): 44 px dokunma alanı */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) var(--space-2) var(--space-4); }
.chip {
  min-height: var(--target); padding: var(--space-2) var(--space-4); max-width: 100%;
  font-size: var(--text-sm); line-height: var(--leading-body); text-align: left; overflow-wrap: anywhere; cursor: pointer;
  color: var(--link); background: var(--card); border: var(--border-width) solid var(--border-strong); border-radius: var(--radius-pill);
  animation: fade var(--duration-fast) var(--ease-standard) both;
  transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.chip:hover { background: var(--muted); border-color: var(--link); }

.composer { display: flex; flex-direction: column; background: var(--card); border: var(--border-width) solid var(--muted-foreground); border-radius: var(--radius-lg); }
.composer:focus-within { outline: var(--ring-width) solid var(--ring); outline-offset: var(--ring-offset); }
.composer textarea {
  display: block; width: 100%; min-height: var(--target); max-height: var(--chat-log-max); resize: none; padding: var(--space-4) var(--space-4) var(--space-2);
  font: inherit; font-size: var(--text-base); line-height: var(--leading-body); color: var(--foreground); background: transparent; border: 0; outline: none; border-radius: var(--radius-lg);
}
.composer textarea::placeholder { color: var(--muted-foreground); opacity: 1; }
.composer-bar { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); padding: var(--space-2); }
.status { display: inline-flex; align-items: center; gap: var(--space-2); margin-right: auto; padding-left: var(--space-2); font-size: var(--text-sm); color: var(--muted-foreground); }
.status i { flex-shrink: 0; width: var(--dot); height: var(--dot); border-radius: var(--radius-full); background: var(--warning); }
.status.ok i { background: var(--success); }
.status.err i { background: var(--destructive); }
.send, .mic-btn {
  position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
  width: var(--target); height: var(--target); padding: 0; border-radius: var(--radius-pill); border: 0;
  transition: background-color var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.send { background: var(--primary); color: var(--primary-foreground); }
.send:active:not(:disabled) { transform: scale(0.96); }
.send:disabled { background: var(--muted); color: var(--muted-foreground); cursor: default; }
/* Yapay zekâ ve kişisel veri uyarısı: ziyaretçinin okuması gereken metin, 14 px */
.chat-note { max-width: var(--measure-text); margin: var(--space-4) var(--space-2) var(--space-2); font-size: var(--text-sm); line-height: var(--leading-body); color: var(--muted-foreground); }

/* ---------- Sesli Invoker (şimdilik kapalı; açılırsa aynı temada) ---------- */
.mic-btn { background: var(--muted); color: var(--foreground); }
.mic-btn:hover { background: var(--border); }
.mic-btn[aria-pressed="true"] { background: var(--primary); color: var(--primary-foreground); }
.mic-btn[disabled] { opacity: 0.4; cursor: default; }
.mic-ring { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.dictate-btn { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.dictate-pen-icon { position: absolute; right: 0; bottom: 0; width: var(--icon-sm); height: var(--icon-sm); padding: var(--space-1); box-sizing: content-box; border-radius: var(--radius-full); background: var(--card); color: var(--foreground); }
.dictate-btn[data-state="recording"] { background: var(--destructive); color: var(--primary-foreground); }
.dictate-btn[data-state="recording"] .mic-ring { border: var(--ring-width) solid var(--destructive); animation: pulse 1.1s ease-in-out infinite; }
.dictate-btn--busy { opacity: 0.7; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.dictate-bar { display: flex; align-items: center; gap: var(--space-2); min-height: var(--target); padding: var(--space-2); }
.dictate-bar-btn {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
  width: var(--target); height: var(--target); border-radius: var(--radius-pill); border: 0; background: var(--muted); color: var(--foreground);
}
.dictate-bar-cancel { color: var(--destructive); }
.dictate-bar-confirm { background: var(--primary); color: var(--primary-foreground); }
.dictate-wave { flex: 1; min-width: 0; height: var(--space-8); display: flex; align-items: center; justify-content: center; gap: var(--space-1); }
.dictate-wave .bar { flex: 1; max-width: var(--space-1); min-width: var(--ring-width); height: 100%; border-radius: var(--radius-full); background: var(--muted-foreground); transform: scaleY(var(--h, 0.08)); transition: transform 80ms linear; }
.dictate-bar[data-state="transcribing"] .dictate-wave .bar { animation: wave 1s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes wave { 0%, 100% { transform: scaleY(0.15); } 50% { transform: scaleY(1); } }
.dictate-timer { flex-shrink: 0; min-width: var(--space-12); text-align: center; font-size: var(--text-sm); font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
.dictate-bar[data-state="recording"] .dictate-timer { color: var(--destructive); }

.voice-consent { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: var(--space-4); }
.voice-consent-backdrop { position: absolute; inset: 0; background: var(--foreground); opacity: 0.5; }
.voice-consent-panel { position: relative; width: 100%; max-width: var(--dialog-width); padding: var(--space-8); background: var(--background); border: var(--border-width) solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.voice-consent-panel h2 { margin: 0 0 var(--space-4); font-size: var(--text-lg); line-height: var(--leading-heading); }
.voice-consent-panel h2:focus-visible { outline: none; }
.voice-consent-panel p { margin: 0 0 var(--space-6); font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--muted-foreground); }
.voice-consent-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--space-2); }

.chat--voice .composer { max-height: 0; opacity: 0; overflow: hidden; margin: 0; border: 0; pointer-events: none; }
.voice-panel { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; padding: var(--space-6) var(--space-4); }
.voice-close { position: absolute; top: var(--space-2); right: var(--space-2); display: none; align-items: center; justify-content: center; width: var(--target); height: var(--target); cursor: pointer; background: none; border: 0; border-radius: var(--radius-pill); }
.voice-orb { position: relative; width: var(--orb); height: var(--orb); margin-bottom: var(--space-4); }
.voice-orb-core { display: block; width: 100%; height: 100%; border-radius: var(--radius-full); background: var(--voice-idle); transition: background-color var(--duration-base) var(--ease-standard); }
.voice-orb-level { position: absolute; inset: 0; border-radius: inherit; border: var(--ring-width) solid var(--voice-listen); opacity: 0; transform: scale(calc(1 + var(--level, 0) * 0.28)); transition: transform 90ms linear, opacity var(--duration-fast) ease; }
.voice-orb[data-state="connecting"] .voice-orb-core { animation: breathe 1.8s ease-in-out infinite; }
.voice-orb[data-state="listening"] .voice-orb-core { background: var(--voice-listen); }
.voice-orb[data-state="listening"] .voice-orb-level { opacity: 1; }
.voice-orb[data-state="thinking"] .voice-orb-core { background: var(--voice-think); animation: breathe 1.2s ease-in-out infinite; }
.voice-orb[data-state="speaking"] .voice-orb-core { background: var(--voice-speak); cursor: pointer; }
.voice-orb[data-state="queued"] .voice-orb-core,
.voice-orb[data-state="your_turn"] .voice-orb-core,
.voice-orb[data-state="busy"] .voice-orb-core { background: var(--voice-busy); }
.voice-orb[data-state="error"] .voice-orb-core { background: var(--voice-error); }
@keyframes breathe { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.voice-state-label { margin-bottom: var(--space-2); min-height: var(--space-6); text-align: center; font-size: var(--text-sm); color: var(--muted-foreground); }
.voice-error-actions { display: flex; align-items: center; justify-content: center; gap: var(--space-4); margin-bottom: var(--space-2); }
.voice-fallback { min-height: var(--target); padding: 0 var(--space-2); background: none; border: 0; border-radius: var(--radius-pill); cursor: pointer; color: var(--link); text-decoration: underline; text-underline-offset: var(--space-1); font-size: var(--text-sm); }
.voice-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.voice-ptt, .voice-end { min-height: var(--target); padding: 0 var(--space-6); cursor: pointer; border-radius: var(--radius-pill); font-size: var(--text-base); font-weight: var(--weight-strong); }
.voice-ptt { background: var(--primary); color: var(--primary-foreground); border: var(--border-width) solid var(--primary); }
.voice-ptt:active, .voice-ptt[data-active="true"] { opacity: 0.8; }
.voice-end { background: transparent; color: var(--foreground); border: var(--border-width) solid var(--border-strong); }
.bubble-draft { opacity: 0.6; }
.bubble-draft .caret { display: inline-block; width: var(--ring-width); height: 1em; margin-left: var(--space-1); vertical-align: -0.15em; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.stt-meta { display: block; margin-top: var(--space-1); font-size: var(--text-xs); opacity: 0.7; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: var(--z-toast);
  max-width: calc(100vw - var(--space-8)); padding: var(--space-2) var(--space-6); border-radius: var(--radius-pill);
  font-size: var(--text-sm); color: var(--background); background: var(--foreground);
  animation: toast-in var(--duration-base) var(--ease-standard) both;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, var(--space-2)); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Alt bilgi ---------- */
.footer { border-top: var(--border-width) solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); padding-block: var(--space-16) var(--space-12); }
.fcol { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.flinks a, .flink-icon { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target); font-size: var(--text-sm); color: var(--muted-foreground); overflow-wrap: anywhere; transition: color var(--duration-fast) var(--ease-standard); }
.flinks a:hover, .flink-icon:hover { color: var(--foreground); }
.footer-home { display: inline-flex; align-items: center; min-height: var(--target); border-radius: var(--radius); }
.fhead { margin-bottom: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-strong); line-height: var(--leading-body); color: var(--foreground); }
.fmuted { max-width: 22em; font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--muted-foreground); }
.subscribe { display: flex; flex-direction: column; gap: var(--space-2); }
.subscribe input { min-height: var(--target); padding: 0 var(--space-4); font: inherit; font-size: var(--text-base); color: var(--foreground); background: var(--card); border: var(--border-width) solid var(--muted-foreground); border-radius: var(--radius-pill); }
.sub-msg { min-height: 1em; font-size: var(--text-xs); color: var(--muted-foreground); }
/* Çizgi içerik kenarlarında biter (kapsayıcı dolgusuna taşmaz) */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-6); padding-block: var(--space-6); border-top: var(--border-width) solid var(--border); }
.footer-bottom p { font-size: var(--text-sm); color: var(--muted-foreground); }

/* ---------- Telefonda sabit sohbet çubuğu (yalnız <48em; görünme app.js ile .is-on) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav);
  padding: var(--space-4) max(var(--space-4), env(safe-area-inset-right)) calc(var(--space-4) + env(safe-area-inset-bottom, 0px)) max(var(--space-4), env(safe-area-inset-left));
  background: var(--background); border-top: var(--border-width) solid var(--border);
  opacity: 0; visibility: hidden;
  transition: opacity var(--duration-fast) var(--ease-standard), visibility var(--duration-fast);
}
.dock.is-on { opacity: 1; visibility: visible; }
.dock .btn { width: 100%; }

/* ---------- Duyarlı kırılımlar (em: 30em = 480, 40em = 640, 48em = 768, 64em = 1024, 80em = 1280) ---------- */
@media (min-width: 30em) {
  .hero-actions { flex-direction: row; justify-content: center; width: auto; }
  #rubick .hero-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
}
@media (min-width: 40em) {
  .carousel-controls { gap: var(--space-4); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .chat { padding: var(--space-6); }
  .window { border-radius: var(--radius-xl); }
  .step-meta { grid-template-columns: auto minmax(0, 1fr); }
  .step-meta dd + dt { margin-top: 0; }
}
@media (min-width: 48em) {
  .dock { display: none; }
  .nav-cta { display: inline-flex; }
  .window-bar { display: flex; }
  .hero { padding-block: var(--space-24) 0; }
  .section { padding-block: var(--space-24); }
  .cta { padding-bottom: var(--space-24); }
  .cta-panel { padding: var(--space-24) var(--space-8); }
  .bubble { max-width: 80%; }
  .product-row, .agent { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .panel-soft { padding: var(--space-8); }
  .panel-blue { padding: var(--space-12); border-radius: var(--radius-xl); }
}
@media (min-width: 64em) {
  /* Üst menü 5 bağlantı + tek düğmeyle 1024 px'ten itibaren sığar; altında hamburger kalır */
  .nav-links { display: flex; }
  .burger { display: none; }
  .mobile-menu { display: none; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-16); align-items: start; }
  /* Sol başlık sütunu okurken menünün altında kalır; sütun kendi bölümünün sonunda biter. Yalnız .sticky-head. */
  .sticky-head { position: sticky; top: calc(var(--nav-height) + var(--space-8)); align-self: start; }
  .panel-blue { padding: var(--space-16); }
  .rubick-top { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--space-12); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
@media (min-width: 80em) {
  .nav-link { padding-inline: var(--space-4); }
}
@media (max-width: 47.99em) {
  /* Sabit çubuk içeriğin son satırını örtmesin */
  .footer { padding-bottom: var(--dock-height); }
  /* 360 px: Rubick bloğunda karusel kontrolleri 312 px ister; kapsayıcı dolgusu daralır, karusel 8 px yayılır */
  #rubick > .container { padding-left: max(var(--space-2), env(safe-area-inset-left)); padding-right: max(var(--space-2), env(safe-area-inset-right)); }
  #rubick .carousel { margin-inline: calc(var(--space-2) * -1); }
  /* Halka panelin dışına taşmasın: küçük ekranda karusel kenara yayıldığı için halka içeride kalır */
  #rubick .carousel:focus-visible { outline-offset: 0; }
  .chat--voice .voice-panel { position: fixed; inset: 0; z-index: var(--z-voice); justify-content: center; background: var(--background); padding: calc(var(--space-6) + env(safe-area-inset-top)) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom)); }
  .chat--voice .voice-close { display: flex; }
  .voice-orb { width: var(--orb-lg); height: var(--orb-lg); }
  .voice-ptt { width: 100%; }
}

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

/* ---------- Rubick büyük görsel (lightbox): kapalı sahne için --foreground yüzeyi ---------- */
.slide-expand { position: absolute; top: var(--space-2); right: var(--space-2); display: inline-flex; align-items: center; justify-content: center; width: var(--target); height: var(--target); padding: 0; cursor: pointer; color: var(--foreground); background: var(--card); border: var(--border-width) solid var(--muted-foreground); border-radius: var(--radius-pill); transition: border-color var(--duration-fast) var(--ease-standard); }
.slide-expand:hover { border-color: var(--link); }
.slide-expand:focus-visible, .lightbox-btn:focus-visible { outline: var(--ring-width) solid var(--ring); outline-offset: var(--ring-offset); }
.lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); align-items: center; gap: var(--space-2); padding: var(--space-2); color: var(--background); background: color-mix(in oklch, var(--foreground) 97%, transparent); }
.lightbox[hidden] { display: none; }
.lightbox-bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); }
.lightbox-count { margin-right: auto; padding-left: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-strong); font-variant-numeric: tabular-nums; }
.lightbox-figure { grid-column: 2; grid-row: 2; margin: 0; min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); }
.lightbox-img { display: block; max-width: 95vw; max-height: 90vh; min-height: 0; width: auto; height: auto; object-fit: contain; flex: 0 1 auto; }
.lightbox-caption { font-size: var(--text-sm); font-weight: var(--weight-strong); text-align: center; }
.lightbox-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--target); height: var(--target); padding: 0; cursor: pointer; color: var(--background); background: transparent; border: var(--border-width) solid var(--muted-foreground); border-radius: var(--radius-pill); transition: background-color var(--duration-fast) var(--ease-standard); }
.lightbox-btn:hover { background: var(--muted-foreground); }
.lightbox-prev { grid-column: 1; grid-row: 2; }
.lightbox-next { grid-column: 3; grid-row: 2; }
html.lightbox-open { overflow: hidden; }
@media (max-width: 40rem) {
  .lightbox { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto minmax(0, 1fr) auto; }
  .lightbox-figure { grid-column: 1 / -1; grid-row: 2; }
  .lightbox-prev, .lightbox-next { grid-row: 3; }
  .lightbox-prev { grid-column: 2; }
  .lightbox-next { grid-column: 3; }
}
