:root {
  color-scheme: dark;
  --flow-bg: #06100b;
  --flow-bg-soft: #0a1910;
  --flow-surface: rgba(14, 35, 21, 0.86);
  --flow-surface-strong: #10291a;
  --flow-surface-light: rgba(255, 255, 255, 0.045);
  --flow-line: rgba(220, 240, 222, 0.13);
  --flow-line-strong: rgba(151, 218, 164, 0.3);
  --flow-text: #f7f8f2;
  --flow-muted: rgba(238, 244, 235, 0.7);
  --flow-subtle: rgba(238, 244, 235, 0.5);
  --flow-green: #83d395;
  --flow-green-bright: #bcefc6;
  --flow-green-deep: #1c6334;
  --flow-gold: #e7bd65;
  --flow-danger: #ffaaa4;
  --flow-success: #bcefc6;
  --flow-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
  --flow-radius-xl: 30px;
  --flow-radius-lg: 22px;
  --flow-radius-md: 15px;
  --flow-font: "DM Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --flow-display: "Fraunces", Georgia, serif;
}

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

html {
  min-width: 320px;
  background: var(--flow-bg);
}

body.commercial-page {
  min-height: 100vh;
  margin: 0;
  padding: clamp(16px, 3vw, 36px);
  color: var(--flow-text);
  background:
    radial-gradient(circle at 10% 5%, rgba(73, 160, 91, 0.24), transparent 31rem),
    radial-gradient(circle at 94% 12%, rgba(231, 189, 101, 0.13), transparent 25rem),
    linear-gradient(145deg, #040a07 0%, var(--flow-bg) 48%, #09170e 100%);
  font-family: var(--flow-font);
  -webkit-font-smoothing: antialiased;
}

body.commercial-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.52), transparent 88%);
}

a {
  color: inherit;
}

.commercial-wrap {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.commercial-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(540px, 1.12fr);
  min-height: calc(100vh - clamp(32px, 6vw, 72px));
  overflow: hidden;
  border: 1px solid var(--flow-line);
  border-radius: var(--flow-radius-xl);
  background: rgba(4, 13, 8, 0.72);
  box-shadow: var(--flow-shadow);
  backdrop-filter: blur(24px);
}

.commercial-story,
.commercial-main {
  position: relative;
  min-width: 0;
}

