@import url('fonts.css');

:root {
  --bg:      #241419;
  --surface: #32202A;
  --text:    #F4E4DE;
  --accent:  #D98A82;
  --muted:   #B69790;
  --border:  #3F2A33;

  --font-display: 'Comfortaa', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Karla', ui-sans-serif, system-ui, sans-serif;

  --gutter: 20px;
  --measure: 58ch;
  --radius: 18px;

  --step--1: clamp(.81rem, .78rem + .13vw, .87rem);
  --step-0:  clamp(1rem, .97rem + .18vw, 1.08rem);
  --step-1:  clamp(1.12rem, 1.05rem + .3vw, 1.3rem);
  --step-2:  clamp(1.3rem, 1.18rem + .55vw, 1.65rem);
  --step-3:  clamp(1.55rem, 1.34rem + .95vw, 2.2rem);
  --step-4:  clamp(1.9rem, 1.48rem + 1.95vw, 3.05rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
  background: var(--accent); color: #2A1218;
  padding: 10px 16px; font-weight: 700; border-radius: 999px;
}
.skip-link:focus {
  inset-inline-start: 12px; top: 12px; width: auto; height: auto;
  clip: auto; clip-path: none; z-index: 100;
}

.visually-hidden {
  position: absolute; 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: 980px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 680px; }

section { padding-block: 52px; }
.section--line { border-top: 1px solid var(--border); }
@media (min-width: 720px) { section { padding-block: 80px; } }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.01em;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.35; margin: 0 0 .25em; }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

em { font-style: normal; color: var(--accent); }

