@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/ProximaNova-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --forest-950: #172217;
  --forest-800: #24452f;
  --forest-700: #1f6b48;
  --forest-100: #e9f5ed;
  --paper: #fbfcf7;
  --surface: #ffffff;
  --honey: #f7b928;
  --honey-soft: #fff3ca;
  --ink-muted: #607062;
  --line: #dce4d9;
  --danger: #a53b31;
  --danger-soft: #fff1ef;
  --focus: #2563a7;
  --shadow-soft: 0 20px 55px rgba(29, 48, 31, 0.09);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --page-width: 1180px;
  --hex: polygon(25% 3%, 75% 3%, 98% 50%, 75% 97%, 25% 97%, 2% 50%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--forest-950);
  font: 15px/1.58 "Manrope", ui-sans-serif, system-ui, sans-serif;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: 420px;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 4%, rgba(247, 185, 40, 0.14), transparent 31%),
    linear-gradient(180deg, #f3f8f1 0%, rgba(251, 252, 247, 0) 100%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Proxima Nova", "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 7px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--forest-950);
  color: #fff;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(220, 228, 217, 0.82);
  background: rgba(251, 252, 247, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner,
.page-shell,
.site-footer-inner {
  width: min(calc(100% - 40px), var(--page-width));
  margin-inline: auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest-950);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-name {
  display: block;
  font-family: "Proxima Nova", "Manrope", sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-context {
  display: block;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a,
.header-nav button {
  min-height: 40px;
  padding: 9px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav button:hover,
.header-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--forest-950);
  box-shadow: 0 1px 4px rgba(29, 48, 31, 0.08);
}

.page-shell {
  padding-block: clamp(48px, 7vw, 92px) 80px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--forest-700);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--honey);
  content: "";
}

.lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: clamp(1.04rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.acquisition-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  align-items: start;
  gap: clamp(36px, 6vw, 78px);
}

.acquisition-copy {
  padding-top: clamp(12px, 4vw, 48px);
}

.connection-card,
.surface-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.connection-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
}

.connection-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--honey) 0 32%, var(--forest-700) 32% 100%);
  content: "";
}

.state-mark {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 20px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--forest-100);
  color: var(--forest-700);
  font-size: 0.75rem;
  font-weight: 800;
}

.state-mark[data-tone="honey"] {
  background: var(--honey-soft);
  color: #6f4b00;
}

.state-mark[data-tone="danger"] {
  background: var(--danger-soft);
  color: var(--danger);
}

.connection-card p,
.surface-card p {
  color: var(--ink-muted);
}

.status-message {
  min-height: 50px;
  margin: 20px 0;
  padding: 13px 15px;
  border-left: 4px solid var(--honey);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff9e8;
  color: #544921;
  font-size: 0.9rem;
  font-weight: 650;
}

.status-message[data-tone="error"] {
  border-left-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.status-message[data-tone="success"] {
  border-left-color: var(--forest-700);
  background: var(--forest-100);
  color: var(--forest-800);
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--forest-950);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--forest-700);
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--forest-950);
}

.button.secondary:hover:not(:disabled):not([aria-disabled="true"]) {
  border-color: var(--forest-700);
  background: var(--forest-100);
}

.button.honey {
  background: var(--honey);
  color: var(--forest-950);
}

.button.danger {
  border-color: #e7c5bf;
  background: var(--surface);
  color: var(--danger);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.52;
}

