/* Semora tanıtım sitesi — tek stil dosyası. Marka değerleri brand/tokens.json ile birebir:
   koyu tema varsayılan, açık tema [data-theme="light"]. Klinik renkler (--ev/--at/--in/--ed)
   yalnızca ürün ekranı örneklerinde ve kanıt gösteriminde kullanılır; süs için asla. */

/* ── 1. Yazı tipleri (kendi sunucumuzdan; harici istek yok) ───────────────────────────── */
@font-face {
  font-family: "Manrope Variable";
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/Manrope-Variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope Variable";
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/Manrope-Variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/JetBrainsMono-Variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/JetBrainsMono-Variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── 2. Tasarım değişkenleri ──────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-raised: #141d2e;
  --bg-sunken: #070c16;
  --line: #1f2a3d;
  --line-strong: #53627c;
  --field-line: #707e92;
  --text: #edf1f7;
  --text-2: #a5b0c2;
  --brand: #2247d4;
  --brand-hover: #476fdf;
  --on-brand: #fff;
  --link: #6f93e9;
  --focus: #6f93e9;
  --danger: #f26b5b;
  --success: #3dd68c;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  /* klinik durumlar */
  --ev-bg: #3a2f0e; --ev-hover: #4a3c12; --ev-line: #e0a82e; --ev-text: #f5eedd;
  --at-bg: #3d1a15; --at-hover: #4e211a; --at-line: #e4695a; --at-text: #fae7e3;
  --in-bg: #182130; --in-hover: #1f2a3c; --in-line: #5f6c7f; --in-text: #a5b0c2;
  --ed-bg: transparent; --ed-hover: #141d2e; --ed-line: #6f93e9; --ed-text: #edf1f7;

  --font: "Manrope Variable", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --header-h: 4rem;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --bg-raised: #f7f8fa;
  --bg-sunken: #eef1f5;
  --line: #e3e8ef;
  --line-strong: #8d94a0;
  --field-line: #6b778a;
  --text: #0e1726;
  --text-2: #475467;
  --brand-hover: #1d3aa8;
  --link: #2247d4;
  --focus: #2247d4;
  --danger: #b4392c;
  --success: #12805c;
  --shadow: 0 10px 30px rgba(14, 23, 38, 0.1);

  --ev-bg: #fdf4d6; --ev-hover: #fbedbf; --ev-line: #bd8001; --ev-text: #0e1726;
  --at-bg: #fde8e4; --at-hover: #fbd8d2; --at-line: #b4392c; --at-text: #0e1726;
  --in-bg: #f2f4f7; --in-hover: #e8ebf0; --in-line: #848d9e; --in-text: #475467;
  --ed-hover: #f7f8fa; --ed-line: #476fdf; --ed-text: #0e1726;
}

/* ── 3. Temel ─────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

code, kbd { font-family: var(--mono); font-size: 0.875em; }
p code, li code, td code, dd code {
  padding: 0.1em 0.35em;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow-wrap: anywhere;
}
td code { overflow-wrap: normal; white-space: nowrap; }
kbd { padding: 0.1em 0.45em; border: 1px solid var(--line-strong); border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ── 4. Yerleşim ──────────────────────────────────────────────────────────────────────── */
.container { width: min(100% - 2rem, 72.5rem); margin-inline: auto; }
@media (min-width: 48rem) { .container { width: min(100% - 3rem, 72.5rem); } }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background: var(--bg-raised); border-block: 1px solid var(--line); }
.section--alt .card, .section--alt .faq details { background: var(--bg); }

.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head h2 { margin-bottom: 0.75rem; }
.eyebrow { margin-bottom: 0.875rem; font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; color: var(--link); }

h1 { font-size: clamp(2.125rem, 1.2rem + 3vw, 3.375rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.35; }

.lead { max-width: 38rem; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--text-2); }
.section-lead { font-size: 1.0625rem; color: var(--text-2); }

.grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 62rem) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  padding: 1.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-2); }
.card .path { margin-bottom: 0.5rem; font-family: var(--mono); font-size: 0.75rem; color: var(--link); }
.card-text { margin-top: 1rem; }
.card-icon {
  display: grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem;
  color: var(--link); border: 1px solid var(--line-strong); border-radius: var(--r-md);
}
.card-icon .icon { width: 1.375rem; height: 1.375rem; }

.card--row { display: flex; align-items: flex-start; gap: 1rem; }
.card--row .card-icon { margin-bottom: 0; }
.card--row > div { min-width: 0; }

.more { margin-top: 1.75rem; font-weight: 600; }

