/* ---------- Account and web checkout ---------- */
.account-page {
  --checkout-ink: #10231a;
  --checkout-muted: #5e6b63;
  --checkout-paper: #fffdf8;
  --checkout-cream: #f5f1e8;
  --checkout-line: rgba(16, 35, 26, 0.13);
  --checkout-green: #20b96d;
  --checkout-green-dark: #087344;
  --checkout-night: #12251c;
  /* Every control in the form column shares one measure. Google caps its
     rendered sign-in button at 400px, so the column matches that instead of
     leaving the provider button short of the fields below it. */
  --checkout-measure: 400px;
  --checkout-pad-x: clamp(34px, 4.5vw, 58px);
  --checkout-pad-y: clamp(30px, 3.6vw, 48px);
  min-height: 100vh;
  color: var(--checkout-ink);
  background:
    radial-gradient(circle at 4% 4%, rgba(32, 185, 109, 0.1), transparent 24rem),
    radial-gradient(circle at 96% 18%, rgba(85, 106, 240, 0.08), transparent 28rem),
    var(--checkout-cream);
}

.account-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image: radial-gradient(rgba(16, 35, 26, 0.22) 0.55px, transparent 0.55px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 68%);
}

.account-checkout-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--checkout-line);
  background: rgba(250, 248, 241, 0.88);
  backdrop-filter: blur(18px) saturate(1.15);
}

.account-checkout-header-shell {
  width: min(1180px, calc(100vw - 48px));
  min-height: 80px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.account-checkout-header .brand {
  justify-self: start;
  color: var(--checkout-ink);
}

.account-checkout-progress {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  counter-reset: checkout-step;
}

.account-checkout-progress li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #7a857e;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.account-checkout-progress li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  width: 16px;
  height: 1px;
  background: rgba(16, 35, 26, 0.2);
}

.account-checkout-progress li span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(16, 35, 26, 0.16);
  background: rgba(255, 255, 255, 0.62);
  color: #6e7a72;
  font-size: 0.7rem;
}

.account-checkout-progress li[aria-current="step"] {
  color: var(--checkout-ink);
}

.account-checkout-progress li[aria-current="step"] span {
  border-color: var(--checkout-green-dark);
  background: var(--checkout-green-dark);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(32, 185, 109, 0.1);
}

.account-checkout-progress li.is-complete {
  color: var(--checkout-green-dark);
}

.account-checkout-progress li.is-complete span {
  border-color: rgba(8, 115, 68, 0.3);
  background: rgba(32, 185, 109, 0.1);
  color: var(--checkout-green-dark);
}

.account-checkout-exit {
  justify-self: end;
  color: var(--checkout-muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-underline-offset: 4px;
  text-decoration-color: rgba(16, 35, 26, 0.3);
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.account-checkout-exit:hover {
  color: var(--checkout-ink);
  text-decoration-color: currentColor;
}

.account-main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 160px);
}

.account-shell {
  width: min(1120px, calc(100vw - 48px));
  padding: clamp(22px, 2.4vw, 34px) 0 clamp(44px, 5vw, 68px);
}

/* The card carries the work on this page, so the intro stays small enough to
   keep the plan, the price, and the primary button on the first screen. */
.account-intro {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  animation: account-rise 640ms var(--ease-out-strong) both;
}

.account-intro h1 {
  max-width: 22ch;
  margin: 6px auto 0;
  font-size: clamp(2.1rem, 3.2vw, 2.85rem);
  line-height: 1.02;
}

