/* =========================================================
   Kabaca — stil
   ========================================================= */
:root {
  --bg: #ece8df;
  --ink: #1b1a17;
  --ink-soft: #5d594f;
  --line: #d7d1c3;
  --paper: #fffdf7;

  --q1: #ff5b37;   /* soru 1 — turuncu */
  --q2: #4a5df5;   /* soru 2 — mavi */
  --q3: #13966f;   /* soru 3 — yeşil */
  --sum: #f6cf3d;  /* özet — sarı */
  --indigo: #2d2f9b;
  --chalk: #23483a;
  --highlight: #ffe27a;
  --yellow: #ffe066;

  --radius: 26px;
  --shadow: 0 18px 40px -18px rgba(40, 30, 10, .35);
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Pacifico', 'Brush Script MT', cursive;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: calc(70px + var(--safe-top)); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--safe-bottom);
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 16px; }
.lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .78; }

/* ---------- Üst bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  padding: calc(14px + var(--safe-top)) 14px 0;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar-spacer { flex: 1; pointer-events: none; }
.round-btn {
  position: relative;
  width: 40px; height: 40px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 0;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.35);
  text-decoration: none; font-size: 15px;
}
.round-btn--accent { background: var(--q1); color: #fff; }
.round-btn .dot { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--q3); border: 2px solid var(--paper); }
.round-btn--ghost { background: transparent; box-shadow: none; border: 1.5px solid rgba(255,255,255,.55); color: inherit; width: 44px; height: 44px; }

main { padding-top: calc(70px + var(--safe-top)); }

/* ---------- Kartlar ---------- */
.card {
  border-radius: var(--radius);
  padding: 26px 24px 26px;
  box-shadow: var(--shadow);
  color: #fff;
}
.card--q1 { background: var(--q1); }
.card--q2 { background: var(--q2); }
.card--q3 { background: var(--q3); }
.card--summary { background: var(--sum); color: var(--ink); }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.brand, .no { font-weight: 800; font-size: 14px; letter-spacing: -.01em; }
.qdots { display: flex; gap: 12px; }
.qdot { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; opacity: .45; }
.qdot.is-current, .qdot.is-done { opacity: 1; }
.qdot.is-current .qdot-num { text-decoration: underline; text-underline-offset: 3px; }
.qdot-emo { font-size: 14px; filter: saturate(.9); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 26px 24px 40px; }
.hero-title { font-size: clamp(38px, 10vw, 58px); font-weight: 800; letter-spacing: -.04em; margin: 30px 0 6px; line-height: 1.02; }
.hero-accent {
  display: block; font-family: var(--script); font-weight: 400;
  color: var(--yellow); font-size: .95em; letter-spacing: 0; line-height: 1.2; margin-top: 2px; transform: rotate(-4deg);
}