/* ── 5. Düğmeler ve üst bilgi ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.625rem 1.125rem;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none;
  color: var(--text); background: transparent;
  border: 1px solid var(--field-line); border-radius: var(--r-md);
  cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--bg-raised); text-decoration: none; }
.btn-primary { color: var(--on-brand); background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-lg { min-height: 3rem; padding: 0.75rem 1.375rem; font-size: 1.0625rem; }
.btn-sm { min-height: 2.5rem; padding: 0.5rem 0.875rem; font-size: 0.9375rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 60; padding: 0.625rem 1rem;
  color: var(--on-brand); background: var(--brand); border-radius: var(--r-md); font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.brand { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.625rem; color: var(--text); text-decoration: none; }
.brand img { width: 2.25rem; height: 2.25rem; }
.wordmark { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.035em; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.header-cta { display: none; }

.icon-btn {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  color: var(--text); background: transparent; border: 1px solid var(--field-line); border-radius: var(--r-md); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-raised); }
.theme-toggle .i-moon, :root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.site-nav {
  display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; gap: 0.25rem;
  padding: 0.75rem 1rem 1.25rem; background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-nav.is-open { display: flex; }
.site-nav a:not(.btn) {
  padding: 0.75rem 0.5rem; color: var(--text-2); font-weight: 600; text-decoration: none; border-radius: var(--r-sm);
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--link); }
.nav-cta { margin-top: 0.5rem; }

/* iMED .nav-links: geniş ekranda yatay, tek satır (nowrap), 14px, hap biçimli üzerine gelme; altında açılır menü. */
@media (min-width: 82.5rem) {
  .site-nav, .site-nav.is-open {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 0.25rem;
    margin-left: 1rem; padding: 0; border: 0; background: none;
  }
  .site-nav a:not(.btn) { padding: 0.5rem 0.625rem; font-size: 0.875rem; white-space: nowrap; border-radius: 999px; transition: color .15s, background .15s; }
  .site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { background: var(--bg-raised); box-shadow: none; }
  .nav-cta, .menu-btn { display: none; }
  .header-cta { display: inline-flex; white-space: nowrap; }
}

/* ── 6. Ana sayfa: giriş ──────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 3rem; }
}
.hero h1 { margin-bottom: 1.25rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.figure-note { margin-top: 0.875rem; font-size: 0.875rem; color: var(--text-2); }

/* ── 7. Ürün ekranı örneği ve klinik durumlar ─────────────────────────────────────────── */
.mock { overflow: hidden; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.mock-body { display: grid; }
.mock-col { padding: 1rem; }
.mock-col + .mock-col { border-top: 1px solid var(--line); }
@media (min-width: 40rem) {
  .mock-body { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .mock-col + .mock-col { border-top: 0; border-left: 1px solid var(--line); }
}
.mock-label { margin-bottom: 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-2); }

.tlines { display: grid; gap: 0.25rem; }
.tline {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.5rem; padding: 0.5rem 0.625rem;
  font-size: 0.875rem; line-height: 1.45; border-left: 3px solid transparent; border-radius: var(--r-sm);
}
.tline time { font-family: var(--mono); font-size: 0.75rem; padding-top: 0.15em; color: var(--text-2); }
.tline strong { font-weight: 700; }
.tline.is-source { color: var(--ev-text); background: var(--ev-bg); border-left-color: var(--ev-line); }
.tline.is-source time { color: inherit; }

/* Dört klinik durum: renk + çizgi biçimi + simge birlikte anlatır (yalnız renge güvenilmez). */
.st-evidence { --bg-c: var(--ev-bg); --hover-c: var(--ev-hover); --line-c: var(--ev-line); --text-c: var(--ev-text); --style-c: solid; }
.st-attention { --bg-c: var(--at-bg); --hover-c: var(--at-hover); --line-c: var(--at-line); --text-c: var(--at-text); --style-c: dashed; }
.st-interpretation { --bg-c: var(--in-bg); --hover-c: var(--in-hover); --line-c: var(--in-line); --text-c: var(--in-text); --style-c: dotted; }
.st-edited { --bg-c: var(--ed-bg); --hover-c: var(--ed-hover); --line-c: var(--ed-line); --text-c: var(--ed-text); --style-c: solid; }

.rrows { display: grid; gap: 0.5rem; }
.rrow {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; width: 100%; padding: 0.625rem 0.75rem;
  font: inherit; text-align: left; color: var(--text-c); background: var(--bg-c);
  border: 0; border-left: 3px var(--style-c) var(--line-c); border-radius: var(--r-sm);
}
.rrow.st-edited { border: 2px solid var(--line-c); }
.rrow .icon { margin-top: 0.15rem; }
.rrow-main { display: grid; gap: 0.125rem; min-width: 0; }
.rrow-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 0.75rem; font-size: 0.75rem; font-weight: 700; }
.rrow-state { font-weight: 600; }
.rrow-text { font-size: 0.9375rem; line-height: 1.45; }
button.rrow { cursor: pointer; transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
button.rrow:hover { background: var(--hover-c); }
button.rrow[aria-pressed="true"] { background: var(--hover-c); box-shadow: 0 0 0 2px var(--line-c); }
button.rrow.st-edited[aria-pressed="true"] { box-shadow: none; outline: 2px solid var(--line-c); outline-offset: 2px; }

.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1rem; font-size: 0.875rem; color: var(--text-2); }
.legend li { display: flex; align-items: center; gap: 0.5rem; }
.swatch { flex: none; width: 1.125rem; height: 1.125rem; background: var(--bg-c); border-left: 3px var(--style-c) var(--line-c); border-radius: 2px; }
.swatch.st-edited { border: 2px solid var(--line-c); }

