/* Built from Labs/Source Claude.htm production CSS patterns */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  font-family: var(--font-sans);
  font-size: var(--body-2);
  line-height: var(--lh-loose);
  font-weight: var(--fw-regular);
  color: var(--fg-primary);
  background: var(--bg-primary);
  font-feature-settings: "pnum" on, "lnum" on, "liga" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

::selection {
  background: color-mix(in srgb, var(--accent-bright) 35%, transparent);
  color: var(--fg-primary);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
ul { list-style: none; }

.container {
  max-width: var(--max-width-main);
  width: calc(100% - 2 * var(--container-margin));
  margin-left: auto;
  margin-right: auto;
}

/* ─── Nav (fixed, solid, 72px) ─── */
.nav {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--bg-primary);
}
.nav-inner {
  max-width: var(--max-width-main);
  width: calc(100% - 2 * var(--container-margin));
  margin: 0 auto;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-primary);
}
.logo-mark {
  width: 32px;
  height: 32px;
  color: var(--accent-bright);
  flex-shrink: 0;
}
.logo-word {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: var(--fw-480);
  letter-spacing: -0.025em;
}
.logo-word em {
  font-style: normal;
  font-weight: var(--fw-medium);
  color: var(--accent-bright);
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-24);
}
.nav-links a {
  font-size: var(--body-3);
  color: var(--fg-secondary);
  padding: var(--sp-8) 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg-primary); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
}
.nav-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--fg-primary);
  margin-left: 2px;
}
.nav-menu-btn:hover {
  background: var(--bg-tertiary);
}
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--container-margin) 16px;
  border-top: 0.5px solid var(--border-tertiary);
  background: var(--bg-primary);
  animation: navDrawerIn 0.2s var(--ease-out, ease);
}
.nav-drawer[hidden] { display: none !important; }
/* Menu links only — not the CTA .btn anchors */
.nav-drawer > a:not(.btn) {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--fg-secondary);
  min-width: 0;
}
.nav-drawer > a:not(.btn):hover {
  background: var(--bg-tertiary);
  color: var(--fg-primary);
}
.nav-drawer-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 0.5px solid var(--border-tertiary);
}
.nav-drawer-cta .btn {
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  box-sizing: border-box;
}
@keyframes navDrawerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-menu-btn { display: none !important; }
  .nav-drawer { display: none !important; }
}
@media (max-width: 899px) {
  .nav-menu-btn { display: inline-flex; }
  .nav-drawer:not([hidden]) { display: flex; }
  .nav-cta .btn-soft { display: none; }
  body.nav-drawer-open { overflow: hidden; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  min-width: 6rem;
  height: 44px;
  padding: 0 var(--sp-20);
  border-radius: var(--br-btn);
  font-size: var(--body-2);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 0.5px solid transparent;
  transition: transform 0.1s, background-color 0.1s, border-color 0.1s, opacity 0.15s;
  user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-weight: var(--btn-primary-weight, 500);
  border: none;
  transition: transform 0.15s var(--ease-out), opacity 0.15s;
}
.btn-primary:hover { opacity: 0.92; }
.btn-secondary {
  background: var(--btn-secondary-bg);
  border: 0.5px solid var(--btn-secondary-border);
  color: var(--btn-secondary-fg);
  font-weight: var(--btn-secondary-weight, 480);
}
.btn-secondary:hover { background: var(--color-gray-700); }
.btn-soft {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-fg);
  border: none;
  font-weight: var(--btn-secondary-weight, 480);
}
.btn-soft:hover { background: var(--color-gray-700); }
.btn-clay {
  background: var(--btn-clay-bg);
  color: var(--btn-clay-fg);
  border: none;
}
.btn-clay:hover { background: var(--accent-bright); }
.btn-block { width: 100%; }
.btn-sm { height: 40px; font-size: var(--body-3); padding: 0 16px; }
.btn-pill { border-radius: var(--br-pill); }

