/* Ink · apply.inkstudents.xyz
   In the same look as get.inkstudents.xyz: Inter, near-white paper (or
   black, with the switch in the bar), the tagada-style dot wave rolling
   behind everything (js/bg.js), a full-width bar with a sliding hover
   highlight, pill buttons, and cards that hold still.
   Every class and id the scripts use (main.js, apply.js, admin.js) is
   unchanged; only the look is new. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/Inter-var-latin.woff2") format("woff2");
}

:root {
  --bg: #fbfbfc;
  --surface: rgba(255,255,255,.94);
  --solid: #ffffff;
  --bg-2: var(--solid);   /* admin.html's drawer */
  --sunk: #f1f3f7;
  --edge: #e8eaf0;
  --edge-2: #d9dce5;
  --text: #0f1222;
  --text-rgb: 15,18,34;
  --text-2: #3c4257;
  --text-3: #6b7285;
  --text-4: #a3a9b8;
  --blue: #3d5afe;
  --blue-hi: #2c46d9;
  --blue-rgb: 61, 90, 254;
  --ok: #0e9f5a;
  --bad: #d4335c;
  --warn: #b25e09;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15,18,34,.05), 0 1px 1px rgba(15,18,34,.03);
  --shadow-lg: 0 10px 30px rgba(15,18,34,.10), 0 2px 6px rgba(15,18,34,.05);
  --ease: cubic-bezier(.4,0,.2,1);
  --out: cubic-bezier(.2,.8,.2,1);
  --ff: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wave-alpha: 1; --wave-clear: 1;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07080d; --surface: rgba(16,18,27,.93); --solid: #10121b; --sunk: #171a26;
    --edge: #1f2331; --edge-2: #2c3142; --text: #f2f3f8; --text-rgb: 242,243,248;
    --text-2: #c9cdd9; --text-3: #8b91a3; --text-4: #5a6072;
    --blue: #5b74ff; --blue-hi: #7389ff; --blue-rgb: 91,116,255; --ok: #34d399; --bad: #ff8aa8; --warn: #ffc94a;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 12px 32px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07080d; --surface: rgba(16,18,27,.93); --solid: #10121b; --sunk: #171a26;
  --edge: #1f2331; --edge-2: #2c3142; --text: #f2f3f8; --text-rgb: 242,243,248;
  --text-2: #c9cdd9; --text-3: #8b91a3; --text-4: #5a6072;
  --blue: #5b74ff; --blue-hi: #7389ff; --blue-rgb: 91,116,255; --ok: #34d399; --bad: #ff8aa8; --warn: #ffc94a;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 12px 32px rgba(0,0,0,.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--ff);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dot { color: var(--blue); }

/* the dot wave sits under everything */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg canvas { width: 100%; height: 100%; display: block; }
.nav, main, .foot, .legal { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }
.wrap.narrow { max-width: 760px; }

/* ── The arrow that draws itself in (backtrader-style) ───────── */
.arrow { width: 16px; height: 16px; flex: 0 0 auto; margin-right: -4px; overflow: visible; }
.arrow path { fill: none; stroke: currentColor; stroke-width: 1.6; }
.arrow .chev { stroke-linecap: square; stroke-linejoin: round; transform: translateX(-3px); transition: transform .15s var(--ease); }
.arrow .stem { stroke-dasharray: 10; stroke-dashoffset: 10; transform: translateX(-3px); transition: stroke-dashoffset .15s var(--ease), transform .15s var(--ease); }
.btn:hover .arrow .chev, .btn:hover .arrow .stem { transform: translateX(0); }
.btn:hover .arrow .stem { stroke-dashoffset: 0; }
.btn:active .arrow .chev, .btn:active .arrow .stem { transform: translateX(2px); }