.button[aria-busy="true"]::after {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: spin 750ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.purchase-details {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.purchase-details dl,
.summary-list {
  margin: 0;
}

.purchase-details div,
.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.purchase-details div:last-child,
.summary-list div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.privacy-note svg {
  width: 17px;
  flex: 0 0 17px;
  margin-top: 2px;
  color: var(--forest-700);
}

/* The linked honeycomb is the sole expressive device: the geometry explains the account flow. */
.journey-rail {
  position: relative;
  grid-column: 1 / -1;
  margin-top: clamp(38px, 7vw, 80px);
  padding: 28px clamp(18px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 10px 35px rgba(29, 48, 31, 0.05);
}

.journey-rail::before {
  position: absolute;
  top: 75px;
  right: 16%;
  left: 16%;
  height: 2px;
  background: var(--line);
  content: "";
}

.journey-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 5vw, 70px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-step {
  min-width: 0;
  text-align: center;
}

.journey-cell {
  width: 94px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  clip-path: var(--hex);
  background: #edf1eb;
  color: var(--ink-muted);
  font-family: "Proxima Nova", "Manrope", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.journey-step[data-state="current"] .journey-cell {
  background: var(--honey);
  color: var(--forest-950);
  transform: translateY(-3px);
}

.journey-step[data-state="complete"] .journey-cell {
  background: var(--forest-700);
  color: #fff;
}

.journey-step strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Proxima Nova", "Manrope", sans-serif;
  font-size: 1rem;
}

.journey-step span:last-child {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.page-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.page-intro h1 {
  max-width: 700px;
  margin-bottom: 12px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.account-identity {
  min-width: 240px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.account-identity span {
  display: block;
  color: var(--ink-muted);
  font-size: 0.76rem;
}

.account-identity strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.surface-card {
  grid-column: span 6;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 12px 38px rgba(29, 48, 31, 0.05);
}

.surface-card.wide {
  grid-column: 1 / -1;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.card-heading p {
  margin-bottom: 0;
}

.semantic-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--forest-100);
  color: var(--forest-700);
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}

.semantic-badge[data-status="inactive"],
.semantic-badge[data-status="suspended"] {
  background: var(--danger-soft);
  color: var(--danger);
}

.allowance-number {
  margin-bottom: 3px;
  font-family: "Proxima Nova", "Manrope", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.allowance-label {
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.meter {
  height: 10px;
  margin: 22px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eee7;
}

.meter > span {
  width: var(--meter, 0%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest-700), var(--honey));
}

.learner-list,
.subscription-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learner-row,
.subscription-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.learner-main,
.subscription-main {
  min-width: 0;
}

.learner-main strong,
.subscription-main strong,
.learner-main span,
.subscription-main span {
  display: block;
}

.learner-main span,
.subscription-main span {
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  text-align: center;
}

.consent-control {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--paper);
}

.consent-control input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--forest-700);
}

.consent-control strong,
.consent-control span {
  display: block;
}

.consent-control span {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.privacy-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.loading-shell {
  min-height: 260px;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  text-align: center;
}

.loading-shell p {
  margin-bottom: 0;
}

.plans-hero {
  max-width: 850px;
  margin-bottom: clamp(40px, 7vw, 72px);
}

.plans-hero h1 {
  max-width: 820px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 31px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(29, 48, 31, 0.05);
}

.plan-card.featured {
  border-color: #d9a823;
  box-shadow: 0 18px 50px rgba(101, 74, 9, 0.12);
}

.plan-name {
  margin-bottom: 20px;
  color: var(--forest-700);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.plan-price {
  min-height: 65px;
  margin-bottom: 18px;
  font-family: "Proxima Nova", "Manrope", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.plan-price small {
  color: var(--ink-muted);
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0;
}

.plan-price.pending {
  max-width: 230px;
  font-size: 1.55rem;
  line-height: 1.15;
}

.plan-description {
  min-height: 72px;
  margin-bottom: 18px;
  color: var(--ink-muted);
}

.plan-features {
  display: grid;
  gap: 11px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 24px;
}

.plan-features li::before {
  position: absolute;
  top: 0.43em;
  left: 2px;
  width: 9px;
  height: 9px;
  clip-path: var(--hex);
  background: var(--honey);
  content: "";
}

.plan-card .button {
  width: 100%;
  margin-top: auto;
}

.plan-note {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 0.8rem;
  text-align: center;
}

.plan-explainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(46px, 7vw, 78px);
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.plan-explainer p {
  margin-bottom: 0;
  color: var(--ink-muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.site-footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--forest-700);
}

dialog {
  width: min(calc(100% - 32px), 520px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--forest-950);
  box-shadow: 0 28px 90px rgba(23, 34, 23, 0.28);
}

dialog::backdrop {
  background: rgba(23, 34, 23, 0.58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.dialog-body {
  padding: 28px;
}

.dialog-body label {
  display: block;
  margin: 20px 0;
  font-size: 0.85rem;
  font-weight: 750;
}

.dialog-body input {
  width: 100%;
  min-height: 46px;
  display: block;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--forest-950);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--line);
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .acquisition-layout {
    grid-template-columns: 1fr;
  }

  .acquisition-copy {
    padding-top: 0;
  }

  .connection-card {
    max-width: 620px;
  }

  .surface-card {
    grid-column: 1 / -1;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: 0;
  }

  .plan-price,
  .plan-description {
    min-height: 0;
  }

  .plan-explainer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .header-inner,
  .page-shell,
  .site-footer-inner {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .header-inner {
    min-height: 64px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand-context,
  .header-nav .desktop-link {
    display: none;
  }

  .header-nav {
    gap: 2px;
  }

  .header-nav a,
  .header-nav button {
    min-width: 42px;
    min-height: 42px;
    padding: 9px 10px;
  }

  .page-shell {
    padding-block: 40px 58px;
  }

  h1,
  .page-intro h1 {
    font-size: clamp(2.45rem, 13vw, 3.75rem);
  }

  .journey-rail {
    padding: 24px 20px;
  }

  .journey-rail::before {
    top: 54px;
    bottom: 54px;
    left: 57px;
    width: 2px;
    height: auto;
    right: auto;
  }

  .journey-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .journey-step {
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    gap: 18px;
    text-align: left;
  }

  .journey-cell {
    width: 76px;
    height: 66px;
    margin: 0;
    font-size: 1.1rem;
  }

  .page-intro {
    display: block;
  }

  .account-identity {
    margin-top: 24px;
  }

  .card-heading,
  .learner-row,
  .subscription-row {
    align-items: flex-start;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .journey-cell,
  .plan-features li::before,
  .eyebrow::before {
    border: 1px solid CanvasText;
  }
}