.kicker {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-head__in {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; min-width: 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; flex: 0 0 auto;
}
.brand__mark { width: 21px; height: 21px; flex: 0 0 auto; color: var(--accent); }

.nav { display: none; margin-inline-start: auto; gap: 24px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .93rem;
         white-space: nowrap; padding-block: 8px; }
.nav a:hover { color: var(--accent); }
@media (min-width: 880px) { .nav { display: flex; } }

.head-cta {
  margin-inline-start: auto;
  flex: 0 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis;
  display: block; text-align: center;
  line-height: 42px; padding-block: 0;
}
@media (max-width: 400px) {
  .head-cta.btn { padding-inline: 12px; font-size: .87rem; }
  .brand { font-size: .95rem; }

  .site-head .wrap { padding-inline: 12px; }
  .site-head__in { gap: 8px; }
}
@media (max-width: 340px) {
  .head-cta.btn { padding-inline: 9px; font-size: .84rem; }
  .site-head__in { gap: 8px; }
  .brand { font-size: .88rem; gap: 7px; }
  .brand__mark { width: 18px; height: 18px; }

  .site-head .wrap { padding-inline: 10px; }
  .site-head__in { gap: 6px; }
  .head-cta.btn { padding-inline: 6px; }
}
@media (min-width: 880px) { .head-cta { margin-inline-start: 0; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700; font-size: .95rem; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: #2A1218; }
.btn--primary:hover { background: #EBA8A0; }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }
@media (min-width: 560px) { .btn--block { width: auto; } }

.hero { padding-block: 44px 52px; }
@media (min-width: 720px) { .hero { padding-block: 76px 88px; } }

.badge {
  display: inline-block;
  font-size: var(--step--1); color: var(--muted);
  border: 1px solid var(--border); background: var(--surface);
  padding: 6px 14px; border-radius: 999px; margin: 0 0 20px;
}
.hero h1 { max-width: 15ch; }
.hero__sub { color: var(--muted); font-size: var(--step-1); max-width: 48ch; margin-top: 18px; }
.hero__actions { margin-top: 28px; }
.hero__note { margin-top: 14px; color: var(--muted); font-size: var(--step--1); }

.why h2 { max-width: 24ch; }
.why h2 span { display: block; color: var(--accent); }
.why__body { margin-top: 22px; }
.why__body p { color: var(--muted); }

.lines { margin-top: 26px; display: grid; gap: 12px; }
@media (min-width: 820px) { .lines { grid-template-columns: repeat(3, 1fr); } }
.line {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--text);
  font-size: var(--step-0);
  margin: 0;
}

.line::before {
  content: '';
  display: inline-block; vertical-align: -.08em;
  width: 2px; height: 1em;
  margin-inline-end: .5em;
  background: var(--accent);
}
.lines__note { margin-top: 14px; color: var(--muted); font-size: var(--step--1); }

.gets { margin-top: 26px; display: grid; gap: 20px; }
@media (min-width: 760px) { .gets { grid-template-columns: 1fr 1fr; gap: 26px 40px; } }
.get { display: grid; gap: 4px; align-content: start; }
.get h3 { margin: 0; }
.get p { margin: 0; color: var(--muted); max-width: 46ch; }

.get--limit {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.get--limit h3 { color: var(--accent); }
.get--limit p { max-width: 68ch; }

.emo { background: var(--surface); }
.emo h2 { max-width: 18ch; }
.emo p { color: var(--muted); margin-top: 12px; font-size: var(--step-1); }

.faq { margin-top: 24px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 56px; font-weight: 700; font-size: var(--step-0);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; color: var(--accent); font-size: 1.4rem; line-height: 1;
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.cta h2 { max-width: 18ch; }
.cta__sub { color: var(--muted); margin-top: 12px; }
.cta__actions { margin-top: 24px; }
.cta__note { margin-top: 14px; color: var(--muted); font-size: var(--step--1); }

.site-foot { border-top: 1px solid var(--border); padding-block: 30px 38px; }
.site-foot__in { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .site-foot__in { grid-template-columns: 1fr auto; align-items: start; }
}

.foot-links { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.foot-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--muted); text-decoration: none; font-size: .93rem;
}
.foot-links a:hover { color: var(--accent); }
.foot-links--legal a { font-size: .86rem; opacity: .82; }
.foot-links--legal a:hover { opacity: 1; }
.foot-note { color: var(--muted); font-size: var(--step--1); margin-top: 12px; }

.lang { display: inline-flex; align-items: center; gap: 8px; }
.lang select {
  font: inherit; font-size: .93rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 16px; min-height: 44px;
}

.form { margin-top: 26px; display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: var(--step--1); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; min-height: 48px; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field textarea { min-height: 150px; resize: vertical; }
.field__hint { color: var(--muted); font-size: var(--step--1); }
.form__foot { margin-top: 6px; }
.form__note { color: var(--muted); font-size: var(--step--1); margin-top: 10px; }
.form__err {
  border-inline-start: 3px solid var(--accent);
  padding: 10px 16px; background: var(--surface); margin-bottom: 16px;
  border-radius: 12px;
}
.form__ok { border: 1px solid var(--border); padding: 22px; background: var(--surface);
            border-radius: var(--radius); }

.legal { padding-block: 34px 56px; }
.legal h1 { font-size: var(--step-3); }
.legal__updated { color: var(--muted); font-size: var(--step--1); }
.legal__sec h2 {
  font-size: var(--step-2); padding-top: 20px; margin-top: 28px;
  border-top: 1px solid var(--border);
}
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--accent); }
.legal ul { padding-inline-start: 20px; }
.legal li { margin-bottom: .5em; }
.legal__nav {
  display: flex; flex-wrap: wrap; gap: 2px 20px;
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border);
}
.legal__nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--muted); text-decoration: none; font-size: .89rem;
}
.legal__nav a:hover { color: var(--accent); }

.entry { margin-top: 26px; }