/* ── 8. Ana sayfa: bölümler ───────────────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { padding: 1.5rem; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r-lg); }
.section--alt .step { background: var(--bg); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: 1rem;
  font-family: var(--mono); font-size: 0.875rem; font-weight: 600; color: var(--link);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-2); }

.ev { display: grid; gap: 1rem; }
@media (min-width: 62rem) { .ev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; gap: 1.5rem; } }
.ev-panel { padding: 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ev-note { min-height: 4.5rem; margin-top: 1rem; padding: 0.75rem 0.875rem; font-size: 0.9375rem; color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-md); }
.ev-audio { margin: 1.25rem 0 0; }
.ev-track { position: relative; display: flex; align-items: center; gap: 2px; height: 3rem; margin-top: 2rem; }
.ev-track i { flex: 1; min-width: 1px; background: var(--line-strong); border-radius: 2px; }
.ev-marker { position: absolute; top: -0.25rem; bottom: -0.25rem; width: 3px; background: var(--ev-line); border-radius: 2px; }
.ev-marker span {
  position: absolute; bottom: calc(100% + 0.125rem); left: 50%; transform: translateX(-50%); padding: 0.1rem 0.4rem;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600; color: var(--ev-text); background: var(--ev-bg);
  border: 1px solid var(--ev-line); border-radius: 4px; white-space: nowrap;
}
.ev-ends { display: flex; justify-content: space-between; margin-top: 0.375rem; font-family: var(--mono); font-size: 0.75rem; color: var(--text-2); }

.two-col { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checklist { display: grid; gap: 0.875rem; margin-top: 1rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--text-2); }
.checklist .icon { margin-top: 0.2em; color: var(--link); }

.faq { display: grid; gap: 0.625rem; max-width: 52rem; }
.faq details { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem;
  padding: 0.75rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--link); transition: transform 0.2s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 1.25rem 1.25rem; color: var(--text-2); max-width: 46rem; }

.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; align-items: start; } }
.contact-list { display: grid; gap: 1rem; margin-top: 1.75rem; }
.contact-list dt { font-size: 0.8125rem; font-weight: 700; color: var(--text-2); }
.contact-list dd { margin: 0; }

.form { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r-lg); }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 0.375rem; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--text-2); }
.field input, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.625rem 0.875rem; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--field-line); border-radius: var(--r-md);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-2); }
.field input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.field-hint { font-size: 0.8125rem; color: var(--text-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.form-status { flex: 1 1 14rem; font-size: 0.9375rem; font-weight: 600; }
.form-status[data-state="ok"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--danger); }

/* Alt bilgi — iMED sitesindeki .footer düzeni: marka + 3 sütun (Ürün · Kurumlar · İletişim), mono başlıklar, alt şerit. */
.site-footer { padding-block: 3rem 2.25rem; background: var(--bg-sunken); border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.84375rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.75rem; }
@media (max-width: 56.25rem) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 35rem) { .footer-top { grid-template-columns: 1fr; } }
.site-footer .brand { margin-bottom: 0; }
.footer-tagline { margin-top: 0.75rem; max-width: 20rem; }
.footer-corp { margin-top: 0.875rem; display: grid; gap: 0.25rem; font-size: 0.8125rem; line-height: 1.55; max-width: 20rem; }
.footer-corp b { color: var(--text); font-weight: 650; }
.site-footer h2 { margin-bottom: 0.75rem; font-family: var(--mono); font-size: 0.65625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; font-family: var(--mono); font-size: 0.71875rem; }

/* ── 9. İç sayfalar: özellikler, entegrasyon, 404 ─────────────────────────────────────── */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 1rem; font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.chips a {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.375rem 0.875rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--text); text-decoration: none;
  border: 1px solid var(--field-line); border-radius: 999px;
}
.chips a:hover { background: var(--bg-raised); }

.cat-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.cat-list li { padding: 0.375rem 0.75rem; font-size: 0.9375rem; font-weight: 600; color: var(--text); border: 1px solid var(--field-line); border-radius: 999px; }

.sub { margin: 2.5rem 0 1rem; font-size: 1.25rem; }
.plain-list { display: grid; gap: 0.5rem; margin-top: 0.5rem; color: var(--text-2); }

.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1rem; }
.prose p { color: var(--text-2); }
.note { padding: 1rem 1.25rem; color: var(--text-2); background: var(--bg-raised); border-left: 3px solid var(--link); border-radius: var(--r-sm); }
.note strong { color: var(--text); }

.flow { display: grid; gap: 1rem; counter-reset: flow; }
@media (min-width: 48rem) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow li { padding: 1.25rem; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r-lg); }
.flow li::before { counter-increment: flow; content: counter(flow, decimal-leading-zero); display: block; margin-bottom: 0.75rem; font-family: var(--mono); font-weight: 600; color: var(--link); }
.flow h3 { margin-bottom: 0.375rem; font-size: 1rem; }
.flow p { font-size: 0.9375rem; color: var(--text-2); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 0.9375rem; }
th, td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: 0.8125rem; font-weight: 700; color: var(--text-2); background: var(--bg-raised); border-bottom-color: var(--line-strong); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td { color: var(--text-2); }
td:first-child { color: var(--text); }
.method { display: inline-block; min-width: 4.25rem; padding: 0.1rem 0.4rem; font-family: var(--mono); font-size: 0.75rem; font-weight: 700; text-align: center; color: var(--text); border: 1px solid var(--field-line); border-radius: 4px; }

.code-block + *, .table-wrap + .code-block { margin-top: 1.5rem; }
.code-block figcaption { margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.code-block pre {
  margin: 0; padding: 1rem 1.125rem; overflow-x: auto; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.7;
  color: var(--text); background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--r-md);
}

