/* Nihat Dil Ön Analiz Masası — Katsa
   Control-room chrome + tapu-paper ledger. Single accent: parcel red. */

:root {
  --bg: #0e1214;
  --panel: #151b1e;
  --panel-2: #1b2226;
  --line: #29343a;
  --text: #e9e4d8;
  --muted: #8f979c;
  --paper: #efe8d6;
  --paper-2: #e7dec6;
  --paper-ink: #241f18;
  --paper-muted: #6d6350;
  --paper-line: #d3c8ab;
  --red: #c6412e;
  --red-deep: #9c3323;
  --amber: #d9a23f;
  --green: #79a97f;
  --green-paper: #3e7a4c;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --cond: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot--pulse { animation: none; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.section { margin-top: 4.5rem; }

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

a { color: inherit; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- shared bits ---------- */

.dot {
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  vertical-align: 0.05em;
}
.dot--red { background: var(--red); }
.dot--pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.section-label {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  border-left: 3px solid var(--red);
  padding-left: 0.75rem;
  margin-bottom: 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2em 0.6em;
  border: 1px solid currentColor;
  border-radius: 2px;
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 0.45em; height: 0.45em;
  border-radius: 50%;
  background: currentColor;
}
.chip--ok { color: var(--green-paper); }
.chip--wait { color: var(--amber); }
.case-card--main > .dual .chip--ok,
.slate .chip--ok { color: var(--green); }

.badge {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.2em 0.6em;
  white-space: nowrap;
}
.badge--wait { color: var(--amber); border-color: var(--amber); }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0 2.5rem;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 3.25rem,
    var(--bg);
  background-blend-mode: normal;
}

.eyebrow {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.masthead h1 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 1.25rem 0 1.5rem;
}

.lede {
  max-width: 44rem;
  font-size: 1.08rem;
  color: #c9c3b6;
}
.lede strong { color: var(--text); }

.source-strip {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}
.src-label {
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
}
.source-strip a {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
  text-decoration-color: var(--muted);
}
.src-meta { color: var(--muted); }
.src-meta .num { color: var(--text); font-weight: 500; }

/* ---------- case card (main) ---------- */

.case-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  overflow: hidden;
}
.case-card--main {
  border-color: #3a464e;
  box-shadow: 0 0 0 1px rgba(198, 65, 46, 0.15), 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

/* slate = broadcast lower-third */
.slate {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.25rem;
  background: var(--panel-2);
  border-bottom: 2px solid var(--red);
  padding: 0.9rem 1.25rem;
}
.slate-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red);
}
.slate-id { font-weight: 600; font-size: 0.95rem; }
.slate-time {
  font-size: 0.95rem;
  color: var(--amber);
  text-decoration-color: rgba(217, 162, 63, 0.5);
}
.slate-loc {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.slate-sub { font-size: 0.85rem; color: var(--muted); flex-basis: 100%; }

/* intake gate */
.gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.gate-title {
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
}
.gate-items {
  display: flex;
  gap: 1rem;
  list-style: none;
}
.gate-items li { display: inline-flex; align-items: center; gap: 0.4rem; }
.tick { color: var(--green); font-weight: 600; }
.gate-note { color: var(--muted); font-size: 0.82rem; }

/* paper ledger */
.paper {
  background: var(--paper);
  color: var(--paper-ink);
  margin: 1.25rem;
  border-radius: 2px;
  border: 1px solid var(--paper-line);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--paper-line);
  padding: 1.1rem 1.1rem 1.25rem;
}
.paper-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  border-bottom: 2px solid var(--paper-ink);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.paper-head-src {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--paper-muted);
}

.ledger { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ledger th {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper-muted);
  text-align: left;
  padding: 0.6rem 0.5rem 0.35rem;
  border-bottom: 1px solid var(--paper-line);
}
.ledger td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px dotted var(--paper-line);
  vertical-align: middle;
}
.ledger tbody tr:last-child td { border-bottom: none; }
.ta-r { text-align: right; }

