:root {
  color-scheme: light;
  --brand: #1f5f63;
  --brand-hover: #17494c;
  --brand-tint: #eaf4f3;
  --brand-border: #c9dedc;
  --heading: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --white: #ffffff;
  --focus-ring: rgba(31, 95, 99, 0.25);
  --danger: #b91c1c;
  --success: #15803d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background: var(--brand);
  padding: 20px 24px;
}

.site-header-inner,
.landing-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.site-header-bar .brand,
.landing-header .brand {
  max-width: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

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

.brand-mark {
  display: block;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.brand-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.site-nav,
.landing-nav {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  font-size: 13px;
  font-weight: 600;
}

.site-nav [hidden],
.landing-nav [hidden] {
  display: none !important;
}

.site-nav a:not(.site-nav-cta),
.landing-nav a:not(.landing-nav-cta) {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.site-nav a:not(.site-nav-cta):hover,
.landing-nav a:not(.landing-nav-cta):hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav a.site-nav-cta,
.landing-nav a.landing-nav-cta {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: var(--white);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.site-nav a.site-nav-cta:hover,
.landing-nav a.landing-nav-cta:hover {
  background: var(--brand-tint);
  border-color: var(--brand-border);
  color: var(--brand-hover);
  text-decoration: none;
}

.site-nav-signout,
.landing-nav-signout {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.site-nav-signout:hover,
.landing-nav-signout:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.page-body {
  flex: 1;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.page-header {
  margin-bottom: 24px;
}

.headline {
  margin: 0;
  color: var(--heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.subline {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
}

.card h2 {
  margin: 0 0 12px;
  color: var(--heading);
  font-size: 16px;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
}

input[type="email"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  font-size: 14px;
}

input[type="email"]:focus {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
  border-color: var(--brand);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease;
}

button:hover,
.btn:hover {
  background: var(--brand-hover);
}

button:focus,
.btn:focus {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

button.secondary,
.btn.secondary {
  background: transparent;
  border: 1px solid var(--brand-border);
  color: var(--brand);
}

button.secondary:hover,
.btn.secondary:hover {
  background: var(--brand-tint);
  border-color: var(--brand-border);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

.page-body.pricing-page {
  width: min(100%, 1200px);
}

.pricing-site {
  background: linear-gradient(
    165deg,
    var(--brand-tint) 0%,
    var(--white) 42%,
    #f6faf9 100%
  );
}

.pricing-shell {
  padding: 0;
}

.pricing-shell > .status {
  margin-top: 20px;
}

.plan-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px 16px 14px;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  background: var(--white);
}

.plan-card-free {
  border-color: var(--brand-border);
}

.plan-card-standard {
  border-color: #b8d4d2;
  box-shadow: 0 2px 8px rgba(31, 95, 99, 0.04);
}

.plan-card-pro {
  border: 2px solid var(--brand);
  box-shadow: 0 10px 28px rgba(31, 95, 99, 0.12);
}

.plan-card-enterprise {
  border-color: var(--brand-border);
  background: var(--white);
}

.plan-badge-row {
  min-height: 22px;
  margin-bottom: 6px;
}

.plan-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.plan-badge-primary {
  background: var(--brand);
  color: var(--white);
}

.plan-badge-soft {
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  color: var(--brand);
}

.plan-badge-muted {
  background: var(--white);
  border: 1px solid var(--brand-border);
  color: var(--muted);
}

.plan-card h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 700;
}

.plan-amount {
  margin: 0 0 4px;
  line-height: 1.2;
}

.plan-amount-value {
  color: var(--heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-amount-value.plan-amount-custom {
  font-size: 24px;
}

.plan-amount-period {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.plan-limit {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}

.plan-price {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}

.plan-subtitle {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.plan-features {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}

.plan-features li + li {
  margin-top: 4px;
}

.plan-cta {
  width: 100%;
  margin-top: auto;
  text-align: center;
}

.btn-outline {
  background: var(--white);
  border: 1px solid var(--brand-border);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand-tint);
  border-color: var(--brand-border);
  color: var(--brand);
}

.btn-soft {
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  color: var(--brand);
}

.btn-soft:hover {
  background: #dceee9;
  border-color: #b8d4d2;
  color: var(--brand-hover);
}

.plan-cta.is-current,
button.plan-cta:disabled {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
}

button.plan-cta:disabled {
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  color: var(--brand);
}

button.plan-cta:disabled:hover {
  background: var(--brand-tint);
  border-color: var(--brand-border);
  color: var(--brand);
}

#pro-btn:disabled {
  background: var(--brand);
  border: none;
  color: var(--white);
  opacity: 0.72;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  font-size: 13px;
}

.nav-links a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brand-border);
  text-underline-offset: 3px;
}

.nav-links a:hover {
  color: var(--brand-hover);
}

.policy-prose h2 {
  margin: 24px 0 8px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 700;
}

.policy-prose h2:first-child {
  margin-top: 0;
}

.policy-prose h3 {
  margin: 16px 0 6px;
  color: var(--heading);
  font-size: 15px;
  font-weight: 700;
}

.policy-prose p,
.policy-prose li {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

.policy-prose ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.policy-prose ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

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

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 24px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.site-footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.site-footer a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .site-header {
    padding: 24px 32px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
  }

  .brand-text {
    font-size: 24px;
  }

  .page-body {
    padding: 40px 32px 48px;
  }

  .headline {
    font-size: 30px;
  }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .plan-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Landing page */

.landing-site {
  background: var(--white);
}

.landing-header .brand {
  max-width: none;
}

.landing-main {
  flex: 1;
}

.landing-container {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 0 24px;
}

.landing-container-narrow {
  width: min(100%, 720px);
}

.landing-hero {
  padding: 36px 0 28px;
  background: linear-gradient(180deg, var(--brand-tint) 0%, var(--white) 72%);
  border-bottom: 1px solid var(--brand-border);
}

.landing-hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.landing-hero-copy {
  min-width: 0;
}

.landing-headline {
  margin: 0;
  color: var(--heading);
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.landing-lead {
  margin: 14px 0 0;
  max-width: 36rem;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.landing-btn-primary {
  padding: 12px 22px;
  font-size: 15px;
}

.landing-btn-outline-on-tint {
  background: var(--white);
}

.landing-btn-outline-on-tint:hover {
  background: var(--brand-tint);
}

.landing-hero-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Hero product mock */

.landing-hero-visual {
  min-width: 0;
}

.hero-mock {
  display: grid;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.hero-mock-answer {
  padding: 14px 16px;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.hero-mock-answer-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-mock-answer-text {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.hero-mock-challenge-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 12px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-mock-panel {
  padding: 14px 16px;
  border: 2px solid var(--brand);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(31, 95, 99, 0.12);
}

.hero-mock-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--brand-border);
  color: var(--heading);
  font-size: 14px;
  font-weight: 700;
}

.hero-mock-panel-mark {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.hero-mock-status {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.hero-mock-insight {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.hero-mock-points {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.hero-mock-points li + li {
  margin-top: 6px;
}

.landing-section {
  padding: 28px 0;
}

.landing-section-tight {
  padding: 24px 0;
}

.landing-problem-solution {
  padding: 24px 0;
  border-bottom: 1px solid var(--brand-border);
  background: var(--white);
}

.landing-problem-solution-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.landing-problem-heading {
  margin: 0;
  color: var(--heading);
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight: 700;
  line-height: 1.4;
}

.landing-solution-col {
  padding: 18px 20px;
}

.landing-solution-heading {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.landing-solution-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.landing-section-title {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

.landing-section-intro {
  margin: 0 0 16px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.landing-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.landing-step {
  padding: 18px 16px;
  min-height: 100%;
}

.landing-step h3 {
  margin: 0 0 6px;
  color: var(--heading);
  font-size: 15px;
  font-weight: 700;
}

.landing-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.landing-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.landing-features-section {
  background: linear-gradient(180deg, var(--white) 0%, #f8fcfb 100%);
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
}

.landing-feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.landing-feature {
  padding: 16px 18px;
  min-height: 100%;
}

.landing-feature h3 {
  margin: 0 0 5px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 700;
}

.landing-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.landing-final-cta {
  padding-top: 8px;
  padding-bottom: 36px;
}

.landing-final-card {
  padding: 26px 24px;
  border: 2px solid var(--brand);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(31, 95, 99, 0.08);
  text-align: center;
}

.landing-final-headline {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
}

.landing-final-subline {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.landing-footer {
  border-top: 1px solid var(--brand-border);
  background: var(--white);
}

@media (min-width: 640px) {
  .landing-hero {
    padding: 44px 0 32px;
  }

  .landing-container {
    padding: 0 32px;
  }

  .landing-section {
    padding: 32px 0;
  }

  .landing-section-tight {
    padding: 28px 0;
  }

  .landing-problem-solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: center;
  }

  .landing-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .landing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .landing-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 36px;
  }

  .landing-headline {
    max-width: none;
  }

  .hero-mock {
    max-width: none;
    margin: 0;
  }

  .landing-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
