/* AmpedLease — signup portal.
 *
 * The palette is lifted from the live ampedlease.com "coming soon" page so the
 * two read as one site: slate-900 ground, slate-800 cards, blue-400 accent,
 * Helvetica Neue. The magenta is the far end of the logo's own gradient, used
 * sparingly for the second accent the coming-soon page never needed.
 *
 * One stylesheet, no framework, no build. */

:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: #243244;
  --border: #33415c;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-hover: #93bbfc;
  --accent-2: #c86dd7;
  --good: #34d399;
  --warn: #fbbf24;
  --crit: #f87171;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1120px;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* `hidden` has to beat the classes below, several of which set `display` and
   would otherwise win on cascade order — a revealed-by-JS element must start
   invisible even when it is a `.btn`. */
[hidden] { display: none !important; }

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

a { color: var(--accent); }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

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

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}

.brand img { border-radius: 9px; display: block; }

.brand-name {
  font-size: 21px;
  font-weight: 300;
  letter-spacing: -0.4px;
}

.brand-name strong { font-weight: 800; }

.nav nav { margin-left: auto; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--text); }
.nav-call { color: var(--accent) !important; font-weight: 600; }

/* Sign-in for people who already bought. A pill rather than another plain link
   so it reads as the one thing in the nav that is not marketing. */
.nav-account {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 15px;
  color: var(--text) !important;
  font-weight: 600;
}

.nav-account:hover { border-color: var(--accent); color: var(--accent) !important; }

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

.hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 96px 24px 104px;
  text-align: center;
}

.hero-mark {
  border-radius: 26px;
  margin-bottom: 26px;
  /* The logo art is on black; a soft bloom in its own colours keeps the square
     from reading as a hard tile against the slate background. */
  box-shadow: 0 0 46px rgba(96, 165, 250, 0.24), 0 0 90px rgba(200, 109, 215, 0.16);
}

.hero h1 {
  font-size: clamp(32px, 5.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.4px;
  color: #fff;
  margin: 0 auto 20px;
  max-width: 17ch;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 32px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #0f172a;
  text-decoration: none;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn:hover { background: var(--accent-hover); }
.btn.wide { width: 100%; }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn.ghost:hover { background: var(--surface); border-color: var(--accent); }

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

section { max-width: var(--max); margin: 0 auto; padding: 56px 24px; }

h2 {
  font-size: 28px;
  letter-spacing: -0.6px;
  color: var(--accent);
  margin: 0 0 14px;
  text-align: center;
}

.section-lede {
  color: var(--muted);
  max-width: 64ch;
  margin: 0 auto 32px;
  text-align: center;
}

.expect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 26px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 { color: var(--accent); margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text); }

/* --- The panel pitch ----------------------------------------------------- */
/* Helm is what a customer opens every week, so it gets a section rather than a
   bullet. The shot is framed in a browser chrome drawn here rather than
   captured, so the address bar can say the domain Helm actually hands out. */

.panel-shot {
  margin: 0 0 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.7);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.shot-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); flex: none; }

.shot-url {
  margin-left: 10px;
  min-width: 0;
  background: var(--surface);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-shot img { display: block; width: 100%; height: auto; }

/* On a phone the shot is a dense dashboard squeezed into 350px, which is a
   picture of nothing. Give it a real width and let the frame scroll instead —
   the page itself must never scroll sideways, so the overflow stays in here. */
@media (max-width: 620px) {
  .shot-scroll { overflow-x: auto; }
  .panel-shot img { width: 720px; max-width: none; }
}

.panel-shot figcaption {
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px 34px;
}

.panel-list li {
  border-left: 2px solid var(--border);
  padding-left: 16px;
  color: var(--muted);
  font-size: 15px;
}

.panel-list li strong { display: block; color: var(--text); font-size: 16px; }
.panel-list li em { font-style: italic; color: var(--text); }

/* The support tab's real label, so the sentence and the screenshot agree. */
.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13px;
  color: var(--accent-2);
}

.panel-notes { margin-top: 40px; }
.panel-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 34px 0 0; }

/* --- Plans -------------------------------------------------------------- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 20px;
}

.plan {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* The middle plan is the one most businesses want; say so visually rather than
   leaving three identical cards and a decision to make. */
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 36px rgba(15, 23, 42, 0.6);
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 26px;
  background: var(--accent);
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 3px 11px;
  border-radius: 999px;
}