/* frames */
.frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
.frames figure { border: 1px solid var(--paper-line); background: #fff; border-radius: 2px; }
.frames img { display: block; width: 100%; height: auto; }
.frames figcaption {
  font-size: 0.75rem;
  color: var(--paper-muted);
  padding: 0.35rem 0.5rem;
  border-top: 1px solid var(--paper-line);
}

/* dual rails: screen vs spoken */
.dual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin: 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel-2);
}
.rail { padding: 1.1rem 1.25rem 1.25rem; }
.rail-title {
  display: block;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.rail--screen .rail-title { color: var(--green); }
.rail--spoken .rail-title { color: var(--amber); }
.rail-big { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 600; line-height: 1.1; }
.rail-cap { font-size: 0.82rem; color: var(--muted); margin: 0.4rem 0 1rem; }
.ladder {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.ladder-result { color: var(--text); font-size: 1.15rem; font-weight: 600; margin-top: 0.2rem; }
.rail-divider {
  position: relative;
  width: 1px;
  background: var(--line);
}
.rail-divider span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  background: var(--panel-2);
  padding: 0 0.6em;
}
.dual-note {
  margin: 0.75rem 1.25rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.dual-note .num { color: var(--text); }

/* price roles */
.roles { margin: 1.5rem 1.25rem 0; }
.roles-title {
  display: block;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.role {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.8rem 0.9rem;
  background: var(--panel-2);
}
.role dt {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.role-sub { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.role dd:nth-of-type(1) { font-size: 1.05rem; font-weight: 600; margin: 0.35rem 0 0.5rem; }

/* decision */
.decision {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin: 1.5rem 1.25rem 0;
  border-left: 3px solid var(--red);
  background: var(--panel-2);
  padding: 0.85rem 1rem;
}
.decision-label {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
}
.decision-value { font-weight: 600; }

/* provenance */
.prov {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
}
.prov-src {
  font-size: 0.82rem;
  color: var(--amber);
  text-decoration-color: rgba(217, 162, 63, 0.5);
  margin-right: auto;
}
.prov-note {
  flex-basis: 100%;
  font-size: 0.82rem;
  color: var(--muted);
}
.prov-note em { font-style: normal; color: var(--text); }

/* ---------- mini cards ---------- */

.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.slate--mini { border-bottom-width: 1px; border-bottom-color: var(--line); padding: 0.75rem 1rem; }
.slate--mini .slate-loc { font-size: 0.92rem; flex-basis: 100%; }

.mini-facts { list-style: none; padding: 0.75rem 1rem 0.25rem; }
.mini-facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--line);
  font-size: 0.88rem;
}
.mini-facts li > span:first-child { color: var(--muted); }
.mini-facts li > span:last-child { text-align: right; }
.mini-facts small { color: var(--muted); font-size: 0.75rem; }

.mini-decision {
  margin: 0.75rem 1rem 0;
  border-left: 3px solid var(--red);
  background: var(--panel-2);
  padding: 0.6rem 0.75rem;
  font-size: 0.86rem;
}
.mini-decision .decision-label { display: block; margin-bottom: 0.2rem; }

.mini-note {
  margin: 0.6rem 1rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.mini-prov {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
}

/* ---------- flow ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.flow-step {
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 2px;
  background: var(--panel);
  padding: 1.1rem 1.2rem 1.3rem;
  font-size: 0.92rem;
}
.flow-when {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red);
}
.flow-step h3 {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0.5rem 0 0.75rem;
}
.flow-step p { color: #c9c3b6; }
.flow-step p strong { color: var(--text); }

.quote {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 2px;
  border-left: 4px solid var(--red);
  padding: 0.85rem 1rem;
  margin-bottom: 0.9rem;
}
.quote p {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--paper-ink);
}
.quote footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.6rem;
  font-size: 0.78rem;
}
.quote footer a { color: var(--red-deep); }

/* ---------- offer ---------- */

.offer {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  border: 1px solid var(--paper-line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper);
  color: var(--paper-ink);
}
.offer-body { padding: 1.75rem 1.75rem 1.9rem; }
.offer h2 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 0.9rem;
}
.offer-lede { margin-bottom: 1rem; }
.offer-list { list-style: none; margin-bottom: 1.25rem; }
.offer-list li {
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--paper-line);
}
.offer-list li:first-child { border-top: 1px dotted var(--paper-line); }
.offer-list .num { font-weight: 600; }
.offer-list em, .offer-fine em { font-style: normal; color: var(--paper-muted); }
.offer-fine { font-size: 0.85rem; color: var(--paper-muted); }
.offer-fine .num { color: var(--paper-ink); }

.offer-cta {
  background: var(--paper-2);
  border-left: 1px solid var(--paper-line);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
}
.offer-price-num {
  display: block;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
}
.offer-price-sub { display: block; font-size: 0.85rem; color: var(--paper-muted); margin-top: 0.35rem; }
.offer-price-sub em { font-style: normal; }

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 2px;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--red-deep);
  box-shadow: 0 3px 0 var(--red-deep);
}
.btn:hover { background: var(--red-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-deep); }
.offer-cta-note { font-size: 0.8rem; color: var(--paper-muted); }

/* ---------- footer ---------- */

.site-foot {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 3rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.site-foot p { margin-bottom: 0.4rem; }
.foot-brand { color: var(--text); font-size: 1rem; }
.foot-brand strong { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.08em; }
.foot-contact { margin-top: 1rem; }

/* ---------- responsive ---------- */

@media (max-width: 56rem) {
  .card-row, .flow, .roles-grid { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .offer-cta { border-left: none; border-top: 1px solid var(--paper-line); }
}

@media (max-width: 40rem) {
  .section { margin-top: 3rem; }
  .masthead { padding: 2.5rem 0 2rem; }
  .frames { grid-template-columns: 1fr; }
  .dual { grid-template-columns: 1fr; }
  .rail-divider { width: auto; height: 1px; }
  .rail-divider span { transform: translate(-50%, -50%); }
  .paper { margin: 1rem 0.75rem; }
  .dual { margin: 0 0.75rem; }
  .dual-note, .roles, .decision { margin-left: 0.75rem; margin-right: 0.75rem; }
}