.commercial-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 5vw, 66px);
  overflow: hidden;
  border-right: 1px solid var(--flow-line);
  background:
    linear-gradient(155deg, rgba(30, 93, 50, 0.35), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.commercial-story::after {
  position: absolute;
  right: -8rem;
  bottom: -11rem;
  width: 31rem;
  height: 31rem;
  border: 1px solid rgba(188, 239, 198, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(188, 239, 198, 0.025),
    0 0 0 8rem rgba(188, 239, 198, 0.018);
  content: "";
  pointer-events: none;
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--flow-text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(188, 239, 198, 0.28);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(188, 239, 198, 0.19), rgba(231, 189, 101, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--flow-green-bright);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark svg { width: 34px; height: 34px; }

.brand-name {
  display: grid;
  gap: 1px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-name small {
  color: var(--flow-subtle);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-content {
  position: relative;
  z-index: 1;
  max-width: 490px;
  margin: clamp(58px, 9vh, 110px) 0 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(131, 211, 149, 0.28);
  border-radius: 999px;
  background: rgba(131, 211, 149, 0.09);
  color: var(--flow-green-bright);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flow-green);
  box-shadow: 0 0 0 5px rgba(131, 211, 149, 0.1);
  content: "";
}

.story-title,
.commercial-title {
  font-family: var(--flow-display);
  font-weight: 400;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.story-title {
  max-width: 510px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 5.5vw, 70px);
  line-height: 0.98;
}

.story-copy {
  max-width: 470px;
  margin: 0;
  color: var(--flow-muted);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
}

.trial-promise {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trial-promise li {
  min-height: 98px;
  padding: 15px;
  border: 1px solid var(--flow-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.trial-promise strong,
.trial-promise span {
  display: block;
}

.trial-promise strong {
  color: var(--flow-green-bright);
  font-size: 17px;
  line-height: 1.2;
}

.trial-promise span {
  margin-top: 7px;
  color: var(--flow-subtle);
  font-size: 12px;
  line-height: 1.45;
}

.commercial-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(12, 29, 18, 0.72), rgba(7, 20, 12, 0.86));
}

.commercial-main--billing {
  justify-content: flex-start;
}

.commercial-kicker {
  margin: 0 0 10px;
  color: var(--flow-green-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.commercial-title {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.03;
}

.commercial-intro {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--flow-muted);
  font-size: 16px;
  line-height: 1.65;
}

.messages {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
}

.message,
.notice {
  padding: 13px 15px;
  border: 1px solid rgba(231, 189, 101, 0.27);
  border-radius: 13px;
  background: rgba(231, 189, 101, 0.08);
  color: #f7e6be;
  font-size: 14px;
  line-height: 1.5;
}

.message--success {
  border-color: rgba(131, 211, 149, 0.28);
  background: rgba(131, 211, 149, 0.08);
  color: var(--flow-success);
}

.plan-summary,
.flow-card {
  border: 1px solid var(--flow-line);
  border-radius: var(--flow-radius-lg);
  background: var(--flow-surface-light);
}

.plan-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 24px 0;
  padding: 17px 19px;
  border-color: var(--flow-line-strong);
  background: linear-gradient(135deg, rgba(131, 211, 149, 0.1), rgba(231, 189, 101, 0.05));
}

.plan-summary__label,
.plan-summary__price {
  display: grid;
  gap: 4px;
}

.plan-summary__label strong,
.plan-summary__price strong {
  color: var(--flow-text);
  font-size: 15px;
}

.plan-summary__label span,
.plan-summary__price span {
  color: var(--flow-subtle);
  font-size: 12px;
  line-height: 1.45;
}

.plan-summary__price {
  text-align: right;
}

.plan-summary__price strong {
  color: var(--flow-green-bright);
  font-size: 23px;
}

.registration-form {
  margin-top: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: rgba(247, 248, 242, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.field label small,
.field > small {
  color: var(--flow-subtle);
  font-size: 11px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  min-height: 51px;
  padding: 0 14px;
  border: 1px solid rgba(220, 240, 222, 0.16);
  border-radius: 13px;
  outline: none;
  background: rgba(3, 12, 7, 0.7);
  color: var(--flow-text);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:hover,
.field select:hover {
  border-color: rgba(220, 240, 222, 0.27);
}

.field input:focus,
.field select:focus {
  border-color: var(--flow-green);
  background: rgba(6, 18, 10, 0.9);
  box-shadow: 0 0 0 4px rgba(131, 211, 149, 0.11);
}

.field input::placeholder {
  color: rgba(238, 244, 235, 0.34);
}

.field select {
  color-scheme: dark;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 21px 0;
  color: var(--flow-muted);
  font-size: 13px;
  line-height: 1.55;
}

.terms input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--flow-green);
}

.terms a,
.text-link {
  color: var(--flow-green-bright);
  font-weight: 800;
  text-underline-offset: 3px;
}

.form-actions,
.actions,
.foot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.form-actions {
  justify-content: space-between;
  padding-top: 4px;
}

.actions {
  margin-top: 17px;
}

.foot-actions {
  margin-top: 20px;
}

.account-action-form {
  display: inline-flex;
  margin: 0;
}

.account-action-form .btn {
  width: 100%;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid var(--flow-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--flow-text);
  font: 900 14px/1 var(--flow-font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  border-color: rgba(220, 240, 222, 0.28);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-1px);
}

.btn:focus-visible,
.text-link:focus-visible,
.brand-lockup:focus-visible {
  outline: 3px solid rgba(188, 239, 198, 0.55);
  outline-offset: 3px;
}

.btn.primary {
  border-color: rgba(188, 239, 198, 0.32);
  background: linear-gradient(135deg, #bcefc6 0%, #83d395 52%, #d9ba67 135%);
  box-shadow: 0 12px 30px rgba(49, 133, 70, 0.2);
  color: #06100b;
}

.btn.primary:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: linear-gradient(135deg, #d2f6d9, #93dda3 58%, #e7c776 140%);
  box-shadow: 0 15px 34px rgba(49, 133, 70, 0.28);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.045);
  color: var(--flow-text);
}

.btn.subtle {
  min-height: 44px;
  padding: 0 15px;
  border-color: transparent;
  background: transparent;
  color: var(--flow-muted);
}

.btn:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 24px;
  color: var(--flow-subtle);
  font-size: 11px;
  font-weight: 700;
}

.assurance span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.assurance span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--flow-green);
  content: "";
}

.commercial-shell--single {
  grid-template-columns: 1fr;
  width: min(840px, 100%);
  min-height: auto;
  margin: clamp(30px, 9vh, 90px) auto;
}

.commercial-shell--single .commercial-main {
  padding: clamp(34px, 7vw, 76px);
  text-align: center;
}

.commercial-shell--single .commercial-intro {
  margin-right: auto;
  margin-left: auto;
}

.commercial-shell--single .actions {
  justify-content: center;
}

/* Billing */
.billing-story .story-content {
  margin-bottom: 38px;
}

.trial-meter {
  position: relative;
  z-index: 1;
  padding: 19px;
  border: 1px solid rgba(131, 211, 149, 0.2);
  border-radius: 18px;
  background: rgba(131, 211, 149, 0.07);
}

.trial-meter__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.trial-meter__top strong {
  font-size: 15px;
}

.trial-meter__top span {
  color: var(--flow-green-bright);
  font-size: 13px;
  font-weight: 900;
}

.trial-meter__track {
  height: 7px;
  margin: 14px 0 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.trial-meter__track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--flow-green-deep), var(--flow-green), var(--flow-gold));
}

.trial-meter p {
  margin: 0;
  color: var(--flow-subtle);
  font-size: 12px;
  line-height: 1.55;
}

.billing-head {
  display: grid;
  gap: 13px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--flow-line);
}

