*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --soft: #F8FAFC;
  --slate: #0F172A;
  --muted: #475569;
  --subtle: #94A3B8;
  --divider: #E2E8F0;
  --lime: #BFFF00;
  --danger: #E11D48;
  --success: #16A34A;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper); color: var(--ink); line-height: 1.55;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 24px; }
main { flex: 1; display: flex; align-items: center; padding: 80px 0 60px; }
.logo {
  display: inline-block;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 900; letter-spacing: -0.05em;
  color: var(--ink); margin-bottom: 56px; line-height: 1;
}
.logo .slash { color: var(--lime); }
h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.035em;
  line-height: 1.08; color: var(--ink);
  margin-bottom: 22px; max-width: 720px;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted); max-width: 620px;
  margin-bottom: 18px; line-height: 1.55;
}
.small { font-size: 0.9rem; color: var(--subtle); margin-bottom: 40px; letter-spacing: 0.02em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px;
  font-weight: 700; font-size: 0.96rem; letter-spacing: -0.01em;
  text-decoration: none; border: none; cursor: pointer;
  font-family: inherit;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05), 0 4px 16px rgba(15, 23, 42, 0.08);
}
.btn-primary:hover { background: #1F1F1F; transform: translateY(-1px); }
.btn-primary[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary .arrow, .btn-primary .submit-arrow { color: var(--lime); font-weight: 900; }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--divider); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-ghost .arrow { color: var(--ink); font-weight: 900; }
.btn-link {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 0.94rem; font-weight: 600; color: var(--muted);
  padding: 8px 4px; display: inline-flex; align-items: center; gap: 4px;
}
.btn-link::before { content: "<-"; color: var(--muted); font-weight: 700; }
.btn-link:hover { color: var(--ink); }

footer { border-top: 1px solid var(--divider); padding: 28px 0 32px; background: var(--paper); }
.footer-inner { display: flex; flex-direction: column; gap: 4px; font-size: 0.84rem; color: var(--subtle); line-height: 1.6; }
.footer-inner .name { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; font-size: 0.92rem; }
.footer-inner a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 180ms; }
.footer-inner a:hover { border-color: currentColor; }

/* ===== Bottom-sheet dialog ===== */
.sheet {
  position: fixed;
  inset: auto 0 0 0;
  margin: 0 auto;
  border: none;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  max-width: 560px;
  max-height: 92svh;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 50px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1),
              opacity 220ms ease,
              overlay 320ms allow-discrete,
              display 320ms allow-discrete;
}
.sheet[open] { transform: translateY(0); opacity: 1; }
@starting-style { .sheet[open] { transform: translateY(100%); opacity: 0; } }
.sheet::backdrop {
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 280ms ease, overlay 280ms allow-discrete, display 280ms allow-discrete;
}
.sheet[open]::backdrop { opacity: 1; }
@starting-style { .sheet[open]::backdrop { opacity: 0; } }

.sheet-inner { padding: 28px 24px 32px; max-height: 92svh; overflow-y: auto; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sheet-eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; color: var(--lime); background: var(--ink); padding: 4px 10px; border-radius: 999px; display: inline-block; margin-bottom: 8px; }
.sheet-eyebrow.done { color: var(--paper); background: var(--success); }
.sheet-head h2 { font-size: 1.4rem; letter-spacing: -0.02em; color: var(--ink); }
.sheet-pill { display: inline-block; margin-top: 8px; font-size: 0.78rem; font-weight: 600; color: var(--muted); background: var(--soft); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--divider); }
.sheet-close {
  background: var(--soft); border: 1px solid var(--divider);
  width: 36px; height: 36px; border-radius: 12px;
  font-size: 22px; line-height: 1; cursor: pointer;
  color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; flex-shrink: 0;
  transition: background 180ms, color 180ms, border-color 180ms;
}
.sheet-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.sheet-options { display: flex; flex-direction: column; gap: 8px; }
.opt {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: 14px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 180ms, border-color 180ms, transform 180ms;
}
.opt:hover { background: var(--soft); border-color: var(--ink); transform: translateX(2px); }
.opt-title { grid-column: 1; grid-row: 1; font-weight: 700; font-size: 0.98rem; }
.opt-sub { grid-column: 1; grid-row: 2; font-size: 0.84rem; color: var(--muted); margin-top: 2px; }
.opt-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--lime); font-weight: 900; font-size: 1.4rem; }

