:root {
  color-scheme: light;
  --teal-950:#071723;
  --teal-900:#0b2435;
  --teal-800:#004f7a;
  --teal-700:#0075ad;
  --teal-600:#0093d0;
  --teal-500:#23aee8;
  --turq:#6EC1E4;
  --turq-300:#95d8f0;
  --turq-100:#e4f6fd;
  --cream:#f5fbff;
  --paper:#ffffff;
  --sand:#d9f0fa;
  --white:#ffffff;
  --coral:#ff4f2e;
  --coral-600:#e43f22;
  --coral-100:#ffe2db;
  --gold:#f5b400;
  --gold-100:#fff2c8;
  --ink:#111820;
  --ink-2:#33495a;
  --muted:#586c7b;
  --muted-2:#8ca0ad;
  --pro:#0a9f68;
  --pro-bg:#e5f8f0;
  --pro-line:#9ee7c8;
  --line:rgba(17,24,32,.10);
  --line-2:rgba(17,24,32,.18);
  --r-xs:10px;
  --r-sm:14px;
  --r:18px;
  --r-lg:24px;
  --r-xl:32px;
  --sh-sm:0 1px 2px rgba(10,38,66,.06), 0 3px 10px rgba(10,38,66,.06);
  --sh-md:0 6px 18px rgba(10,38,66,.09), 0 14px 38px rgba(10,38,66,.08);
  --sh-lg:0 14px 40px rgba(10,38,66,.16), 0 36px 80px rgba(8,30,55,.20);
  --maxw:1080px;
  --ff-head:"Fraunces",Georgia,serif;
  --ff-body:"Manrope",system-ui,-apple-system,sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(110,193,228,.34), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--cream) 56%, #e7f7fd 130%);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--ff-head);
  font-weight: 480;
  line-height: 1.06;
  letter-spacing: -.012em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--turq);
  outline-offset: 2px;
  border-radius: 5px;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(100% - 36px, var(--maxw));
  margin: 0 auto;
  padding: 22px 0 54px;
}

.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.screen {
  width: min(100%, 520px);
}

.dashboard-screen {
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand .brand-mark-img {
  width: 30px;
  height: 37px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(17,80,127,.18));
}

.brand .brand-logo-img {
  display: block;
  width: auto;
  height: 60px;
  max-width: min(56vw, 210px);
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(17,80,127,.14));
}

.brand .brand-logo-img + span {
  display: none;
}

.brand b {
  display: inline-block;
  color: var(--teal-800);
  font-family: var(--ff-body);
  font-size: 16.5px;
  line-height: 1.02;
  font-weight: 800;
}

.brand span span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.06;
}

.brand-dot {
  display: none;
}

.brand-name {
  color: var(--teal-800);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: none;
}

.topbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 0 28px;
}

.hero h1 {
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 430;
  line-height: .98;
  letter-spacing: -.025em;
}

.hero > div {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.subhead {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.55;
}

.account-hub-hero {
  align-items: center;
  padding: 28px 0 20px;
}

.account-hub-hero h1 {
  max-width: none;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.04;
}

.account-email,
.mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--teal-600);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.account-email {
  display: block;
  width: 100%;
  max-width: 100%;
  position: relative;
  padding-left: 40px;
  color: var(--teal-600);
  font-size: 13px;
  letter-spacing: .02em;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.account-email::before,
.mini::before {
  content: "";
  width: 30px;
  min-width: 30px;
  height: 2px;
  margin-top: .65em;
  background: var(--coral);
  border-radius: 2px;
}

.account-email::before {
  position: absolute;
  left: 0;
  top: .65em;
  margin-top: 0;
}

.panel {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: clamp(24px, 5vw, 34px);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
}

.panel h1 {
  color: var(--ink);
  font-size: clamp(38px, 7vw, 62px);
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--teal-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: var(--sh-sm);
  color: var(--ink);
}

.field input,
.field select {
  min-height: 48px;
  padding: 0 14px;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--teal-700) 50%),
    linear-gradient(135deg, var(--teal-700) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 21px,
    calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
  padding: 12px 14px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.button,
.text-button,
.link-button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-weight: 750;
  font-size: 15px;
  text-decoration: none;
  transition: transform .14s, box-shadow .14s, background .14s, border-color .14s, color .14s;
}

.button {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 26px rgba(232,73,44,.34);
}

.button:hover {
  background: var(--coral-600);
  box-shadow: 0 14px 32px rgba(232,73,44,.44);
  transform: translateY(-1px);
}

.button:disabled {
  opacity: .62;
  cursor: progress;
  transform: none;
}

.text-button,
.link-button {
  background: var(--white);
  color: var(--ink-2);
  border-color: var(--line-2);
  box-shadow: var(--sh-sm);
}

.top-actions .text-button {
  min-height: 34px;
  padding: 5px 10px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}

.text-button:hover,
.link-button:hover,
.top-actions .text-button[aria-current="page"] {
  color: var(--teal-700);
  border-color: var(--turq-300);
  background: var(--white);
}

