/* ============================================================
   TaskTomo — marketing site
   Design tokens mirror the app (src/theme/colors.ts).
   Flat colors only. No gradients. Nunito. Juicy 3D edges.
   ============================================================ */

:root {
  --blue: #00a9fb;
  --blue-dark: #0085cc;
  --orange: #ff9600;
  --orange-dark: #cc7800;
  --green: #46c130;
  --green-dark: #34972a;
  --red: #ff4b4b;
  --red-dark: #d43636;
  --purple: #8b5cf6;
  --purple-dark: #6d28d9;

  --ink: #3c3c3c;
  --ink-soft: #777777;
  --line: #e5e5e5;
  --line-dark: #d0d0d0;

  --bg: #ffffff;
  --bg-soft: #f7f8f9;
  --bg-blue: #e9f7ff;
  --card: #ffffff;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --maxw: 1160px;
  --nav-h: 72px;

  --shadow-card: 0 2px 0 var(--line-dark);
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* lang variants — JS (app.js) toggles .lang-show per language with en fallback.
   Before JS boots, Turkish shows by default; .js-i18n hands control to JS.
   !important so component rules (e.g. descendant `span { display }`) can't leak
   hidden language variants back into view. */
[data-lang-block] { display: none !important; }
html:not(.js-i18n) [data-lang-block="tr"] { display: revert !important; }
html.js-i18n [data-lang-block].lang-show { display: revert !important; }

/* ---------------- Buttons (juicy 3D) ---------------- */
.btn {
  --c: var(--blue);
  --cd: var(--blue-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--c);
  border: none;
  border-radius: 16px;
  padding: 14px 26px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--cd);
  transition: transform .06s ease, box-shadow .06s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--cd); }
.btn.green { --c: var(--green); --cd: var(--green-dark); }
.btn.orange { --c: var(--orange); --cd: var(--orange-dark); }
.btn.ghost {
  color: var(--blue);
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line), 0 2px 0 var(--line-dark);
}
.btn.ghost:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--line), 0 0 0 var(--line-dark); }
.btn.sm { padding: 10px 18px; font-size: 15px; border-radius: 13px; }
.btn.lg { padding: 17px 34px; font-size: 19px; }

