/* keskin-demo — WhatsApp split teklif yüzeyi (seed aecf0ca3) */

@font-face {
  font-family: "Barlow";
  src: url("/assets/barlow-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/barlow-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/barlow-condensed-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --teal-ink: #082b24;
  --teal-panel: #0b3a31;
  --teal-edge: #14503f;
  --ivory: #f2f8f4;
  --mist: #a9cabc;
  --wa-green: #25d366;
  --wa-deep: #00a884;
  --wa-dark: #075e54;
  --amber: #ffc24b;
  --paper: #efe7dd;
  --paper-line: #d9cfc1;
  --chat-in: #ffffff;
  --chat-out: #d9fdd3;
  --chat-ink: #111b21;
  --chat-sub: #667781;
  --tick-blue: #53bdeb;
  --slip-ink: #16241f;
  --radius-bubble: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ivory);
  background: var(--teal-ink);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--wa-green); color: #062e1a; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

a { color: inherit; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--wa-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- İskelet ---------- */

.proposal {
  display: grid;
  grid-template-columns: minmax(460px, 46%) 1fr;
  min-height: 100vh;
}

/* ---------- Sol: teklif dosyası ---------- */

.pitch {
  background:
    linear-gradient(160deg, rgba(20, 80, 63, .35) 0%, rgba(8, 43, 36, 0) 42%),
    var(--teal-panel);
  border-right: 1px solid rgba(0, 0, 0, .35);
  padding: 0 clamp(28px, 4.5vw, 64px) 40px;
  display: flex;
  flex-direction: column;
}

.pitch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 18px;
  border-bottom: 1px solid rgba(169, 202, 188, .18);
}

.adanext-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .01em;
}

.adanext-mark b {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--wa-green);
  color: #05341b;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.pitch-docket {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
  text-align: right;
}
.pitch-docket b { color: var(--ivory); font-weight: 600; }

/* Bölüm navigasyonu — uzun sol kolonda yön bulma */

.pitch-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(clamp(28px, 4.5vw, 64px) * -1);
  padding: 10px clamp(28px, 4.5vw, 64px);
  background: rgba(11, 58, 49, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(169, 202, 188, .14);
}
.pitch-nav::-webkit-scrollbar { display: none; }
.pitch-nav a {
  flex: none;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mist);
  text-decoration: none;
  transition: background .15s ease-out, color .15s ease-out;
}
.pitch-nav a:hover { background: rgba(169, 202, 188, .12); color: var(--ivory); }
.pitch-nav a.current { background: rgba(37, 211, 102, .16); color: #b7f4cf; }

.pitch-hero { padding: clamp(30px, 4.5vh, 50px) 0 8px; }

.pitch-hero h1 {
  margin: 0 0 20px;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 600;
  font-size: clamp(42px, 4.6vw, 66px);
  line-height: 1.02;
  letter-spacing: .002em;
  text-wrap: balance;
}

.pitch-hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero-sub {
  margin: 0 0 26px;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--mist);
}
.hero-sub strong, .hero-sub b { color: var(--ivory); font-weight: 600; }

.hero-jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(37, 211, 102, .13);
  border: 1px solid rgba(37, 211, 102, .45);
  color: #b7f4cf;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: background .18s ease-out, transform .18s ease-out;
}
.hero-jump:hover { background: rgba(37, 211, 102, .22); transform: translateY(-1px); }
.hero-jump svg { width: 18px; height: 18px; fill: var(--wa-green); }

/* Bloklar */

.pitch-block { padding: clamp(30px, 4.5vh, 46px) 0 0; }

.pitch-block h2, .pitch-cta h2, .gap-title, #faq-title, #proposal-close {
  scroll-margin-top: 62px;
}

.pitch-block h2 {
  margin: 0 0 10px;
  max-width: 22ch;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: .004em;
  text-wrap: balance;
}

.block-lede {
  margin: 0 0 22px;
  max-width: 58ch;
  color: var(--mist);
  font-size: 15.5px;
  line-height: 1.6;
}

/* Denetim defteri */

.finding-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.finding {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 10px;
  align-items: start;
}
.finding:nth-child(odd) { background: rgba(255, 255, 255, .035); }