.plan h3 { margin: 0 0 4px; font-size: 21px; color: #fff; }
.plan .stack { color: var(--accent-2); font-size: 13px; font-weight: 600; margin: 0 0 14px; }

.plan .price { margin: 0 0 14px; }
.plan .price strong { font-size: 38px; letter-spacing: -1.6px; color: #fff; }
.plan .price .per { color: var(--muted); font-size: 15px; }
/* The regular price, struck through while a sale is live. */
.plan .price .was {
  color: var(--muted);
  font-size: 17px;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  margin-left: 8px;
  vertical-align: 2px;
}
.plan .price .sale-tag {
  display: inline-block;
  margin-left: 8px;
  vertical-align: 3px;
  background: var(--accent-2);
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}

/* The site-wide sale banner above the plan grid. */
.sale-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #0f172a;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 600;
}
.sale-badge {
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan .desc { color: var(--muted); font-size: 14px; margin: 0 0 18px; min-height: 3.2em; }

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--text);
  flex: 1;
}

.plan li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.plan li:last-child { border-bottom: 0; }
.plan li::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: 9px; }

.plan button {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.plan button:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #0f172a; }
.plan.featured button { background: var(--accent); border-color: var(--accent); color: #0f172a; }
.plan.featured button:hover:not(:disabled) { background: var(--accent-hover); }

.plan button:disabled { opacity: 0.5; cursor: default; }

.notice {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 0 auto 26px;
  max-width: 66ch;
  color: var(--muted);
  font-size: 14.5px;
}

.plans-foot { margin-top: 26px; }

/* --- Coverage / region gate --------------------------------------------- */
/* Until a covered state is chosen, the storefront shows the picker and nothing
   to buy — a customer should learn we can host them before they pick a plan. */
.coverage {
  max-width: 66ch;
  margin: 0 auto 30px;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}
.coverage label { font-weight: 700; font-size: 15.5px; }
.state-select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 16px;
  width: 100%;
  max-width: 340px;
}
.state-select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }

.plans.gated #plan-list,
.plans.gated #term-toggle,
.plans.gated #plans-notice,
.plans.gated .migrate,
.plans.gated .plans-foot { display: none; }

.out-of-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 0 auto 26px;
  max-width: 60ch;
  text-align: center;
}
.out-of-area h3 { color: var(--accent-2); margin: 0 0 12px; font-size: 21px; }
.out-of-area p { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.waitlist { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.waitlist input { flex: 1; }
.waitlist .btn { white-space: nowrap; }
.waitlist-done { margin: 14px 0 0; }
@media (max-width: 480px) { .waitlist { flex-direction: column; } }

/* --- Monthly / yearly toggle -------------------------------------------- */

.term-toggle {
  display: flex;
  gap: 4px;
  justify-content: center;
  background: var(--surface);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 26px;
}

.term-toggle .term {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
}

.term-toggle .term.active { background: var(--accent); color: #0f172a; }
.term-toggle .term:hover:not(.active) { color: var(--text); }
.term-toggle .save { font-size: 12px; font-weight: 700; opacity: 0.85; }

/* --- Signup form -------------------------------------------------------- */

.signup { max-width: 640px; }
.signup h2, .signup .muted { text-align: center; }

#signup-form { display: grid; gap: 17px; margin-top: 26px; }

#signup-form label { display: grid; gap: 6px; }
#signup-form label > span { font-size: 14.5px; font-weight: 700; }
#signup-form label em { color: var(--muted); font-weight: 400; font-style: normal; }
#signup-form small { color: var(--muted); font-size: 12.5px; }

input, textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 16px;
  width: 100%;
}

textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; resize: vertical; }

input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }

.subdomain-row { display: flex; align-items: stretch; }
.subdomain-row input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }

.domain-suffix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  white-space: nowrap;
}

.error {
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid var(--crit);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  margin: 0;
}

.fineprint { color: var(--muted); font-size: 12.5px; text-align: center; margin: 0; }
/* A class rather than a style attribute: the CSP is `style-src 'self'`, which
   blocks inline styles as firmly as it blocks inline scripts. */
.fineprint.spaced { margin-top: 14px; }

/* --- Order status ------------------------------------------------------- */

