/* ================================================================
   Account, pricing, and legal surfaces.
   Loaded after terminal.css; uses the terminal palette throughout.
   ================================================================ */

/* ─── Account navigation ────────────────────────────────────── */

.account-nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.nav-login,
.nav-account {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
  padding: 9px 2px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-login:hover,
.nav-account:hover {
  color: #f0f0f0;
  border-bottom-color: var(--accent);
}

.nav-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid #333;
  background: #080808;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfcfcf;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-status:hover {
  border-color: var(--accent);
}

.nav-status--trial {
  border-color: rgba(255, 158, 27, 0.4);
  color: var(--accent);
}

.nav-status--ok {
  border-color: rgba(61, 220, 132, 0.32);
  color: var(--green);
}

.nav-status--warn {
  border-color: rgba(255, 176, 32, 0.4);
  color: var(--amber);
}

/* ─── Auth & account pages ──────────────────────────────────── */

.auth-section {
  padding: 48px var(--gutter) 72px;
  border-bottom: 1px solid var(--stone);
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 52px;
  align-items: start;
}

.auth-intro {
  max-width: 470px;
  padding-top: 4px;
}

.auth-intro h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.04;
  margin-bottom: 16px;
}

.auth-lede {
  font-size: 14px;
  line-height: 1.75;
  color: #9a9a9a;
  margin-bottom: 24px;
}

.auth-points {
  list-style: none;
  border-top: 1px solid #242424;
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #1c1c1c;
  font-size: 12px;
  line-height: 1.6;
  color: #b8b8b8;
}

.auth-points li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

.auth-card {
  background: #090909;
  border: 1px solid #2c2c2c;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  padding: 24px 24px 20px;
}

.auth-card-title {
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.auth-card-sub {
  font-size: 12px;
  line-height: 1.6;
  color: #8f8f8f;
  margin-bottom: 18px;
}

.auth-card-sub strong {
  font-weight: 500;
  color: #d8d8d8;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.field-input {
  width: 100%;
  background: #050505;
  border: 1px solid #333;
  border-radius: 0;
  padding: 10px 11px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  color: #e6e6e6;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 158, 27, 0.16);
}

.field-input:-webkit-autofill {
  -webkit-text-fill-color: #e6e6e6;
  -webkit-box-shadow: 0 0 0 40px #050505 inset;
}

.field-hint {
  font-size: 11.5px;
  line-height: 1.5;
  color: #7a7a7a;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #9a9a9a;
}

.check-line input {
  margin-top: 3px;
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.check-line a {
  color: #d0d0d0;
  border-bottom: 1px solid #3a3a3a;
}

.check-line a:hover {
  border-bottom-color: var(--accent);
}

.auth-form .cf-turnstile {
  margin: 2px 0 4px;
  min-height: 65px;
}

.form-message {
  padding: 9px 11px;
  border: 1px solid #333;
  border-left-width: 3px;
  font-size: 11.5px;
  line-height: 1.55;
  margin: 0 0 14px;
  background: #0d0d0d;
  color: #bdbdbd;
}

.form-message:last-child {
  margin-bottom: 0;
}

.form-message--error {
  border-color: rgba(255, 107, 107, 0.32);
  border-left-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.07);
  color: #ffb3b3;
}

.form-message--success {
  border-color: rgba(61, 220, 132, 0.28);
  border-left-color: var(--green);
  background: rgba(61, 220, 132, 0.06);
  color: #8ce8b6;
}

.form-message--warn {
  border-color: rgba(255, 176, 32, 0.32);
  border-left-color: var(--amber);
  background: rgba(255, 176, 32, 0.06);
  color: #ffd08a;
}

.form-message--info {
  border-left-color: var(--accent);
}

.btn--block {
  width: 100%;
}

.link-button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0 0 2px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.link-button:hover {
  color: #ffd08a;
  border-bottom-color: var(--accent);
}

.auth-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-row--end {
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.auth-alt {
  font-size: 11.5px;
  color: #8f8f8f;
  margin-top: 14px;
}

.auth-alt a {
  color: #d0d0d0;
  border-bottom: 1px solid #3a3a3a;
}

.auth-alt a:hover {
  border-bottom-color: var(--accent);
}

.auth-fine {
  font-size: 11.5px;
  line-height: 1.6;
  color: #7a7a7a;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #222;
}

.text-link--small {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #3a3a3a;
  padding: 3px 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #cfcfcf;
  white-space: nowrap;
}

.status-badge--ok {
  border-color: rgba(61, 220, 132, 0.32);
  color: var(--green);
}

.status-badge--trial {
  border-color: rgba(255, 158, 27, 0.4);
  color: var(--accent);
}

.status-badge--warn {
  border-color: rgba(255, 176, 32, 0.4);
  color: var(--amber);
}

.account-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #222;
  font-size: 12px;
  color: #8f8f8f;
}

.account-row strong {
  font-weight: 500;
  color: #d8d8d8;
  overflow-wrap: anywhere;
}

.account-warning {
  border: 1px solid rgba(255, 176, 32, 0.28);
  border-left: 3px solid var(--amber);
  background: rgba(255, 176, 32, 0.05);
  padding: 13px 14px;
  margin: 16px 0;
}

.account-warning strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #e6e6e6;
  margin-bottom: 4px;
}