.billing-head .commercial-title {
  font-size: clamp(35px, 4vw, 50px);
}

.primary-task {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.primary-task__hint {
  max-width: 280px;
  margin: 0;
  color: var(--flow-subtle);
  font-size: 12px;
  line-height: 1.5;
}

.account-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 22px;
}

.snapshot-item {
  min-height: 80px;
  padding: 14px;
  border: 1px solid var(--flow-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
}

.snapshot-item span,
.snapshot-item strong {
  display: block;
}

.snapshot-item span {
  margin-bottom: 7px;
  color: var(--flow-subtle);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.snapshot-item strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.35;
}

.flow-card {
  margin-top: 18px;
  padding: clamp(20px, 3vw, 26px);
}

.flow-card--selected {
  border-color: var(--flow-line-strong);
  background:
    linear-gradient(135deg, rgba(131, 211, 149, 0.1), rgba(231, 189, 101, 0.04)),
    rgba(255, 255, 255, 0.025);
}

.flow-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.flow-card__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--flow-subtle);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.flow-card h2,
.flow-card h3 {
  margin: 0;
  color: var(--flow-text);
  font-size: 18px;
  line-height: 1.3;
}

.selection__price {
  min-width: 155px;
  text-align: right;
}

.selection__price strong,
.selection__price small {
  display: block;
}

.selection__price strong {
  color: var(--flow-green-bright);
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.selection__price small {
  margin-top: 5px;
  color: var(--flow-subtle);
  font-size: 11px;
  line-height: 1.35;
}

.selection__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 19px;
}

