:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0b0d;
  color: #f5f2f6;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(62rem 42rem at 78% -24rem, rgba(159, 150, 186, .22), transparent 63%),
    radial-gradient(54rem 34rem at -15% 104%, rgba(53, 92, 77, .13), transparent 66%),
    #0a0b0d;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .32;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
main { width: min(100% - 40px, 1180px); margin: 0 auto; padding: 22px 0 76px; }

.shellbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 8px 13px 8px 8px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 18px;
  background: rgba(21,22,25,.74);
  box-shadow: inset 0 1px rgba(255,255,255,.055), 0 16px 48px rgba(0,0,0,.18);
  backdrop-filter: blur(22px);
}
.brand, .account-mark { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.brand { font-size: 1rem; font-weight: 780; letter-spacing: -.045em; }
.brand i, .account-mark i { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 13px 13px 8px 13px; color: #1a1a1e; background: #f0ebf2; font-size: 1.08rem; font-style: normal; }
.brand em, .account-mark em { color: #a9a7ad; font-size: .9em; font-style: normal; font-weight: 570; letter-spacing: -.025em; }
.connection { display: inline-flex; align-items: center; gap: 8px; color: #aaa8ae; font-size: .78rem; }
.connection b { width: 8px; height: 8px; border-radius: 50%; background: #a8d6bd; box-shadow: 0 0 0 4px rgba(168,214,189,.12); }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: .95; letter-spacing: -.073em; }
h2 { font-size: 1.35rem; letter-spacing: -.04em; }
p { color: #b7b4bb; line-height: 1.58; }
.eyebrow { margin-bottom: 9px; color: #d6d0da; font-size: .68rem; font-weight: 760; letter-spacing: .15em; text-transform: uppercase; }
.muted { color: #98969d; }

button, .button, .quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  padding: 11px 16px;
  color: #19191d;
  background: #f0ebf2;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  cursor: pointer;
  font: inherit;
  font-weight: 760;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
button:hover, .button:hover { transform: translateY(-1px); background: #fffaff; }
.secondary, .quiet { color: #eeeaf0; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.secondary:hover, .quiet:hover { color: #fff; background: rgba(255,255,255,.12); }
.quiet { min-height: 38px; padding: 8px 12px; font-size: .83rem; }
.text-link { color: #eee9f0; font-size: .86rem; font-weight: 720; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Public, pairing and sign-in pages */
.hero { position: relative; overflow: hidden; min-height: 446px; margin-top: 18px; padding: clamp(40px, 7vw, 78px); border: 1px solid rgba(255,255,255,.09); border-radius: 36px; background: linear-gradient(140deg, rgba(43,43,49,.96), rgba(23,24,27,.96)); box-shadow: inset 0 1px rgba(255,255,255,.065), 0 36px 90px rgba(0,0,0,.24); }
.hero::after { position: absolute; top: -140px; right: -110px; width: 370px; height: 370px; border: 46px solid rgba(245,241,247,.07); border-radius: 46% 54% 58% 42%; content: ""; transform: rotate(-17deg); }
.hero-orb { position: absolute; right: clamp(28px, 7vw, 92px); bottom: 48px; display: grid; width: 94px; height: 94px; place-items: center; border-radius: 32px 32px 52px 32px; color: #222126; background: #eee9f0; box-shadow: 0 20px 44px rgba(0,0,0,.25); font-size: 3rem; transform: rotate(-11deg); }
.hero h1 { position: relative; z-index: 1; max-width: 680px; margin: 8px 0 23px; font-size: clamp(3.1rem, 8.1vw, 6.1rem); }
.hero h1 span { color: #c9c5cd; }
.lead { position: relative; z-index: 1; max-width: 560px; font-size: 1.12rem; }
.hero-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.hero-note { color: #a8a5ab; font-size: .83rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.grid article, .panel { border: 1px solid rgba(255,255,255,.075); border-radius: 25px; background: rgba(26,27,30,.9); box-shadow: inset 0 1px rgba(255,255,255,.045), 0 12px 34px rgba(0,0,0,.13); }
.grid article { min-height: 180px; padding: 25px; }
.grid article i { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 24px; border-radius: 15px 15px 11px 15px; color: #ece7ee; background: #414248; font-size: 1.2rem; font-style: normal; }
.grid b { display: block; font-size: 1.03rem; letter-spacing: -.02em; }
.grid p { margin: 9px 0 0; font-size: .9rem; }
.panel { max-width: 690px; margin: 68px auto; padding: clamp(24px, 5vw, 42px); }
label { display: block; margin: 22px 0; color: #d8d4db; font-size: .9rem; }
input { display: block; width: 100%; margin-top: 9px; border: 1px solid #48494e; border-radius: 13px; padding: 15px 16px; color: inherit; outline: none; background: #111215; font: inherit; }
input:focus { border-color: #c7c1cb; box-shadow: 0 0 0 4px rgba(231,226,232,.1); }
.notice { margin: 20px 0; border-left: 3px solid #e6e0e8; border-radius: 0 13px 13px 0; padding: 12px 14px; color: #dad4dd; background: rgba(225,220,228,.08); }

/* Account product shell */
.account-app { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.account-sidebar { position: sticky; top: 20px; align-self: start; min-height: 590px; padding: 18px 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 25px; background: rgba(25,26,29,.79); box-shadow: inset 0 1px rgba(255,255,255,.05), 0 22px 55px rgba(0,0,0,.16); backdrop-filter: blur(20px); }
.account-mark { margin: 0 5px 28px; }
.account-mark i { width: 38px; height: 38px; }
.account-mark span { display: grid; line-height: 1.02; }
.account-mark b { font-size: .98rem; letter-spacing: -.045em; }
.account-mark em { margin-top: 2px; font-size: .79rem; }
.account-sidebar nav { display: grid; gap: 4px; }
.account-nav-link { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 0 12px; border-radius: 12px; color: #aaa7ae; font-size: .9rem; font-weight: 700; text-decoration: none; }
.account-nav-link span { display: grid; width: 19px; place-items: center; color: #c7c1cb; font-size: 1.08rem; }
.account-nav-link:hover { color: #f3eff5; background: rgba(255,255,255,.06); }
.account-nav-link.active { color: #1d1b20; background: #ece7ee; box-shadow: 0 5px 14px rgba(0,0,0,.17); }
.account-nav-link.active span { color: inherit; }
.account-sidebar-note { position: absolute; right: 18px; bottom: 16px; left: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.075); }
.account-sidebar-note p { margin: 10px 0 0; font-size: .75rem; line-height: 1.45; }
.account-stage { min-width: 0; }
.account-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 152px; padding: 18px 8px 24px; }
.account-header h1 { margin: 0 0 10px; font-size: clamp(2.25rem, 4vw, 4rem); }
.account-header p:not(.eyebrow) { max-width: 560px; margin-bottom: 0; }

.overview-hero, .billing-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; min-height: 250px; overflow: hidden; padding: 34px; border: 1px solid rgba(238,232,242,.16); border-radius: 29px; background: radial-gradient(25rem 18rem at 100% 5%, rgba(165,154,192,.22), transparent 65%), linear-gradient(135deg, #302f38, #202126 70%); box-shadow: inset 0 1px rgba(255,255,255,.075), 0 24px 56px rgba(0,0,0,.19); }
.overview-hero h2, .billing-hero h2 { margin: 0 0 5px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: .95; letter-spacing: -.065em; }
.overview-hero > div > p:not(.eyebrow) { margin: 0; }
.hero-copy { max-width: 520px; margin-top: 24px !important; color: #c7c3ca; }
.hero-status { align-self: end; padding: 19px; border: 1px solid rgba(255,255,255,.11); border-radius: 20px; background: rgba(13,14,17,.34); }
.hero-status > div { margin-top: 12px; }
.hero-status b { display: block; }
.hero-status p { margin: 4px 0 0; font-size: .82rem; }
.status-orb { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 50%; background: #5b5860; }
.status-orb i { width: 12px; height: 12px; border-radius: 50%; background: #d6d0db; }
.status-orb.active { background: rgba(142, 215, 176, .16); }
.status-orb.active i { background: #a9dbbc; box-shadow: 0 0 0 7px rgba(169,219,188,.07); }
.account-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 13px 0; }
.account-metrics article { min-height: 105px; padding: 18px; border: 1px solid rgba(255,255,255,.075); border-radius: 20px; background: rgba(29,30,33,.78); }
.account-metrics span { float: right; color: #d8d2dc; font-size: 1.12rem; }
.account-metrics p { margin: 18px 0 1px; color: #96939a; font-size: .76rem; }
.account-metrics b { font-size: .97rem; letter-spacing: -.025em; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .75fr); gap: 13px; margin: 13px 0; }
.surface-card { min-width: 0; padding: 26px; border: 1px solid rgba(255,255,255,.075); border-radius: 25px; background: rgba(27,28,31,.89); box-shadow: inset 0 1px rgba(255,255,255,.045), 0 14px 36px rgba(0,0,0,.12); }
.surface-card.wide { min-width: 0; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.section-heading .eyebrow, .billing-action .eyebrow { margin-bottom: 5px; }
.section-heading h2, .billing-action h2 { margin: 0; font-size: 1.27rem; }
.section-heading > span:not(.badge), .count { color: #d4cfda; font-size: 1.15rem; }
.count { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: rgba(255,255,255,.08); font-size: .8rem; }
.device-list, .subscription-list { display: grid; }
.device-row, .subscription-list article { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.075); }
.device-row:first-child, .subscription-list article:first-child { border-top: 0; padding-top: 0; }
.device-row b, .subscription-list b { display: block; font-size: .92rem; }
.device-row p, .subscription-list p { margin: 3px 0 0; color: #96939a; font-size: .77rem; line-height: 1.38; }
.device-icon, .subscription-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #ded8e2; background: rgba(255,255,255,.08); }
.empty-state { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; min-height: 86px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.075); }
.empty-state span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #a6a2aa; background: rgba(255,255,255,.05); }
.empty-state p { margin: 0; color: #98959d; font-size: .82rem; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; color: #dfdae2; background: #39383e; font-size: .7rem; font-weight: 700; }
.badge.ready { color: #d0f0dd; background: rgba(64,116,84,.5); }
.enrollment-card { margin: 13px 0; }
.enrollment-card .section-heading p:not(.eyebrow) { max-width: 570px; margin: 7px 0 0; }
.enrollment { display: block; overflow-wrap: anywhere; margin-top: 17px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 16px; color: #d5f1df; background: #111316; user-select: all; }

/* Catalog and billing */
.catalog-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .65fr); align-items: end; gap: 28px; min-height: 260px; padding: 32px; border: 1px solid rgba(255,255,255,.08); border-radius: 29px; background: linear-gradient(138deg, rgba(41,42,48,.96), rgba(25,26,29,.95)); }
.catalog-symbol { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 34px; border-radius: 16px 16px 11px 16px; color: #222126; background: #ede8ef; font-size: 1.35rem; }
.catalog-intro h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 4.15rem); line-height: .92; letter-spacing: -.075em; }
.catalog-intro > p { max-width: 310px; margin: 0 0 4px; font-size: .96rem; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 13px; }
.product-card { display: flex; min-height: 275px; flex-direction: column; justify-content: space-between; gap: 24px; padding: 28px; border: 1px solid rgba(255,255,255,.08); border-radius: 25px; background: linear-gradient(140deg, rgba(34,35,39,.98), rgba(23,24,27,.98)); box-shadow: inset 0 1px rgba(255,255,255,.05), 0 14px 36px rgba(0,0,0,.12); }
.product-card.active { border-color: rgba(169,219,188,.31); background: radial-gradient(20rem 13rem at 100% 0, rgba(80,137,101,.18), transparent 68%), linear-gradient(140deg, #28342e, #1b211e); }
.product-card h2 { margin: 7px 0 8px; font-size: 1.55rem; }
.product-card p { max-width: 410px; margin: 0; }
.price-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.price-actions button { flex: 1; min-width: 134px; }
.price-actions small { font-size: .72em; font-weight: 600; }
.catalog-footnote { margin: 18px 6px; color: #85828a; font-size: .78rem; }
.billing-hero { grid-template-columns: 78px minmax(0, 1fr); min-height: 198px; align-items: start; }
.billing-hero > span { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 20px 20px 13px 20px; color: #242127; background: #eee9f0; font-size: 1.65rem; }
.billing-hero h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.billing-hero p:last-child { max-width: 640px; margin-bottom: 0; }
.billing-action { display: flex; flex-direction: column; align-items: flex-start; }
.billing-action > p:not(.eyebrow) { flex: 1; }

@media (max-width: 820px) {
  main { width: min(100% - 24px, 1180px); padding-top: 12px; }
  .account-app { grid-template-columns: 1fr; gap: 12px; }
  .account-sidebar { position: static; display: flex; min-height: auto; align-items: center; gap: 12px; padding: 10px; border-radius: 19px; }
  .account-mark { flex: 0 0 auto; margin: 0 4px; }
  .account-sidebar nav { display: flex; flex: 1; gap: 2px; overflow-x: auto; }
  .account-nav-link { flex: 0 0 auto; min-height: 38px; padding: 0 10px; font-size: .82rem; }
  .account-sidebar-note { display: none; }
  .account-header { min-height: auto; padding: 24px 6px 18px; }
  .overview-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-status { max-width: 310px; }
}
@media (max-width: 620px) {
  .shellbar { border-radius: 15px; }
  .connection { font-size: .68rem; }
  .hero { min-height: 470px; padding: 42px 29px; border-radius: 28px; }
  .hero-orb { right: 24px; bottom: 28px; width: 72px; height: 72px; font-size: 2.2rem; }
  .grid, .account-metrics, .content-grid, .product-grid { grid-template-columns: 1fr; }
  .hero-note { display: none; }
  .account-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .account-header h1 { font-size: 2.55rem; }
  .overview-hero, .catalog-intro, .billing-hero { padding: 25px; border-radius: 24px; }
  .catalog-intro { grid-template-columns: 1fr; min-height: 0; }
  .catalog-symbol { margin-bottom: 22px; }
  .catalog-intro > p { margin-top: 4px; }
  .billing-hero { grid-template-columns: 1fr; gap: 18px; }
  .surface-card, .product-card { padding: 22px; border-radius: 22px; }
  .device-row { grid-template-columns: 34px minmax(0,1fr); }
  .device-row form, .device-row > .badge { grid-column: 2; justify-self: start; }
  .enrollment-card .section-heading { flex-direction: column; }
}