.entry__label {
  margin: 0 0 10px;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.entry__chips { display: grid; gap: 8px; margin-bottom: 12px; }
@media (min-width: 640px) { .entry__chips { grid-template-columns: 1fr 1fr; } }

.chip {
  display: block; width: 100%; min-height: 48px;
  padding: 12px 14px;
  text-align: start;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit; font-size: var(--step--1); line-height: 1.35;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 639px) { .entry__chips > *:nth-child(n+3) { display: none; } }

.entry__form {
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 8px 8px 14px;
  transition: border-color .15s ease;
}
.entry__form:focus-within { border-color: var(--accent); }

.entry__form textarea {
  flex: 1 1 auto; min-width: 0;
  border: 0; outline: none; resize: none;
  background: transparent; color: var(--text);
  font: inherit; line-height: 1.45;

  font-size: 16px;
  padding: 10px 0;

  min-height: 44px;
  max-height: 40vh;
}
.entry__form textarea::placeholder { color: var(--muted); opacity: 1; }

.entry__go {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink, #fff);
  cursor: pointer;
  transition: filter .15s ease;
}
.entry__go:hover { filter: brightness(1.08); }
.entry__go svg { width: 22px; height: 22px; }

.entry__note { margin: 10px 0 0; color: var(--muted); font-size: var(--step--1); }

.nt-star {
  color: var(--accent); text-decoration: none; font-weight: 700;

  font-size: .5em; vertical-align: super; line-height: 1;
  margin-inline-start: .12em;
}
.nt-star:hover { text-decoration: underline; }
.nt-note {
  max-width: var(--measure, 62ch);
  margin: 0 auto; padding: 0 0 28px;
  color: var(--muted); font-size: var(--step--1);
}
.nt-note a { color: var(--muted); }
.nt-note a:hover { color: var(--accent); }

.learn-sec { padding: 56px 0; border-top: 1px solid var(--border); }
.learn-sec__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 0 0 8px;
}
.learn-sec__head h2 { margin: 0; overflow-wrap: anywhere; }
.learn-sec__lead { color: var(--muted); margin: 0 0 20px; }

.learn-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .learn-grid { grid-template-columns: 1fr 1fr; } }

.learn-card {
  display: flex; align-items: center; min-height: 44px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: var(--text); font-weight: 600; line-height: 1.35;
  transition: border-color .15s, background-color .15s;
}
.learn-card:hover { border-color: var(--accent); background: var(--surface); }

.learn-all {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--accent); text-decoration: none; font-weight: 600;
  font-size: .92rem; white-space: nowrap; flex-shrink: 0;
}
.learn-all:hover { text-decoration: underline; }

.nav-learn { display: none; }
@media (min-width: 900px) { .nav-learn { display: inline-flex; } }

.doc { padding-block: 32px 64px; }
.doc h1 { margin: 0 0 12px; line-height: 1.15; }
.doc .meta { color: var(--muted); font-size: .9rem; margin: 0 0 24px; }
.doc .tldr {
  border-inline-start: 3px solid var(--accent);
  padding: 14px 18px; margin: 0 0 28px; background: var(--surface);
}
.doc h2 { margin: 32px 0 8px; line-height: 1.25; }
.doc p { margin: 0 0 14px; }
.doc details { border-top: 1px solid var(--border); padding: 12px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--border); }
.doc summary {
  cursor: pointer; font-weight: 600;
  min-height: 44px; display: flex; align-items: center;
}
.doc .cta-box {
  margin-top: 36px; padding: 22px; background: var(--surface); border-radius: 12px;
}
.doc .doc-back { margin-top: 28px; }

.hub-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .hub-list { grid-template-columns: 1fr 1fr; } }
.hub-list li { display: flex; }
.hub-list a {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 44px; width: 100%; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: var(--text); font-weight: 600; line-height: 1.35;
  transition: border-color .15s, background-color .15s;
}
.hub-list a:hover { border-color: var(--accent); background: var(--surface); }
.hub-list p { margin: 6px 0 0; color: var(--muted); font-weight: 400; font-size: .92rem; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 0 0 14px; font-size: .82rem; line-height: 1.5; color: var(--muted); }

.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent;
  padding: 11px 0; margin: -11px 0; }
.crumbs a:hover { color: var(--text); border-bottom-color: var(--border); }
.crumbs [aria-current="page"] { color: var(--text); }
.crumbs-sep { opacity: .5; }

.hub-list a > p { margin: 6px 0 0; color: var(--muted); font-weight: 400; font-size: .92rem; }