/* ─── Hero ─── */
.hero {
  padding-top: var(--nav-height);
  background: var(--bg-primary);
  /* #access lands at page top (fixed nav already padded in) */
  scroll-margin-top: 0;
}
.hero-grid {
  display: grid;
  gap: var(--gap-lg);
  min-height: min(100vh - var(--nav-height), 900px);
  align-items: center;
  padding: var(--sp-32) 0 var(--sp-64);
}
@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gap-md);
}
.hero-headline {
  font-family: var(--font-serif);
  font-feature-settings: "pnum" on, "lnum" on, "liga" on;
  font-size: var(--display-1);
  font-weight: var(--fw-330);
  line-height: var(--lh-tighter);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
@media (max-width: 833px) {
  .hero-headline { font-size: 51px; line-height: 1.2; }
}
@media (max-width: 349px) {
  .hero-headline { font-size: 28px; }
}
.hero-subhead {
  font-family: var(--font-sans);
  font-size: var(--body-large-2);
  line-height: var(--lh-relaxed);
  color: var(--fg-tertiary);
  margin: calc(var(--sp-16) - var(--gap-md)) 0 0;
  max-width: 28rem;
}
.hero-login {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Login / token card — polished Claude-style gate */
.login-root {
  width: 100%;
  min-width: 18rem;
  max-width: 22rem;
}
.login-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--border-secondary);
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-elevated) 100%, #fff 2%) 0%,
    var(--bg-elevated) 100%
  );
  text-align: center;
  padding: 22px 22px 0;
  overflow: hidden;
  box-shadow:
    0 1px 0 #ffffff08 inset,
    0 12px 40px -12px #00000070;
}
.login-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40%;
  width: 140%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--accent-bright) 12%, transparent) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.login-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 1;
}
.login-label {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: var(--fw-regular);
  color: var(--fg-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
  cursor: text;
}
.login-field {
  width: 100%;
  margin-bottom: 8px;
}
.login-input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 0.5px solid var(--border-secondary);
  background: var(--bg-primary);
  color: var(--input-text);
  font-family: var(--font-sans);
  font-size: var(--body-2);
  text-align: center;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.login-input.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
  word-break: break-all;
}
.login-input::placeholder {
  color: var(--input-placeholder);
  letter-spacing: 0;
  font-weight: 400;
  font-family: var(--font-sans);
  font-size: 13.5px;
  text-transform: none;
}
.login-input:hover {
  border-color: var(--border-primary);
  background: color-mix(in srgb, var(--bg-primary) 80%, var(--bg-tertiary));
}
.login-input:focus {
  border-color: color-mix(in srgb, var(--accent-bright) 70%, var(--border-primary));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-bright) 18%, transparent);
  background: var(--bg-primary);
}
.login-input.token-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-error) 16%, transparent);
}
.login-err {
  display: none;
  font-size: 12px;
  color: var(--color-error);
  margin: 0 0 8px;
  text-align: center;
  line-height: 1.4;
}
.login-err.show { display: block; }
.login-submit {
  margin-top: 2px;
  height: 42px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.login-ok-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: var(--fw-330);
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 14px;
}
.login-ok-title em {
  font-style: italic;
  color: var(--accent-bright);
}
.login-body.ok-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-bottom: 2px;
}
.login-body.ok-state[hidden],
.login-body.form-state[hidden] {
  display: none !important;
}
.login-card.shake { animation: shake 0.35s var(--ease); }
.login-download {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  padding: 12px 8px 14px;
  border-top: 0.5px solid var(--border-tertiary);
  background: color-mix(in srgb, var(--bg-primary) 35%, transparent);
  border-radius: 0 0 24px 24px;
}
.login-waitlist {
  font-size: 13px;
  color: var(--fg-tertiary);
  text-decoration: none;
  transition: color 0.15s;
}
.login-waitlist span {
  color: var(--fg-secondary);
  border-bottom: 1px solid var(--border-secondary);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.login-waitlist:hover,
.login-waitlist:hover span {
  color: var(--fg-primary);
}
.login-waitlist:hover span {
  border-bottom-color: var(--fg-primary);
}

/* Hero media — always visible; stacks under content on small screens */
.hero-asset {
  display: block;
  width: 100%;
}
.hero-media {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--br-16);
  border: 1px solid var(--border-secondary);
  background: var(--bg-secondary);
  box-shadow: 0 24px 64px -20px #00000080;
}
@media (max-width: 1199px) {
  .hero-media {
    aspect-ratio: 16 / 10;
    max-height: 320px;
  }
}

