/* ============================================================
   Vitalis Core — Bayer Sağlık Takip Platformu
   Tokens taken directly from DESIGN.md
   ============================================================ */
:root {
  /* surfaces */
  --surface: #f9f9fc;
  --surface-lowest: #ffffff;
  --surface-low: #f3f3f6;
  --surface-c: #eeeef0;
  --surface-high: #e8e8ea;
  /* text + lines */
  --on-surface: #1a1c1e;
  --on-surface-variant: #434653;
  --outline: #737784;
  --outline-variant: #c3c6d5;
  /* brand */
  --primary: #00337f;          /* Bayer Blue (deep) */
  --primary-bright: #003eb7;   /* brand blue from logo wordmark */
  --primary-container: #0048ad;
  --surface-tint: #2359be;
  --on-primary: #ffffff;
  --inverse-primary: #b1c5ff;
  --primary-fixed: #dae2ff;
  --on-primary-fixed-variant: #00419e;
  /* secondary (coral) */
  --secondary-container: #fc6955;
  --secondary-logo: #fd5e49;   /* exact coral from logo */
  --on-secondary-container: #690000;
  /* tertiary */
  --tertiary: #2e3844;
  --tertiary-fixed: #d9e3f2;
  /* functional (slightly desaturated per brief) */
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
  --success: #3f6b4f;
  --success-container: #d6ecdc;
  --on-success-container: #102b1a;
  /* radius */
  --r-sm: .25rem;
  --r: .5rem;
  --r-md: .75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;
  /* spacing rhythm (8px base) */
  --gutter: 24px;
  --margin: 16px;
  --container: 1280px;
  /* elevation */
  --shadow-1: 0 4px 20px rgba(16, 24, 40, .05);
  --shadow-2: 0 12px 32px rgba(16, 24, 40, .08);
  --shadow-cta: 0 18px 48px rgba(0, 51, 127, .28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--surface-tint); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--margin); }
@media (min-width: 768px) { .wrap { padding-inline: 48px; } }