.finding i {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  margin-top: 1px;
}
.finding i svg { width: 13px; height: 13px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.finding.ok i { background: rgba(37, 211, 102, .16); }
.finding.ok i svg { stroke: var(--wa-green); }
.finding.gap i { background: rgba(255, 194, 75, .16); }
.finding.gap i svg { stroke: var(--amber); }

.finding strong {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 3px;
}
.finding small {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--mist);
}
.finding small b { color: var(--ivory); font-weight: 600; }


.gap-title {
  margin: 28px 0 10px;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .004em;
  color: var(--amber);
}

.audit-close {
  margin: 26px 0 0;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: #d7efe2;
}
.audit-close em { font-style: normal; color: var(--wa-green); font-weight: 600; }
.audit-close b { color: var(--ivory); font-weight: 600; }

/* Kaçan mesaj */

.pitch-block.missed {
  margin: clamp(30px, 4.5vh, 46px) calc(clamp(28px, 4.5vw, 64px) * -1) 0;
  padding: clamp(30px, 4.5vh, 46px) clamp(28px, 4.5vw, 64px) clamp(28px, 4vh, 40px);
  background: rgba(8, 43, 36, .5);
  border-block: 1px solid rgba(169, 202, 188, .14);
}

.missed-scene {
  margin: 6px 0 18px;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(8, 43, 36, .55);
  border: 1px solid rgba(169, 202, 188, .16);
}
.missed-scene p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ivory);
  max-width: 56ch;
}
.missed-scene b { color: var(--wa-green); }

.missed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.missed-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mist);
  max-width: 58ch;
}
.missed-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.missed-list b { color: var(--ivory); }

/* Nasıl çalışır */

.how-flow {
  list-style: none;
  counter-reset: adim;
  margin: 18px 0 0;
  padding: 0;
}

.how-flow li {
  counter-increment: adim;
  position: relative;
  padding: 14px 0 18px 52px;
}
.how-flow li::before {
  content: counter(adim);
  position: absolute;
  left: 0; top: 12px;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(37, 211, 102, .14);
  border: 1px solid rgba(37, 211, 102, .4);
  color: var(--wa-green);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 17px;
  font-weight: 600;
}
.how-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15.5px; top: 48px; bottom: -8px;
  width: 1px;
  background: rgba(169, 202, 188, .22);
}
.how-flow strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.how-flow p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--mist); max-width: 52ch; }

/* Canlı görev fişi */

.task-slip {
  margin-top: 22px;
  background: #fdfcf9;
  color: var(--slip-ink);
  border-radius: 12px;
  padding: 16px 18px 18px;
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .55);
  transition: box-shadow .3s ease-out;
}

.task-slip.pulse { box-shadow: 0 0 0 3px rgba(37, 211, 102, .55), 0 12px 28px -14px rgba(0, 0, 0, .55); }

.task-slip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.task-slip-head span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: #57655c;
}
.task-slip-head b {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8ebe8;
  color: #5b675f;
}
.task-slip-head b.handoff { background: #ffedc7; color: #7a5410; }
.task-slip-head b.answered { background: #d3f5df; color: #0c6b3d; }

.task-slip strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 5px; }
.task-slip p { margin: 0; font-size: 14px; line-height: 1.55; color: #47544d; }

/* Güvenlik */

.safety-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.safety-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}
.safety-list i {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(169, 202, 188, .1);
  border: 1px solid rgba(169, 202, 188, .2);
}
.safety-list svg { width: 18px; height: 18px; fill: none; stroke: var(--mist); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.safety-list div { font-size: 14.5px; line-height: 1.6; color: var(--mist); max-width: 56ch; padding-top: 4px; }
.safety-list strong { color: var(--ivory); font-weight: 600; }

.safety-rule {
  margin: 4px 0 6px;
  max-width: 46ch;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: clamp(21px, 1.9vw, 26px);
  font-weight: 600;
  line-height: 1.22;
  color: var(--mist);
}
.safety-rule b { color: var(--ivory); font-weight: 600; }

.safety-footnote {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(8, 43, 36, .55);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mist);
  max-width: 62ch;
}
.safety-footnote svg {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 2px;
  fill: none;
  stroke: var(--mist);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* İtiraz karşılama */

.objection-list {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 60ch;
}
.objection-list div { display: grid; gap: 5px; }
.objection-list dt {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ivory);
}
.objection-list dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--mist);
}

/* CTA adımları */

