/* SlideWright landing — layout & components. Mirrors the app console aesthetic. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

kbd {
  background: var(--bg-sunken);
  border: 1px solid var(--hairline-strong);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  color: var(--text);
}

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

/* --- Layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  border-top: 1px solid var(--hairline);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 650;
}
.section-head p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.05rem;
}

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(1.2) blur(8px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand .mark {
  width: 24px;
  height: 24px;
  color: var(--text);
}
.header-cta {
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--text-muted);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--text) 86%, var(--vg));
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover {
  background: var(--bg-sunken);
  text-decoration: none;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding: 84px 0 72px;
  border-top: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 680;
}
.hero .subhead {
  color: var(--text-muted);
  font-size: 1.16rem;
  margin-top: 18px;
  max-width: 42ch;
}
.hero-form {
  margin-top: 30px;
  max-width: 440px;
}
.trust {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--text-faint);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 46ch;
}
.trust svg {
  flex: 0 0 auto;
  margin-top: 3px;
}

/* --- Waitlist form -------------------------------------------------------- */
.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-row {
  display: flex;
  gap: 10px;
}
input[type="email"],
input[type="text"],
select,
textarea {
  font: inherit;
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 11px 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--vg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vg) 22%, transparent);
}
textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}
.form-row .btn {
  flex: 0 0 auto;
}
.role-row {
  margin-top: 12px;
}
.honeypot {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-msg {
  margin-top: 12px;
  font-size: 0.9rem;
  display: none;
}
.form-msg.show {
  display: block;
}
.form-msg.success {
  color: var(--healthy);
}
.form-msg.error {
  color: #d6453c;
}

/* --- Hero visual (mock console) ------------------------------------------ */
.mock {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-sunken);
}
.mock-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hairline-strong);
}
.mock-bar .ribbon {
  margin-left: auto;
  font-size: 0.74rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.mock-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.review-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  flex: 0 0 auto;
  line-height: 1.4;
}
.tag.vg {
  color: var(--vg);
  background: color-mix(in srgb, var(--vg) 13%, transparent);
}
.tag.team {
  color: var(--team);
  background: color-mix(in srgb, var(--team) 16%, transparent);
}
.tag.ok {
  color: var(--healthy);
  background: color-mix(in srgb, var(--healthy) 14%, transparent);
}
.review-line span:last-child {
  color: var(--text-muted);
}

/* --- Feature cards -------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.card .ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--bg-sunken);
  margin-bottom: 16px;
  color: var(--text);
}
.card h3 {
  font-size: 1.08rem;
  font-weight: 620;
  margin-bottom: 8px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.card .accent-vg {
  color: var(--vg);
}
.card .accent-team {
  color: var(--team);
}

/* --- Steps ---------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}
.step .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--vg);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--vg) 35%, var(--hairline));
  border-radius: 7px;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.step p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* --- Privacy block -------------------------------------------------------- */
.privacy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
.privacy .lock {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--healthy) 12%, transparent);
  color: var(--healthy);
}
.privacy h2 {
  font-size: 1.35rem;
  font-weight: 640;
  margin-bottom: 10px;
}
.privacy ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.privacy li {
  display: flex;
  gap: 9px;
  align-items: baseline;
}
.privacy li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--healthy);
  flex: 0 0 auto;
  transform: translateY(-2px);
}

/* --- Download / get started ---------------------------------------------- */
.download-box {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 28px;
  max-width: 560px;
}
.download-box h3 {
  font-size: 1.12rem;
  font-weight: 620;
  margin-bottom: 6px;
}
.download-box p.sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.status-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.94rem;
  display: none;
}
.status-result.show {
  display: block;
}
.status-result.approved {
  background: color-mix(in srgb, var(--healthy) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--healthy) 40%, transparent);
}
.status-result.pending {
  background: var(--bg-sunken);
  border: 1px solid var(--hairline-strong);
  color: var(--text-muted);
}
.status-result.none {
  background: var(--bg-sunken);
  border: 1px solid var(--hairline-strong);
  color: var(--text-muted);
}

