/* MitFit landing site — shared styles. Plain CSS, no build step.
   Brand: charcoal #0F172A, coral #E0533C, canvas #F4F6F9, Plus Jakarta Sans.
   Contrast (WCAG 2.x):
     --ink on --surface 17.9:1, on --canvas 16.5:1
     --ink-2 on --canvas 9.6:1 · --muted on --canvas 7.0:1
     --coral-ink on --surface 6.0:1, on --canvas 5.5:1, on --coral-tint 5.2:1
     --coral on --ink 4.7:1 (decorative / large text only on light backgrounds)
     white on --ink 17.9:1 */

:root {
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #475569;
  --coral: #E0533C;
  --coral-ink: #B4381F;
  --coral-tint: #FDEDEA;
  --canvas: #F4F6F9;
  --surface: #FFFFFF;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1080px;
  --measure: 720px;
  --gutter: 16px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--coral-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

/* ---------- Header ---------- */
.site-header { padding: 20px 0; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 30px; width: auto; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}
.lang-switch:hover { border-color: var(--ink); }
button.lang-switch { font-family: inherit; cursor: pointer; }

main { flex: 1 0 auto; }

/* ---------- Home ---------- */
.hero {
  position: relative;
  padding: 48px 0 56px;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.25fr 0.75fr; padding: 72px 0 88px; }
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--coral-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--coral-ink); }
.hero .lede {
  margin: 20px 0 0;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9375rem;
}
.soon .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-tint);
  flex: none;
}
.hero-mark {
  display: none;
  justify-self: center;
  width: min(100%, 240px);
}
@media (min-width: 880px) { .hero-mark { display: block; } }
.hero-mark img { width: 100%; }

.pillars {
  display: grid;
  gap: 16px;
  padding: 0 0 72px;
  margin: 0;
  list-style: none;
}
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.pillar h2 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pillar p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.pillar .num {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

/* ---------- Documents (legal pages) ---------- */
.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 32px 0 72px;
}
@media (min-width: 640px) { .doc { padding-top: 48px; } }
.doc h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.doc .meta { margin: 12px 0 0; color: var(--muted); font-size: 0.9375rem; }
.doc .intro { font-size: 1.125rem; color: var(--ink-2); margin: 20px 0 0; }

.doc h2 {
  margin: 48px 0 12px;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.doc h3 {
  margin: 28px 0 8px;
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 700;
}
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 1.35em; }
.doc li { margin: 0 0 8px; }
.doc li::marker { color: var(--muted); }
.doc strong { color: var(--ink); font-weight: 700; }
.doc .eyebrow { color: var(--coral-ink); }
.doc .fine { color: var(--muted); }
.doc section { scroll-margin-top: 16px; }

.notice {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--coral-tint);
  border-left: 4px solid var(--coral);
  color: var(--ink);
  font-size: 0.9375rem;
}
.notice p { margin: 0; color: var(--ink); }

.callout {
  margin: 20px 0;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.callout > :last-child { margin-bottom: 0; }
.callout h2, .callout h3 { margin-top: 0; }

.toc {
  margin: 32px 0 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc h2 {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol { margin: 0; padding-left: 1.4em; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin: 0 0 6px; break-inside: avoid; font-size: 0.9375rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--coral-ink); text-decoration: underline; }

/* Key facts list (summary at the top of the privacy policy) */
.facts { list-style: none; padding: 0 !important; margin: 20px 0 0 !important; display: grid; gap: 10px; }
.facts li {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.facts li::before {
  content: "";
  position: absolute;
  left: 16px; top: 21px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--coral);
}

/* Tables that stack on small screens */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 12px 0 20px;
  font-size: 0.9375rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.table caption {
  text-align: left;
  font-weight: 700;
  padding: 0 0 8px;
  color: var(--ink);
}
.table th, .table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.table thead th {
  background: var(--canvas);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.table tbody th { color: var(--ink); font-weight: 700; }
.table tr:last-child > * { border-bottom: 0; }

@media (max-width: 639px) {
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table caption { display: block; width: 100%; padding: 14px 14px 4px; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .table tr:last-child { border-bottom: 0; }
  .table th, .table td { border: 0; padding: 6px 14px; }
  .table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: 700 1rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #1E293B; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--surface); border-color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.btn-row .btn { flex: 1 1 200px; }

/* ---------- Invite / referral pages ---------- */
.invite {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 0 72px;
  text-align: center;
}
.invite h1 {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.invite .lede { margin: 14px auto 0; color: var(--ink-2); font-size: 1.0625rem; max-width: 30rem; }
.code-card {
  margin: 28px 0 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.code-label { margin: 0; color: var(--muted); font-weight: 600; font-size: 0.875rem; }
.code {
  margin: 8px 0 18px;
  font-size: clamp(2.5rem, 12vw, 3.75rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  text-indent: 0.12em; /* balances trailing letter-spacing */
}
.code.small { font-size: clamp(1.75rem, 8vw, 2.5rem); letter-spacing: 0.04em; text-indent: 0.04em; }
.copy-status { min-height: 1.5em; margin: 10px 0 0; color: var(--muted); font-size: 0.9375rem; }
.steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  display: grid;
  gap: 10px;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 14px 16px 14px 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 14px; top: 12px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--coral-tint);
  color: var(--coral-ink);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
}
.fine { color: var(--muted); font-size: 0.875rem; }
.invite .fine { margin-top: 20px; }

[hidden] { display: none !important; }
/* Bilingual pages: show only the active language block */
html[data-lang="en"] [data-l="tr"],
html[data-lang="tr"] [data-l="en"] { display: none !important; }

/* ---------- 404 ---------- */
.notfound { max-width: 560px; margin: 0 auto; padding: 56px 0 88px; }
.notfound .big {
  margin: 0;
  font-size: clamp(4rem, 18vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--coral-ink);
}
.notfound h1, .notfound .h1-like { margin: 16px 0 8px; font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1.2; }
.notfound p { color: var(--ink-2); margin: 0 0 8px; }
.notfound hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 32px 0 40px;
  font-size: 0.9375rem;
}
.site-footer .wrap { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-footer li a:hover { color: var(--coral-ink); text-decoration: underline; }
.site-footer p { margin: 0; color: var(--muted); }
.site-footer .contact { text-align: left; }
@media (min-width: 760px) { .site-footer .contact { text-align: right; } }
.site-footer .contact a { font-weight: 600; }

@media print {
  .site-header, .site-footer, .toc, .skip { display: none; }
  body { background: #fff; }
  .doc { padding: 0; max-width: none; }
  a { color: inherit; }
}