.cta-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 11px;
}
.cta-steps li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mist);
  max-width: 52ch;
}
.cta-steps span {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(37, 211, 102, .18);
  color: #b7f4cf;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 600;
}
.cta-steps b { color: var(--ivory); font-weight: 600; }

/* Ne yapar / ne yapmaz */

.limit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 22px;
  margin-top: 18px;
}
.limit-col h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.limit-col.does h3 { color: var(--wa-green); }
.limit-col.doesnt h3 { color: var(--amber); }
.limit-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.limit-col li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--mist);
}
.limit-col li::before {
  position: absolute;
  left: 0;
  top: -1px;
  font-weight: 600;
}
.limit-col.does li::before { content: "+"; color: var(--wa-green); }
.limit-col.doesnt li::before { content: "\2212"; color: var(--amber); }

@media (max-width: 1180px) {
  .limit-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Akış omurgası ----------
   Denetim dosyası dili: bölümler dikey bir omurgaya düğümlerle bağlanır.
   Yeşil düğüm = aşama, kehribar düğüm = bulgu, halka = varış noktası. */

.pitch-flow {
  position: relative;
  padding-left: 30px;
  margin-top: clamp(26px, 4vh, 40px);
}

.pitch-flow::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 96px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(169, 202, 188, .38) 0%,
    rgba(169, 202, 188, .22) 70%,
    rgba(169, 202, 188, 0) 100%
  );
}

.flow-node { position: relative; }

.flow-node::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 12px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--wa-green);
  box-shadow: 0 0 0 4px var(--teal-panel);
}

/* Varış noktası: dolu daire yerine halka */
.flow-node.flow-end::before {
  top: 30px;
  background: var(--teal-panel);
  border: 2px solid var(--wa-green);
  width: 13px;
  height: 13px;
  left: -31px;
}

.pitch-flow .pitch-block { padding-top: 0; }
.pitch-flow .pitch-block + .pitch-block,
.pitch-flow .pitch-cta { margin-top: clamp(34px, 5vh, 52px); }

/* ---------- Bulgular: kanıt / sonuç iki kademesi ---------- */

.gap-notes[hidden] { display: none; }

.gap-notes {
  display: grid;
  gap: 20px;
  max-width: 58ch;
  margin-top: 18px;
}

.gap-notes p {
  position: relative;
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 5px;
}

/* bulgu işareti — omurganın yanında kehribar */
.gap-notes p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.gap-evidence {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mist);
}

.gap-hook {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ivory);
  letter-spacing: .002em;
}

/* Kanıt kırpmaları — iddiayı sitenin kendi ekran görüntüsüyle gösterir */

.gap-specimens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 10px 12px;
  margin-top: 13px;
  max-width: 470px;
}
.gap-specimens figure {
  margin: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}
.gap-specimens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 194, 75, .45);
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .6);
}
.gap-specimens figcaption {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--amber);
}

@media (max-width: 520px) {
  .gap-specimens figure { max-width: 100%; }
}

/* CTA */

.pitch-cta {
  margin-top: clamp(34px, 5vh, 52px);
  padding: 26px 26px 24px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(37, 211, 102, .16), rgba(0, 168, 132, .08));
  border: 1px solid rgba(37, 211, 102, .35);
}
.pitch-cta h2 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 28px;
}
.pitch-cta > p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--mist); max-width: 52ch; }

#interest-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--wa-green);
  color: #05341b;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .7);
  transition: transform .16s ease-out, box-shadow .16s ease-out;
}
#interest-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .8); }
#interest-button:disabled { background: #9fd8b6; transform: none; cursor: default; box-shadow: none; }
#interest-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.cta-note { margin: 12px 0 0; font-size: 13px; color: var(--mist); }

/* İmza — sayfayı bir kişinin gönderdiğini gösterir */

.signoff {
  margin-top: 30px;
  padding-left: 18px;
  border-left: 1px solid rgba(169, 202, 188, .3);
}
.signoff-note {
  margin: 0 0 14px;
  max-width: 54ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ivory);
}
.signoff-name[hidden] { display: none; }