.account-intro > p:last-child {
  max-width: 560px;
  margin: 9px auto 0;
  color: var(--checkout-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.account-workspace {
  margin-top: clamp(20px, 2.2vw, 30px);
  animation: account-rise 720ms 100ms var(--ease-out-strong) both;
}

.account-workspace [hidden],
.account-form [hidden] {
  display: none !important;
}

/* The form column is sized to hold one measure plus its padding, so the extra
   width goes to the plan summary rather than to an empty gutter. */
.account-form {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1fr);
  overflow: hidden;
  border: 1px solid var(--checkout-line);
  border-radius: 30px;
  background: var(--checkout-paper);
  box-shadow:
    0 38px 90px rgba(20, 38, 28, 0.12),
    0 2px 8px rgba(20, 38, 28, 0.04);
}

/* Returning from Stripe there is no plan summary, so the card narrows to the
   same single measure the stacked layout uses. */
.account-form.is-account-ready {
  width: min(480px, 100%);
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
}

.account-form-column {
  min-width: 0;
  padding: var(--checkout-pad-y) var(--checkout-pad-x);
}

.account-mode-toggle,
.account-provider-section,
.account-session-summary,
.account-credentials,
.account-access-summary,
.account-actions,
.account-status,
.account-next-step {
  max-width: var(--checkout-measure);
}

.account-panel-heading {
  display: grid;
  gap: 18px;
}

.account-step-label {
  min-height: 26px;
  display: flex;
  align-items: center;
  color: var(--checkout-green-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-panel-heading h2,
.account-reset-copy h2 {
  max-width: 20ch;
  margin-top: 8px;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.account-form-intro {
  max-width: 44ch;
  margin-top: 10px;
  color: var(--checkout-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.account-mode-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--checkout-line);
  border-radius: 12px;
  background: #f0eee7;
}

.account-mode-toggle button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  /* 4.25:1 on the #f0eee7 track failed AA for a tab in the checkout flow. */
  color: #5a655f;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease-out-strong);
}

.account-mode-toggle button.is-active {
  background: #fff;
  color: var(--checkout-ink);
  box-shadow:
    0 5px 13px rgba(16, 35, 26, 0.09),
    inset 0 0 0 1px rgba(16, 35, 26, 0.04);
}

.account-mode-toggle button:focus-visible,
.account-password-label button:focus-visible,
.account-checkout-exit:focus-visible,
.account-checkout-footer a:focus-visible {
  outline: 3px solid rgba(32, 185, 109, 0.25);
  outline-offset: 3px;
}

.account-provider-section {
  display: grid;
  gap: 12px;
  animation: account-provider-in 260ms var(--ease-out-strong) both;
  transition: opacity 160ms ease;
}

.account-provider-section.is-busy {
  opacity: 0.58;
  pointer-events: none;
}

/* Provider buttons stack so each one keeps the full form measure. Splitting the
   row would shrink a cell after Google has already rendered its fixed-pixel
   button, which cuts the label off inside Google's own iframe. */
.account-provider-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.account-provider-button {
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-provider-google > div,
.account-provider-apple > div {
  width: 100% !important;
  max-width: none !important;
}

/* Google sizes its iframe to the button it rendered plus a 10px bleed on each
   side. Forcing a different width here does not resize the button inside, it
   only clips it. */
.account-provider-google iframe {
  max-width: none !important;
}

.account-provider-apple #appleid-signin {
  height: 40px;
}

.account-provider-guidance {
  margin: 0;
  color: var(--checkout-muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.account-auth-divider {
  display: grid;
  grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
  align-items: center;
  gap: 11px;
  /* "or use your email" at 3.77:1 failed AA on the #fffdf8 panel. */
  color: #68736d;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.account-auth-divider::before,
.account-auth-divider::after {
  content: "";
  height: 1px;
  background: var(--checkout-line);
}

.account-credentials {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.account-form label,
.account-reset-form label,
.account-field {
  display: grid;
  gap: 8px;
  color: #34463c;
  font-size: 0.78rem;
  font-weight: 750;
}

.account-form input[type="email"],
.account-form #account-password,
.account-reset-form input[type="email"] {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid rgba(16, 35, 26, 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--checkout-ink);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 650;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.account-form input[type="email"]::placeholder,
.account-form #account-password::placeholder,
.account-reset-form input[type="email"]::placeholder {
  color: #939b96;
  font-weight: 550;
}

.account-form input:focus,
.account-reset-form input:focus {
  border-color: rgba(8, 115, 68, 0.58);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(32, 185, 109, 0.12);
}

.account-password-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-password-input {
  position: relative;
  min-width: 0;
}

.account-password-input:has(.account-password-toggle:not([hidden])) #account-password {
  padding-right: 78px;
}

.account-password-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 64px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--checkout-green-dark);
  font: inherit;
  cursor: pointer;
}

.account-password-toggle:hover {
  background: #edf5ee;
}

.account-password-toggle:focus-visible {
  outline: 2px solid var(--checkout-green-dark);
  outline-offset: -2px;
}

.account-password-label label {
  display: block;
  color: inherit;
  font: inherit;
}

.account-password-label button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--checkout-green-dark);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(8, 115, 68, 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
}

.account-session-summary {
  margin-top: 30px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(8, 115, 68, 0.16);
  border-radius: 14px;
  background: rgba(32, 185, 109, 0.07);
}

.account-session-check,
.account-access-mark {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--checkout-green-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.account-session-summary > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.account-session-summary small {
  color: var(--checkout-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.account-session-summary strong {
  overflow: hidden;
  color: var(--checkout-ink);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-access-summary {
  margin-top: 24px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid rgba(8, 115, 68, 0.18);
  border-radius: 16px;
  background: rgba(32, 185, 109, 0.08);
}

.account-access-summary strong {
  display: block;
  color: var(--checkout-ink);
  font-size: 0.94rem;
  line-height: 1.4;
}

.account-access-summary p {
  margin-top: 4px;
  color: var(--checkout-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.account-plan-fieldset {
  min-width: 0;
  margin: 26px 0 0;
  padding: 0;
  border: 0;
  scroll-margin-top: 104px;
}

.account-plan-picker {
  display: grid;
  gap: 10px;
}

.account-plan-picker label {
  position: relative;
  min-height: 76px;
  padding: 14px 16px 14px 50px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  cursor: pointer;
  transition:
    transform 180ms var(--ease-out-strong),
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.account-plan-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.account-plan-radio {
  position: absolute;
  top: 50%;
  margin-top: -10.5px;
  left: 16px;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.account-plan-radio::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: #fff;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 180ms ease, transform 220ms var(--ease-out-strong);
}

.account-plan-picker input:focus-visible + .account-plan-radio {
  outline: 3px solid rgba(89, 236, 159, 0.34);
  outline-offset: 3px;
}

.account-plan-picker label:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
}

.account-plan-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-plan-main {
  min-width: 0;
}

.account-plan-price {
  flex: 0 0 auto;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.account-plan-picker strong,
.account-plan-picker small {
  display: block;
}

.account-plan-picker strong {
  color: #fff;
  font-size: 0.95rem;
}

.account-plan-picker small {
  margin-top: 5px;
  color: rgba(244, 250, 246, 0.78);
  font-size: 0.79rem;
  font-weight: 700;
}

.account-plan-picker label:has(input:checked) {
  border-color: rgba(89, 236, 159, 0.68);
  background: rgba(57, 196, 124, 0.14);
  box-shadow: 0 15px 30px rgba(4, 18, 11, 0.18);
}

.account-plan-picker label:has(input:checked) .account-plan-radio {
  border-color: #59ec9f;
  background: #158652;
  box-shadow: 0 0 0 4px rgba(89, 236, 159, 0.1);
}

.account-plan-picker label:has(input:checked) .account-plan-radio::after {
  opacity: 1;
  transform: scale(1);
}

.account-plan-titlerow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-plan-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  background: #59ec9f;
  color: #092c1c;
  font-size: 0.58rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-plan-picker small.account-plan-hint {
  margin-top: 3px;
  color: #75efad;
  font-size: 0.74rem;
  font-weight: 700;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.account-actions .button-primary {
  width: 100%;
  min-height: 54px;
  border-radius: 13px;
  font-size: 0.9rem;
}

.account-actions .button-secondary {
  min-height: 48px;
  border-radius: 12px;
  box-shadow: none;
}

.account-signout-button {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--checkout-muted);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.account-next-step {
  margin-top: 14px;
  color: var(--checkout-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.account-status {
  margin-top: 16px;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--checkout-muted);
  background: rgba(16, 35, 26, 0.05);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  animation: account-status-in 220ms var(--ease-out-strong) both;
}

.account-status:empty {
  display: none;
}

.account-status[data-state="pending"] {
  border-color: rgba(145, 107, 12, 0.18);
  color: #735a18;
  background: #fbf6e5;
}

.account-status[data-state="success"] {
  border-color: rgba(8, 115, 68, 0.18);
  color: var(--checkout-green-dark);
  background: rgba(32, 185, 109, 0.08);
}

.account-status[data-state="error"] {
  border-color: rgba(166, 51, 51, 0.2);
  color: #9f3030;
  background: #fff1ef;
}

.account-order-summary {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: var(--checkout-pad-y) var(--checkout-pad-x);
  display: flex;
  flex-direction: column;
  color: #f4faf6;
  background:
    radial-gradient(circle at 105% -5%, rgba(85, 106, 240, 0.28), transparent 42%),
    radial-gradient(circle at 5% 105%, rgba(32, 185, 109, 0.16), transparent 38%),
    var(--checkout-night);
}

.account-order-summary::after {
  content: "";
  position: absolute;
  top: -82px;
  right: -80px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.018),
    0 0 0 84px rgba(255, 255, 255, 0.012);
  pointer-events: none;
}

.account-order-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.account-order-heading .account-step-label {
  color: #6ceca7;
}

.account-trial-label {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(108, 236, 167, 0.24);
  border-radius: 999px;
  background: rgba(108, 236, 167, 0.1);
  color: #89f2b9;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.account-order-summary h2 {
  position: relative;
  z-index: 1;
  max-width: none;
  margin-top: 14px;
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.account-order-caption {
  position: relative;
  z-index: 1;
  max-width: 30ch;
  margin-top: 8px;
  color: rgba(244, 250, 246, 0.66);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.5;
}

.account-price-summary {
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.account-price-summary div {
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.account-price-summary div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-price-summary dt {
  color: rgba(244, 250, 246, 0.64);
  font-size: 0.75rem;
  font-weight: 700;
}

.account-price-summary dd {
  margin: 0;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

/* What the buyer pays right now is the line that settles the decision, so it
   gets the weight instead of the renewal price. */
.account-price-summary .account-price-total dt {
  color: rgba(244, 250, 246, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
}

.account-price-summary .account-price-total dd {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.account-order-summary[data-plan="yearly"] .account-price-summary dd {
  animation: account-price-yearly 240ms var(--ease-out-strong) both;
}

.account-order-summary[data-plan="monthly"] .account-price-summary dd {
  animation: account-price-monthly 240ms var(--ease-out-strong) both;
}

.account-plus-benefits {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.account-plus-benefits li {
  position: relative;
  padding-left: 27px;
  color: rgba(244, 250, 246, 0.94);
  font-size: 0.83rem;
  font-weight: 650;
  line-height: 1.45;
}

.account-plus-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(108, 236, 167, 0.12);
}

.account-plus-benefits li::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 6px;
  width: 4px;
  height: 7px;
  border-right: 1.5px solid #70edaa;
  border-bottom: 1.5px solid #70edaa;
  transform: rotate(42deg);
}

/* Sits at the point of decision rather than only in the page footer. */
.account-order-secure {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(244, 250, 246, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
}

.account-order-secure svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: #70edaa;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Follows the secure line at the bottom so the dark column ends level with the
   form column instead of trailing off into empty space. */
.account-order-note {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: rgba(244, 250, 246, 0.6);
  font-size: 0.72rem;
  line-height: 1.55;
}

.account-reset-panel {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 1fr);
  gap: clamp(34px, 6vw, 70px);
  align-items: start;
  border: 1px solid var(--checkout-line);
  border-radius: 30px;
  background: var(--checkout-paper);
  box-shadow: 0 38px 90px rgba(20, 38, 28, 0.12);
  animation: account-status-in 300ms var(--ease-out-strong) both;
}

.account-reset-copy > p:last-child {
  margin-top: 15px;
  color: var(--checkout-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.account-reset-form {
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-checkout-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 24px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--checkout-line);
  color: #68756d;
  font-size: 0.72rem;
  font-weight: 650;
}

.account-checkout-footer nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.account-checkout-footer a {
  text-underline-offset: 3px;
  text-decoration-color: rgba(16, 35, 26, 0.24);
}

@keyframes account-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes account-status-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes account-provider-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes account-price-yearly {
  from {
    opacity: 0.35;
    transform: translateX(5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes account-price-monthly {
  from {
    opacity: 0.35;
    transform: translateX(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 980px) {
  /* Stacked, the card holds a single measure so the plan summary and the form
     share the same content width and the same left edge. */
  .account-form {
    width: min(480px, 100%);
    grid-template-columns: minmax(0, 1fr);
    margin: 0 auto;
  }

  /* Stacked widths keep the document order: the progress indicator says the
     account step comes first, so the tabs and email field render before the
     plan summary instead of pushing them below the fold. */
  .account-order-summary::after {
    right: -30px;
  }

}

@media (max-width: 720px) {
  .account-checkout-header-shell {
    width: min(100% - 32px, 680px);
    min-height: 108px;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 18px;
    padding: 14px 0 12px;
  }

  .account-checkout-header .brand {
    font-size: 1.12rem;
  }

  .account-checkout-header .brand img {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .account-checkout-progress {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .account-checkout-exit {
    grid-column: 2;
    grid-row: 1;
  }

  .account-shell,
  .account-checkout-footer {
    width: min(100% - 32px, 680px);
  }

  .account-shell {
    padding-top: 40px;
  }

  .account-intro h1 {
    font-size: clamp(1.95rem, 7.4vw, 2.5rem);
  }

  .account-reset-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .account-checkout-footer {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .account-page::before {
    opacity: 0.18;
  }

  .account-checkout-progress {
    width: 100%;
    justify-content: space-between;
    gap: 28px;
  }

  .account-checkout-progress li + li::before {
    right: calc(100% + 9px);
    width: 10px;
  }

  .account-shell {
    padding: 34px 0 66px;
  }

  .account-intro > p:last-child {
    font-size: 0.93rem;
  }

  .account-workspace {
    margin-top: 32px;
  }

  .account-form,
  .account-reset-panel {
    border-radius: 22px;
  }

  .account-page {
    --checkout-pad-x: 22px;
    --checkout-pad-y: 26px;
  }

  .account-reset-panel {
    padding: 26px 22px;
  }

  .account-plan-picker {
    grid-template-columns: 1fr;
  }

  .account-plan-fieldset {
    scroll-margin-top: 130px;
  }

  /* A phone has no room for the name and the price on one row, so the card
     stacks back into name, price, then the supporting line. */
  .account-plan-copy {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .account-plan-main {
    display: contents;
  }

  .account-plan-titlerow {
    order: 1;
  }

  .account-plan-price {
    order: 2;
    margin-top: 5px;
    text-align: left;
  }

  .account-plan-picker small.account-plan-hint {
    order: 3;
  }

  .account-mode-toggle {
    width: 100%;
  }

  .account-mode-toggle button {
    padding: 0 10px;
  }

  .account-actions .button {
    width: 100%;
  }

  .account-signout-button {
    justify-content: flex-start;
  }

  .account-checkout-footer {
    padding-bottom: 28px;
    flex-direction: column;
    gap: 12px;
  }

  .account-checkout-footer nav {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-intro,
  .account-workspace,
  .account-status,
  .account-provider-section,
  .account-reset-panel,
  .account-order-summary[data-plan] .account-price-summary dd {
    animation: none;
  }

  .account-mode-toggle button,
  .account-plan-picker label,
  .account-plan-radio,
  .account-plan-radio::after {
    transition: none;
  }
}
