/* h0pp EU landing — static, no build. Tokens mirror "Лендинг EN — design" in the wiki. */
:root {
  --ink: #0a0e16;
  --panel-1: #0f1522;
  --panel-2: #141c2c;
  --panel-3: #1b2539;
  --text: #e6ecf7;
  --muted: #98a4ba;
  --line: #1e2940;
  --line-2: #2a3650;
  --blue: #31a9ff;
  --blue-deep: #0e3a5e;
  --blue-soft: #bfe3ff;
  --on-blue: #04111d;
  --amber: #f2b35e;
  --on-amber: #241500;
  --mint: #5bd6a4;
  --radius: 8px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, .logo, .label, .btn, .plan-name, .chip, .tag { font-family: 'Space Grotesk', sans-serif; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; border-top: 1px solid var(--line); }

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

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 22, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 22px; font-weight: 700; color: var(--blue); letter-spacing: -0.5px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: opacity .2s, background .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--blue); color: var(--on-blue); }
.btn--primary:hover { opacity: .9; }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--panel-2); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; justify-content: center; }

/* ===== Section heads ===== */
.label {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.label::after { content: ''; width: 24px; height: 2px; background: var(--blue); }
h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.17; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 17px; max-width: 560px; margin-bottom: 48px; }

/* ===== Hero ===== */
.hero { border-top: 0; padding: 88px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
h1 { font-size: clamp(36px, 5.6vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -.03em; margin-bottom: 22px; }
h1 em { font-style: normal; color: var(--amber); }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.fine { font-size: 13px; color: var(--muted); }
.fine b { color: var(--text); font-weight: 500; }
.also { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 540px; font-size: 14px; color: var(--muted); }
.also b { color: var(--text); font-weight: 500; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-right: 10px; vertical-align: middle; }

/* Location card — the signature element */
.loc-card {
  background: var(--panel-1); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; max-width: 420px; margin-left: auto; width: 100%;
}
.loc-title { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.loc-row { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.loc-row--on { border-color: rgba(49, 169, 255, .5); }
.loc-label { font-size: 13px; color: var(--muted); }
.loc-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 16px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip--grey { background: var(--panel-3); color: var(--muted); }
.chip--amber { background: var(--amber); color: var(--on-amber); }
.chip--blue { background: var(--blue-deep); color: var(--blue-soft); }
.ip { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--mint); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.route { position: relative; height: 64px; display: flex; align-items: center; justify-content: center; }
.route::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-2); transform: translateX(-.5px); }
.route span {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); border: 1px solid var(--blue); color: var(--blue-soft);
  font-size: 12px; padding: 4px 12px; border-radius: 999px; font-family: 'Space Grotesk', sans-serif; font-weight: 600;
}
.route span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.loc-caption { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: right; }

/* ===== Cards ===== */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--panel-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-deep); display: grid; place-items: center; margin-bottom: 20px; color: var(--blue-soft); }
.icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; line-height: 1.4; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: var(--panel-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 700; line-height: 1;
  color: var(--blue); display: block; margin-bottom: 18px; font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); }
.step a { color: var(--blue); }

/* ===== Pricing ===== */
.trial {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--panel-1); border: 1px solid var(--blue-deep); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 24px;
}
.trial strong { font-family: 'Space Grotesk', sans-serif; font-size: 20px; display: block; margin-bottom: 4px; }
.trial span { color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: var(--panel-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; position: relative; }
.plan--pop { border-color: var(--blue); background: var(--panel-2); }
.pop-chip { position: absolute; top: -12px; left: 28px; background: var(--blue); color: var(--on-blue); font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.plan-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.plan-for { color: var(--muted); margin-bottom: 18px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--panel-3); color: var(--muted); margin-bottom: 20px; align-self: flex-start; }
.price { font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 700; line-height: 1.1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; margin: 18px 0 28px; display: grid; gap: 8px; color: var(--muted); flex: 1; }
.plan li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-right: 10px; vertical-align: middle; }
.paystrip { margin-top: 24px; padding: 16px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); font-size: 14px; text-align: center; }
.paystrip b { color: var(--text); font-weight: 600; }

/* ===== FAQ ===== */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 24px; line-height: 1; flex: none; transition: transform .2s; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); padding: 0 40px 22px 0; }
.faq a { color: var(--blue); }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }

/* ===== Mobile sticky CTA ===== */
.sticky-cta { display: none; }

@media (max-width: 899px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .loc-card { margin: 0; max-width: none; }
  .cards-2, .steps, .plans { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .sub { margin-bottom: 32px; }
  .plans { gap: 28px; }
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: block; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(10, 14, 22, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s;
  }
  .sticky-cta.show { transform: none; }
  body { padding-bottom: 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .btn { padding: 14px 20px; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .faq p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== DRAFT MODE ===== */
/* Everything below exists for local review only. To publish: remove class="draft" from <body>,
   delete the .draft-bar element, remove the noindex meta and all data-pending attributes. */
.draft-bar {
  position: static;
  background: var(--amber); color: var(--on-amber);
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600;
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 8px 16px; text-align: center;
}
.draft-bar a { text-decoration: underline; }
body:not(.draft) .draft-bar { display: none; }
@media (max-width: 899px) { .draft-bar span:last-child { display: none; } }
.draft [data-pending] { outline: 1.5px dashed var(--amber); outline-offset: 5px; position: relative; }
.draft [data-pending]::before {
  content: attr(data-pending); position: absolute; top: -12px; right: 6px; z-index: 5;
  background: var(--amber); color: var(--on-amber);
  font-family: 'Space Grotesk', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px; white-space: nowrap;
}
.draft span[data-pending] { outline-offset: 2px; }
.draft span[data-pending]::before { top: -14px; }

/* ===== Legal documents (eu/privacy) ===== */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.01em; margin: 44px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 16px 20px; display: grid; gap: 6px; }
.doc li::marker { color: var(--blue); }
.doc b, .doc strong { color: var(--text); font-weight: 500; }
.doc a { color: var(--blue); }
.doc .summary { background: var(--panel-1); border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px; margin-bottom: 8px; display: grid; gap: 18px; }
.doc .summary h3 { margin: 0 0 6px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.doc .summary p { margin: 0; }
.doc span[data-pending] { padding: 0 2px; }
.header .back { font-size: 14px; color: var(--muted); }
.header .back:hover { color: var(--text); }