.hero-meta { font-weight: 700; font-size: 13px; margin: 26px 0 10px; opacity: .92; }
.hero-dots { display: flex; justify-content: center; gap: 16px; margin-bottom: 28px; min-height: 22px; }
.hero-dots .qdot { opacity: .65; }
.hero-dots .qdot.is-done { opacity: 1; }
.credit { text-align: center; font-size: 12px; color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- Butonlar ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, opacity .12s ease;
}
.pill:active { transform: scale(.97); }
.pill:disabled { opacity: .45; cursor: default; }
.pill--white { background: #fff; color: var(--q1); box-shadow: 0 10px 22px -10px rgba(0,0,0,.45); }
.card--q2 .pill--white { color: var(--q2); }
.card--q3 .pill--white { color: var(--q3); }
.chalk .pill--white { color: var(--chalk); }
.pill--outline { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.pill--dark { background: var(--ink); color: #fff; }
.pill--block { width: 100%; }

/* ---------- Soru ---------- */
.question { font-size: clamp(24px, 6.6vw, 34px); font-weight: 800; line-height: 1.16; margin-bottom: 26px; letter-spacing: -.025em; }
.guess-field {
  position: relative; display: block;
  background: rgba(255,255,255,.16); border-radius: 16px;
  border: 2px solid transparent; transition: border-color .15s, background .15s;
}
.guess-field:focus-within { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.22); }
.guess-field.is-error { border-color: var(--yellow); animation: shake .3s; }
.unit-tag {
  position: absolute; left: 18px; top: 9px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85;
}
.guess-input {
  width: 100%; border: 0; outline: 0; background: transparent; color: #fff;
  font: 800 26px/1.2 var(--font); letter-spacing: -.01em;
  padding: 28px 18px 14px; font-variant-numeric: tabular-nums;
}
.guess-input::placeholder { color: rgba(255,255,255,.55); font-weight: 700; }
.guess-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.guess-actions .round-btn.is-on { background: #fff; color: var(--ink); border-color: #fff; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ---------- Hesap makinesi ---------- */
.calc-wrap { margin-top: 16px; }
.calc {
  display: grid; grid-template-columns: minmax(92px, 34%) 1fr; gap: 8px;
  background: rgba(0,0,0,.14); border-radius: 18px; padding: 8px;
}
.calc-history { background: rgba(255,255,255,.12); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; min-width: 0; }
.calc-history-head { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.icon-btn { border: 0; background: none; padding: 4px; color: inherit; opacity: .85; display: inline-flex; }
.calc-history-list { flex: 1; overflow-y: auto; max-height: 220px; display: flex; flex-direction: column; gap: 8px; }
.calc-history-item { font-size: 11px; line-height: 1.35; word-break: break-all; opacity: .85; font-variant-numeric: tabular-nums; }
.calc-history-item b { display: block; font-size: 12.5px; opacity: 1; }
.calc-history-empty { font-size: 11px; opacity: .6; font-style: italic; }
.calc-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.calc-display {
  background: rgba(255,255,255,.92); color: var(--ink); border-radius: 12px;
  padding: 10px 12px; text-align: right; font: 800 20px/1.2 var(--font); font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow-x: auto; scrollbar-width: none;
}
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.key {
  min-height: 44px; border: 0; border-radius: 11px;
  background: rgba(255,255,255,.2); color: #fff; font-weight: 800; font-size: 17px;
}
.key:active, .key.is-pressed { background: rgba(255,255,255,.35); transform: scale(.95); }
.key.eq.is-pressed { background: rgba(255,255,255,.75); }
.key { transition: transform .08s, background .08s; }
.key.op { background: rgba(255,255,255,.34); }
.key.fn { background: rgba(0,0,0,.16); font-size: 15px; }
.key.eq { background: #fff; color: var(--ink); }

/* ---------- Sonuç ---------- */
.reveal { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.rbox { border-radius: 16px; padding: 14px 14px 13px; min-width: 0; }
.rbox b { display: block; font-size: var(--fs, 26px); font-weight: 800; line-height: 1.12; margin-top: 4px; white-space: nowrap; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rbox--you { background: rgba(0,0,0,.16); }
.rbox--answer { background: #fff8e4; color: var(--ink); box-shadow: inset 0 0 0 3px var(--yellow); }
.rbox-unit { display: block; font-size: 12px; font-weight: 600; margin-top: 3px; opacity: .7; }
.landed-big { font-size: clamp(28px, 8vw, 38px); font-weight: 800; color: var(--yellow); letter-spacing: -.03em; margin-top: 2px; line-height: 1.1; }
.card--q3 .landed-big { color: #fff27a; }
.landed-sub { font-size: 13.5px; font-weight: 600; margin: 4px 0 22px; opacity: .92; }
.landed-word { display: inline-block; font-weight: 800; font-size: 13.5px; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.2); }

/* ---------- Histogram ---------- */
.hist { margin: 34px 0 24px; }
.hist-plot { position: relative; height: 92px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 2px solid rgba(255,255,255,.55); }
.card--summary .hist-plot { border-color: rgba(0,0,0,.4); }
.hist-bar { flex: 1; background: rgba(255,255,255,.42); border-radius: 3px 3px 0 0; min-width: 0; }
.card--summary .hist-bar { background: rgba(0,0,0,.22); }
.hist-ref { position: absolute; top: 0; bottom: 0; border-left: 2px dashed rgba(255,255,255,.85); }
.hist-marker { position: absolute; top: -6px; bottom: -2px; width: 3px; margin-left: -1.5px; background: var(--yellow); border-radius: 2px; }
.card--summary .hist-marker { background: var(--ink); }
.hist-flag {
  position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -2px);
  background: var(--yellow); color: var(--ink); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 6px; white-space: nowrap;
}
.card--summary .hist-flag { background: var(--ink); color: var(--sum); }
.hist-axis { position: relative; height: 30px; font-size: 11px; font-weight: 700; }
.hist-axis span { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap; text-align: center; opacity: .85; }
.hist-axis span:first-child[style*="left:0%"] { transform: none; }
.hist-axis span:last-child[style*="left:100%"] { transform: translateX(-100%); }
.hist-axis span.strong { opacity: 1; font-weight: 800; }
.hist-axis small { display: block; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.hist-note { font-size: 12px; opacity: .8; margin: -12px 0 20px; }

/* ---------- Açılır bölümler ---------- */
.fold { background: rgba(0,0,0,.13); border-radius: 14px; margin-bottom: 10px; }
.fold summary {
  list-style: none; cursor: pointer; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: '+'; font-size: 20px; line-height: 1; transition: transform .2s; }
.fold[open] summary::after { transform: rotate(45deg); }
.fold-body { padding: 0 16px 16px; font-size: 14.5px; line-height: 1.55; }
.fold-body p { margin: 0 0 12px; }
.fold-body a { font-weight: 700; }
.napkin-steps { list-style: none; padding: 0; margin: 0; position: relative; }
.napkin-steps li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-bottom: 14px; }
.napkin-steps li:last-child { padding-bottom: 0; }
.napkin-steps li:not(:last-child)::before {
  content: ''; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 2px; background: rgba(255,255,255,.3); border-radius: 2px;
}
.ns-num {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.22); font-size: 13px; font-weight: 800;
}
.ns-body { background: rgba(255,255,255,.13); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.ns-label { display: block; font-size: 13.5px; line-height: 1.35; opacity: .95; }
.ns-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.ns-calc { font-size: 13px; font-weight: 600; opacity: .8; }
.ns-value { font-size: 18px; font-weight: 800; }
.napkin-steps li.is-result .ns-num { background: #fff; color: var(--ink); }
.napkin-steps li.is-result .ns-body { background: rgba(255,255,255,.28); }
.next-btn { margin-top: 12px; }

/* ---------- Özet ---------- */
.sum-head { font-size: 13.5px; margin-bottom: 18px; }
.score-big { font-size: clamp(64px, 20vw, 104px); font-weight: 800; letter-spacing: -.05em; line-height: .95; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; background: var(--ink); color: var(--sum); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 24px; }
.badge--soft { background: rgba(0,0,0,.1); color: var(--ink); }
.qlist { list-style: none; padding: 0; margin: 10px 0 22px; }
.qlist li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1.5px solid rgba(0,0,0,.14); font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.qlist li:last-child { border-bottom: 0; }
.qlist b { font-weight: 800; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sum-actions .pill { padding: 0 12px; letter-spacing: .1em; }
.sum-foot { text-align: center; margin-top: 18px; font-size: 13px; font-weight: 600; }
.sum-foot b { font-variant-numeric: tabular-nums; }
.sum-nudge { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.5); font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sum-nudge button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 14px; font-weight: 800; font-size: 12px; white-space: nowrap; }
.skeleton { background: rgba(0,0,0,.08); border-radius: 10px; height: 120px; margin: 14px 0 24px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- Bilgi bölümleri ---------- */
.info { padding: 52px 0 8px; }
.section-title { font-size: clamp(26px, 7vw, 34px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 22px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  background: var(--paper); border-radius: 20px; padding: 20px;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: 20px; line-height: 1;
}
.steps li:nth-child(1) .step-num { background: var(--q1); color: #fff; }
.steps li:nth-child(2) .step-num { background: var(--q2); color: #fff; }
.steps li:nth-child(3) .step-num { background: var(--q3); color: #fff; }
.steps h3 { font-size: 18px; font-weight: 700; margin: 2px 0 4px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.fermi-box {
  display: grid; gap: 20px; align-items: center;
  background: var(--indigo); color: #fff; border-radius: var(--radius); padding: 22px;
  font-size: 15.5px; line-height: 1.6; box-shadow: var(--shadow);
}
.fermi-text p { margin: 0 0 12px; }
.fermi-text p:last-child { margin: 0; }
.fermi-photo { margin: 0; justify-self: center; text-align: center; }
.fermi-photo img {
  display: block; width: 160px; height: 200px; object-fit: cover; object-position: center 15%;
  border-radius: 18px; filter: grayscale(1) contrast(1.05); border: 4px solid rgba(255,255,255,.9);
}
.fermi-photo figcaption { font-weight: 600; font-size: 13px; margin-top: 8px; opacity: .85; }
@media (min-width: 620px) { .fermi-box { grid-template-columns: 180px 1fr; padding: 28px; } }

.chalk {
  background: var(--chalk); color: #f3f1e8; text-align: center;
  border-radius: var(--radius); padding: 34px 22px; box-shadow: var(--shadow);
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 6px 6px;
}
.chalk-title { font-size: clamp(26px, 7vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.chalk-sub { font-weight: 700; opacity: .8; margin: 14px 0 18px; font-size: 14px; }
.chalk-list { list-style: none; padding: 0; margin: 0 0 24px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.chalk-list li { margin-bottom: 14px; }
.chalk-list span { white-space: nowrap; opacity: .8; }

.faq-item { border-bottom: 1.5px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 800; font-size: 16px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; font-weight: 500; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; }
.final-cta { text-align: center; padding: 50px 0 20px; }

/* ---------- Reklam alanları ---------- */
.ad-slot { max-width: 640px; margin: 28px auto 0; padding: 0 16px; text-align: center; }
.ad-slot:empty { display: none; }
.ad-placeholder {
  min-height: 100px; border: 1.5px dashed var(--line); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- Altbilgi ---------- */
.site-footer { text-align: center; padding: 40px 16px 50px; font-size: 13px; color: var(--ink-soft); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 12px; }
.site-footer nav a, .site-footer nav button { background: none; border: 0; padding: 4px 0; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 13px; }
.site-footer p { margin: 0; }

/* ---------- Yan menü ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop, .sheet-backdrop { position: absolute; inset: 0; background: rgba(27,26,23,.42); animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(330px, 86vw);
  background: var(--paper); overflow-y: auto;
  padding: calc(18px + var(--safe-top)) 12px calc(18px + var(--safe-bottom));
  box-shadow: 12px 0 40px rgba(0,0,0,.18);
  animation: slide-in .28s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes slide-in { from { transform: translateX(-100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 4px 8px 18px; border-bottom: 1.5px solid var(--line); margin-bottom: 8px; }
.drawer-logo { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.drawer-sub { font-size: 12.5px; color: var(--ink-soft); }
.drawer-item {
  display: grid; grid-template-columns: 38px 1fr; align-items: center; column-gap: 12px;
  width: 100%; text-align: left; background: none; border: 0; border-radius: 12px;
  padding: 11px 8px; text-decoration: none; font-weight: 700; font-size: 15px;
}
.drawer-item:hover, .drawer-item:active { background: var(--bg); }
.drawer-item .ico { grid-row: span 2; width: 38px; height: 38px; border-radius: 11px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.drawer-item small { grid-column: 2; font-weight: 500; font-size: 12px; color: var(--ink-soft); }
.drawer-foot { margin-top: 18px; padding: 16px 8px 0; border-top: 1.5px solid var(--line); font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Alt sayfa (sheet) ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet-panel {
  position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: var(--paper); border-radius: 26px 26px 0 0;
  padding: 20px 20px calc(28px + var(--safe-bottom));
  animation: sheet-up .3s cubic-bezier(.2,.8,.3,1) both;
}
@media (min-width: 620px) { .sheet { align-items: center; } .sheet-panel { border-radius: 26px; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sheet-head h2 { font-size: 24px; font-weight: 800; }
.sheet-head .round-btn { box-shadow: none; background: var(--bg); }
.sheet p { color: var(--ink-soft); font-size: 14.5px; }

.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.arch {
  display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px;
  background: var(--bg); text-decoration: none; min-height: 84px; position: relative;
}
.arch b { font-size: 18px; font-weight: 800; }
.arch span { font-size: 11.5px; color: var(--ink-soft); }
.arch em { font-style: normal; font-weight: 800; font-size: 13px; margin-top: auto; }
.arch.is-done { background: var(--sum); }
.arch.is-today { box-shadow: inset 0 0 0 2.5px var(--ink); }
.arch.is-partial em { color: var(--q1); }

.form { display: flex; flex-direction: column; gap: 12px; }
.form label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.form input, .form textarea {
  width: 100%; margin-top: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 13px 14px; font: 500 16px/1.4 var(--font); color: var(--ink); text-transform: none; letter-spacing: 0;
}
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--ink); }
.form textarea { min-height: 90px; resize: vertical; }
.form .pill { margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin: 0; }
.or { text-align: center; font-size: 12px; color: var(--ink-soft); margin: 4px 0; }
.btn-google { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 18px; }
.stat { background: var(--bg); border-radius: 14px; padding: 12px 6px; text-align: center; }
.stat b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { font-size: 10.5px; font-weight: 700; color: var(--ink-soft); letter-spacing: .04em; }
.hist-list { list-style: none; margin: 0 0 18px; padding: 0; }
.hist-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hist-list a { text-decoration: none; font-weight: 700; }
.hist-list b { font-variant-numeric: tabular-nums; }

/* ---------- Bildirim ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700; transition: all .25s ease; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Hata / yükleniyor ---------- */
.state-card { background: var(--paper); color: var(--ink); text-align: center; padding: 40px 24px; }
.state-card p { color: var(--ink-soft); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Statik sayfalar ---------- */
.page { padding: 20px 0 40px; }
.page h1 { font-size: 36px; font-weight: 800; margin-bottom: 20px; }
.page h2 { font-size: 20px; font-weight: 800; margin: 28px 0 8px; }
.page p, .page li { color: var(--ink-soft); font-size: 15.5px; }

@media (max-width: 380px) {
  .card { padding: 22px 16px; }
  .calc { grid-template-columns: 84px 1fr; gap: 6px; padding: 6px; }
  .calc-keys { gap: 5px; }
  .key { min-height: 42px; font-size: 16px; }
}
@media (max-width: 330px) {
  .calc { grid-template-columns: 1fr; }
  .calc-history { order: 2; }
  .calc-history-list { max-height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Hesap sayfası ---------- */
.account {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 22px 26px; max-width: 480px; margin: 0 auto;
}
.account-back { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); text-decoration: none; margin-bottom: 22px; }
.account-back:hover { color: var(--ink); }
.account-eyebrow { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--q1); margin-bottom: 8px; }
.account-title { font-size: clamp(34px, 9vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 14px; }
.account-lead { color: var(--ink-soft); font-size: 15px; margin: 0 0 22px; }
.account-lead a { color: var(--ink); font-weight: 700; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg); border-radius: 16px; padding: 4px; margin-bottom: 22px; }
.seg button { border: 0; background: transparent; border-radius: 12px; padding: 12px 8px; font-weight: 800; font-size: 14.5px; color: var(--ink-soft); }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }

.account-form { gap: 16px; }
.field-hint { display: block; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-soft); margin-top: 6px; min-height: 16px; }
.field-hint.is-ok { color: var(--q3); }
.field-hint.is-bad { color: var(--q1); }
.form .check {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-soft); line-height: 1.45; cursor: pointer;
}
.form .check input { width: 20px; height: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--q1); cursor: pointer; }
.form .check a { color: var(--q1); font-weight: 700; }
.form-error { margin: 0; padding: 11px 14px; border-radius: 12px; background: #ffe6df; color: #a8321a; font-size: 14px; font-weight: 600; }
.pill--accent { background: var(--q1); color: #fff; }
.account-form .form-note { text-align: center; }
.account-stats-lbl { margin: 28px 0 8px; }

.sent-icon { font-size: 44px; line-height: 1; margin: 4px 0 14px; }
.sent-tips { margin: 0 0 22px; padding-left: 20px; color: var(--ink-soft); font-size: 14.5px; }
.sent-tips li { margin-bottom: 6px; }
.link-btn { display: block; margin: 14px auto 0; border: 0; background: none; font-weight: 700; font-size: 14px; color: var(--ink-soft); text-decoration: underline; }
.username-form { margin-bottom: 20px; }
.account .hist-list { margin-top: 8px; }
.code-form { margin-bottom: 22px; }
.code-form input[name="code"] { font-size: 24px; font-weight: 800; letter-spacing: .3em; text-align: center; }
.code-form input[name="code"]::placeholder { font-size: 16px; font-weight: 500; letter-spacing: 0; }