section { padding-block: 56px; }
@media (min-width: 768px) { section { padding-block: 88px; } }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--secondary-container);
}
.section-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: 40px; }
.section-head h2 { margin: 0 0 8px; }
.section-head p { margin: 0; color: var(--on-surface-variant); font-size: 18px; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.lead { font-size: 18px; color: var(--on-surface-variant); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding-inline: 24px; border-radius: var(--r);
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-container); box-shadow: var(--shadow-1); }
.btn-coral { background: var(--secondary-container); color: #fff; }
.btn-coral:hover { background: var(--secondary-logo); box-shadow: var(--shadow-1); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--outline-variant); }
.btn-ghost:hover { border-color: var(--primary); background: var(--surface-low); text-decoration: none; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-fixed); }
.btn[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 249, 252, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-variant);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 88px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 60px; width: auto; }
@media (max-width: 600px) { .site-header .wrap { min-height: 72px; } .brand img { height: 48px; } }
.nav { display: none; gap: 28px; align-items: center; }
.nav a { color: var(--on-surface-variant); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--primary); text-decoration: none; }
.header-cta { display: none; }
@media (min-width: 900px) { .nav { display: flex; } .header-cta { display: inline-flex; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 48px 64px; }
@media (min-width: 768px) { .hero { padding-block: 72px 96px; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(252, 105, 85, .16), transparent 60%),
    radial-gradient(55% 60% at 10% 0%, rgba(35, 89, 190, .14), transparent 55%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

.badge {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding-inline: 14px;
  border-radius: var(--r-full); background: var(--surface-lowest);
  border: 1px solid var(--outline-variant); box-shadow: var(--shadow-1);
  font-size: 13px; font-weight: 600; color: var(--on-surface-variant);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary-container); box-shadow: 0 0 0 4px rgba(252,105,85,.2); }
.hero h1 { margin-top: 20px; }
.hero h1 .accent { color: var(--primary-bright); }
.hero .lead { margin: 18px 0 28px; max-width: 30em; }

/* hero quick form */
.quick-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; }
.quick-form input {
  flex: 1 1 220px; height: 48px; padding-inline: 16px; font: inherit;
  border-radius: var(--r); border: 1px solid var(--outline-variant); background: #fff; color: var(--on-surface);
}
.quick-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.hero .micro { margin-top: 14px; font-size: 13px; color: var(--outline); }
.hero .micro strong { color: var(--on-surface-variant); font-weight: 600; }

/* hero visual — glass "AI insight" mock + pulse signature */
.hero-visual { position: relative; min-height: 320px; }
.glass-card {
  position: relative; border-radius: var(--r-xl); padding: 22px;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--shadow-2);
}
.glass-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--secondary-container), var(--surface-tint));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55;
}
.gc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.gc-head .tag {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-fixed); padding: 4px 10px; border-radius: var(--r-full);
}
.gc-title { font-weight: 700; font-size: 15px; }
.gc-sub { font-size: 12.5px; color: var(--on-surface-variant); }
.pulse-wrap { background: var(--surface-low); border-radius: var(--r-md); padding: 14px; margin-block: 14px; }
.pulse-wrap svg { width: 100%; height: 56px; display: block; }
.pulse-path { fill: none; stroke: var(--secondary-logo); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .pulse-path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.6s ease-in-out infinite; }
  @keyframes draw { 0% { stroke-dashoffset: 600; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -600; } }
}
.gc-rows { display: grid; gap: 10px; }
.gc-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.gc-row .k { color: var(--on-surface-variant); display: flex; align-items: center; gap: 8px; }
.gc-row .v { font-weight: 700; }
.chip { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: var(--r-full); }
.chip.ok { background: var(--success-container); color: var(--on-success-container); }
.chip.up { background: var(--primary-fixed); color: var(--on-primary-fixed-variant); }
.float-mini {
  position: absolute; right: -8px; bottom: -18px; width: 168px;
  background: #fff; border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-2);
  border: 1px solid var(--outline-variant); display: none;
}
@media (min-width: 1100px) { .float-mini { display: block; } }
.float-mini .big { font-size: 26px; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.float-mini .lbl { font-size: 12px; color: var(--on-surface-variant); }

/* ---------- feature grid ---------- */
.features { background: var(--surface-low); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface-lowest); border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1);
}
.card .ico {
  width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--primary-fixed); color: var(--primary); margin-bottom: 16px;
}
.card .ico.coral { background: var(--error-container); color: var(--secondary); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--on-surface-variant); }
.card-feature-blue {
  grid-column: 1 / -1; color: #fff; text-align: center; border: none;
  background: linear-gradient(135deg, var(--primary-container), var(--primary));
  padding: 36px 28px; box-shadow: var(--shadow-1);
}
@media (min-width: 760px) { .card-feature-blue { grid-column: auto; text-align: left; } }
.card-feature-blue .ico { background: rgba(255,255,255,.16); color: #fff; }
.card-feature-blue h3 { color: #fff; }
.card-feature-blue p { color: var(--inverse-primary); margin-bottom: 18px; }

/* ---------- smart solutions ---------- */
.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.solution {
  position: relative; border-radius: var(--r-lg); padding: 26px; overflow: hidden;
  color: #fff; box-shadow: var(--shadow-1); min-height: 200px;
  display: flex; flex-direction: column;
}
.solution.s1 { background: linear-gradient(150deg, #2f6bd6, #db5340); }
.solution.s2 { background: linear-gradient(150deg, #db5340, #2f6bd6); }
.solution.s3 { background: linear-gradient(150deg, #3a64c4, #5b76c9); }
.solution .ico { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; background: rgba(255,255,255,.18); margin-bottom: 14px; }
.solution h3 { color: #fff; margin-bottom: 8px; }
/* readable body text on colored panels (brief: legibility for all ages) */
.solution p { margin: 0; color: rgba(255,255,255,.92); font-size: 15px; }
.solution .ai-tag {
  align-self: flex-start; margin-bottom: 10px; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  background: rgba(255,255,255,.22); padding: 3px 9px; border-radius: var(--r-full);
}

/* ---------- audiences ---------- */
.audiences { background: var(--surface-low); }
.grid-4 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.aud {
  background: var(--surface-lowest); border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1);
}
.aud .ico { width: 42px; height: 42px; border-radius: var(--r-full); display: grid; place-items: center; background: var(--tertiary-fixed); color: var(--primary); margin-bottom: 14px; }
.aud h3 { font-size: 1.15rem; margin-bottom: 6px; }
.aud p { margin: 0; font-size: 14.5px; color: var(--on-surface-variant); }

/* ---------- doctors strip ---------- */
.doctors { background: var(--tertiary); color: #fff; }
.doctors .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .doctors .wrap { grid-template-columns: 1fr 1fr; } }
.doctors .eyebrow { color: var(--secondary-container); }
.doctors h2 { color: #fff; margin: 8px 0 14px; }
.doctors p.lead { color: var(--tertiary-fixed); }
.doc-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; }
.doc-list li { display: flex; gap: 12px; align-items: flex-start; }
.doc-list .ico { flex: none; width: 26px; height: 26px; border-radius: var(--r-full); background: rgba(177,197,255,.16); color: var(--inverse-primary); display: grid; place-items: center; margin-top: 2px; }
.doc-list b { display: block; font-weight: 700; }
.doc-list span { color: var(--tertiary-fixed); font-size: 14.5px; }

/* ---------- how it works ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 26px 24px; background: var(--surface-lowest); border: 1px solid var(--outline-variant); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.step .num { width: 40px; height: 40px; border-radius: var(--r-full); background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; font-size: 1.2rem; }
.step p { margin: 0; color: var(--on-surface-variant); font-size: 15px; }

/* ---------- waitlist ---------- */
.waitlist { background: var(--surface-low); }
.form-card {
  max-width: 720px; margin-inline: auto; background: var(--surface-lowest);
  border: 1px solid var(--outline-variant); border-radius: var(--r-xl); padding: 28px;
  box-shadow: var(--shadow-2);
}
@media (min-width: 600px) { .form-card { padding: 40px; } }
.field-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .field-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--on-surface-variant); }
.field label .req { color: var(--secondary); }
.field input, .field select, .field textarea {
  font: inherit; width: 100%; padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--outline-variant); border-radius: var(--r); background: #fff; color: var(--on-surface);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary);
}
.field .hint { font-size: 12.5px; color: var(--outline); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field .err { font-size: 12.5px; color: var(--on-error-container); display: none; }
.field.invalid .err { display: block; }

.consent { display: flex; gap: 10px; align-items: flex-start; grid-column: 1 / -1; }
.consent input { width: 20px; height: 20px; min-height: 20px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.consent label { font-size: 14px; color: var(--on-surface-variant); font-weight: 400; line-height: 1.5; }

/* honeypot — hidden from humans */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf-turnstile { margin-top: 4px; }
.form-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.form-actions .btn { width: 100%; }
@media (min-width: 600px) { .form-actions { flex-direction: row; align-items: center; } .form-actions .btn { width: auto; } }

.form-msg { display: none; padding: 14px 16px; border-radius: var(--r-md); font-size: 14.5px; margin-bottom: 4px; }
.form-msg.show { display: block; }
.form-msg.error { background: var(--error-container); color: var(--on-error-container); border: 1px solid #f3b6b0; }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* success panel */
.success-panel { display: none; text-align: center; padding: 16px 8px; }
.success-panel.show { display: block; }
.success-panel .check { width: 64px; height: 64px; border-radius: var(--r-full); background: var(--success-container); color: var(--success); display: grid; place-items: center; margin: 0 auto 18px; }
.success-panel h3 { margin-bottom: 8px; }
.success-panel p { color: var(--on-surface-variant); max-width: 38em; margin-inline: auto; }

/* ---------- final CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--primary-container) 0%, var(--primary) 70%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 12px; }
.cta-band p { color: var(--inverse-primary); max-width: 44em; margin: 0 auto 28px; font-size: 18px; }
.cta-band .quick-form { margin-inline: auto; justify-content: center; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.trust-chips .tc {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  padding: 8px 14px; border-radius: var(--r-full);
}

/* ---------- footer ---------- */
.site-footer { background: var(--surface-lowest); border-top: 1px solid var(--outline-variant); padding-block: 32px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 760px) { .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; } }
.site-footer .legal { font-size: 13.5px; color: var(--on-surface-variant); }
.site-footer .legal strong { color: var(--on-surface); font-weight: 700; display: block; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.foot-links a { color: var(--on-surface-variant); }

/* visible keyboard focus everywhere */
:focus-visible { outline: 3px solid var(--surface-tint); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   Document / legal page (KVKK, gizlilik)
   ============================================================ */
.doc-page { padding-block: 40px 64px; }
@media (min-width: 768px) { .doc-page { padding-block: 56px 88px; } }
.doc-page .wrap { max-width: 880px; }

.doc-back {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--on-surface-variant); margin-bottom: 20px;
}
.doc-back:hover { color: var(--primary); text-decoration: none; }

.doc-card {
  background: var(--surface-lowest); border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-1);
}
@media (min-width: 768px) { .doc-card { padding: 48px; } }

.doc-card h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); }
.doc-card .doc-intro { margin: 16px 0 0; color: var(--on-surface-variant); font-size: 18px; }
.doc-card .doc-meta { margin-top: 12px; font-size: 13px; color: var(--outline); }

.doc-card h2 {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3;
  margin: 36px 0 10px; padding-top: 24px; border-top: 1px solid var(--surface-high);
  display: flex; align-items: baseline; gap: 10px;
}
.doc-card h2 .n { color: var(--primary-bright); font-variant-numeric: tabular-nums; }
.doc-card p { margin: 0 0 12px; color: var(--on-surface-variant); }
.doc-card a { color: var(--surface-tint); font-weight: 600; }

.doc-note {
  margin-top: 14px; background: var(--surface-low); border: 1px solid var(--outline-variant);
  border-left: 3px solid var(--secondary-container); border-radius: var(--r-md);
  padding: 14px 16px; font-size: 14.5px; color: var(--on-surface-variant);
}