.signoff-name {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.signoff-name b {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .01em;
}
.signoff-name span { font-size: 12.5px; color: var(--mist); }

.legal-rail {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(169, 202, 188, .16);
  display: grid;
  gap: 4px;
  font-size: 11.5px;
  letter-spacing: .02em;
  color: rgba(169, 202, 188, .75);
}

/* ---------- Sağ: sahne + telefon ---------- */

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140" viewBox="0 0 140 140"><g fill="none" stroke="%23ddd2c3" stroke-width="1.1" opacity=".55"><circle cx="24" cy="26" r="7"/><path d="M60 18c6 0 10 4 10 9M104 30l8 8M108 30l-8 8"/><circle cx="118" cy="86" r="5"/><path d="M22 92c0-5 4-9 9-9s9 4 9 9M64 104l10-10M64 94l10 10M36 128h16M96 120c4-4 10-4 14 0"/></g></svg>'),
    var(--paper);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.stage-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  width: 100%;
  max-width: 470px;
  height: 100%;
  justify-content: center;
}

.stage-mobile-docket { display: none; }


/* Telefon */

.phone {
  width: min(392px, 100%);
  height: min(770px, calc(100vh - 128px));
  min-height: 540px;
  background: #16171b;
  border-radius: 52px;
  padding: 11px;
  box-shadow:
    0 40px 80px -30px rgba(46, 36, 22, .55),
    0 0 0 1px rgba(0, 0, 0, .5),
    inset 0 0 0 2px #3a3b41;
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 108px; height: 26px;
  border-radius: 16px;
  background: #16171b;
  z-index: 5;
}

.phone-screen {
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><g fill="none" stroke="%23e0d6c8" stroke-width="1" opacity=".6"><circle cx="20" cy="22" r="6"/><path d="M52 16c5 0 8 3 8 7M88 26l7 7M92 26l-7 7M18 78c0-4 3-8 8-8s8 4 8 8M56 90l8-8M56 82l8 8M84 104h14M30 108c3-3 8-3 11 0"/></g></svg>'),
    var(--paper);
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px 6px;
  background: #ffffff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  font-family: system-ui, -apple-system, sans-serif;
}
.statusbar-icons { display: inline-flex; align-items: center; gap: 5px; }
.statusbar-icons svg { height: 11px; width: auto; fill: #111; stroke: #111; }

.wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 10px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  font-family: system-ui, -apple-system, sans-serif;
}

.wa-back { width: 22px; height: 22px; fill: none; stroke: var(--wa-dark); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wa-avatar {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(140deg, #00a884, #075e54);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

.wa-title { flex: 1; min-width: 0; line-height: 1.2; }
.wa-title strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--chat-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-title small { font-size: 12.5px; color: var(--chat-sub); }
.wa-title small.typing { color: var(--wa-deep); font-weight: 600; }

.wa-actions { display: inline-flex; gap: 20px; padding-right: 6px; }
.wa-actions svg { width: 21px; height: 21px; fill: var(--wa-dark); }

/* Sohbet alanı */

.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, .22) transparent;
}
.chat-area::-webkit-scrollbar { width: 5px; }
.chat-area::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .22); border-radius: 4px; }

.chat-day { text-align: center; margin: 4px 0 8px; }
.chat-day span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--chat-sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
}

.chat-notice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 auto 12px;
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff6c9;
  color: #54655f;
  font-size: 12px;
  line-height: 1.45;
  font-family: system-ui, -apple-system, sans-serif;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
}
.chat-notice svg { width: 13px; height: 13px; flex: none; margin-top: 2px; fill: none; stroke: #8a7b34; stroke-width: 1.8; stroke-linecap: round; }

.chat-stream { display: flex; flex-direction: column; gap: 4px; }

.msg {
  position: relative;
  max-width: 82%;
  padding: 7px 9px 6px;
  border-radius: var(--radius-bubble);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14.2px;
  line-height: 1.42;
  color: var(--chat-ink);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
  animation: msg-in .22s cubic-bezier(.17, .84, .44, 1);
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.msg p { margin: 0; white-space: pre-line; }

.msg.in {
  align-self: flex-start;
  background: var(--chat-in);
  border-top-left-radius: 2px;
}
.msg.out {
  align-self: flex-end;
  background: var(--chat-out);
  border-top-right-radius: 2px;
}


.message-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.message-sources span {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(7, 94, 84, .07);
  border: 1px solid rgba(7, 94, 84, .18);
  color: var(--wa-dark);
}

.msg .message-meta {
  float: right;
  margin: 6px 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--chat-sub);
}
.msg .message-meta svg {
  width: 15px; height: 10px;
  fill: none;
  stroke: #8696a0;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: tick-read .01s linear 1.4s forwards;
}
@keyframes tick-read {
  to { stroke: var(--tick-blue); }
}

.typing-bubble {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-bubble);
  border-top-left-radius: 2px;
  background: var(--chat-in);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
}
.typing-bubble i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9db0ba;
  animation: typing-dot 1.1s infinite ease-in-out;
}
.typing-bubble i:nth-child(2) { animation-delay: .15s; }
.typing-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .55; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Örnek soru rayı */

