/* Recovatron landing site — single stylesheet */

:root {
  --bg: #0f1115;
  --bg-elev: #161a21;
  --bg-card: #1b2028;
  --border: #262c36;
  --text: #e8ecf1;
  --text-dim: #9aa4b2;
  --text-faint: #6b7684;
  --accent: #5aa7ff;
  --accent-hover: #78b8ff;
  --accent-ink: #0b1220;
  --danger: #ff6b6b;
  --success: #3dd68c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --max-w: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --bg-elev: #ffffff;
    --bg-card: #ffffff;
    --border: #e5e8ee;
    --text: #111418;
    --text-dim: #4c5562;
    --text-faint: #7a8593;
    --accent: #1f6feb;
    --accent-hover: #3a86ff;
    --accent-ink: #ffffff;
    --shadow: 0 10px 30px rgba(15, 20, 30, 0.08);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

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

/* ---------- Background icon ---------- */

.bg-icon {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  color: var(--text);
  opacity: 0.05;
}
.bg-icon svg {
  width: min(70vw, 640px);
  height: auto;
}
@media (prefers-color-scheme: light) {
  .bg-icon { opacity: 0.06; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.brand-logo-slot {
  display: flex;
  align-items: center;
  min-height: 32px;
  width: 160px;
  color: var(--text-dim);
}
.brand-logo-slot svg { height: 28px; width: auto; }

.brand-wordmark {
  justify-self: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  text-transform: uppercase;
}
.brand-wordmark a { color: inherit; text-decoration: none; }

.lang-picker {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 14px;
}
.lang-picker select {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.lang-picker select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ---------- Nav ---------- */

.site-nav {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.site-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 14px 16px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}
.site-nav a.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------- Main / content ---------- */

main {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.5vw, 32px); letter-spacing: -0.01em; }
h3 { font-size: 18px; }

p { margin: 0 0 1em; color: var(--text-dim); }
.lead { font-size: 18px; color: var(--text-dim); max-width: 640px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-card); color: var(--text); }

.btn[disabled], .btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 24px;
  text-align: left;
}
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero-text { min-width: 0; }
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.hero .eyebrow {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
@media (max-width: 860px) {
  .hero-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-art { order: -1; }
  .hero-art img { max-height: 260px; }
}

/* ---------- Sections ---------- */

section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
section:first-of-type { border-top: 0; }

.section-head { margin-bottom: 24px; }
.section-head p { max-width: 640px; }

/* ---------- Recovers grid ---------- */

.recovers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.recover-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.recover-card .emoji {
  font-size: 26px;
  line-height: 1;
}
.recover-card .label {
  font-weight: 600;
  color: var(--text);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 36px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: 14px; }

/* ---------- Platforms ---------- */

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.platform-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 20px;
}
.feature-list li {
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 999px;
}

/* ---------- CTA row ---------- */

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------- Coming soon card ---------- */

.coming-soon {
  max-width: 540px;
  margin: 60px auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  box-shadow: var(--shadow);
}
.coming-soon .badge {
  display: inline-block;
  padding: 4px 12px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.coming-soon h1 { margin-bottom: 12px; }
.coming-soon .platforms-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------- FAQ / accordion ---------- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 760px;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 18px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--text-dim);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details > *:not(summary) {
  padding-bottom: 16px;
  color: var(--text-dim);
}

.support-contact {
  margin-top: 32px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 760px;
}
.support-contact h3 { margin-bottom: 6px; }

/* ---------- Legal / prose ---------- */

.prose {
  max-width: 760px;
}
.prose h2 { margin-top: 32px; }
.prose ul { padding-left: 20px; color: var(--text-dim); }
.prose li { margin-bottom: 6px; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  color: var(--text-faint);
  font-size: 14px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.site-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--text-dim); }
.site-footer .footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Support bot (slide-out) ---------- */

.support-tab {
  position: fixed;
  top: 40%;
  right: 0;
  z-index: 20;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  /*
   * The tab is rotated 180° with writing-mode: vertical-rl (see `transform`
   * below), which swaps the visual meaning of each corner: the logical
   * top-right/bottom-right corners end up on the screen's *left* side once
   * rotated. We want the rounded corners to face inward (away from the
   * viewport edge), so we round the logical right corners here.
   */
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  box-shadow: var(--shadow);
  transition: background 0.15s ease;
}
.support-tab:hover { background: var(--accent-hover); }

.support-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 100vw);
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 30;
  display: flex;
  flex-direction: column;
}
.support-panel.is-open { transform: translateX(0); }

.support-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.support-panel-header h3 { margin: 0; font-size: 16px; }
.support-panel-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.support-panel-close:hover { color: var(--text); }

.support-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 85%;
  word-wrap: break-word;
}
.msg-bot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.msg-user {
  background: var(--accent);
  color: var(--accent-ink);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.support-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.support-input input {
  flex: 1;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}
.support-input input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.support-input button {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-weight: 600;
  cursor: pointer;
}
.support-input button:hover { background: var(--accent-hover); }

.support-escalation {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, var(--accent) 12%);
}
.support-escalation-intro {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dim);
}
.support-panel-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.support-panel-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-dim);
}
.support-panel-form input,
.support-panel-form textarea {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
}
.support-panel-form textarea {
  resize: vertical;
  min-height: 72px;
}
.support-panel-form-submit {
  margin-top: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}
.support-panel-form-submit:hover { background: var(--accent-hover); }
.support-form-status,
.contact-form-status {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-dim);
  min-height: 1.2em;
}
.support-form-honey {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  max-width: 420px;
}
.contact-form-main label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
}
.contact-form-main input,
.contact-form-main textarea {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
}
.contact-form-main textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form-main .h-captcha {
  margin-top: 4px;
}
/*
 * The captcha slot is rendered in DOM on page load (Web3Forms script needs
 * it there to mount the hCaptcha widget) but stays `hidden` until the
 * form has a name, a valid email, and a message >=10 chars. See
 * assets/js/contact-form.js.
 */
.contact-form-captcha-slot[hidden] {
  display: none !important;
}
.contact-form-captcha-slot {
  margin-top: 4px;
}
.contact-form-submit {
  align-self: flex-start;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
}
.contact-form-submit:hover { background: var(--accent-hover); }
.contact-form-config-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

/* RTL (Arabic) */
html[dir="rtl"] .support-tab {
  right: auto;
  left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  transform: rotate(0);
}
html[dir="rtl"] .support-panel {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
}
html[dir="rtl"] .support-panel.is-open { transform: translateX(0); }
html[dir="rtl"] .msg-bot { align-self: flex-end; border-bottom-left-radius: 10px; border-bottom-right-radius: 2px; }
html[dir="rtl"] .msg-user { align-self: flex-start; border-bottom-right-radius: 10px; border-bottom-left-radius: 2px; }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .site-header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
  .brand-logo-slot { width: auto; }
  .brand-logo-slot svg { height: 22px; }
  .brand-wordmark { font-size: 16px; letter-spacing: 0.1em; }
  .lang-picker span { display: none; }
  main { padding: 32px 16px 64px; }
  .site-nav-inner { padding: 0 12px; }
  .site-nav a { padding: 12px; font-size: 14px; }
  .coming-soon { margin: 30px 0; padding: 32px 20px; }
  .support-panel { width: 100vw; }
}