/* ─── Sections ─── */
.section {
  padding: var(--section-main) 0;
}
.section-tight { padding-bottom: var(--section-sm); }
.section-muted {
  background: var(--bg-secondary);
  border-top: 0.5px solid var(--border-tertiary);
  border-bottom: 0.5px solid var(--border-tertiary);
}
.section-title {
  text-align: center;
  margin-bottom: var(--section-md);
}
.section-title h2 {
  font-family: var(--font-serif);
  font-size: var(--headline-1);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-12);
}
.section-title p {
  font-size: var(--body-1);
  color: var(--fg-tertiary);
  max-width: 32rem;
  margin: 0 auto;
  line-height: var(--lh-loose);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  margin-bottom: var(--sp-12);
}

/* ─── Features ─── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-sm);
}
@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
}
.feature {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-secondary);
  border-radius: var(--br-24);
  padding: var(--sp-28, 28px) var(--sp-24);
  transition: border-color 0.2s, background 0.2s;
}
.feature:hover {
  border-color: var(--border-primary);
  background: var(--bg-tertiary);
}
.feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: var(--sp-16);
  min-height: 20px;
}
.feature-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-tertiary);
}
.feature h3 {
  font-size: var(--headline-5);
  font-weight: var(--fw-medium);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  border: 0.5px solid var(--border-secondary);
  border-radius: var(--br-pill);
  padding: 2px 8px;
}
.feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-secondary);
}

/* ─── Plans (from Source Plans-module) ─── */
.plans-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: var(--gap-lg);
  gap: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--br-pill);
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.plans-tabs button {
  height: 36px;
  padding: 0 18px;
  border-radius: var(--br-pill);
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--fg-tertiary);
}
.plans-tabs button.active {
  background: var(--bg-primary);
  color: var(--fg-primary);
  box-shadow: 0 1px 3px #00000040;
}

/* Unlimited — quiet note under plans title (not a banner) */
.plans-note {
  margin-top: var(--sp-20);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-tertiary);
}
.plans-note a {
  color: var(--fg-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: var(--fw-medium);
}
.plans-note a:hover { color: var(--fg-primary); }

.plans-grid {
  display: grid;
  gap: var(--gap-md);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: var(--sp-32);
  border-radius: var(--br-24);
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-secondary);
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.plan:hover {
  border-color: var(--border-primary);
  background: var(--bg-tertiary);
}
/* Highlight without glow — just a quieter elevation step */
.plan.highlight {
  background: var(--bg-tertiary);
  border-color: var(--border-primary);
}
.plan-badge {
  position: absolute;
  top: var(--sp-20);
  right: var(--sp-20);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  border: 0.5px solid var(--border-secondary);
  border-radius: var(--br-pill);
  padding: 4px 10px;
}
.plan-pictogram {
  width: 64px;
  height: 64px;
  margin-bottom: var(--sp-24);
  object-fit: contain;
  filter: brightness(1.12) contrast(0.95);
  opacity: 0.92;
}
.plan-name {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-serif);
  font-weight: var(--fw-regular);
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.01em;
}
.plan-sub {
  font-family: var(--font-sans);
  color: var(--fg-secondary);
  margin: 0 0 var(--sp-24);
  font-size: 16px;
  line-height: 24px;
}
.plan-price {
  font-weight: var(--fw-semibold);
  color: var(--fg-primary);
  font-size: 24px;
  line-height: 32px;
}
.plan-price .num {
  font-family: var(--font-serif);
  font-weight: var(--fw-regular);
  font-size: 40px;
  letter-spacing: -0.02em;
}
.plan-note {
  color: var(--fg-tertiary);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-24);
  font-size: 14px;
  line-height: 20px;
  min-height: 40px;
}
.plan-cta {
  margin-top: var(--sp-16);
  margin-bottom: var(--sp-24);
  display: flex;
  flex-direction: column;
}
.plan-cta-caption {
  text-align: center;
  color: var(--fg-tertiary);
  margin-top: var(--sp-8);
  font-size: 12px;
  line-height: 16px;
}
.plan-divider {
  border: none;
  border-top: 0.5px solid var(--border-secondary);
  margin-bottom: var(--sp-24);
}
.plan-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  flex: 1;
}
.plan-features li {
  display: grid;
  grid-template-columns: var(--sp-20) 1fr;
  gap: var(--sp-12);
  color: var(--fg-secondary);
  font-size: 16px;
  line-height: 1.625;
  align-items: start;
}
.plan-features .check {
  color: var(--fg-primary);
  flex-shrink: 0;
  transform: translateY(2px);
  width: 16px;
  height: 16px;
}
.plans-disclaimer {
  text-align: center;
  color: var(--fg-tertiary);
  margin-top: var(--gap-md);
  font-size: 13px;
  line-height: 1.5;
}