/* ---------------- Store badges ---------------- */
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111417;
  color: #fff;
  border-radius: 14px;
  padding: 11px 20px 11px 18px;
  box-shadow: 0 4px 0 #000;
  transition: transform .06s ease, box-shadow .06s ease;
  min-width: 196px;
}
.store:active { transform: translateY(4px); box-shadow: 0 0 0 #000; }
.store svg { width: 26px; height: 26px; flex: none; }
.store .st-txt { display: flex; flex-direction: column; line-height: 1.15; }
.store .st-top { font-size: 11px; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }
.store .st-big { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 2px solid var(--line);
  transition: transform .3s ease;
}
.nav.nav-hidden { transform: translateY(-100%); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 22px; letter-spacing: -0.03em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 2px 0 var(--blue-dark); }
.brand .brand-logo {
  width: 38px; height: 38px; flex: none;
  background-color: var(--ink);
  -webkit-mask: url(assets/logo-monochrome.png) center / 118% no-repeat;
          mask: url(assets/logo-monochrome.png) center / 118% no-repeat;
}
.nav-links { display: flex; gap: 26px; margin-left: 14px; }
.nav-links a { font-weight: 700; font-size: 16px; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.nav-study { color: var(--blue); font-weight: 800; }
.nav-links a.nav-study::before { content: "✦ "; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* language picker (dropdown) */
.langpick { position: relative; }
.langpick-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 12px; padding: 8px 12px; cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 14px;
  box-shadow: 0 2px 0 var(--line-dark);
  transition: border-color .15s ease, color .15s ease;
}
.langpick-btn:hover { border-color: var(--line-dark); }
.lp-flag { flex: none; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.langpick-btn .lp-flag { width: 22px; height: 15px; }
.langpick-btn .lp-name { font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.langpick-btn .chev { width: 14px; height: 14px; color: var(--ink-soft); transition: transform .2s ease; }
.langpick.open .langpick-btn { border-color: var(--blue); }
.langpick.open .langpick-btn .chev { transform: rotate(180deg); }

.langpick-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 184px; padding: 6px;
  background: #fff; border: 2px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 30px rgba(20,30,40,.14), 0 2px 0 var(--line-dark);
  display: none;
}
.langpick.open .langpick-menu { display: block; }
.langpick-menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 9px; cursor: pointer;
  font-weight: 800; font-size: 15px; color: var(--ink);
}
.langpick-menu li:hover { background: var(--bg-soft); }
.langpick-menu li .lp-flag { width: 26px; height: 18px; }
.langpick-menu li .lp-check { margin-left: auto; width: 16px; height: 16px; color: var(--blue); opacity: 0; flex: none; }
.langpick-menu li.active { color: var(--blue); }
.langpick-menu li.active .lp-check { opacity: 1; }

.menu-toggle { display: none; }

/* ---------------- Hero ---------------- */
.hero { padding: 70px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 58px; font-weight: 900; }
.hero h1 .hl { color: var(--blue); }
.hero .sub { margin-top: 22px; font-size: 21px; color: var(--ink-soft); font-weight: 600; max-width: 30ch; }
.hero .cta { margin-top: 32px; }
.hero .note { margin-top: 16px; font-size: 14.5px; color: var(--ink-soft); font-weight: 600; }
.hero-art { display: flex; justify-content: center; position: relative; }

/* eyebrow (no dots, real label) */
.eyebrow {
  display: block;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 10px;
}

/* ---------------- Phone device (iPhone 15 style) ---------------- */
.device {
  width: 306px;
  background: #0c0d0f;
  border-radius: 56px;
  padding: 13px;
  box-shadow: 0 30px 70px rgba(20,30,40,.22),
              inset 0 0 0 2px #3a3d42,
              inset 0 0 0 8px #0c0d0f;
  position: relative;
}
/* right side button */
.device::before {
  content: "";
  position: absolute; right: -2px; top: 134px;
  width: 3px; height: 62px; background: #2c2f34; border-radius: 0 3px 3px 0;
}
/* left side buttons (action + volume up/down via shadows) */
.device::after {
  content: "";
  position: absolute; left: -2px; top: 110px;
  width: 3px; height: 30px; background: #2c2f34; border-radius: 3px 0 0 3px;
  box-shadow: 0 44px 0 #2c2f34, 0 88px 0 #2c2f34;
}
.screen {
  background: var(--bg-soft);
  border-radius: 45px;
  overflow: hidden;
  padding: 48px 15px 0;
  position: relative;
  min-height: 588px;
  display: flex;
  flex-direction: column;
}
.island {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 26px; background: #000; border-radius: 14px; z-index: 6;
}
/* real app screenshot inside the frame */
.device.shot .screen { padding: 0; min-height: 0; display: block; background: #fff; }
.device.shot .screen img { width: 100%; height: auto; display: block; }

/* tiny app UI bits */
.app-greet { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.app-greet .ava { width: 40px; height: 40px; border-radius: 12px; background: var(--blue); flex: none; box-shadow: 0 2px 0 var(--blue-dark); display: grid; place-items: center; }
.app-greet .ava img { width: 30px; height: 30px; }
.app-greet .gtxt b { display: block; font-size: 15px; }
.app-greet .gtxt span { font-size: 12px; color: var(--ink-soft); font-weight: 700; }

.hero-stat {
  background: var(--blue); color: #fff; border-radius: 20px; padding: 16px; margin-bottom: 14px;
  box-shadow: 0 4px 0 var(--blue-dark);
  display: flex; justify-content: space-between; text-align: center;
}
.hero-stat .s b { display: block; font-size: 22px; font-weight: 900; }
.hero-stat .s span { font-size: 11px; font-weight: 800; opacity: .9; text-transform: uppercase; letter-spacing: .04em; }

.ui-card {
  background: #fff; border: 2px solid var(--line); border-bottom-width: 4px;
  border-radius: 18px; padding: 14px; margin-bottom: 12px;
}
.ui-card .head { font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }

.task { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 2px solid var(--line); }
.task:first-of-type { border-top: none; }
.task .box { width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--line-dark); flex: none; display: grid; place-items: center; }
.task.done .box { background: var(--green); border-color: var(--green-dark); color: #fff; }
.task .tt { font-size: 14px; font-weight: 800; }
.task.done .tt { color: var(--ink-soft); text-decoration: line-through; }
.task .em { margin-left: auto; font-size: 16px; }
/* first task ticks off on scroll (home.js: .t-anim starts unchecked, .go animates) */
html.js-anim .t-anim .box { transition: background .4s ease, border-color .4s ease; }
html.js-anim .t-anim .box svg { stroke-dasharray: 26; stroke-dashoffset: 26; }
html.js-anim .t-anim.go .box { background: var(--green); border-color: var(--green-dark); color: #fff; }
html.js-anim .t-anim.go .box svg { stroke-dashoffset: 0; transition: stroke-dashoffset .65s ease .25s; }
html.js-anim .t-anim .tt { position: relative; }
html.js-anim .t-anim .tt::after { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 2px; width: 0; background: var(--ink-soft); border-radius: 2px; }
html.js-anim .t-anim.go .tt { color: var(--ink-soft); transition: color .5s ease .35s; }
html.js-anim .t-anim.go .tt::after { width: 100%; transition: width .85s cubic-bezier(.2, .8, .2, 1) .35s; }

/* daily quote mini card */
.quote-card { display: flex; gap: 11px; align-items: flex-start; }
.quote-card .qbar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--orange); flex: none; }
.quote-card .qtxt .head { margin-bottom: 5px; }
.quote-card .qtxt p { font-size: 13.5px; font-weight: 800; color: var(--ink); line-height: 1.4; }

/* bottom tab bar */
.app-tabs {
  margin: auto -15px 0;
  padding: 13px 18px 16px;
  background: #fff;
  border-top: 2px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-tabs .tab { color: var(--line-dark); display: grid; place-items: center; }
.app-tabs .tab svg { width: 23px; height: 23px; }
.app-tabs .tab.active { color: var(--blue); }

/* ---------------- Generic section ---------------- */
section { position: relative; }
.section { padding: 78px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 640px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: 40px; font-weight: 900; }
.section-head p { margin-top: 16px; font-size: 19px; color: var(--ink-soft); font-weight: 600; }

/* feature row (alternating) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 2px solid var(--line); }
.feature.flip .f-text { order: 2; }
.feature .f-text h3 { font-size: 32px; font-weight: 900; }
.feature .f-text .lead { margin-top: 14px; font-size: 18.5px; color: var(--ink-soft); font-weight: 600; }
.feature .points { margin-top: 22px; display: grid; gap: 13px; }
.feature .points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; font-size: 16.5px; }
.feature .points .tick {
  width: 24px; height: 24px; border-radius: 8px; flex: none; margin-top: 1px;
  background: var(--green); color: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 0 var(--green-dark);
}
.feature .points .tick svg { width: 14px; height: 14px; }

.feature .f-text, .feature .f-visual { min-width: 0; } /* allow grid items to shrink below content size (prevents mobile blowout) */
.f-visual { display: flex; justify-content: center; }

/* showcase card (the in-app UI shown in feature visuals) */
.show {
  width: 100%; max-width: 380px;
  background: #fff; border: 2px solid var(--line); border-bottom-width: 5px;
  border-radius: 24px; padding: 22px;
}
.show .bar { height: 14px; border-radius: 999px; background: var(--bg-soft); }

/* pomodoro ring */
.ring-wrap { display: grid; place-items: center; padding: 8px 0 16px; }
.ring {
  width: 196px; height: 196px; border-radius: 50%;
  background:
    conic-gradient(var(--orange) 0 68%, var(--line) 68% 100%);
  display: grid; place-items: center;
  position: relative;
}
.ring::after { content: ""; position: absolute; inset: 16px; background: #fff; border-radius: 50%; }
.ring .inner { position: relative; z-index: 1; text-align: center; }
.ring .inner b { font-size: 42px; font-weight: 900; letter-spacing: -0.04em; }
.ring .inner span { font-size: 12px; font-weight: 800; color: var(--orange); text-transform: uppercase; letter-spacing: .08em; }
.pomo-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--line); border-bottom-width: 4px;
  border-radius: 16px; overflow: hidden; margin-top: 6px;
}
.pomo-stats .ps { padding: 13px 6px; text-align: center; border-left: 2px solid var(--line); }
.pomo-stats .ps:first-child { border-left: none; }
.pomo-stats .ps b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.pomo-stats .ps b small { font-size: 12px; font-weight: 800; color: var(--ink-soft); letter-spacing: 0; }
.pomo-stats .ps span { display: block; margin-top: 5px; font-size: 11px; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.pomo-stats .ps.on { background: #fff7ec; }
.pomo-stats .ps.on b { color: var(--orange); }
.pomo-stats .ps.on span { color: var(--orange-dark); }

/* xp / progress */
.xp-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.xp-row .lvl { width: 46px; height: 46px; border-radius: 14px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 900; box-shadow: 0 3px 0 var(--blue-dark); flex: none; line-height: 1; }
.xp-row .lvl small { font-size: 9px; display: block; opacity: .85; }
.xp-row .lvl b { font-size: 20px; }
.xp-bar { flex: 1; height: 18px; border-radius: 999px; background: var(--line); overflow: hidden; }
.xp-bar i { display: block; height: 100%; width: 72%; background: var(--green); border-radius: 999px; }
.xp-meta { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 800; color: var(--ink-soft); margin-bottom: 18px; }

.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.badge { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; background: var(--bg-soft); border: 2px solid var(--line); }
.badge svg { width: 27px; height: 27px; }
.badge.lit { background: #fff5e6; border-color: #ffd9a6; color: var(--orange); }
.badge.blue.lit { background: #e7f6ff; border-color: #bfe6ff; color: var(--blue); }
.badge.green.lit { background: #eefbe3; border-color: #cdeeb0; color: var(--green-dark); }
.badge.purple.lit { background: #f1ecfe; border-color: #dccffb; color: var(--purple); }
.badge.lock { background: var(--bg-soft); border-color: var(--line); color: var(--line-dark); }

.streak-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  background: #fff3e0; color: var(--orange-dark); font-weight: 900; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
}

/* live homepage mockups (home.js; gated by .js-anim → static fallback without JS / reduced-motion) */
html.js-anim .badge { opacity: 0; transform: scale(.55); }
html.js-anim .badges.in .badge { opacity: 1; transform: none; transition: opacity .45s ease, transform .5s cubic-bezier(.2, 1.3, .4, 1); }
html.js-anim .streak-chip { opacity: 0; transform: translateY(10px); }
html.js-anim .streak-chip.in { opacity: 1; transform: none; transition: opacity .4s ease .45s, transform .4s ease .45s; }

/* exam nets */
.net { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 2px solid var(--line); }
.net:first-child { border-top: none; }
.net .nm { width: 92px; font-weight: 800; font-size: 14px; flex: none; }
.net .track { flex: 1; height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.net .track i { display: block; height: 100%; border-radius: 999px; }
.net .val { width: 52px; text-align: right; font-weight: 900; font-size: 14px; }

/* AI chat bubble */
.chat { margin-top: 18px; display: grid; gap: 10px; }
.bubble { max-width: 86%; padding: 12px 15px; border-radius: 18px; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.bubble.them { background: var(--bg-soft); border-bottom-left-radius: 5px; }
.bubble.me { background: var(--blue); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.chat .who { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.chat .who img { width: 24px; height: 24px; border-radius: 7px; }

/* study room */
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* study-room seats appear one by one on scroll (home.js adds .in) */
html.js-anim .room-grid .seat { opacity: 0; transform: scale(.85) translateY(12px); }
html.js-anim .room-grid.in .seat { opacity: 1; transform: none; transition: opacity .4s ease, transform .5s cubic-bezier(.2, 1.25, .4, 1); }
.seat { background: var(--bg-soft); border: 2px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; }
.seat .face { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 8px; display: grid; place-items: center; font-size: 26px; }
.seat .nm { font-weight: 800; font-size: 14px; }
.seat .st { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.st.focus { color: var(--orange); }
.st.brk { color: var(--green); }
.st.idle { color: var(--ink-soft); }
.seat .face.f1 { background: #ffe7c2; } .seat .face.f2 { background: #d6f3c2; }
.seat .face.f3 { background: #cfeeff; } .seat .face.f4 { background: #f3d6f7; }

/* ---------------- Differentiators (editorial, no cards) ---------------- */
.edge { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.edge-head { position: sticky; top: calc(var(--nav-h) + 30px); }
.edge-head h2 { font-size: 38px; font-weight: 900; }
.edge-head p { margin-top: 16px; font-size: 18px; color: var(--ink-soft); font-weight: 600; }
.edge-list { display: grid; }
.edge-item { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 30px 0; border-top: 2px solid var(--line); }
.edge-item:first-child { border-top: none; padding-top: 4px; }
.edge-item:last-child { padding-bottom: 4px; }
.edge-item .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.edge-item .ic svg { width: 27px; height: 27px; }
.edge-item h4 { font-size: 22px; font-weight: 900; }
.edge-item p { margin-top: 9px; font-size: 17px; color: var(--ink-soft); font-weight: 600; }
.ic.b { background: var(--blue); box-shadow: 0 3px 0 var(--blue-dark); }
.ic.o { background: var(--orange); box-shadow: 0 3px 0 var(--orange-dark); }
.ic.g { background: var(--green); box-shadow: 0 3px 0 var(--green-dark); }
.ic.r { background: var(--red); box-shadow: 0 3px 0 var(--red-dark); }
.ic.p { background: var(--purple); box-shadow: 0 3px 0 var(--purple-dark); }
.ic.gold { background: #f5a623; box-shadow: 0 3px 0 #c9831a; }

/* ---------------- FAQ ---------------- */
.faq-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.faq-aside { text-align: center; }
.faq-aside img { width: 220px; margin: 0 auto; }
.faq-aside h2 { font-size: 34px; font-weight: 900; margin-top: 8px; }
.faq-list { display: grid; gap: 14px; }
.qa {
  background: #fff; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 18px;
  overflow: hidden;
}
.qa summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 14px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .plus { margin-left: auto; width: 26px; height: 26px; flex: none; position: relative; transition: transform .2s; }
.qa summary .plus::before, .qa summary .plus::after { content: ""; position: absolute; background: var(--blue); border-radius: 2px; }
.qa summary .plus::before { left: 4px; right: 4px; top: 11px; height: 4px; }
.qa summary .plus::after { top: 4px; bottom: 4px; left: 11px; width: 4px; transition: opacity .2s; }
.qa[open] summary .plus::after { opacity: 0; }
.qa .ans { padding: 0 22px 20px; color: var(--ink-soft); font-weight: 600; font-size: 16.5px; }
.qa .ans a { color: var(--blue); font-weight: 800; }

/* dedicated FAQ page */
.faq-page-head { max-width: 720px; margin-bottom: 34px; }
.faq-page-head h1 { font-size: 42px; font-weight: 900; margin: 6px 0 14px; }
.faq-page-head p { font-size: 18px; color: var(--ink-soft); font-weight: 600; }
.faq-page-head a { color: var(--blue); font-weight: 800; }
.faq-wide { max-width: 820px; }

/* FAQ block on the tool/calculator pages (answers mirrored by FAQPage schema). */
.tool-faq { max-width: 820px; margin: 46px auto 0; }
.tool-faq > h2 { font-size: 26px; font-weight: 900; text-align: center; margin-bottom: 18px; }
.faq-cta { margin-top: 38px; }

/* ---------------- Premium ---------------- */
.section.premium { background: #f4ead6; overflow: hidden; }
.section.premium .wrap { position: relative; z-index: 1; }
.prem-deco, .cta-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dood { position: absolute; height: auto; }

/* TaskTomo+ premium wordmark (Task=ink, Tomo=blue, +=gold) — mirrors the app */
.prem-brand { display: inline-flex; align-items: flex-start; font-family: var(--font); font-weight: 900; font-size: 27px; letter-spacing: -.03em; line-height: 1; margin-bottom: 14px; }
.prem-brand .t, .prem-brand .m { color: var(--ink); }
.prem-brand .plus { color: #ffc107; font-size: 32px; line-height: .82; margin-left: 2px; }
.prem-go { margin-top: 26px; }
.prem-meta { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }

/* Premium showcase: the hero iPhone frame with app-icon feature tiles bursting out */
.prem-stage { position: relative; width: 100%; max-width: 450px; height: 500px; margin: 0 auto; }
.prem-device {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.68);
  z-index: 2;
}

.ptile {
  position: absolute; z-index: 3; width: 86px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  animation: pfloat 3.6s ease-in-out infinite;
}
.ptile .tic {
  width: 62px; height: 62px; border-radius: 19px; flex: none;
  display: grid; place-items: center; color: #fff; background: var(--c);
  box-shadow: 0 12px 22px rgba(0,0,0,.18), 0 5px 0 var(--cd);
}
.ptile .tic svg { width: 29px; height: 29px; }
.ptile .tlb { font-size: 11.5px; font-weight: 800; color: var(--ink); text-align: center; line-height: 1.15; }
.p-red    { --c: #ff4b4b; --cd: #d43636; }
.p-blue   { --c: #00a9fb; --cd: #0085cc; }
.p-green  { --c: #46c130; --cd: #34972a; }
.p-purple { --c: #8b5cf6; --cd: #6d28d9; }
.p-orange { --c: #ff9600; --cd: #cc7800; }
.p-gold   { --c: #f5a623; --cd: #c9831a; }
/* tidy, symmetric placement — three even rows flanking the phone */
.t1 { top: 0%;    left: -1%;  rotate: -8deg; animation-duration: 3.4s; animation-delay: 0s; }
.t2 { top: 0%;    right: -1%; rotate: 8deg;  animation-duration: 3.8s; animation-delay: .5s; }
.t3 { top: 40%;   left: -7%;  rotate: -7deg; animation-duration: 4.0s; animation-delay: 1.0s; }
.t4 { top: 40%;   right: -7%; rotate: 7deg;  animation-duration: 3.6s; animation-delay: .3s; }
.t5 { bottom: 0%; left: 2%;   rotate: -7deg; animation-duration: 3.9s; animation-delay: .8s; }
.t6 { bottom: 0%; right: 2%;  rotate: 7deg;  animation-duration: 3.5s; animation-delay: .4s; }
@keyframes pfloat { 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .ptile { animation: none; } }

/* ===== Premium page (/premium) ===== */
.pp-h1 { font-size: 46px; font-weight: 900; letter-spacing: -.02em; line-height: 1.08; margin-top: 2px; }

/* in-app mockups */
.pp-ad { position: relative; border: 2px dashed var(--line-dark); border-radius: 14px; height: 62px; display: grid; place-items: center; background: var(--bg-soft); }
.pp-ad-tag { font-size: 12px; font-weight: 900; letter-spacing: .14em; color: var(--line-dark); }
.pp-ad-ban { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 9px; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 3px 0 var(--red-dark); }
.pp-ad-ban svg { width: 17px; height: 17px; }
.pp-gone { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px; font-weight: 800; font-size: 15px; color: var(--green-dark); }
.pp-gone .ck { width: 22px; height: 22px; border-radius: 7px; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 2px 0 var(--green-dark); flex: none; }
.pp-gone .ck svg { width: 13px; height: 13px; }
.pp-feed { display: grid; gap: 13px; margin-top: 16px; }
.pp-fr { display: flex; align-items: center; gap: 12px; }
.pp-fr .d { width: 26px; height: 26px; border-radius: 9px; flex: none; }
.pp-fr .d.blue { background: #cdeeff; } .pp-fr .d.green { background: #d9f5c2; } .pp-fr .d.orange { background: #ffe1b8; } .pp-fr .d.purple { background: #e7ddff; }
.pp-fr i { display: block; height: 11px; border-radius: 999px; background: var(--line); }

.pp-aimock { border-color: #bfe6ff; box-shadow: 0 14px 30px rgba(0,169,251,.12), 0 5px 0 #bfe6ff; }
.pp-mhead { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.pp-mtag { width: 32px; height: 32px; border-radius: 10px; background: #e7f6ff; color: var(--blue); display: grid; place-items: center; flex: none; }
.pp-mtag svg { width: 18px; height: 18px; }
.pp-mhead b { flex: 1; font-weight: 900; font-size: 15.5px; }
.pp-inf { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; color: #fff; background: var(--blue); box-shadow: 0 3px 0 var(--blue-dark); }
.pp-inf svg { width: 22px; height: 22px; }
.pp-airow { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-top: 2px solid var(--line); }
.pp-aic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.pp-aic.blue { background: #e7f6ff; color: var(--blue); } .pp-aic.orange { background: #fff3e0; color: var(--orange); } .pp-aic.purple { background: #f1ecfe; color: var(--purple); }
.pp-aic svg { width: 22px; height: 22px; }
.pp-at { flex: 1; }
.pp-at b { display: block; font-size: 14.5px; font-weight: 800; }
.pp-at span { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.pp-chev { width: 16px; height: 16px; color: var(--line-dark); flex: none; }
.pp-uselim { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); }
.pp-ul-lbl { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.pp-unl { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px 5px 9px; border-radius: 999px; background: #e9fbdd; color: var(--green-dark); font-size: 13px; font-weight: 900; }
.pp-unl svg { width: 18px; height: 18px; }

.pp-chart { display: flex; align-items: flex-end; gap: 10px; height: 132px; padding: 14px 4px 12px; }
.pp-chart i { flex: 1; background: #cfe9d2; border-radius: 7px 7px 4px 4px; min-height: 8px; }
.pp-chart i.hi { background: var(--green); box-shadow: 0 3px 0 var(--green-dark); }
.pp-statrow { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 16px; overflow: hidden; }
.pp-stat { padding: 12px 6px; text-align: center; border-left: 2px solid var(--line); }
.pp-stat:first-child { border-left: none; }
.pp-stat b { display: block; font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
.pp-stat b small { font-size: 11px; font-weight: 800; color: var(--ink-soft); }
.pp-stat span { display: block; margin-top: 4px; font-size: 10px; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }

/* free vs premium comparison */
.pp-compare { max-width: 760px; margin: 40px auto 0; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 20px; overflow: hidden; }
.pp-crow { display: grid; grid-template-columns: 1fr 110px 132px; align-items: center; border-top: 2px solid var(--line); }
.pp-crow:first-child { border-top: none; }
.pp-cfeat { padding: 15px 18px; font-weight: 700; font-size: 15.5px; }
.pp-ccol { padding: 15px 8px; text-align: center; }
.pp-cpro { background: var(--bg-blue); }
.pp-chead { background: var(--bg-soft); }
.pp-chead .pp-ccol { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.pp-chead .pp-cpro { background: var(--blue); color: #fff; }
.pp-ctxt { font-weight: 800; font-size: 14px; color: var(--ink-soft); }
.pp-strong { color: var(--blue-dark); }
.pp-compare .mk { width: 24px; height: 24px; border-radius: 8px; display: inline-grid; place-items: center; }
.pp-compare .mk svg { width: 14px; height: 14px; }
.pp-compare .mk.yes { background: var(--green); color: #fff; box-shadow: 0 2px 0 var(--green-dark); }
.pp-compare .mk.no { background: #fff; color: var(--line-dark); border: 2px solid var(--line); }
.prem-note { text-align: center; max-width: 600px; margin: 40px auto 0; font-size: 15.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.6; }

/* ---------------- Final CTA ---------------- */
.cta-band { background: var(--blue); color: #fff; border-radius: 36px; padding: 56px; position: relative; overflow: hidden; min-height: 250px; }
.cta-band > h2, .cta-band > p, .cta-band > .stores { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: 42px; font-weight: 900; max-width: 18ch; }
.cta-band p { margin-top: 16px; font-size: 19px; font-weight: 600; opacity: .95; max-width: 42ch; }
.cta-band .stores { margin-top: 30px; max-width: 62%; }
.cta-band .tomo { position: absolute; right: 92px; bottom: -98px; width: 310px; pointer-events: none; z-index: 1; }
.cta-band .store { box-shadow: 0 4px 0 #0a6aa0; }

.faq-more { margin: 26px auto 0; width: fit-content; }

/* ---------------- Footer ---------------- */
.footer { padding: 60px 0 40px; border-top: 2px solid var(--line); }
.footer .top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand { font-size: 22px; }
.footer .fcol h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 14px; font-weight: 900; }
.footer .fcol a { display: block; font-weight: 700; color: var(--ink); padding: 5px 0; }
.footer .fcol a:hover { color: var(--blue); }
.footer .cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer .bottom { margin-top: 44px; padding-top: 24px; border-top: 2px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); font-weight: 700; font-size: 14.5px; }

/* ---------------- Legal pages ---------------- */
.legal { padding: 60px 0 90px; max-width: 820px; }
.legal h1 { font-size: 40px; font-weight: 900; margin-bottom: 8px; }
.legal .upd { color: var(--ink-soft); font-weight: 700; margin-bottom: 30px; }
.legal h2 { font-size: 22px; font-weight: 900; margin: 34px 0 10px; }
.legal p { margin: 12px 0; color: #555; font-weight: 500; font-size: 17px; line-height: 1.7; }
.legal li { margin: 7px 0 7px 4px; padding-left: 18px; position: relative; color: #555; font-weight: 500; }
.legal li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--blue); margin-bottom: 24px; }

/* ---------------- Press kit ---------------- */
.press { max-width: 860px; }
.press-h { font-size: 26px; font-weight: 900; margin: 46px 0 16px; }
.press-lead { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.55; }
.press-body { margin-top: 14px; font-size: 17px; font-weight: 500; color: #555; line-height: 1.75; }
.press-note { margin-top: 42px; font-size: 15.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.6; }
.press a { color: var(--blue); font-weight: 800; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.facts > div { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-top: 2px solid var(--line); }
.facts dt { width: 116px; flex: none; font-weight: 900; font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; font-weight: 700; font-size: 16px; }

.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.asset { border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; }
.asset .prev { border-radius: 12px; height: 150px; display: grid; place-items: center; overflow: hidden; background: var(--bg-soft); }
.asset .prev img { max-height: 116px; width: auto; }
.asset .prev.ico { background: var(--bg-blue); }
.asset .prev.wide img, .asset .prev.shot img { max-height: none; width: 100%; height: 100%; object-fit: cover; }
.asset .prev.shot { background: #fff; }
.asset .meta { margin: 12px 2px 0; }
.asset .meta b { display: block; font-size: 15px; font-weight: 900; }
.asset .meta span { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.asset .dl { margin-top: 12px; text-align: center; font-weight: 800; font-size: 14px; color: var(--blue); background: #fff; border-radius: 11px; padding: 9px; box-shadow: inset 0 0 0 2px var(--line), 0 2px 0 var(--line-dark); transition: transform .06s ease; }
.asset .dl:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--line), 0 0 0 var(--line-dark); }

.swatches { display: flex; gap: 16px; flex-wrap: wrap; }
.swatch { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 14px; color: var(--ink); }
.swatch .chip { width: 30px; height: 30px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* ---------------- Responsive ---------------- */
@media (max-width: 920px) {
  body { font-size: 17px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 44px; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero .stores, .hero .cta { justify-content: center; }
  .hero-art { order: -1; margin-bottom: 10px; }
  .feature { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .feature.flip .f-text { order: 0; }
  .feature .f-visual { order: -1; }
  .feature .points { max-width: 460px; margin-left: auto; margin-right: auto; }
  .edge { grid-template-columns: 1fr; gap: 26px; }
  .edge-head { position: static; }
  .edge-head h2 { font-size: 30px; }
  .faq-layout { grid-template-columns: 1fr; }
  .cta-band .stores { max-width: none; }
  .faq-aside img { width: 160px; }
  .nav-links { display: none; }
  .asset-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .prem-deco, .cta-deco { display: none; } /* decoration is desktop polish; stacked layout has no spare room */
  .pp-h1 { font-size: 38px; }
  .section-head h2 { font-size: 32px; }
  .cta-band { padding: 40px 28px; text-align: center; }
  .cta-band h2 { margin: 0 auto; }
  .cta-band p { margin-left: auto; margin-right: auto; }
  .cta-band .stores { justify-content: center; }
  .cta-band .tomo { display: none; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 36px; }
  .section { padding: 54px 0; }
  .store { min-width: 0; flex: 1; }
  .asset-grid { grid-template-columns: 1fr; }
  .pp-h1 { font-size: 32px; }
  .pp-crow { grid-template-columns: 1fr 60px 74px; }
  .pp-cfeat { padding: 13px 12px; font-size: 13.5px; }
  .pp-ccol { padding: 13px 4px; }
  .pp-ctxt { font-size: 12px; }
  .footer .top { flex-direction: column; }
  /* keep bursting tiles inside the viewport on narrow phones */
  .prem-stage { max-width: 340px; height: 410px; }
  .prem-device { transform: translate(-50%, -50%) scale(.52); }
  .ptile { width: 74px; }
  .ptile .tic { width: 53px; height: 53px; }
  .ptile .tic svg { width: 25px; height: 25px; }
  .t3 { left: -2%; }
  .t4 { right: -2%; }
}

/* ============================================================
   FREE TOOLS — YKS sıralama + GPA calculators
   Standalone tool pages (yks-siralama-hesaplama, gpa-hesaplama).
   Same tokens / juicy 3D language as the rest of the site.
   ============================================================ */

/* ---- tool hero (compact, centered) ---- */
.tool-hero { padding: 56px 0 8px; }
.tool-hero .wrap { max-width: 880px; text-align: center; }
.tool-hero .eyebrow { margin-bottom: 16px; }
.tool-hero h1 { font-size: 46px; font-weight: 900; }
.tool-hero h1 .hl { color: var(--blue); }
.tool-hero p { margin: 18px auto 0; max-width: 56ch; font-size: 19px; color: var(--ink-soft); font-weight: 600; }

/* ---- forward / reverse tabs ---- */
.calc-tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--bg-soft); border-radius: 16px; margin: 0 auto 26px; }
.calc-tabs button {
  font-family: var(--font); font-weight: 800; font-size: 15px; color: var(--ink-soft);
  background: transparent; border: none; border-radius: 12px; padding: 10px 20px; cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .12s ease;
}
.calc-tabs button.on { color: var(--blue); background: #fff; box-shadow: 0 2px 0 var(--line-dark); }

/* ---- two-column calc layout: inputs + sticky result ---- */
.calc { display: grid; grid-template-columns: 1.25fr .9fr; gap: 28px; align-items: start; }
.calc-aside { position: sticky; top: calc(var(--nav-h) + 18px); display: grid; gap: 18px; }

.calc-panel {
  background: var(--card); border-radius: var(--radius-lg); padding: 24px 26px;
  box-shadow: var(--shadow-card); border: 1px solid var(--line);
}
.calc-panel + .calc-panel { margin-top: 22px; }
.calc-panel h2, .calc-panel h3 { font-size: 19px; font-weight: 900; }
.calc-panel .panel-sub { margin: 6px 0 18px; font-size: 14.5px; color: var(--ink-soft); font-weight: 600; }

/* ---- segmented control (YKS track: SAY / EA / SÖZ / DİL) ---- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-bottom: 22px; }
.seg button {
  font-family: var(--font); font-weight: 800; font-size: 15px; color: var(--ink-soft);
  background: var(--bg-soft); border: 2px solid transparent; border-radius: 13px; padding: 12px 6px; cursor: pointer;
  transition: all .14s ease;
}
.seg button.on { color: #fff; background: var(--blue); border-color: var(--blue-dark); box-shadow: 0 3px 0 var(--blue-dark); }
.seg button:not(.on):hover { background: var(--bg-blue); color: var(--blue); }

/* ---- inputs ---- */
.calc-input, .calc-select {
  width: 100%; font-family: var(--font); font-weight: 800; font-size: 16px; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 11px 13px;
  transition: border-color .12s ease, box-shadow .12s ease; -moz-appearance: textfield;
}
.calc-input { text-align: center; }
.calc-input:focus, .calc-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--bg-blue); }
.calc-input::-webkit-outer-spin-button, .calc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input.warn { border-color: var(--orange); box-shadow: 0 0 0 4px #fff3e0; }
.calc-select {
  cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 15px;
}

/* group heading inside a panel */
.calc-group { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 22px 0 10px; }
.calc-group:first-of-type { margin-top: 4px; }

/* ---- YKS subject row: name (+max) | net input | live net out of total ---- */
.srow { display: grid; grid-template-columns: 1fr 96px; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.srow:first-child { border-top: none; }
.srow .snm { font-weight: 800; font-size: 15.5px; }
.srow .snm small { display: block; font-weight: 700; font-size: 12px; color: var(--ink-soft); }

/* ---- result card (the headline number) ---- */
.rc { background: var(--blue); color: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: 0 6px 0 var(--blue-dark); text-align: center; }
.rc.green { background: var(--green); box-shadow: 0 6px 0 var(--green-dark); }
.rc .rc-lbl { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.rc .rc-big { font-size: 52px; font-weight: 900; line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.rc .rc-sub { margin-top: 6px; font-size: 15px; font-weight: 700; opacity: .92; }
.rc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.rc-split .rcs { background: rgba(255,255,255,.16); border-radius: 16px; padding: 14px 10px; }
.rc-split .rcs b { display: block; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rc-split .rcs span { font-size: 12px; font-weight: 700; opacity: .9; }

/* percentile / context bar */
.barline { height: 12px; border-radius: 999px; background: rgba(255,255,255,.22); overflow: hidden; margin-top: 18px; }
.barline i { display: block; height: 100%; background: #fff; border-radius: 999px; transition: width .3s ease; }

/* small stat list under the result (e.g. toplam net) */
.rc-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 13px; font-weight: 700; opacity: .9; }

/* ---- GPA rows ---- */
.gpa-head, .gpa-row { display: grid; grid-template-columns: 1fr 92px 116px 38px; gap: 10px; align-items: center; }
.gpa-head { font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); padding: 0 2px 8px; }
.gpa-row { padding: 6px 0; }
.gpa-row .x {
  display: grid; place-items: center; width: 34px; height: 34px; border: none; cursor: pointer;
  background: var(--bg-soft); color: var(--ink-soft); border-radius: 10px; transition: all .12s ease;
}
.gpa-row .x:hover { background: #ffe9e9; color: var(--red); }
.gpa-row .x svg { width: 16px; height: 16px; }
.gpa-add {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: var(--font); font-weight: 800; font-size: 15px; color: var(--blue);
  background: var(--bg-blue); border: none; border-radius: 12px; padding: 11px 18px; cursor: pointer;
  transition: filter .12s ease;
}
.gpa-add:hover { filter: brightness(.97); }
.gpa-add svg { width: 17px; height: 17px; }

/* ---- disclaimer note ---- */
.calc-note {
  display: flex; gap: 11px; align-items: flex-start; margin-top: 22px; padding: 14px 16px;
  background: var(--bg-soft); border-radius: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.5;
}
.calc-note svg { width: 19px; height: 19px; flex: none; margin-top: 1px; color: var(--orange); }

/* ---- app CTA band under each tool ---- */
.tool-cta {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: space-between;
  background: var(--bg-blue); border-radius: var(--radius-lg); padding: 26px 30px; margin-top: 30px;
}
.tool-cta .tc-txt { max-width: 60ch; }
.tool-cta h3 { font-size: 22px; font-weight: 900; }
.tool-cta p { margin-top: 8px; font-size: 15.5px; color: var(--ink-soft); font-weight: 600; }
.tool-cta img { width: 84px; flex: none; }

/* ---- ad slot: reserved, network-agnostic, DORMANT until ADS_ENABLED ----
   Renders nothing while empty (no "advertisement" placeholder box), so the
   page stays clean for AdSense review. Drop the <ins> snippet inside and flip
   ADS_ENABLED in tools.js to go live — zero layout rework. */
.ad-slot { margin: 30px auto; max-width: 880px; min-height: 0; }
.ad-slot:empty { display: none; }
.ad-slot.live { min-height: 90px; }
.ad-slot .ad-tag { display: block; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--line-dark); margin-bottom: 6px; }

/* ---- programs you can get into (YKS) ---- */
.prog-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.prog-search { text-align: left; margin: 2px 0 10px; padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 13px center; background-size: 16px; }
#prog-list { max-height: 540px; overflow-y: auto; margin-top: 6px; }
.prog-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 2px; border-top: 1px solid var(--line); }
.prog-row:first-child { border-top: none; }
.prog-main { min-width: 0; }
.prog-uni { font-weight: 800; font-size: 14.5px; color: var(--ink); }
.prog-city { font-weight: 700; font-size: 11.5px; color: var(--ink-soft); text-transform: capitalize; }
.prog-name { font-size: 13px; color: var(--ink-soft); font-weight: 600; margin-top: 2px; }
.prog-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.prog-taban { font-size: 12px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prog-sira { font-size: 12px; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prog-chip { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.prog-chip.pc-ok { background: #e7f8e3; color: var(--green-dark); }
.prog-chip.pc-edge { background: #fff3e0; color: var(--orange-dark); }
.prog-chip.pc-hard { background: #ffe9e9; color: var(--red-dark); }
.prog-more { text-align: center; padding: 14px; color: var(--ink-soft); font-weight: 700; font-size: 13px; }

/* ---- university mode mockup (homepage #university) ---- */
.cls { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.cls:first-of-type { border-top: none; }
.cls .time { font-weight: 900; font-size: 13px; color: var(--blue); background: var(--bg-blue); border-radius: 9px; padding: 6px 10px; min-width: 58px; text-align: center; flex: none; }
.cls .ci { min-width: 0; }
.cls .ci b { display: block; font-size: 15px; font-weight: 800; }
.cls .ci span { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.uni-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.uni-stats .us { background: var(--bg-soft); border-radius: 14px; padding: 13px 15px; }
.uni-stats .us b { display: block; font-size: 24px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.uni-stats .us span { font-size: 12px; color: var(--ink-soft); font-weight: 700; }

/* tools index links (footer + hub) */
.tool-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.tool-link {
  display: flex; gap: 16px; align-items: center; padding: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card);
  transition: transform .08s ease, box-shadow .08s ease;
}
.tool-link:active { transform: translateY(2px); box-shadow: 0 0 0 var(--line-dark); }
.tool-link .tl-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none; color: #fff; }
.tool-link .tl-ic svg { width: 26px; height: 26px; }
.tool-link .tl-ic.b { background: var(--blue); }
.tool-link .tl-ic.g { background: var(--green); }
.tool-link h4 { font-size: 17px; font-weight: 900; }
.tool-link p { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; margin-top: 3px; }

@media (max-width: 920px) {
  .tool-hero h1 { font-size: 36px; }
  .tool-hero p { font-size: 17px; }
  .calc { grid-template-columns: 1fr; }
  .calc-aside { position: static; }
  .tool-links { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tool-hero h1 { font-size: 30px; }
  .calc-panel { padding: 20px 18px; }
  .gpa-head, .gpa-row { grid-template-columns: 1fr 64px 92px 34px; gap: 7px; }
  .seg { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; }
  .tool-cta { flex-direction: column; text-align: center; }
  .tool-cta img { display: none; }
}

/* ── Premium marketing gate (consent.js sets tt-no-premium when PREMIUM_ENABLED
   is false). Flash-free because the class is applied in <head> before paint. ── */
html.tt-no-premium [data-premium] { display: none !important; }

/* ── "Tomo teaches" gate (consent.js sets tt-no-study when STUDY_ENABLED is false):
   hide the nav entry; /study itself is redirected to home in firebase.json. ── */
html.tt-no-study .nav-study { display: none !important; }

/* ── Cookie-consent banner (consent.js, shown only when ADS_ENABLED) ── */
.cc-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9999;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 18px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.14);
  font-family: var(--font);
  transform: translateY(160%);
  transition: transform 0.3s ease;
}
.cc-bar.cc-in { transform: translateY(0); }
.cc-text { margin: 0; flex: 1 1 260px; font-size: 14px; line-height: 1.5; }
.cc-link { color: var(--blue); font-weight: 700; text-decoration: none; }
.cc-link:hover { text-decoration: underline; }
.cc-actions { display: flex; gap: 10px; margin-left: auto; }
.cc-btn {
  font-family: var(--font);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.cc-accept { background: var(--blue); border-color: var(--blue-dark); color: #fff; }
@media (max-width: 520px) {
  .cc-actions { width: 100%; }
  .cc-btn { flex: 1; }
}

/* ── Support hub ──────────────────────────────────────────────────────────── */
.support-contact {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--bg-blue);
  border: 2px solid #bfe6ff;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 12px;
}
.support-contact-icon {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid #bfe6ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}
.support-contact-icon svg { width: 28px; height: 28px; }
.support-contact-body { min-width: 0; }
.support-contact-body h2 { font-size: 24px; font-weight: 900; margin: 0 0 6px; }
.support-contact-body p { color: var(--ink-soft); font-weight: 600; font-size: 16px; margin: 0 0 16px; }
.support-contact-body p strong { color: var(--ink); }
.support-contact-body .btn { text-decoration: none; }

.support-sec-title { font-size: 26px; font-weight: 900; margin: 46px 0 18px; scroll-margin-top: calc(var(--nav-h) + 20px); }

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.support-legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.support-card {
  display: flex;
  gap: 15px;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.support-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-dark);
  box-shadow: 0 5px 0 var(--line-dark);
}
.support-card .badge { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.support-card .badge svg { width: 24px; height: 24px; }
.support-card h3 { font-size: 17.5px; font-weight: 900; margin: 0 0 3px; color: var(--ink); }
.support-card p { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); margin: 0; line-height: 1.45; }

.support-legal-note { color: var(--ink-soft); font-weight: 600; font-size: 16px; margin: 0 0 18px; max-width: 62ch; }
.support-faq-more { margin-top: 18px; text-decoration: none; }

@media (max-width: 920px) {
  .support-legal { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .support-contact { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
  .support-sec-title { font-size: 23px; }
}