/* ── Buttons: pills, quick tints, a small press ───────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .1s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(15,18,34,.14);
}
.btn-primary:hover { background: var(--blue-hi); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 6px 18px rgba(var(--blue-rgb), .3); }
.btn-ghost { background: var(--surface); border-color: var(--edge-2); color: var(--text); box-shadow: var(--shadow); }
.btn-ghost:hover { background: var(--solid); border-color: var(--text-4); }
.btn-sm { height: 36px; padding: 0 15px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ── The bar: full width, logo left, links centred, actions right ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .2s ease-out;
}
.nav.scrolled { border-bottom-color: var(--edge); }
.nav-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: 68px; padding: 0 clamp(16px, 2.4vw, 32px); }
.logo { justify-self: start; display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: none; position: relative; gap: 4px; }
.nav-links a {
  position: relative; z-index: 1; color: var(--text-3); text-decoration: none; font-size: 14px; font-weight: 500;
  height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 7px;
  transition: color .1s cubic-bezier(0,0,.2,1);
}
.nav-links a:hover { color: var(--text); }
/* the one highlight that slides to whichever link the pointer is on (js/theme.js) */
.nav-knob {
  position: absolute; z-index: 0; top: 50%; left: 0; width: 0; height: 32px; border-radius: 7px;
  background: rgba(var(--text-rgb), .07); transform: translateY(-50%); opacity: 0; pointer-events: none;
  transition: left .2s ease-out, width .2s ease-out, opacity .2s ease-out;
}
.nav-knob.show { opacity: 1; }
.nav-act { justify-self: end; display: flex; align-items: center; gap: 8px; }
.mode {
  width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid var(--edge-2); color: var(--text-2);
  transition: color .1s cubic-bezier(0,0,.2,1), background-color .15s ease-out;
}
.mode:hover { color: var(--text); background: rgba(var(--text-rgb), .06); }
.mode svg { grid-area: 1 / 1; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
            transition: opacity .2s ease-out, transform .3s var(--out); }
.mode .i-sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
:root.is-dark .mode .i-moon { opacity: 0; transform: rotate(60deg) scale(.6); }
:root.is-dark .mode .i-sun { opacity: 1; transform: none; }
.nav-burger { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--edge-2); background: transparent; display: grid; place-items: center; cursor: pointer; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 16px; height: 1.5px; background: var(--text); position: relative; transition: transform .2s var(--out), top .2s var(--out); }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
.nav-burger span::before { top: -5px; }
.nav-burger span::after { top: 5px; }
.nav.open .nav-burger span { background: transparent; }
.nav.open .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav.open .nav-burger span::after { top: 0; transform: rotate(-45deg); }
.nav-sheet { display: none; border-top: 1px solid var(--edge); padding: 6px 20px 14px; background: var(--solid); }
.nav.open .nav-sheet { display: grid; }
.nav-sheet a { padding: 13px 0; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--edge); font-weight: 550; }
.nav-sheet a:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-burger, .nav-sheet, .nav.open .nav-sheet { display: none; }
}
@media (max-width: 899px) { .nav-in { grid-template-columns: 1fr auto; } }
/* Legal pages reuse the bar with a single action on the right. */
.nav-cta { justify-self: end; grid-column: 3; display: flex; gap: 8px; align-items: center; }
@media (max-width: 899px) { .nav-cta { grid-column: 2; } }

/* ── Hero: centred, like get.inkstudents.xyz, the form right under ── */
.plate { max-width: 1120px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) 20px 72px; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; margin-bottom: 24px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; color: var(--text-2);
}
.badge b { font-size: 11px; font-weight: 700; color: #fff; background: var(--blue); padding: 4px 8px; border-radius: 999px; letter-spacing: .02em; }
.badge.full b { background: var(--text-3); }
.mark { font-size: clamp(40px, 6.6vw, 80px); line-height: 1; font-weight: 650; margin: 0 0 26px; letter-spacing: -0.05em; }
.mark em { font-style: normal; color: var(--blue); }
.lead { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; color: var(--text-3); margin: 20px auto 22px; max-width: 46ch; }
.facts { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.facts li {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--edge); color: var(--text-2); font-size: 13.5px; font-weight: 500;
}
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.facts .paid { color: var(--ok); font-weight: 650; }
.hero-alt { color: var(--text-3); margin: 18px 0 0; font-size: 14px; }
.hero-alt a { color: var(--blue); font-weight: 550; text-decoration: none; }
.hero-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }

.card {
  width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-lg);
}
@media (min-width: 560px) { .card { padding: 30px; } }
.form-card { max-width: 540px; scroll-margin-top: 90px; }
.card h2 { font-size: 22px; line-height: 1.3; margin: 0 0 4px; font-weight: 650; letter-spacing: -0.03em; }
.card .sub { color: var(--text-3); margin: 0 0 22px; font-size: 14.5px; }
.card-note { color: var(--text-3); font-size: 12.5px; margin: 18px 0 0; text-align: center; }
.card-note a { color: var(--text-2); }

