.subscription-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #19342e;
}
.subscription-page h1 {
  font-size: 32px;
}
.subscription-page h2 {
  font-size: 22px;
  margin: 24px 0 14px;
}
.subscription-page section {
  border: 1px solid #d8e3de;
  border-radius: 16px;
  padding: 22px;
  margin: 22px 0;
  background: #fff;
}
.subscription-page p,
.subscription-page li {
  line-height: 1.7;
}
.subscription-page label {
  display: block;
  margin: 14px 0;
}
.subscription-page input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #aebeb5;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}
.subscription-page button {
  padding: 12px 16px;
  border: 1px solid #98b5aa;
  border-radius: 9px;
  background: #fff;
  color: #164e43;
  font: inherit;
  cursor: pointer;
}
.subscription-page button:disabled {
  opacity: 0.5;
  cursor: default;
}
.subscription-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
}
#notice {
  white-space: pre-line;
}
#notice:not(:empty) {
  padding: 16px;
  border-radius: 10px;
  background: #fff3d6;
}
.subscription-page [hidden] {
  display: none !important;
}

/* The landing page's paper, teal and lime palette continues into account flows. */
.account-page {
  background: var(--paper);
  min-height: 100vh;
}
.account-header {
  max-width: 1200px;
  margin: auto;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-link {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.home-link:hover {
  color: var(--teal);
}
.subscription-page {
  max-width: 1200px;
  padding: 54px 40px 72px;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 84px;
  align-items: center;
  color: var(--ink);
}
.account-intro {
  padding: 12px 0 38px;
}
.account-intro h2 {
  font-size: clamp(36px, 3.8vw, 48px);
  line-height: 1.35;
  letter-spacing: -2.5px;
  margin: 0 0 24px;
  font-weight: 800;
}
.account-intro .highlight:after {
  height: 17px;
  bottom: 3px;
}
.intro-description {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 34px;
}
.inventory-preview {
  max-width: 390px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 23px 24px 0;
  box-shadow: 0 18px 48px #172b2708;
  transform: rotate(-2deg);
}
.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 15px;
}
.preview-live {
  font-size: 10px;
  background: #edf5e0;
  color: var(--deep);
  padding: 5px 9px;
  border-radius: 20px;
}
.preview-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-top: 1px solid #eff2eb;
  font-size: 13px;
  font-weight: 650;
}
.product-symbol {
  font-size: 25px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f5f7ed;
  display: grid;
  place-items: center;
}
.preview-row small {
  display: block;
  font-size: 10px;
  font-weight: 450;
  color: var(--muted);
  margin-top: 5px;
}
.preview-stock {
  margin-left: auto;
  text-align: right;
  font-size: 20px;
  letter-spacing: -0.6px;
}
.preview-bottom {
  background: var(--deep);
  color: #edf5e9;
  display: flex;
  justify-content: space-between;
  margin: 6px -24px 0;
  padding: 15px 20px;
  border-radius: 0 0 19px 19px;
  font-size: 10px;
}
.preview-bottom > span:last-child {
  color: var(--lime);
}
.intro-caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 26px;
}
.account-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 12px 48px #172b2705;
  min-width: 0;
}
.account-eyebrow {
  margin: 0 0 12px;
  font-size: 10px;
  color: var(--teal);
  font-weight: 750;
  letter-spacing: 1.3px;
}
.subscription-page h1 {
  font-size: 30px;
  letter-spacing: -1.4px;
  margin: 0 0 12px;
  line-height: 1.3;
}
.account-description {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 28px;
}
.subscription-page #login-section,
.subscription-page #auth-section {
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.subscription-page label {
  font-size: 13px;
  font-weight: 650;
  margin: 0 0 19px;
}
.subscription-page input:not([type="checkbox"]) {
  margin-top: 8px;
  height: 50px;
  border: 1px solid #dce4dc;
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 16px;
  background: #fdfefb;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.subscription-page input::placeholder {
  color: #919d95;
  font-size: 13px;
  font-weight: 400;
}
.subscription-page input:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px #0d706812;
}
.subscription-page button {
  border-color: var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  transition:
    background 0.15s,
    border-color 0.15s;
  min-height: 44px;
}
.subscription-page button:hover:not(:disabled) {
  border-color: var(--teal);
  background: #f3f8ef;
}
#login-form > button,
#auth-submit {
  width: 100%;
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  min-height: 50px;
  margin-top: 3px;
}
#login-form > button:hover:not(:disabled),
#auth-submit:hover:not(:disabled) {
  background: var(--deep);
  color: white;
}
#login-section .subscription-toolbar {
  justify-content: center;
  gap: 8px 16px;
  margin: 18px 0 22px;
}
#login-section .subscription-toolbar button,
#auth-section .subscription-toolbar button {
  padding: 5px 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