.notfound { display: grid; place-items: center; min-height: 60vh; padding-block: 4rem; text-align: center; }

/* ── iMED yapısından taşınan bölümler: hero arka plan videosu, özet şerit, Neden (ROI), Mimari ── */
.hero { position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero-media.on { opacity: 1; }
/* Arka plan: formalı sağlık çalışanı tablet kullanıyor (Pexels #4488466, Pexels lisansı).
   Yazılar okunaklı kalsın diye solda (metin sütunu) koyu, sağa doğru açılan Semora mavisi katman. */
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: saturate(0.9) brightness(0.72); }
/* Tablet metin sütunu ile rapor kartı arasındaki boşluğa denk gelsin (geniş ekran) */
@media (min-width: 62rem) { .hero-media video, .hero-media img { transform: scale(1.32) translateX(-12%); transform-origin: 30% 55%; } }
:root[data-theme="light"] .hero-media video, :root[data-theme="light"] .hero-media img { filter: saturate(0.7) brightness(1.15) contrast(0.85); }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 86%, transparent) 0%, color-mix(in srgb, var(--bg) 66%, transparent) 40%, color-mix(in srgb, var(--bg) 30%, transparent) 68%, color-mix(in srgb, var(--bg) 22%, transparent) 100%),
              linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent) 0%, transparent 30%, transparent 85%, var(--bg) 100%),
              linear-gradient(135deg, rgba(34, 71, 212, 0.16), rgba(111, 147, 233, 0.04) 60%, rgba(34, 71, 212, 0.10)); }

.section--tight { padding-block: 1.5rem 2.5rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-raised); }
.stats > div { padding: 1.375rem 1.5rem; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
.stats span { color: var(--text-2); font-size: 0.875rem; }
@media (max-width: 50rem) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.roi-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.125rem; }
.roi-card { grid-column: span 4; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 1.75rem 1.625rem 1.625rem; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(34, 71, 212, 0.10), rgba(111, 147, 233, 0.04) 55%, transparent), var(--bg-raised); transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; }
.roi-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand); }
.roi-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(34, 71, 212, 0.45); }
.roi-card .ico { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px rgba(34, 71, 212, 0.35); margin: 1.125rem 0 1.25rem; }
.roi-card .ico .icon { width: 1.75rem; height: 1.75rem; }
.roi-card h3 { font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.roi-card p { margin-top: 0.625rem; color: var(--text-2); font-size: 0.9375rem; }
.roi-card p strong { color: var(--text); }
.roi-tag { align-self: flex-start; font-family: var(--mono); font-size: 0.65625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); background: rgba(111, 147, 233, 0.12); border: 1px solid rgba(111, 147, 233, 0.30); border-radius: 999px; padding: 0.25rem 0.625rem; }
:root[data-theme="light"] .roi-tag { color: var(--brand); }
.roi-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }
@media (max-width: 68.75rem) { .roi-card { grid-column: span 6; } .roi-card:last-child { grid-column: 1 / -1; } }
@media (max-width: 40rem) { .roi-grid { gap: 0.875rem; } .roi-card, .roi-card:last-child { grid-column: 1 / -1; } .roi-cta .btn { flex: 1 1 100%; justify-content: center; } }