.status { max-width: 640px; padding-top: 56px; text-align: center; }
.status h1 { font-size: 32px; letter-spacing: -1px; color: #fff; margin: 0 0 12px; }
.status .lede { margin-bottom: 8px; }

.status-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 30px 0;
  text-align: left;
}

.status-card p { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; gap: 14px; align-items: center; }
.status-card p:last-child { border-bottom: 0; }
.status-card .label { color: var(--muted); font-size: 14px; min-width: 92px; }

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.badge.active { border-color: var(--good); color: var(--good); }
.badge.provisioning, .badge.paid { border-color: var(--warn); color: var(--warn); }
.badge.failed { border-color: var(--crit); color: var(--crit); }

/* --- Claiming the panel -------------------------------------------------- */

.claim {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px;
  margin: 26px 0;
  text-align: left;
}

.claim h2 { text-align: left; font-size: 21px; margin: 0 0 8px; }
.claim > p { margin: 0 0 18px; }
.claim .btn { display: block; text-align: center; }

.code {
  font-size: 24px;
  letter-spacing: 2px;
  text-align: center;
  background: var(--bg);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0 8px;
  word-break: break-all;
  user-select: all;
}

.steps { color: var(--muted); font-size: 14.5px; margin: 18px 0; padding-left: 22px; }
.steps li { margin-bottom: 7px; }
.steps strong { color: var(--text); }

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

footer {
  max-width: var(--max);
  margin: 60px auto 0;
  padding: 40px 24px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--surface);
  text-align: center;
}

footer img { border-radius: 8px; opacity: 0.85; margin-bottom: 10px; }
footer p { margin: 5px 0; }
footer strong { color: var(--text); }
footer .copyright { margin-top: 16px; font-size: 12.5px; }

@media (max-width: 640px) {
  .hero { padding: 64px 20px 72px; }
  section { padding: 44px 20px; }
  .nav { gap: 14px; }
}

/* --- Migration band (D5) ------------------------------------------------ */
/* Sits under the plan grid, above the fineprint. Magenta edge so it reads as a
   note on the offer, not a fourth plan. Hidden with the grid when the region
   gate has nothing to sell (see the .plans.gated rule above). */

.migrate {
  margin: 30px 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.migrate-text { margin: 0; color: var(--muted); font-size: 15px; max-width: 62ch; }
.migrate-text strong { color: var(--text); }
.migrate .btn { white-space: nowrap; }

@media (max-width: 560px) {
  .migrate { flex-direction: column; align-items: stretch; text-align: center; }
  .migrate .btn { text-align: center; }
}

/* --- FAQ (D3) ----------------------------------------------------------- */
/* <details>/<summary>, no script — collapsible, keyboard-accessible, linkable,
   and it does not fight the CSP the way an inline onclick would. */

.faq { max-width: 780px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  position: relative;
}

/* Kill the browser's default disclosure triangle in both engines and draw our
   own, so the marker matches the palette rather than the OS. */
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
}

.faq-item[open] summary { color: var(--accent); }
.faq-item[open] summary::after { content: "\2013"; } /* en dash */

.faq-item summary:hover { color: var(--accent); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.faq-item .answer { padding: 0 22px 20px; }
.faq-item .answer p { margin: 0; color: var(--muted); font-size: 15px; }
.faq-item .answer a { color: var(--accent); }

/* --- Legal pages: terms, privacy (D2) ----------------------------------- */
/* Prose, left-aligned, one readable column. Inherits nav, footer and the CSP
   from the rest of the site; carries no script and sets nothing inline. */

.legal { max-width: 760px; }

.legal h1 {
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
  margin: 0 0 8px;
}

.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.legal .updated strong { color: var(--text); }

.legal .intro {
  color: var(--muted);
  font-size: 16px;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 0 0 8px;
}

.legal h2 {
  text-align: left;
  font-size: 20px;
  color: var(--accent);
  margin: 36px 0 10px;
}

.legal p { margin: 0 0 14px; color: var(--text); }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 9px; color: var(--text); }
.legal li::marker { color: var(--accent-2); }
.legal a { color: var(--accent); }
.legal .mono { color: var(--text); }

/* --- Footer legal links (D2) -------------------------------------------- */

footer .legal-links { margin-top: 12px; }
footer .legal-links a { color: var(--muted); text-decoration: none; }
footer .legal-links a:hover { color: var(--accent); }
