:root {
  color-scheme: dark;
  --background: #090a0c;
  --surface: #121317;
  --surface-raised: #181a20;
  --border: #2a2c33;
  --text: #f4f5f7;
  --muted: #a0a5af;
  --accent: #dfe2ff;
  --accent-text: #151720;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -20%, #222633 0, transparent 38rem),
    var(--background);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
.light-button,
.login-button,
.plan-button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid #929cff;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.public-shell {
  width: min(100% - 48px, 1040px);
  margin: 0 auto;
}

.public-nav,
.auth-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.public-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.public-links a:hover,
.public-links a[aria-current="page"] {
  color: var(--text);
}

.login-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid #3a3d46;
  border-radius: 8px;
  background: #17191e;
  font-size: 14px;
}

.icon {
  width: 16px;
  height: 16px;
}

.public-hero,
.page-hero {
  max-width: 780px;
  padding: 96px 0 72px;
}

.page-hero.compact {
  padding-bottom: 48px;
}

.hero-label,
.section-label {
  margin: 0 0 18px;
  color: #9ba2b2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.public-hero h1,
.page-hero h1,
.legal-page h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.public-hero > p:not(.hero-label),
.page-hero > p:not(.section-label) {
  max-width: 680px;
  margin: 24px 0 0;
  color: #b8bdc7;
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.light-button,
.plan-button,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}

.light-button {
  padding: 13px 18px;
}

.text-link {
  color: #c7cbe0;
  font-size: 14px;
}

.home-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--border);
}

.home-proof article {
  padding: 32px 28px 32px 0;
}

.home-proof article + article {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.home-proof h2,
.explain-steps h2,
.limits h2,
.page-cta h2,
.pricing-notes h2 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-proof p,
.plain-callout p,
.explain-steps p,
.limits p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.plain-callout {
  max-width: 760px;
  padding: 28px 0;
}

.explain-steps {
  border-top: 1px solid var(--border);
}

.explain-steps article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.explain-steps article > span {
  padding-top: 4px;
  color: #858da0;
  font-size: 12px;
}

.explain-steps p {
  max-width: 700px;
}

.limits,
.legal-warning {
  margin-top: 44px;
  padding: 28px;
  border: 1px solid #343741;
  border-radius: 10px;
  background: var(--surface);
}

.page-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.page-cta h2 {
  margin: 0;
}

.public-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.public-prices article {
  padding: 36px;
  background: var(--surface);
}

.public-prices article + article {
  border-left: 1px solid var(--border);
  background: var(--surface-raised);
}

.plan-name {
  font-size: 22px;
  font-weight: 600;
}

.public-price {
  margin: 28px 0;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.public-price small {
  display: inline;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.allowance {
  display: flex;
  gap: 48px;
  padding-bottom: 28px;
}

.allowance strong {
  font-size: 21px;
  font-weight: 600;
}

.allowance span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.plan-button {
  width: 100%;
  justify-content: space-between;
  padding: 13px 15px;
}

.public-tax {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pricing-notes {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.pricing-notes ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
  padding-left: 20px;
  color: #b7bcc6;
}

.faq-list {
  max-width: 800px;
  border-top: 1px solid var(--border);
}

.faq-list details {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
}

.faq-list summary::after {
  content: "+";
  color: var(--muted);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 700px;
  margin: 16px 36px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-list a {
  color: #d0d4eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.public-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 72px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.public-footer .wordmark {
  color: var(--text);
  font-size: 16px;
}

.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}

.public-footer a:hover {
  color: var(--text);
}

.auth-nav {
  width: min(100% - 48px, 960px);
  margin: 0 auto;
  justify-content: space-between;
}

.auth-nav > a:last-child {
  color: var(--muted);
  font-size: 14px;
}

.auth-main {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.auth-card {
  width: min(100%, 420px);
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.auth-card > p:not(.section-label) {
  margin: 0 0 28px;
  color: var(--muted);
}

.auth-card label:not(.legal-check),
#forgot-form label {
  display: block;
  margin: 18px 0 8px;
  color: #c8cbd3;
  font-size: 14px;
}

.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #3b3e47;
  border-radius: 7px;
  background: #0b0c0f;
  color: var(--text);
}

.legal-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.legal-check input {
  margin-top: 4px;
}

.legal-check a,
.legal-page a {
  color: #d0d4eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.primary {
  width: 100%;
  margin-top: 22px;
  padding: 13px 16px;
}

#auth-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: #efa5a5;
  font-size: 13px;
}

.auth-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  font-size: 13px;
}

.auth-actions a,
.auth-actions button,
.auth-switch a {
  border: 0;
  background: none;
  color: #c8cce3;
  padding: 0;
}

.auth-switch {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.text-button {
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: none;
  color: var(--muted);
}

.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 0 24px;
}

.legal-page h1 {
  margin-bottom: 28px;
  font-size: 52px;
}

.legal-page > p,
.legal-page li,
.legal-warning {
  color: #b3b8c2;
  line-height: 1.75;
}

.legal-page h2 {
  margin: 44px 0 14px;
  font-size: 22px;
}

.legal-page li {
  margin-bottom: 10px;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
}

.legal-page th,
.legal-page td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal-page td {
  color: var(--muted);
}

@media (max-width: 700px) {
  .public-shell,
  .auth-nav {
    width: min(100% - 36px, 1040px);
  }

  .public-links {
    display: none;
  }

  .login-button {
    margin-left: auto;
  }

  .public-hero,
  .page-hero {
    padding: 56px 0 44px;
  }

  .public-hero h1,
  .page-hero h1,
  .legal-page h1 {
    font-size: 42px;
  }

  .public-hero > p:not(.hero-label),
  .page-hero > p:not(.section-label) {
    font-size: 17px;
  }

  .home-proof,
  .public-prices,
  .pricing-notes ul {
    grid-template-columns: 1fr;
  }

  .home-proof article,
  .home-proof article + article {
    padding: 24px 0;
    border-left: 0;
  }

  .home-proof article + article,
  .public-prices article + article {
    border-top: 1px solid var(--border);
  }

  .public-prices article + article {
    border-left: 0;
  }

  .public-prices article {
    padding: 28px;
  }

  .public-footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .public-footer nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .legal-main {
    padding-top: 48px;
  }

  .legal-page table,
  .legal-page thead,
  .legal-page tbody,
  .legal-page tr,
  .legal-page th,
  .legal-page td {
    display: block;
  }

  .legal-page th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .legal-page td {
    padding-top: 4px;
  }
}