.arch { display: grid; grid-template-columns: 1fr auto 1.4fr auto 1fr; gap: 0.875rem; align-items: stretch; }
@media (max-width: 56.25rem) { .arch { grid-template-columns: 1fr; } .arch .arrow { transform: rotate(90deg); justify-self: center; } }
.arch .node { padding: 1.125rem; border-radius: var(--r-lg); background: var(--bg-raised); border: 1px solid var(--line); }
.arch .node h3 { font-size: 0.6875rem; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.arch .node ul { margin: 0.625rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.375rem; font-size: 0.84375rem; color: var(--text-2); }
.arch .node ul li::before { content: "▸ "; color: var(--link); }
.arch .core { border-color: rgba(111, 147, 233, 0.45); background: rgba(34, 71, 212, 0.08); box-shadow: 0 0 0 4px rgba(34, 71, 212, 0.06); }
.arch .core h3 { color: var(--link); }
.arch .arrow { align-self: center; color: var(--text-2); font-size: 1.375rem; }

/* ── Hızlı demo (iMED'deki canlı sesli demonun karşılığı) ─────────────────────────────── */
.qd-grid { display: grid; gap: 1.125rem; }
@media (min-width: 62rem) { .qd-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; } }
.qd-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); overflow: hidden; }
.qd-card-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1.125rem; border-bottom: 1px solid var(--line); }
.qd-card-head h3 { font-size: 1rem; }
.qd-label { margin-left: auto; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.qd-card-body { display: flex; flex-direction: column; gap: 0.875rem; padding: 1.125rem; flex: 1; }
.qd-card-foot { display: flex; flex-wrap: wrap; gap: 0.625rem; padding: 0.875rem 1.125rem; border-top: 1px solid var(--line); }
.qd-scripts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.qd-chip { padding: 0.375rem 0.875rem; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; font-size: 0.875rem; cursor: pointer; }
.qd-chip.on { border-color: var(--brand); color: var(--text); background: rgba(34, 71, 212, 0.14); }
.qd-script { display: grid; gap: 0.375rem; padding: 0.875rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-sunken); }
.qd-line { font-size: 0.9375rem; color: var(--text); }
.qd-line b { display: inline-block; min-width: 3.5rem; margin-right: 0.5rem; font-size: 0.75rem; font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.qd-line.is-h b { color: var(--link); }
.qd-line.is-p b { color: var(--ev-line); }
.qd-note { padding: 0.75rem 0.875rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.qd-note-k { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 0.375rem; }
.qd-keys { margin: 0; padding-left: 1.125rem; display: grid; gap: 0.25rem; font-size: 0.875rem; color: var(--text-2); }
.qd-flow-note { font-size: 0.875rem; color: var(--text-2); }
.qd-recbox { display: grid; gap: 0.625rem; justify-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-sunken); }
.qd-timer { font-family: var(--mono); font-size: 1.75rem; font-weight: 700; letter-spacing: 0.04em; }
.qd-wave { width: 100%; }
.qd-wave canvas { width: 100%; height: 56px; display: block; }
.qd-controls { display: flex; gap: 0.75rem; }
.qd-btn { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg-raised); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.qd-btn .icon { width: 1.25rem; height: 1.25rem; }
.qd-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qd-btn-rec { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
[data-state="recording"] .qd-btn-stop { border-color: var(--at-line); color: var(--at-line); animation: qd-pulse 1.2s infinite; }
@keyframes qd-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(228, 105, 90, 0.4); } 50% { box-shadow: 0 0 0 8px rgba(228, 105, 90, 0); } }
.qd-sq { width: 0.875rem; height: 0.875rem; border-radius: 2px; background: currentColor; }
.qd-limit { font-size: 0.8125rem; color: var(--text-2); }
.qd-player audio { width: 100%; }
.qd-consent { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.875rem; color: var(--text-2); cursor: pointer; }
.qd-consent input { margin-top: 0.2rem; }
.qd-alt { font-size: 0.875rem; color: var(--text-2); }
.qd-link { color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.qd-msg { min-height: 1.25rem; font-size: 0.875rem; }
.qd-msg.err { color: var(--danger); }
.qd-msg.ok { color: var(--success); }
.qd-send { width: 100%; justify-content: center; }
.qd-stage { margin-top: 1.125rem; padding: 1.125rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); }
.qd-stage.is-done { border-color: rgba(61, 214, 140, 0.5); }
.qd-stage.is-failed { border-color: rgba(242, 107, 91, 0.5); }
.qd-stage-head { display: flex; align-items: center; gap: 1rem; }
.qd-stage-title { font-weight: 700; }
.qd-pct { margin-left: auto; font-family: var(--mono); font-size: 1.25rem; font-weight: 700; }
.qd-steps { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0.875rem 0 0.625rem; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--text-2); }
.qd-steps li { display: inline-flex; align-items: center; gap: 0.5rem; }
.qd-steps li span { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--line-strong); }
.qd-steps li.active { color: var(--text); }
.qd-steps li.active span { background: var(--brand); }
.qd-steps li.done span { background: var(--success); }
.qd-bar { height: 6px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; }
.qd-bar-fill { height: 100%; border-radius: 999px; background: var(--brand); transition: width 0.6s var(--ease); }
.qd-stage.is-done .qd-bar-fill { background: var(--success); }
.qd-stage.is-failed .qd-bar-fill { background: var(--danger); }
.qd-stage-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.5rem; font-size: 0.8125rem; color: var(--text-2); font-family: var(--mono); }
#qdResult { margin-top: 1.125rem; }
.qd-badge { margin-left: auto; font-family: var(--mono); font-size: 0.8125rem; font-weight: 700; padding: 0.125rem 0.625rem; border-radius: 999px; border: 1px solid; }
.qd-badge.ok { color: var(--success); border-color: rgba(61, 214, 140, 0.5); }
.qd-badge.warn { color: var(--ev-line); border-color: rgba(224, 168, 46, 0.5); }
.qd-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.qd-checks li { position: relative; padding-left: 1.625rem; font-size: 0.875rem; color: var(--text-2); }
.qd-checks li b { color: var(--text); font-weight: 600; display: block; }
.qd-checks li span { display: block; font-size: 0.8125rem; }
.qd-checks li::before { position: absolute; left: 0; top: 0.0625rem; font-weight: 700; }
.qd-checks li.ok::before { content: "✓"; color: var(--success); }
.qd-checks li.no::before { content: "✕"; color: var(--danger); }
.qd-checks li.opt::before { content: "○"; color: var(--text-2); }
.qd-transcript { max-height: 14rem; overflow: auto; white-space: pre-wrap; padding: 0.75rem 0.875rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-sunken); font-size: 0.875rem; color: var(--text-2); }
.qd-foot-note, .qd-retention { font-size: 0.8125rem; color: var(--text-2); }
.qd-retention { margin-top: 0.75rem; }
.qd-danger { margin-left: auto; color: var(--danger); border-color: rgba(242, 107, 91, 0.5); }
.qd-off-body { text-align: center; padding: 2.5rem 1.5rem; color: var(--text-2); }
.qd-off-cta { margin-top: 0.875rem; }
.notfound .code404 { margin-bottom: 0.5rem; font-family: var(--mono); font-size: clamp(3.5rem, 12vw, 6rem); font-weight: 700; line-height: 1; color: var(--link); }
.notfound h1 { margin-bottom: 0.75rem; font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem); }
.notfound .lead { margin-inline: auto; }
.notfound .cta-row { justify-content: center; }