.state {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.state.ok {
  color: var(--pro);
}

.state.error {
  color: var(--coral-600);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.step {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 15px;
  background: var(--cream);
}

.step strong {
  display: block;
  color: var(--ink);
}

.step span {
  display: block;
  color: var(--ink-2);
  margin-top: 4px;
}

.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.apps-grid.products-grid {
  gap: 26px;
}

.app-card,
.upsell-card {
  min-height: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s, border-color .2s;
}

.app-card:hover,
.upsell-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: var(--turq-300);
}

.app-card:not(.product-card),
.upsell-card {
  padding: 22px;
  justify-content: space-between;
  gap: 20px;
}

.app-card h2,
.upsell-card h2 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 520;
  margin-top: 10px;
}

.app-card p,
.upsell-card p {
  color: var(--ink-2);
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.product-cover {
  position: relative;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: #fff;
  background: var(--teal-800);
  overflow: hidden;
}

.product-cover img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}

.product-card:hover .product-cover img {
  transform: scale(1.05);
}

.product-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(178deg, rgba(6,28,50,.06) 30%, rgba(6,28,50,.20) 60%, rgba(6,28,50,.66));
}

.product-status {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 6px 13px 6px 9px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--sh-sm);
  color: var(--teal-800);
  font-size: 12px;
  font-weight: 800;
}

.product-status::before {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-600), var(--turq));
}

.product-status.included {
  color: var(--pro);
}

.product-status.included::before {
  background: linear-gradient(135deg, var(--pro), var(--turq));
}

.product-card-core {
  border: 1px solid rgba(0,117,173,.28);
  box-shadow: var(--sh-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,251,255,.98)),
    var(--white);
}

.product-card-core::before {
  content: "";
  height: 5px;
  background: linear-gradient(90deg, var(--teal-600), var(--turq), var(--coral));
}

.product-card-core .product-status {
  color: var(--teal-800);
}

.product-card-core .product-body {
  padding: clamp(24px, 4vw, 34px);
}

.product-card-core .product-body h2 {
  max-width: 15ch;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -.018em;
}

.product-card-core .product-body p {
  max-width: 42ch;
  font-size: 16px;
}

.product-card-core .product-foot {
  max-width: 280px;
}

.addon-section {
  display: grid;
  gap: 14px;
}

.addon-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.addon-head .mini {
  margin: 0;
}

.addon-head h2 {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.08;
}

.addon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.product-card-addon {
  border-color: rgba(10,159,104,.20);
  box-shadow: var(--sh-sm);
}

.product-card-addon::before {
  content: "";
  height: 4px;
  background: linear-gradient(90deg, var(--pro), var(--turq));
}

.product-card-addon .product-cover {
  aspect-ratio: 16 / 9;
}

.product-card-addon .product-body h2 {
  font-size: 25px;
}

.product-card-addon .button {
  background: var(--teal-700);
  box-shadow: 0 8px 22px rgba(0,117,173,.28);
}

.product-card-addon .button:hover {
  background: var(--teal-800);
  box-shadow: 0 12px 28px rgba(0,79,122,.34);
}

.product-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge,
.tagchip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--turq-100);
  color: var(--teal-800);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.badge.included,
.tagchip.feat {
  background: var(--coral-100);
  color: var(--coral-600);
}

.badge.unlocked {
  background: var(--pro-bg);
  color: var(--pro);
}

.product-body h2 {
  margin-top: 0;
}

.product-body p {
  margin-top: 0;
}

.product-foot {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.product-foot .button,
.product-foot .link-button {
  flex: 1;
  border-radius: 12px;
  min-height: 46px;
}

.footer {
  color: var(--muted);
  font-size: 13px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
}

.legal-links a {
  color: var(--teal-700);
  font-weight: 750;
  text-decoration: none;
}

.legal-links a:hover {
  color: var(--teal-800);
  text-decoration: underline;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.footer-actions .text-button {
  min-height: 38px;
  padding: 0 14px;
}

.copyright {
  margin-top: 10px;
  color: var(--muted-2);
}

.support-panel h2 {
  color: var(--ink);
  font-size: clamp(28px, 4vw, 40px);
}

@media (min-width: 760px) {
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .apps-grid.products-grid {
    grid-template-columns: 1fr;
  }

  .product-card-core {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  }

  .product-card-core::before {
    grid-column: 1 / -1;
  }

  .product-card-core .product-cover {
    min-height: 330px;
    aspect-ratio: auto;
  }

  .product-card-core .product-body {
    justify-content: center;
  }

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

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .auth-shell {
    align-items: stretch;
    padding: 14px;
  }

  .screen,
  .dashboard-screen {
    width: 100%;
  }

  .shell {
    width: min(100% - 28px, var(--maxw));
    padding-top: 14px;
  }

  .topbar,
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .top-actions .text-button {
    background: var(--white);
    border: 1px solid var(--line-2);
    box-shadow: var(--sh-sm);
    flex: 1 1 auto;
  }

  .button,
  .link-button,
  .product-foot {
    width: 100%;
  }

  .link-row {
    align-items: stretch;
    flex-direction: column;
  }

  .panel {
    padding: 24px 22px;
  }

  .brand .brand-logo-img {
    height: 50px;
    max-width: min(62vw, 178px);
  }

  .addon-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .product-card-core .product-foot {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .app-card:hover,
  .upsell-card:hover,
  .button:hover {
    transform: none;
  }
}