.step[hidden] { display: none; }

/* ===== Form ===== */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form .label { font-size: 0.84rem; color: var(--muted); font-weight: 600; }
.contact-form .label em { color: var(--lime); font-style: normal; font-weight: 900; }
.contact-form input,
.contact-form textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--divider); border-radius: 12px;
  padding: 12px 14px; outline: none;
  transition: border-color 180ms, box-shadow 180ms;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(191, 255, 0, 0.35);
}
.contact-form textarea { resize: vertical; min-height: 100px; }

/* ===== Phone + country picker ===== */
.contact-form .field { position: relative; }  /* anchor for the popup */
.phone-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: stretch; }
.country-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--divider); border-radius: 12px;
  cursor: pointer; font-family: inherit; font-size: 0.95rem; font-weight: 600;
  transition: border-color 180ms, background 180ms;
  min-height: 46px;
  -webkit-tap-highlight-color: transparent;
}
.country-trigger:hover { border-color: var(--ink); }
.country-trigger[aria-expanded="true"] { border-color: var(--ink); background: var(--soft); }
.country-flag { font-size: 1.05rem; line-height: 1; }
.country-code { font-variant-numeric: tabular-nums; }
.country-caret { color: var(--muted); font-size: 0.7rem; margin-left: 2px; }

.phone-hint {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.phone-hint.is-error { color: var(--danger); font-weight: 600; }

/* === POPUP: floats below the trigger, hidden by default. === */
.country-picker[hidden] { display: none !important; }
.country-picker {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16),
              0 2px 6px rgba(15, 23, 42, 0.06);
  display: flex; flex-direction: column; gap: 6px;
  max-height: 320px;
  animation: pickerIn 160ms cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes pickerIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.country-search {
  font: inherit; font-size: 0.92rem;
  border: 1px solid var(--divider) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  background: var(--soft) !important;
}
.country-search:focus {
  border-color: var(--ink) !important;
  background: var(--paper) !important;
}
.country-list {
  list-style: none; margin: 0; padding: 0;
  overflow-y: auto; max-height: 240px;
  border-radius: 8px;
  scrollbar-width: thin;
}
.country-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.94rem;
  transition: background 120ms;
}
.country-list li:hover, .country-list li.active { background: var(--soft); }
.country-list li .flag { font-size: 1.1rem; }
.country-list li .name { color: var(--ink); }
.country-list li .code { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.country-list li[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.country-list li[aria-selected="true"] .name,
.country-list li[aria-selected="true"] .code { color: var(--paper); }
.country-list li.country-empty {
  text-align: center; padding: 14px 8px;
  color: var(--muted); cursor: default;
  font-size: 0.88rem;
}
.country-list li.country-empty:hover { background: transparent; }

.turnstile-wrap { margin: 4px 0; min-height: 65px; }

.form-error {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.25);
  color: var(--danger);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 600;
}

.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 12px; flex-wrap: wrap; }
.form-submit { flex: 1; justify-content: center; min-height: 50px; }
.form-submit.is-loading .submit-arrow { animation: spin 600ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Done step ===== */
.done-card {
  background: var(--soft);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.done-tick {
  width: 48px; height: 48px;
  background: var(--ink); color: var(--lime);
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.done-tick svg { width: 26px; height: 26px; }
.done-card p { font-size: 0.98rem; color: var(--ink); }
.done-card .muted { color: var(--muted); font-size: 0.88rem; }
.done-card .muted a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.done-card .done-close { margin-top: 4px; }

@media (min-width: 720px) {
  main { padding: 120px 0 80px; }
  .logo { margin-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .opt, .country-trigger, .country-list li { transition: none; }
  .sheet, .sheet::backdrop { transition: none; }
  .form-submit.is-loading .submit-arrow { animation: none; }
}
