/* HasmelQuiz site. Colors follow the app's design tokens (core/designsystem HqPalette). */
:root {
  --bg: #F7F8FC; --surface: #FFFFFF; --surface-muted: #EEF0F6; --text: #151826; --muted: #4A5068; --border: #E3E5EF;
  --brand: #5B4BDB; --brand-strong: #4A3AC4; --brand-subtle: #F2F0FE; --on-brand: #FFFFFF;
  --accent: #F59E0B; --accent-soft: #FEF3C7; --success: #047857; --success-soft: #ECFDF5; --danger: #B42318; --danger-soft: #FEF3F2;
  --mark: #FFF1B8; --mark-text: #5C4400;
  --radius: 18px; --shadow: 0 10px 30px rgba(31, 25, 83, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0D14; --surface: #151722; --surface-muted: #1D2030; --text: #ECEDF5; --muted: #A5A9BE; --border: #2A2D3D;
    --brand: #9D93FF; --brand-strong: #B7AFFF; --brand-subtle: #211E45; --on-brand: #0C0D14;
    --accent: #FCD34D; --accent-soft: #3A2F0A; --success: #34D399; --success-soft: #0E2A21; --danger: #F97066; --danger-soft: #3A1512;
    --mark: #4A3B00; --mark-text: #FFE8A3;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 14px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 720px) { .nav { display: none; } .site-header .btn-small { margin-left: auto; } }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand); background: var(--brand-subtle); padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin: 18px 0 18px; }
h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta-note { color: var(--muted); font-size: 14px; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* Phone mock (same look as the store graphic) */
.phone-stage { position: relative; display: flex; justify-content: center; padding: 10px 0 30px; }
.phone {
  width: 280px; border-radius: 40px; background: #F7F8FC; border: 10px solid #1A1640; box-shadow: 0 30px 60px rgba(15, 8, 60, .25);
  padding: 64px 18px 84px; color: #151826; font-size: 15px;
}
.phone .bar { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.phone .pill { font-size: 12px; font-weight: 600; color: #5B4BDB; background: #F2F0FE; padding: 4px 10px; border-radius: 999px; }
.phone .timer { height: 6px; border-radius: 3px; background: #E7E8F0; margin: 16px 0 18px; overflow: hidden; }
.phone .timer i { display: block; width: 62%; height: 100%; background: #5B4BDB; }
.phone .q { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 14px; }
.phone .opt { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid #E3E5EF; border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; font-weight: 500; }
.phone .opt b { width: 26px; height: 26px; border-radius: 50%; background: #EEF0F6; display: grid; place-items: center; font-size: 12px; color: #4A5068; flex: none; }
.phone .opt.ok { border-color: #047857; background: #ECFDF5; }
.phone .opt.ok b { background: #047857; color: #fff; }
.phone .explain { font-size: 13px; color: #4A5068; background: #F2F0FE; border-radius: 12px; padding: 10px 12px; margin-top: 6px; }
.float { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--text); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-weight: 700; font-size: 15px; white-space: nowrap; border: 1px solid var(--border); }
.float small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.float .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-rank { right: 0; top: 0; }
.float-ok { left: 0; bottom: 8px; }
@media (max-width: 420px) { .float-rank { right: -6px; } .float-ok { left: -6px; } .phone { width: 250px; } }

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 18px; margin: 14px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-subtle); color: var(--brand); }
.icon svg { width: 24px; height: 24px; }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; margin-bottom: 12px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding-left: 32px; margin: 10px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.board { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.board-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; }
.board-row + .board-row { border-top: 1px solid var(--border); }
.board-row.me { background: var(--brand-subtle); border-top-color: transparent; }
.board-row b { width: 28px; text-align: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-muted); color: var(--muted); flex: none; }
.board-row span:not(.avatar) { flex: 1; font-weight: 600; }
.board-row em { font-style: normal; color: var(--muted); font-size: 15px; }
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.plan.featured { border: 2px solid var(--brand); }
.plan h3 { margin: 0 0 6px; }
.plan .tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-subtle); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.plan p { color: var(--muted); margin: 0; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }
.final { text-align: center; }
.final .card { padding: 44px 22px; background: linear-gradient(135deg, #6A5AE4, #3B2EA0); color: #fff; border: 0; }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, .85); max-width: 560px; margin: 0 auto 26px; }
.final .btn-primary { background: #fff; color: #3B2EA0; }
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Document pages (privacy, account deletion) */
.doc-head { padding: 40px 0 8px; }
.doc-head h1 { font-size: clamp(28px, 4.4vw, 40px); margin: 10px 0 12px; }
.lang-switch { display: flex; gap: 8px; }
.lang-switch a { padding: 6px 14px; border-radius: 999px; background: var(--brand-subtle); color: var(--brand); text-decoration: none; font-weight: 700; font-size: 14px; }
.lang-switch a[aria-current="true"] { background: var(--brand); color: var(--on-brand); }
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 22px 26px; margin: 20px 0 56px; }
.doc h2 { font-size: 22px; margin: 30px 0 10px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc li { margin: 4px 0; }
.date { color: var(--muted); margin: 6px 0 0; }
.table { overflow-x: auto; margin: 12px 0; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--brand-subtle); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
html[data-lang="tr"] [data-lang="en"], html[data-lang="en"] [data-lang="tr"] { display: none !important; }
@media (max-width: 480px) { .doc { padding: 4px 14px 18px; } th, td { padding: 8px; } }

/* Forms */
.form { display: grid; gap: 16px; max-width: 480px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input[type="email"], .field input[type="password"] {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font: inherit;
}
.confirm { display: flex; gap: 10px; align-items: flex-start; }
.confirm input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--danger); flex: none; }
.notice { border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.notice.error { background: var(--danger-soft); color: var(--danger); }
.notice.success { background: var(--success-soft); color: var(--success); }
.notice.warn { background: var(--accent-soft); color: var(--text); font-weight: 500; }
.hidden { display: none !important; }