/* ── Application form (one question per step) ─────────────── */
.q-top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.q-count { font-size: 12.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 40px; }
.q-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.q-bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 99px; transition: width .35s var(--out); }
.q-stage { min-height: 150px; }
.q-step { animation: q-in .35s var(--out) both; }
@keyframes q-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.q-step.shake { animation: shake .3s; }
@keyframes shake { 25%, 75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .q-step, .q-step.shake { animation: none; } }
.q-num { display: none; }
.q-title { font-size: 19px; line-height: 1.35; margin: 0 0 4px; font-weight: 600; letter-spacing: -0.02em; }
.q-sub { color: var(--text-3); margin: 0; font-size: 14px; }
.q-input {
  width: 100%; margin-top: 16px; height: 48px; padding: 0 14px; font-size: 15px;
  background: var(--solid); border: 1px solid var(--edge-2); border-radius: var(--radius-sm); color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.q-input::placeholder { color: var(--text-4); }
.q-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), .16); }
.q-input[type="number"] { max-width: 160px; -moz-appearance: textfield; }
.q-input::-webkit-outer-spin-button, .q-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.q-area { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.q-step.bad .q-input { border-color: var(--bad); }
.q-err { color: var(--bad); font-size: 13px; margin-top: 8px; min-height: 18px; }
.q-choices { display: grid; gap: 8px; margin-top: 16px; }
.q-choice {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--edge-2); background: var(--solid);
  font-size: 14.5px; color: var(--text-2);
  transition: border-color .15s var(--ease), background-color .15s var(--ease), color .1s var(--ease);
}
.q-choice:hover { border-color: var(--text-4); color: var(--text); }
.q-choice kbd { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 600 11px var(--ff); border: 1px solid var(--edge-2); color: var(--text-4); }
.q-choice.on { border-color: var(--blue); color: var(--text); background: rgba(var(--blue-rgb), .08); }
.q-choice.on kbd { background: var(--blue); border-color: var(--blue); color: #fff; }
.q-review { margin: 14px 0 16px; border: 1px solid var(--edge); border-radius: var(--radius-sm); background: var(--solid); }
.q-review > div { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--edge); font-size: 13.5px; }
.q-review > div:last-child { border-bottom: 0; }
.q-review dt { color: var(--text-4); }
.q-review dd { margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-edit { border: 0; background: none; color: var(--blue); font-size: 12.5px; cursor: pointer; padding: 2px; }
.q-nav { display: flex; gap: 8px; margin-top: 14px; }
.q-nav .btn-primary { flex: 1; }
.q-hint { margin: 10px 0 0; font-size: 12px; color: var(--text-4); text-align: center; min-height: 16px; }
.q-hint kbd { font: 600 11px var(--ff); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--edge-2); color: var(--text-3); }
@media (hover: none) { .q-hint { display: none; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-3); cursor: pointer; }
.consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.consent a { color: var(--text-2); }
.q-step .consent + .consent { margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--bad); font-size: 13.5px; text-align: center; margin-top: 10px; }
.form-error:empty { display: none; }
.counter { font-size: 12px; color: var(--text-4); text-align: right; margin-top: 4px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success h3 { font-size: 22px; margin: 0 0 8px; font-weight: 650; letter-spacing: -0.03em; }
.success p { color: var(--text-3); margin: 0 0 18px; line-height: 1.6; }

/* ── Sections: centred heads, like get's views ──────────────── */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec-head { margin: 0 auto 32px; text-align: center; max-width: 620px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; margin: 0 0 10px; font-weight: 650; letter-spacing: -0.045em; }
.sec-head p { color: var(--text-3); margin: 0; font-size: 16px; }
.fine { color: var(--text-4); font-size: 12.5px; margin: 16px 0 0; text-align: center; }

/* Payouts */
.pay-total { margin: -8px 0 28px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pay-total .big { font-size: clamp(48px, 8vw, 84px); font-weight: 650; color: var(--ok); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.05em; }
.pay-total p { color: var(--text-3); margin: 0; }
.pay-total p b { color: var(--text); }
.payouts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
.payout { margin: 0; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.payout button { display: block; width: 100%; padding: 0; border: 0; background: var(--sunk); cursor: zoom-in; }
.payout img { width: 100%; height: auto; }
.payout .meta { padding: 14px 16px 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.payout .amt { font-size: 22px; font-weight: 650; color: var(--ok); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.payout .firm { font-size: 14px; font-weight: 600; }
.payout .who { flex-basis: 100%; color: var(--text-4); font-size: 12.5px; }
.pay-more { margin-top: 20px; text-align: center; }
@media (max-width: 560px) { .payouts { grid-template-columns: 1fr 1fr; gap: 10px; } .payout .amt { font-size: 17px; } .payout .firm { font-size: 12.5px; } }

/* Testimonial screenshots */
.shots { columns: 1; column-gap: 14px; }
@media (min-width: 760px) { .shots { columns: 2; } }
.shot { break-inside: avoid; margin: 0 0 14px; border: 1px solid var(--edge); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.shot button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot img { width: 100%; height: auto; }

/* What you get: a grid of still tiles */
.includes { display: grid; grid-template-columns: 1fr; gap: 14px; }
.includes > div { padding: 22px; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.includes h3 { font-size: 16.5px; margin: 0 0 6px; font-weight: 600; letter-spacing: -0.02em; }
.includes p { color: var(--text-3); margin: 0; line-height: 1.55; font-size: 14.5px; }
@media (min-width: 640px) { .includes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .includes { grid-template-columns: repeat(3, 1fr); } }

/* Prop deals */
.deals { border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.deal { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--edge); }
.deal:last-child { border-bottom: 0; }
.deal-firm { font-weight: 600; font-size: 15px; }
.deal-firm small { display: block; font-weight: 400; color: var(--text-3); font-size: 13px; }
.deal-pct { color: var(--ok); font-weight: 650; font-size: 14px; text-align: right; }
.deal .code, .deal > .btn, .deal > span:last-child { grid-column: 1 / -1; }
.deal > .btn { height: 38px; font-size: 14px; }
@media (min-width: 700px) {
  .deal { grid-template-columns: 1fr 100px 180px 140px; }
  .deal .code, .deal > .btn, .deal > span:last-child { grid-column: auto; }
}
.code {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 38px; padding: 0 4px 0 14px;
  border-radius: 999px; border: 1px dashed var(--edge-2); background: var(--solid); cursor: pointer;
  transition: border-color .15s var(--ease);
}
.code:hover { border-color: var(--blue); }
.code b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: .04em; }
.code span { font-size: 12px; color: var(--blue); padding: 4px 10px; }
.code.copied { border-color: var(--ok); }
.code.copied span { color: var(--ok); }
.deals-msg { color: var(--text-3); padding: 20px; margin: 0; text-align: center; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--edge); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 15.5px; letter-spacing: -0.015em;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 16px;
  transition: background-color .15s ease-out;
}
.faq summary:hover { background: rgba(var(--text-rgb), .03); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 20px; line-height: 1; transition: transform .2s var(--out), color .15s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--blue); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--text-3); line-height: 1.6; }
.faq a { color: var(--blue); }

/* ── Footer ───────────────────────────────────────────────── */
.foot { color: var(--text-3); font-size: 12.5px; }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
@media (min-width: 760px) { .foot-in { flex-direction: row; justify-content: space-between; padding: 22px 32px; text-align: left; } }
.foot-links { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.foot a { color: var(--text-3); text-decoration: none; padding: 6px 10px; border-radius: 8px; transition: color .1s cubic-bezier(0,0,.2,1), background-color .15s ease-out; }
.foot a:hover { color: var(--text); background: rgba(var(--text-rgb), .06); }

/* ── Shared bits (admin, toasts, lightbox, legal) ─────────── */
.field { display: grid; gap: 6px; }
.field > label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--edge-2);
  background: var(--solid); color: var(--text); font-size: 14px;
}
.textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a7' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 14px no-repeat;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), .16); }
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 10px); opacity: 0; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; transition: opacity .2s, transform .2s; pointer-events: none; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(5,6,10,.9); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 14px; }
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 64px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 6px; font-weight: 650; letter-spacing: -0.045em; }
.legal .upd { color: var(--text-4); margin-bottom: 32px; }
.legal h2 { font-size: 19px; margin: 32px 0 8px; font-weight: 600; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--text-2); line-height: 1.65; font-size: 15px; }
.legal a { color: var(--blue); }