.account-warning p {
  font-size: 11.5px;
  line-height: 1.6;
  color: #9a9a9a;
  margin-bottom: 10px;
}

.account-plan,
.account-empty {
  border: 1px solid #2c2c2c;
  background: #080808;
  padding: 15px 15px 13px;
  margin: 16px 0;
}

.account-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-plan-head h3,
.account-empty h3 {
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.account-plan-head p,
.account-empty p {
  font-size: 11.5px;
  line-height: 1.6;
  color: #8f8f8f;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.account-actions--end {
  justify-content: flex-end;
  margin-top: 18px;
}

.account-fine {
  font-size: 11.5px;
  line-height: 1.6;
  color: #7a7a7a;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid #222;
}

.account-security {
  margin-top: 18px;
}

.account-security .account-row:last-child {
  border-bottom: 0;
}

/* ─── Pricing ───────────────────────────────────────────────── */

.pricing-hero {
  padding: 54px var(--gutter) 38px;
  border-bottom: 1px solid var(--stone);
}

.pricing-hero h1 {
  max-width: 820px;
  margin-bottom: 16px;
}

.pricing-lede {
  max-width: 640px;
  font-size: 14px;
  line-height: 1.75;
  color: #9a9a9a;
}

.pricing-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 20px;
}

.pricing-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 38px var(--gutter);
  border-bottom: 1px solid var(--stone);
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1px solid #2c2c2c;
  background: #080808;
  padding: 24px 22px 20px;
}

.plan-card--featured {
  border-color: #4a3a1c;
  box-shadow: inset 0 2px 0 var(--accent), 0 16px 38px rgba(0, 0, 0, 0.5);
}

.plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.plan-head h2 {
  font-size: 22px;
  line-height: 1.2;
}

.plan-flag {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 3px 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 2px 0;
}

.plan-amount {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #f5f5f5;
}

.plan-period {
  font-family: var(--mono);
  font-size: 12px;
  color: #8a8a8a;
}

.plan-list {
  font-family: var(--mono);
  font-size: 13px;
  color: #8f8f8f;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.plan-billing {
  font-size: 12px;
  line-height: 1.65;
  color: #8f8f8f;
}

.plan-list-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid #242424;
  border-bottom: 1px solid #242424;
}

.plan-list-items li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #c0c0c0;
}

.plan-list-items li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

.plan-card .btn {
  margin-top: auto;
}

.plan-fine {
  font-size: 11.5px;
  line-height: 1.55;
  color: #8f8f8f;
}

.pricing-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 38px;
  padding: 42px var(--gutter);
  border-bottom: 1px solid var(--stone);
}