.getstarted {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.instructions {
  counter-reset: gs;
}
.instructions ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.instructions li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.instructions li::before {
  counter-increment: gs;
  content: counter(gs);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--bg-sunken);
  border: 1px solid var(--hairline-strong);
  color: var(--text);
}
.instructions strong {
  font-weight: 600;
}
.instructions .li-body {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Feedback ------------------------------------------------------------- */
.feedback-box {
  max-width: 640px;
}

/* --- Secondary CTA -------------------------------------------------------- */
.cta-final {
  text-align: center;
  background: var(--bg-elev);
}
.cta-final .section-head {
  margin-left: auto;
  margin-right: auto;
}
.cta-final form {
  max-width: 440px;
  margin: 0 auto;
}
.cta-final .note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
  color: var(--text-faint);
  font-size: 0.88rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .links {
  display: flex;
  gap: 20px;
}
.site-footer a {
  color: var(--text-muted);
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid,
  .getstarted {
    grid-template-columns: 1fr;
  }
  /* Lead with the headline + waitlist form on mobile; the product mock follows. */
  .cards,
  .steps {
    grid-template-columns: 1fr;
  }
  section {
    padding: 60px 0;
  }
}

@media (max-width: 520px) {
  .form-row {
    flex-direction: column;
  }
  .form-row .btn {
    width: 100%;
  }
  .privacy {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Consent + OS notice */
.consent { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; font-size: 0.86rem; color: var(--text-muted); line-height: 1.45; cursor: pointer; }
.consent input { margin-top: 3px; flex: none; }
.consent a { color: var(--text); text-decoration: underline; }
.os-notice { margin-top: 8px; font-size: 0.85rem; color: var(--text-muted); background: var(--bg-sunken); border: 1px solid var(--hairline-strong); border-radius: var(--radius); padding: 9px 12px; }
.confirm-page { padding: 96px 0; }
.confirm-page .brand { margin-bottom: 28px; }
.confirm-page h1 { margin: 0 0 12px; }
.confirm-page p { color: var(--text-muted); margin: 0 0 24px; max-width: 46ch; }

/* Alpha badge */
.alpha-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-sunken); border: 1px solid var(--hairline-strong); border-radius: 20px; padding: 5px 12px; margin: 0 0 18px; }
.alpha-badge .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--healthy, #2e9e5b); display: inline-block; }

/* Screenshot narrative */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot-frame { position: relative; margin: 0; border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg, 16px); overflow: hidden; background: var(--surface); }
.ba-tag { position: absolute; top: 10px; left: 10px; z-index: 1; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 85%, transparent); border: 1px solid var(--hairline-strong); color: var(--text-muted); backdrop-filter: blur(4px); }
.ba-tag.after { color: var(--healthy); border-color: color-mix(in srgb, var(--healthy) 45%, var(--hairline-strong)); }
.shot-frame .shot { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-sunken); }
.shot-frame .shot-ph { display: none; }
.shot-frame.is-empty .shot { display: none; }
.shot-frame.is-empty .shot-ph { display: flex; align-items: center; justify-content: center; text-align: center; aspect-ratio: 16 / 10; padding: 16px; color: var(--text-faint); font-size: 0.85rem; background: repeating-linear-gradient(45deg, var(--bg-sunken), var(--bg-sunken) 10px, var(--surface) 10px, var(--surface) 20px); }
.shot-frame figcaption { padding: 11px 14px; font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid var(--hairline); }
.ba-head { margin: 40px 0 16px; }
.ba-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-bottom: 18px; }
.ba-arrow { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: var(--bg); box-shadow: var(--shadow-card); }
.ba-arrow svg { display: block; }
@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr; }
  .ba-pair { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .ba-pair .shot-frame { width: 100%; }
  .ba-arrow { transform: rotate(90deg); }
}

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal .brand { margin-bottom: 32px; }
.legal h1 { margin: 0 0 6px; }
.legal h2 { margin: 32px 0 10px; font-size: 1.1rem; }
.legal p, .legal li { color: var(--text-muted); line-height: 1.65; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--text); text-decoration: underline; }
.legal-meta { font-size: 0.85rem; color: var(--text-faint); }
.legal-back { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 0.9rem; }

.site-footer .footer-note { font-size: 0.82rem; color: var(--text-faint); }

/* --- V1 streamlined waitlist landing ------------------------------------- */
body.v1 { display: flex; flex-direction: column; min-height: 100dvh; }
.v1-main { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 40px 22px; }
.v1-wrap { width: 100%; max-width: 440px; }
.v1-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -0.01em; color: var(--text); margin-bottom: 30px; }
.v1-brand:hover { text-decoration: none; }
.v1-brand .mark { width: 22px; height: 22px; color: var(--text); }
.v1 h1 { font-size: clamp(1.7rem, 5.5vw, 2.2rem); font-weight: 660; letter-spacing: -0.02em; line-height: 1.12; }
.v1-lead { color: var(--text-muted); font-size: 1.02rem; line-height: 1.55; margin-top: 14px; }
.v1-form { margin-top: 24px; display: grid; gap: 12px; }
.v1-form .os-notice { margin: -4px 0 0; }
.v1-check { display: flex; gap: 9px; align-items: flex-start; font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; cursor: pointer; }
.v1-check input { margin-top: 3px; flex: none; }
.v1-check a { color: var(--text); text-decoration: underline; }
.v1-submit { width: 100%; margin-top: 4px; font-size: 1rem; padding: 12px 18px; }
.v1-note { margin-top: 18px; font-size: 0.85rem; color: var(--text-faint); line-height: 1.5; }
.v1-footer { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--text-faint); }
.v1-footer a { color: var(--text-muted); }

/* --- Success modal ------------------------------------------------------- */
.modal { border: none; padding: 0; background: transparent; max-width: 100%; max-height: 100%; color: var(--text); }
.modal::backdrop { background: rgba(14, 17, 22, 0.45); backdrop-filter: blur(2px); }
.modal-card { width: min(92vw, 400px); background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 30px 26px 26px; text-align: center; }
.modal-icon { width: 46px; height: 46px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--healthy) 14%, transparent); color: var(--healthy); }
.modal-title { font-size: 1.3rem; font-weight: 650; margin: 0 0 8px; }
.modal-body { color: var(--text-muted); line-height: 1.55; margin: 0 0 22px; font-size: 0.98rem; overflow-wrap: anywhere; }
.modal-close { width: 100%; }
.modal[open] .modal-card { animation: modalpop 0.18s ease both; }
@keyframes modalpop { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal[open] .modal-card { animation: none; } }