/* ─── Terminal split ─── */
.split {
  display: grid;
  gap: var(--gap-lg);
  align-items: center;
}
@media (min-width: 1000px) {
  .split { grid-template-columns: 1fr 1.1fr; }
}
.split-copy h2 {
  font-family: var(--font-serif);
  font-size: var(--headline-1);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-16);
}
.split-copy > p {
  font-size: var(--body-1);
  color: var(--fg-tertiary);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-32);
  max-width: 34ch;
}
.steps { margin-bottom: var(--sp-32); }
.steps li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 0.5px solid var(--border-tertiary);
}
.steps li:last-child { border-bottom: 0.5px solid var(--border-tertiary); }
.steps .n {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps b { display: block; font-size: 15px; font-weight: var(--fw-medium); margin-bottom: 2px; }
.steps span { font-size: 14px; color: var(--fg-secondary); }

/* CLI section — fuller, still on-system */
.inline-code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--fg-secondary);
  background: var(--bg-tertiary);
  padding: 1px 7px;
  border-radius: 5px;
}
.cli-block {
  max-width: 720px;
  margin: 0 auto 36px;
}
.cli-block-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--fg-tertiary);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.cli-copy-btn {
  height: 32px;
  padding: 0 16px;
  border-radius: var(--br-pill);
  border: 0.5px solid var(--border-secondary);
  background: var(--bg-elevated);
  color: var(--fg-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.cli-copy-btn:hover {
  color: var(--fg-primary);
  border-color: var(--border-primary);
}
.cli-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  border-radius: var(--br-16);
  border: 0.5px solid var(--border-secondary);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: border-color 0.15s;
}
.cli-line:hover { border-color: var(--border-primary); }
.cli-prompt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-tertiary);
  flex-shrink: 0;
  user-select: none;
}
.cli-line code {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--fg-primary);
  letter-spacing: -0.01em;
  word-break: break-all;
  line-height: 1.5;
}

.cli-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.cli-step {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-secondary);
  border-radius: var(--br-16);
  padding: 22px 20px;
  transition: border-color 0.15s;
}
.cli-step:hover { border-color: var(--border-primary); }
.cli-step-n {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-tertiary);
  margin-bottom: 12px;
}
.cli-step h3 {
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.cli-step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-secondary);
}

.cli-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 0;
}
.cli-note {
  padding: 18px 18px;
  border-radius: var(--br-16);
  border: 0.5px solid var(--border-tertiary);
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cli-note strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-primary);
}
.cli-note span {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-secondary);
}
.cli-note a {
  color: var(--fg-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cli-note a:hover { color: var(--accent-bright, var(--accent)); }

@media (max-width: 900px) {
  .cli-steps,
  .cli-notes { grid-template-columns: 1fr; }
}

/* ─── Quote ─── */
.quote {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}
.quote blockquote {
  font-family: var(--font-serif);
  font-size: var(--headline-3);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-20);
}
.quote em { font-style: italic; color: var(--accent-bright); }
.quote cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}