.selection__meta span {
  padding: 11px 12px;
  border: 1px solid rgba(220, 240, 222, 0.09);
  border-radius: 11px;
  background: rgba(1, 8, 4, 0.24);
  color: var(--flow-muted);
  font-size: 12px;
  line-height: 1.45;
}

.renewal-note,
.fine {
  color: var(--flow-subtle);
  font-size: 12px;
  line-height: 1.6;
}

.renewal-note {
  margin: 17px 0 0;
}

.fine {
  margin: 14px 0 0;
}

.checkout-status {
  min-height: 20px;
  margin: 11px 0 0;
  color: var(--flow-muted);
  font-size: 12px;
  line-height: 1.5;
}

.checkout-status[data-kind="error"] {
  color: var(--flow-danger);
}

.checkout-status[data-kind="success"] {
  color: var(--flow-success);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 17px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--flow-line);
  color: var(--flow-subtle);
  font-size: 11px;
  font-weight: 700;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row span::before {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(131, 211, 149, 0.3);
  border-radius: 50%;
  color: var(--flow-green-bright);
  content: "✓";
  font-size: 10px;
  line-height: 14px;
  text-align: center;
}

.billing-footer {
  margin-top: 20px;
  padding-top: 19px;
  border-top: 1px solid var(--flow-line);
}

.billing-footer .fine {
  max-width: 660px;
}

.product-choice {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(127, 207, 143, 0.22);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(92, 164, 106, 0.09), rgba(255, 255, 255, 0.025));
}
.product-choice h3 {
  margin: 8px 0 9px;
  color: var(--flow-text);
  font: 500 clamp(27px, 3.3vw, 40px)/1.08 var(--flow-display);
  letter-spacing: -0.03em;
}
.product-choice > p:not(.flow-card__eyebrow) { margin: 0; color: var(--flow-muted); line-height: 1.65; }
.product-choice__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 22px;
}
.product-choice__grid a {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--flow-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--flow-text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.product-choice__grid a:hover { border-color: rgba(127, 207, 143, 0.48); background: rgba(92, 164, 106, 0.1); transform: translateY(-2px); }
.product-choice__grid a:focus-visible { outline: 3px solid rgba(215, 182, 107, 0.55); outline-offset: 3px; }
.product-choice__grid strong { font-size: 15px; }
.product-choice__grid span { color: var(--flow-muted); font-size: 12px; line-height: 1.45; }
.product-choice .product-choice__help { margin-top: 18px; font-size: 13px; }
.product-choice__help a { color: var(--flow-green-bright); font-weight: 800; }
@media (max-width: 980px) {
  .commercial-shell {
    grid-template-columns: 1fr;
  }

  .commercial-story {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--flow-line);
  }

  .story-content {
    margin: 52px 0 42px;
  }

  .story-title {
    max-width: 720px;
  }

  .story-copy {
    max-width: 660px;
  }

  .trial-promise {
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  .product-choice__grid { grid-template-columns: 1fr; }
  .product-choice__grid a { min-height: 92px; }
  body.commercial-page {
    padding: 0;
  }

  .commercial-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .commercial-story,
  .commercial-main {
    padding: 28px 20px;
  }

  .story-content {
    margin: 43px 0 34px;
  }

  .story-title {
    font-size: 43px;
  }

  .trial-promise {
    grid-template-columns: 1fr;
  }

  .trial-promise li {
    min-height: 0;
  }

  .form-grid,
  .account-snapshot,
  .selection__meta {
    grid-template-columns: 1fr;
  }

  .plan-summary,
  .flow-card__header {
    grid-template-columns: 1fr;
  }

  .plan-summary {
    display: grid;
  }

  .plan-summary__price,
  .selection__price {
    text-align: left;
  }

  .form-actions,
  .actions,
  .foot-actions,
  .primary-task {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .form-actions .text-link {
    padding: 10px 0;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