.pricing-detail-main h2 {
  margin-bottom: 14px;
}

.pricing-detail-main > p {
  font-size: 13px;
  line-height: 1.75;
  color: #9a9a9a;
  max-width: 64ch;
  margin-bottom: 12px;
}

.pricing-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #242424;
}

.pricing-points strong {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d8d8d8;
  margin-bottom: 4px;
}

.pricing-points span {
  font-size: 11.5px;
  line-height: 1.6;
  color: #8a8a8a;
}

.pricing-note {
  border: 1px solid #2c2c2c;
  background: #080808;
  padding: 18px 18px 14px;
}

.pricing-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 12px 0;
}

.pricing-steps li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #222;
  font-size: 11.5px;
  line-height: 1.55;
  color: #c0c0c0;
}

.pricing-steps li span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 2px;
}

.pricing-note > p {
  font-size: 11.5px;
  line-height: 1.6;
  color: #7a7a7a;
}

.pricing-faq {
  padding: 42px var(--gutter) 50px;
}

.section-heading {
  margin-bottom: 22px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
}

.faq-item {
  padding: 16px 0;
  border-top: 1px solid #242424;
}

.faq-item h3 {
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 5px;
}

.faq-item p {
  font-size: 11.5px;
  line-height: 1.7;
  color: #8f8f8f;
}

/* ─── Legal pages ───────────────────────────────────────────── */

.legal-hero {
  padding: 52px var(--gutter) 32px;
  border-bottom: 1px solid var(--stone);
}

.legal-hero h1 {
  max-width: 760px;
  margin-bottom: 12px;
}

.legal-lede {
  max-width: 660px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #9a9a9a;
}

.legal-updated {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.legal-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 22px var(--gutter) 60px;
}

.legal-section {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 14px;
  padding: 22px 0;
  border-top: 1px solid #222;
}

.legal-section > h2,
.legal-section > p,
.legal-section > ul {
  grid-column: 2;
}

.legal-section > h2 {
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 7px;
}

.legal-section > p {
  font-size: 12.5px;
  line-height: 1.8;
  color: #9a9a9a;
  margin-bottom: 9px;
  max-width: 70ch;
}

.legal-section > p:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: #d0d0d0;
  border-bottom: 1px solid #3a3a3a;
}

.legal-section a:hover {
  border-bottom-color: var(--accent);
}

.legal-num {
  grid-row: 1 / span 2;
  grid-column: 1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--accent);
  padding-top: 5px;
}

@media (max-width: 920px) {
  .auth-grid,
  .pricing-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .auth-intro {
    max-width: none;
  }

  .pricing-note {
    max-width: 520px;
  }
}

@media (max-width: 820px) {
  .nav-login {
    display: none;
  }

  .nav-status {
    padding: 7px 8px;
    font-size: 11px;
  }

  .auth-section {
    padding: 32px 20px 48px;
  }

  .auth-card {
    padding: 20px 18px 18px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .pricing-hero {
    padding: 38px 24px 28px;
  }

  .pricing-detail,
  .pricing-faq {
    padding: 32px 24px;
  }

  .pricing-points,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pricing-points {
    gap: 14px;
  }

  .legal-hero {
    padding: 38px 24px 26px;
  }

  .legal-body {
    padding: 18px 24px 48px;
  }
}

@media (max-width: 520px) {
  .nav-status {
    display: none;
  }

  .nav-account {
    font-size: 11px;
  }

  .auth-intro h1 {
    font-size: 30px;
  }

  .account-plan-head {
    flex-direction: column;
    gap: 8px;
  }

  .account-row {
    flex-wrap: wrap;
  }

  .plan-head {
    flex-direction: column;
    gap: 8px;
  }

  .legal-section {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .legal-section > h2,
  .legal-section > p,
  .legal-section > ul {
    grid-column: 1;
  }

  .legal-num {
    grid-row: auto;
    padding-top: 0;
    margin-bottom: 4px;
  }
}