/* ─── FAQ ─── */
.faq { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 0.5px solid var(--border-tertiary); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  text-align: left;
  padding: 22px 0;
  font-size: var(--body-1);
  font-weight: var(--fw-medium);
  color: var(--fg-primary);
}
.faq-q .ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0.5px solid var(--border-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-secondary);
  flex-shrink: 0;
  font-size: 16px;
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.faq-item.open .ico {
  transform: rotate(45deg);
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: #fff;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s var(--ease);
}
.faq-a p {
  font-family: var(--font-serif);
  padding: 0 0 22px;
  color: var(--fg-secondary);
  font-size: var(--body-2);
  line-height: var(--lh-loose);
  max-width: 36rem;
}
.faq-a code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-tertiary);
  border-radius: 4px;
  padding: 2px 6px;
}

/* ─── CTA band ─── */
.cta-band {
  background: var(--color-gray-1000);
  color: var(--color-gray-050);
  padding: var(--section-main) 0;
  text-align: center;
  border-top: 0.5px solid var(--border-tertiary);
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: var(--headline-1);
  font-weight: var(--fw-regular);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-12);
}
.cta-band p {
  color: var(--color-gray-400);
  font-size: var(--body-1);
  max-width: 28rem;
  margin: 0 auto var(--sp-32);
  line-height: var(--lh-loose);
}
.cta-band .btn-primary {
  background: var(--color-gray-050);
  color: var(--color-gray-950);
}

/* ─── Footer ─── */
.footer {
  background: var(--bg-primary);
  border-top: 0.5px solid var(--border-tertiary);
  padding: var(--sp-80) 0 var(--sp-32);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-40);
  margin-bottom: var(--sp-48);
}
.footer-brand p {
  margin-top: var(--sp-12);
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--fg-tertiary);
  max-width: 24ch;
  line-height: 1.5;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  margin-bottom: var(--sp-12);
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--fg-secondary);
  padding: 5px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--fg-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: var(--sp-24);
  border-top: 0.5px solid var(--border-tertiary);
  font-size: 12.5px;
  color: var(--fg-tertiary);
}
.footer-bottom a { color: var(--fg-tertiary); margin-left: 14px; }
.footer-bottom a:hover { color: var(--fg-primary); }

