/* Hello by X24: same tokens as the portal (portal/src/app/globals.css), warm neutrals and one teal. */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f1f1ee;
  --line: #e4e4df;
  --text: #1c1d1f;
  --muted: #64666b;
  --accent: #0f766e;
  --accent-hover: #0d645d;
  --accent-fg: #ffffff;
  --accent-soft: #e3f3f1;
  --danger: #b91c1c;
  --success: #15803d;
  --ring: #0f766e66;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111213;
    --surface: #18191b;
    --surface-2: #202124;
    --line: #2c2d31;
    --text: #ececea;
    --muted: #a2a4a9;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-fg: #062b28;
    --accent-soft: #123532;
    --danger: #f87171;
    --success: #4ade80;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
section { padding: 56px 0; }
.band { background: var(--surface-2); }
.lead { font-size: 1.12rem; max-width: 46em; }
.small { font-size: 0.9rem; }
.muted, .opt { color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px;
  flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; display: flex;
  align-items: center; gap: 8px; }
.brand .by { font-weight: 400; color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.95rem; }
nav a { color: var(--text); text-decoration: none; padding: 6px 0; }
nav a:hover { color: var(--accent); }
nav .signin { color: var(--accent); font-weight: 600; }
@media (max-width: 560px) { nav a:not(.signin) { display: none; } }

/* Hero */
.hero { padding-top: 40px; }
.hero-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; } .hero { padding-top: 72px; } }
.eyebrow { color: var(--accent); font-weight: 600; margin: 0 0 8px; }

.cta, button {
  display: inline-block; background: var(--accent); color: var(--accent-fg); font: inherit; font-weight: 700;
  border: 0; border-radius: 10px; padding: 14px 22px; text-decoration: none; cursor: pointer;
  min-height: 48px;
}
.cta { font-size: 1.15rem; margin-top: 8px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ctas .cta { margin-top: 0; }
.cta.alt { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.cta.alt:hover { background: var(--accent-soft); color: var(--accent); }
.cta:hover, button:hover { background: var(--accent-hover); color: var(--accent-fg); }
button[disabled] { opacity: 0.6; cursor: wait; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }

/* Form */
form h2 { font-size: 1.35rem; margin-bottom: 4px; }
form .small { margin-top: 0; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin: 14px 0 4px; }
input, select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; min-height: 46px;
}
form button { width: 100%; margin-top: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; }
.status.ok { color: var(--success); }
.status.err { color: var(--danger); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.steps p { margin: 0; color: var(--muted); }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 10px; }

/* Calculator */
.calc { margin-top: 24px; max-width: 720px; }
.calc-in { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .calc-in { grid-template-columns: 1fr 1fr; } .calc-in > div:last-child { grid-column: 1 / -1; } }
.calc-in label { margin-top: 0; }
.calc-out { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 20px; }
.calc-out p { margin: 0; }
.big { font-size: 2rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0;
  padding: 0 18px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; min-height: 48px; }
details p { margin: 0 0 16px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; background: var(--surface); }
.foot p { margin: 0 0 10px; max-width: 46em; }