.prompt-rail {
  display: flex;
  gap: 7px;
  padding: 8px 10px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.prompt-rail::-webkit-scrollbar { display: none; }
.prompt-rail button {
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(0, 168, 132, .5);
  background: rgba(255, 255, 255, .9);
  color: var(--wa-dark);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  transition: background .15s ease-out;
}
.prompt-rail button:hover:not(:disabled) { background: #eafff4; }
.prompt-rail button:disabled { opacity: .5; cursor: default; }

/* Composer */

.wa-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 14px;
}

.wa-field {
  flex: 1;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
  padding: 3px 12px;
}
.wa-field-icon {
  flex: none;
  width: 21px; height: 21px;
  fill: none;
  stroke: #8696a0;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wa-field-icon .dot { fill: #8696a0; stroke: none; }
.wa-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14.5px;
  color: var(--chat-ink);
  caret-color: var(--wa-deep);
}
.wa-field input::placeholder { color: #8696a0; }
.wa-field input:focus { outline: none; }
.wa-field input:disabled { color: #8696a0; }

#send-button {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--wa-deep);
  transition: transform .15s ease-out, background .15s ease-out;
}
#send-button:hover:not(:disabled) { background: #00997a; transform: scale(1.05); }
#send-button:disabled { background: #9bbfb5; cursor: default; }
#send-button svg { width: 22px; height: 22px; fill: #fff; margin-left: 2px; }

.stage-slip {
  display: none;
  width: min(392px, 100%);
  margin-top: 4px;
}

.reset-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--paper-line);
  background: rgba(255, 255, 255, .65);
  color: #6d6153;
  font-size: 12.5px;
  font-weight: 600;
  transition: background .15s ease-out;
}
.reset-control:hover { background: #fff; }
.reset-control svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Geçersiz bağlantı ---------- */

.invalid-demo[hidden] { display: none; }

.invalid-demo {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 32px;
  gap: 14px;
}
.invalid-mark {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--wa-green);
  color: #05341b;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 34px;
  font-weight: 600;
}
.invalid-demo h1 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 600;
  max-width: 18ch;
}
.invalid-demo p { margin: 0; color: var(--mist); max-width: 52ch; line-height: 1.6; }

/* ---------- Mobil ---------- */

@media (max-width: 1020px) {
  .proposal { display: flex; flex-direction: column; }

  .stage {
    order: -1;
    position: static;
    height: auto;
    padding: 0 0 26px;
  }

  .stage-inner {
    max-width: 100%;
    padding: 0 14px;
    gap: 12px;
  }

  .stage-mobile-docket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 6px 12px;
    color: #4b4237;
  }
  .stage-mobile-docket .adanext-mark { color: #33302a; }
  .stage-mobile-docket .adanext-mark b { background: var(--wa-deep); color: #fff; }
  .stage-mobile-docket small {
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 600;
    text-align: right;
    color: #6d6153;
  }

  .phone {
    height: min(72vh, 690px);
    width: min(380px, 100%);
  }

  .stage-slip { display: block; }

  /* Mobilde gorev fisi telefonun hemen altinda duruyor; bolum icindeki kopya gereksiz */
  #handoff-ticket { display: none; }

  .pitch { border-right: 0; padding-bottom: 32px; }
  .pitch-top { display: none; }
  .pitch-hero { padding-top: 30px; }
  .pitch-hero h1 { font-size: clamp(36px, 9.5vw, 52px); }
}

@media (max-width: 460px) {
  .phone { border-radius: 40px; padding: 8px; }
  .phone-screen { border-radius: 33px; }
  .phone::before { top: 16px; height: 22px; width: 92px; }
  .msg { max-width: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg { animation: none; }
    .typing-bubble i { animation: none; }
  .hero-jump, #interest-button, #send-button { transition: none; }
}