/* ── 10. Hareket ──────────────────────────────────────────────────────────────────────── */
.reveal { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-hidden { opacity: 0; transform: translateY(0.75rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ── 20. iMED görsel dil uyumu ────────────────────────────────────────────────────────────
   iMED sitesiyle aynı görsel dil, Semora renkleriyle: tek renk zemin + ince bölüm çizgisi,
   noktalı BÜYÜK HARF bölüm etiketi, hap düğmeler (ana düğme ışımalı), degrade ikon karoları,
   4+3 "Neden" ızgarası, noktalı sayfa çipleri ve sayfa başı ışıması. */
:root { --grad: linear-gradient(135deg, #6f93e9 0%, #2247d4 55%, #1d3aa8 100%); }

.section--alt { background: transparent; border-block: 0; }
.section--alt .card, .section--alt .faq details, .section--alt .step { background: var(--bg-raised); }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--link);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(111, 147, 233, 0.8); }

.btn { border-radius: 999px; font-weight: 700; white-space: nowrap; transition: transform 0.15s var(--ease), background-color 0.15s, border-color 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:not(.btn-primary) { background: var(--bg-raised); border-color: var(--line-strong); }
.btn-primary { box-shadow: 0 8px 24px rgba(34, 71, 212, 0.35); }
.btn-primary[disabled], .btn-primary:disabled { box-shadow: none; transform: none; }

.card-icon { color: #fff; background: var(--grad); border: 0; border-radius: 0.75rem; box-shadow: 0 8px 20px rgba(34, 71, 212, 0.35); }
.card { transition: border-color 0.2s, background-color 0.2s; }
.card:hover { border-color: var(--line-strong); }

.roi-card::before, .roi-card .ico { background: var(--grad); }
.roi-card { grid-column: span 3; }
.roi-card:nth-child(n+5) { grid-column: span 4; }
@media (max-width: 68.75rem) { .roi-card, .roi-card:nth-child(n+5) { grid-column: span 6; } .roi-card:last-child { grid-column: 1 / -1; } }
@media (max-width: 40rem) { .roi-card, .roi-card:nth-child(n+5), .roi-card:last-child { grid-column: 1 / -1; } }

.chips a {
  gap: 0.5rem; min-height: 0; padding: 0.4375rem 0.875rem; font-size: 0.8125rem;
  color: var(--text-2); background: var(--bg-raised); border-color: var(--line-strong);
}
.chips a::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(111, 147, 233, 0.8); }
.chips a:hover { color: var(--text); }

.page-hero { background: radial-gradient(60rem 22rem at 25% -20%, rgba(34, 71, 212, 0.22), transparent 70%); }
:root[data-theme="light"] .page-hero { background: radial-gradient(60rem 22rem at 25% -20%, rgba(34, 71, 212, 0.10), transparent 70%); }

/* Giriş altındaki noktalı etiketler ve not satırı (iMED .pills / .hero-note) */
.pills { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 1.75rem; }
.pill { display: inline-flex; align-items: center; gap: 0.4375rem; padding: 0.375rem 0.75rem; white-space: nowrap; border-radius: 999px; background: var(--bg-raised); border: 1px solid var(--line-strong); font-size: 0.75rem; font-weight: 600; color: var(--text-2); }
.pill::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(111, 147, 233, 0.8); }
.hero-note { margin-top: 1.125rem; font-size: 0.8125rem; color: var(--text-2); opacity: 0.8; }

/* Örnek ekran: grafit tablet çerçevesi (ince kenar, ön kamera, yan tuşlar, cam yansıması) + kalem */
.device-fig { position: relative; margin: 0; padding-bottom: 2.25rem; }
.tablet {
  position: relative; padding: 0.875rem; border-radius: 1.75rem;
  background: linear-gradient(145deg, #2a303b 0%, #12161d 45%, #0b0e13 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 0 0 2px #05070a,
    0 0 0 3px rgba(160, 172, 190, 0.35),
    0 2.5rem 5rem -1.5rem rgba(0, 0, 0, 0.65),
    0 1rem 2rem -1rem rgba(34, 71, 212, 0.35);
}
.tablet .mock { position: relative; border: 0; border-radius: 0.875rem; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); }
.tablet-cam {
  position: absolute; top: 50%; left: 0.32rem; width: 0.375rem; height: 0.375rem; margin-top: -0.1875rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4b5a78 0, #10141c 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.tablet-btn { position: absolute; background: linear-gradient(180deg, #4a5262, #232831); border-radius: 2px; }
.tablet-btn--top { top: -4px; right: 18%; width: 3.25rem; height: 4px; border-radius: 3px 3px 0 0; }
.tablet-btn--side { right: -4px; top: 14%; width: 4px; height: 2.75rem; border-radius: 0 3px 3px 0; }
.tablet-glare {
  position: absolute; inset: 0.875rem; border-radius: 0.875rem; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 28%, transparent 40%);
}
:root[data-theme="light"] .tablet { background: linear-gradient(145deg, #d9dee6 0%, #b8c0cc 50%, #a3acb9 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset, 0 0 0 2px #8d96a4, 0 2.5rem 5rem -1.5rem rgba(14, 23, 38, 0.35), 0 1rem 2rem -1rem rgba(34, 71, 212, 0.25); }
:root[data-theme="light"] .tablet .mock { box-shadow: 0 0 0 1px rgba(14, 23, 38, 0.25); }
.stylus {
  position: absolute; z-index: 3; left: 58%; bottom: -0.35rem; width: 1.375rem; height: 21rem;
  transform: translate(-50%, 50%) rotate(-84deg); transform-origin: 50% 50%;
  filter: drop-shadow(0 0.7rem 0.6rem rgba(0, 0, 0, 0.6)) drop-shadow(0 0.1rem 0.1rem rgba(0, 0, 0, 0.5));
}
@media (max-width: 61.99rem) { .stylus { display: none; } .tablet { padding: 0.5rem; border-radius: 1.25rem; } .tablet .mock, .tablet-glare { border-radius: 0.75rem; } .tablet-glare { inset: 0.5rem; } .tablet-cam { left: 0.1rem; width: 0.25rem; height: 0.25rem; } }

/* Yatay tablet (4:3): ekran içeriği ekrana sığsın diye %76 ölçekte çizilir */
@media (min-width: 62rem) {
  .tablet { aspect-ratio: 4 / 3; display: flex; transform: perspective(1800px) rotateY(-10deg) rotateX(4deg) rotateZ(0.75deg); transform-origin: 40% 50%; }
  .device-fig { perspective: 1600px; }
  .tablet .mock { flex: 1; min-width: 0; zoom: 0.76; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
  .tablet .mock .mock-body { grid-template-columns: 1fr 1.15fr; }
}
.mock-brand { display: inline-flex; align-items: center; gap: 0.4rem; margin-right: 0.75rem; padding-right: 0.75rem; border-right: 1px solid var(--line); font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.mock-brand img { width: 1.25rem; height: 1.25rem; }
/* Tablet ekranı: içerik 4:3 ekrana sığsın diye boşluklar sıkılaştırılır */
@media (min-width: 62rem) {
  .tablet .mock-col { padding: 0.625rem 0.875rem; }
  .tablet .mock-label { margin-bottom: 0.5rem; }
  .tablet .rrows { gap: 0.375rem; }
  .tablet .rrow { padding-block: 0.4375rem; }
  .tablet .tline { padding-block: 0.375rem; }
}

/* Tablet ekranı: gerçek uygulama görünümü — üst çubuk, hasta şeridi + ses dalgası, eylem çubuğu */
.app-top { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.8125rem; background: color-mix(in srgb, var(--bg-raised) 70%, var(--bg)); }
.app-top .mock-brand { margin-right: 0.25rem; }
.app-crumb { flex: 1; min-width: 0; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-crumb span { margin-inline: 0.25rem; opacity: 0.6; }
.app-crumb b { color: var(--text); }
.app-chip { padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.app-chip--draft { color: var(--ev-text, #e0a82e); background: color-mix(in srgb, #e0a82e 16%, transparent); border: 1px solid color-mix(in srgb, #e0a82e 45%, transparent); }
.app-user { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-2); white-space: nowrap; }
.app-avatar { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; font-size: 0.625rem; font-weight: 800; color: #fff; background: var(--grad); }
.app-patient { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 1rem; border-bottom: 1px solid var(--line); }
.app-patient dl { display: flex; gap: 1.25rem; margin: 0; flex: 1; min-width: 0; }
.app-patient dt { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); opacity: 0.8; }
.app-patient dd { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.app-wave { display: flex; align-items: center; gap: 0.5rem; flex: none; padding: 0.3rem 0.6rem 0.3rem 0.35rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.app-play { width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--grad); position: relative; }
.app-play::after { content: ""; position: absolute; left: 0.5rem; top: 0.375rem; border-left: 0.45rem solid #fff; border-block: 0.3125rem solid transparent; }
.app-bars { display: flex; align-items: center; gap: 2px; height: 1.375rem; }
.app-bars i { width: 2px; height: calc(var(--h) * 1%); border-radius: 1px; background: color-mix(in srgb, var(--link) 45%, transparent); }
.app-bars i:nth-child(-n+9) { background: var(--link); }
.app-time { font-family: var(--mono); font-size: 0.6875rem; color: var(--text-2); }
.app-actions { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-raised) 70%, var(--bg)); }
.app-progress { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.6rem; font-size: 0.75rem; color: var(--text-2); white-space: nowrap; }
.app-progress-bar { width: 5.5rem; height: 0.375rem; border-radius: 999px; background: var(--line); overflow: hidden; flex: none; }
.app-progress-bar i { display: block; width: 66%; height: 100%; background: var(--grad); }
.app-btn { padding: 0.375rem 0.75rem; border-radius: 0.5rem; border: 1px solid var(--line-strong); font-size: 0.75rem; font-weight: 700; color: var(--text); background: var(--bg); white-space: nowrap; }
.app-btn--primary { color: #fff; border-color: transparent; background: var(--brand); box-shadow: 0 4px 14px rgba(34, 71, 212, 0.35); }
@media (max-width: 47.99rem) { .app-patient { flex-wrap: wrap; } .app-patient dl { flex-wrap: wrap; gap: 0.5rem 1rem; } .app-user, .app-crumb span, .app-progress-bar { display: none; } .app-actions { flex-wrap: wrap; } }

/* Tablet büyüklüğü: geniş ekranda sütunun sağına taşar (hero sağ kenarına kadar) */
@media (min-width: 62rem) {
  .device-fig { margin-right: clamp(-6rem, -5vw, 0rem); }
  .tablet .mock { display: flex; flex-direction: column; zoom: 0.68; }
  .tablet .mock-body { flex: 1; min-height: 0; }
}
.app-sugg { margin-top: 1rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: 0.625rem; background: color-mix(in srgb, var(--link) 6%, transparent); }
.app-sugg .mock-label { display: flex; align-items: center; gap: 0.4rem; }
.app-count { display: inline-grid; place-items: center; min-width: 1.1rem; height: 1.1rem; padding-inline: 0.3rem; border-radius: 999px; font-size: 0.625rem; color: #fff; background: var(--brand); }
.app-sugg p:not(.mock-label) { margin: 0.4rem 0 0; font-size: 0.8125rem; color: var(--text); line-height: 1.4; }
.app-sugg em { display: block; font-style: normal; font-size: 0.75rem; color: var(--text-2); }
.app-tag { display: inline-block; margin-right: 0.4rem; padding: 0 0.4rem; border-radius: 0.25rem; font-family: var(--mono); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--link); background: color-mix(in srgb, var(--link) 14%, transparent); }

/* §21 İletişim — iMED düzeni: "neler alırsınız" listesi, simgeli iletişim kartı, başlıklı demo formu */
.check-list { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.check-list li { position: relative; padding-left: 1.65rem; color: var(--text-2); font-size: 0.9375rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.4rem; width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--success) 15%, transparent); border: 1px solid color-mix(in srgb, var(--success) 50%, transparent); }
.check-list li::after { content: ""; position: absolute; left: 4.5px; top: calc(0.4rem + 3px); width: 5px; height: 3px; border-left: 1.5px solid var(--success); border-bottom: 1.5px solid var(--success); transform: rotate(-45deg); }
.contact-card { margin-top: 1.5rem; max-width: 460px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-raised); overflow: hidden; }
.contact-card .cc-title { padding: 1rem 1.25rem 0.875rem; font-size: 1rem; font-weight: 750; letter-spacing: -0.01em; color: var(--text); }
.contact-card .cc-item { display: flex; align-items: center; gap: 0.875rem; padding: 0.8rem 1.25rem; color: var(--text); }
.contact-card > :not([hidden]) ~ :not([hidden]) { border-top: 1px solid var(--line); }
.contact-card .cc-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--link); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.contact-card .cc-ico svg { width: 18px; height: 18px; }
.contact-card .cc-txt { display: grid; gap: 2px; min-width: 0; font-size: 0.9rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.contact-card .cc-txt a { color: var(--text); text-decoration: none; }
.contact-card .cc-txt a:hover { color: var(--link); }
.contact-card .cc-txt small { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.demo-form { box-shadow: var(--shadow); }
.demo-form-head { display: flex; justify-content: space-between; align-items: center; }
.demo-form-head .eyebrow { margin-bottom: 0; }
.consent { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.8rem; line-height: 1.5; color: var(--text-2); font-weight: 400; }
.consent input { margin-top: 0.2rem; flex: none; accent-color: var(--brand); }

/* §22 Kartlar — iMED kart diliyle aynı: koyu, ince çerçeveli simge karosu (dolgu degrade yalnız ROI kartlarında),
   20px köşe, 26px iç boşluk, 17px başlık / 14.5px metin. */
.card { padding: 26px; border-radius: 20px; }
.card:hover { border-color: var(--line-strong); }
.card h3 { font-size: 1.0625rem; font-weight: 700; margin-top: 0; }
.card > p, .card .card-text { font-size: 0.9063rem; color: var(--text-2); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1rem; box-shadow: none;
  color: #8EC5FF; background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
}
.card-icon .icon { width: 22px; height: 22px; }
:root[data-theme="light"] .card-icon { color: var(--link); }

/* §23 SSS — iMED düzeni: ortalanmış başlık ve liste (860px), 14px köşe, "+" simgesi (açılınca ×). */
#sss .section-head { text-align: center; margin-left: auto; margin-right: auto; }
#sss .section-head .eyebrow { justify-content: center; }
.faq { gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details { border-radius: 14px; padding: 0 20px; }
.faq summary { min-height: 0; padding: 16px 0; font-weight: 700; }
.faq summary .icon { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 20px; line-height: 1; color: var(--text-2); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; font-size: 0.9063rem; max-width: none; }

/* §24 Telefon (< 768px) — iMED'deki gibi ekrana sığan, sade bir önizleme kartı: tablet çerçevesi ve eğim kalkar,
   yalnız rapor sütunu kalır; ızgara sütunu içerik genişliğine göre büyüyüp metni ekran dışına itmez. */
@media (max-width: 767px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > * { min-width: 0; }
  .device-fig { margin-right: 0; padding-bottom: 0; perspective: none; }
  .device-fig .stylus, .tablet-btn, .tablet-cam, .tablet-glare { display: none; }
  .tablet { transform: none; aspect-ratio: auto; padding: 0; border-radius: var(--r-lg); background: none; box-shadow: none; }
  .tablet .mock { zoom: 1; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
  .tablet .mock-body { grid-template-columns: minmax(0, 1fr); }
  .tablet .mock-col:first-child, .app-wave, .app-crumb, .app-user, .app-progress { display: none; }
  .app-patient { flex-wrap: wrap; }
  .app-actions { flex-wrap: wrap; gap: 0.5rem; }
}