/* ─── Access pages ─── */
.access-main {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 48px) var(--container-margin) 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
}
.access-card {
  width: 100%;
  max-width: 28rem;
  border: 0.5px solid var(--border-secondary);
  border-radius: var(--br-32);
  background: var(--bg-elevated);
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow:
    0 4px 24px #00000055,
    0 8px 40px #00000040,
    0 0 0 1px #ffffff06;
}
.access-card .star {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--accent-bright);
}
.access-card h1 {
  font-family: var(--font-serif);
  font-weight: var(--fw-330);
  font-size: var(--headline-2);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.access-card h1 em {
  font-style: italic;
  color: var(--accent-bright);
}
.access-card .lead {
  font-size: var(--body-2);
  color: var(--fg-tertiary);
  margin-bottom: 24px;
  line-height: 1.55;
}
.field {
  width: 100%;
  height: 48px;
  background: var(--input-bg);
  color: var(--input-text);
  border: 0.5px solid var(--border-secondary);
  border-radius: var(--br-12);
  padding: 0 16px;
  font-size: 15px;
  text-align: center;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field::placeholder { color: var(--input-placeholder); }
.field.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 12.5px;
  word-break: break-all;
}
.field:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-bright) 22%, transparent);
}
.field.err {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-error) 15%, transparent);
}
.err {
  display: none;
  font-size: 13px;
  color: var(--color-error);
  margin: -4px 0 12px;
}
.err.show { display: block; }
.login-input.token-error { display: block; }
.hint {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-tertiary);
  margin: -2px 0 12px;
}
.hint.show { display: block; }
.hint button {
  color: var(--accent-bright);
  text-decoration: underline;
  cursor: pointer;
}
.alt-link {
  margin-top: 14px;
  font-size: 13px;
  color: var(--fg-tertiary);
}
.alt-link a {
  color: var(--fg-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ok-state { display: none; }
.card-success .form-state { display: none; }
.card-success .ok-state { display: block; }
.ok-badge {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: color-mix(in srgb, var(--accent-bright) 14%, transparent);
  border-radius: var(--br-pill);
  padding: 6px 12px;
  margin-bottom: 16px;
}
.pos-box {
  background: var(--bg-tertiary);
  border-radius: var(--br-16);
  padding: 20px;
  margin: 16px 0 24px;
}
.pos-box .num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: var(--fw-330);
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}
.pos-box .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  margin-top: 6px;
}
.loading-state { display: none; padding: 16px 0; }
.card-loading .form-state { display: none; }
.card-loading .loading-state { display: block; }
.spinner {
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--border-secondary);
  border-top-color: var(--accent-bright);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  background: var(--color-gray-850, #1f1e1d);
  color: var(--fg-primary);
  border: 0.5px solid var(--border-secondary);
  font-size: 13.5px;
  padding: 12px 18px;
  border-radius: var(--br-pill);
  box-shadow: 0 16px 40px #00000060;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.2s, transform 0.2s;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast .st { color: var(--accent-bright); }

.shake { animation: shake 0.35s var(--ease); }
@keyframes shake {
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}

.rv {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── Phone / mobile polish ─── */
@media (max-width: 833px) {
  :root {
    --section-main: 72px;
    --section-md: 48px;
    --container-margin: clamp(1rem, 4.5vw, 1.5rem);
  }

  .logo-mark { width: 28px; height: 28px; }
  .logo-word { font-size: 20px; }
  .nav-inner { height: 60px; }
  .hero { padding-top: 60px; }
  body { --nav-height: 60px; }

  .hero-grid {
    min-height: auto;
    gap: 28px;
    padding: 28px 0 48px;
  }
  .hero-content {
    gap: 16px;
  }
  .hero-headline {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.12;
  }
  .hero-subhead {
    font-size: 16px;
    margin-top: 4px;
    max-width: 22rem;
  }

  /* Soft glow so hero isn't a flat wall of text */
  .hero {
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8%;
    width: 120%;
    height: 55%;
    transform: translateX(-50%);
    background: radial-gradient(
      ellipse at center,
      color-mix(in srgb, var(--accent-bright) 14%, transparent) 0%,
      transparent 70%
    );
    pointer-events: none;
    z-index: 0;
  }
  .hero .container { position: relative; z-index: 1; }

  .login-root {
    min-width: 0;
    max-width: 100%;
  }
  .login-card {
    border-radius: 22px;
    padding: 20px 18px 0;
  }

  /* Show media earlier as a visual anchor */
  .hero-asset {
    display: block;
    margin-top: 4px;
  }
  .hero-media {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    max-height: 220px;
    object-fit: cover;
  }

  .section-title h2 {
    font-size: clamp(26px, 7vw, 34px);
  }
  .section-title p {
    font-size: 15px;
  }

  /* Feature cards: more presence on small screens */
  .feature {
    padding: 22px 18px;
    border-radius: 20px;
    background: linear-gradient(
      165deg,
      color-mix(in srgb, var(--bg-elevated) 100%, #fff 3%) 0%,
      var(--bg-elevated) 100%
    );
  }
  .feature h3 { font-size: 17px; }
  .feature p { font-size: 14px; }

  .plan {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .plan-name { font-size: 20px; }

  .cli-block {
    border-radius: 18px;
    padding: 14px;
  }
  .cli-line {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
    text-align: left;
  }
  .cli-line code {
    font-size: 12px;
    word-break: break-all;
    white-space: normal;
  }
  .cli-copy-btn {
    width: 100%;
    justify-content: center;
  }
  .cli-block-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cta-band {
    padding: 48px 0;
    text-align: center;
  }
  .cta-band h2 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .quote blockquote {
    font-size: clamp(22px, 6vw, 28px);
  }

  .faq-item {
    border-radius: 14px;
  }
  .faq-q {
    padding: 16px 14px;
    font-size: 15px;
  }

  .btn-block {
    min-height: 44px;
  }
}

@media (max-width: 400px) {
  .nav-cta .btn-primary {
    font-size: 13px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .logo-word { font-size: 18px; }
  .hero-headline {
    font-size: 30px;
  }
}