#login-section .subscription-toolbar a {
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
  padding: 10px 0;
}
#login-section > p {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
#auth-agreement-label {
  font-size: 12px;
  line-height: 1.8;
  font-weight: 400;
  color: var(--muted);
}
#auth-agreement {
  accent-color: var(--teal);
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  margin: 0 6px 0 0;
}
#auth-agreement-label a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink);
}
#auth-help {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 20px;
}
#auth-section .subscription-toolbar {
  justify-content: center;
  margin: 17px 0 0;
}
#notice:empty {
  margin: 0;
}
#notice:not(:empty) {
  font-size: 13px;
  padding: 13px 15px;
  border: 1px solid #efe4c7;
  margin: 0 0 22px;
}
.account-footer {
  max-width: 1120px;
  border-top: 1px solid var(--line);
  margin: 0 auto;
  padding: 25px 0 32px;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.account-footer div {
  display: flex;
  gap: 20px;
}
.signed-in .account-intro,
.signed-in .account-eyebrow {
  display: none;
}
.signed-in .subscription-page {
  display: block;
  max-width: 880px;
  padding-top: 30px;
}
.signed-in .account-content {
  padding: 36px;
}
@media (max-width: 1000px) {
  .subscription-page {
    gap: 40px;
    grid-template-columns: 1fr 420px;
  }
  .account-intro h2 {
    font-size: 36px;
  }
  .account-intro .eyebrow {
    font-size: 11px;
  }
  .account-footer {
    margin: 0 40px;
  }
}
@media (max-width: 800px) {
  .account-header {
    padding: 22px 24px;
  }
  .account-header .brand {
    font-size: 21px;
  }
  .home-link {
    font-size: 12px;
    gap: 6px;
  }
  .subscription-page {
    display: block;
    max-width: 520px;
    padding: 20px 24px 48px;
  }
  .account-intro {
    padding: 0 4px 26px;
  }
  .account-intro h2 {
    font-size: 30px;
    letter-spacing: -1.5px;
    margin-bottom: 0;
  }
  .account-intro .eyebrow {
    margin-bottom: 14px;
  }
  .account-intro .highlight:after {
    height: 12px;
  }
  .intro-description,
  .inventory-preview,
  .intro-caption {
    display: none;
  }
  .account-content {
    border-radius: 20px;
    padding: 28px 24px;
  }
  .subscription-page h1 {
    font-size: 27px;
  }
  .account-description {
    margin-bottom: 24px;
  }
  .account-footer {
    margin: 0 24px;
    flex-direction: column;
    gap: 12px;
    padding: 22px 0;
  }
  .signed-in .account-content {
    padding: 24px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .subscription-page input,
  .subscription-page button {
    transition: none;
  }
}

.account-field-label { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
#account-email { margin-top: 0; font-weight: 650; overflow-wrap: anywhere; }
.account-app-guide { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 4px; }
.account-app-guide p { color: var(--muted); font-size: 14px; }
.account-app-guide .button { margin-top: 12px; font-size: 14px; min-height: 48px; }

#signup-trial { background: #e3f4f1; border-radius: 16px; padding: 24px; margin-bottom: 24px; font-size: 14px; line-height: 1.65; color: #111418; }
#signup-trial .trial-eyebrow { margin: 0 0 12px; color: #0f766e; font-size: 12px; font-weight: 700; }
#signup-trial h3 { margin: 0 0 24px; font-size: clamp(22px, 5.8vw, 28px); line-height: 1.35; letter-spacing: -.04em; }
#signup-trial .trial-benefits { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
#signup-trial .trial-benefits li { display: flex; gap: 10px; align-items: baseline; }
#signup-trial .trial-benefits span { color: #0f766e; flex-shrink: 0; }
#signup-trial .trial-fallback { border-top: 1px solid #bcded7; padding-top: 20px; }
#signup-trial .trial-fallback p { margin: 8px 0 20px; color: #5b6470; }
#signup-trial .trial-reassurance { color: #0f766e; font-size: 12px; font-weight: 650; margin: 0; }
#signup-trial summary { min-height: 44px; padding-top: 14px; cursor: pointer; color: #0f766e; }
#signup-trial details p { color: #5b6470; margin: 8px 0; }
#signup-trial a { display: inline-block; min-height: 44px; padding-top: 10px; color: #0f766e; }
@media (max-width: 360px) { #signup-trial { padding: 18px; } }
