:root {
  color-scheme: dark;
  --background: #0c0d0f;
  --panel: #15171b;
  --edge: #343840;
  --text: #f0f2f5;
  --secondary: #b7bdc8;
  --metal: #cdd7e3;
  font: 100%/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--background); }
.shell { width: min(68rem, calc(100% - 3rem)); margin: 0 auto; }
.header, .footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.header { justify-content: space-between; min-height: 5rem; border-bottom: 1px solid var(--edge); }
.footer { padding: 2rem 0; margin-top: 3rem; border-top: 1px solid var(--edge); }
nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
a { color: var(--metal); text-underline-offset: .25em; }
a:hover { color: #fff; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 750; text-decoration: none; }
.brand img { display: block; border-radius: 50%; }
h1, h2, h3, p { margin: 0; }
.plan { display: flex; flex-direction: column; min-height: 12.5rem; background: var(--panel); border: 1px solid var(--edge); border-radius: .65rem; padding: 1.15rem; }
button { font: inherit; font-weight: 690; cursor: pointer; border: 1px solid transparent; border-radius: .4rem; padding: .55rem .9rem; color: #12151b; background: var(--metal); }
button:hover { background: white; }
:focus-visible { outline: 2px solid #a7d1fc; outline-offset: 3px; }
.plan button { align-self: stretch; margin-top: auto; }
.landing { --background: #0c0d0e; --panel: #111215; --edge: #303237; --text: #f2f1ef; --secondary: #b7bac2; }
.landing .header { border-bottom: 0; }
.landing nav { align-items: center; gap: .55rem 1.25rem; }
.landing .header nav a { font-size: .875rem; text-decoration: none; }
.landing .footer { margin-top: 0; }
.button-link { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .95rem; border: 1px solid transparent; font-size: .9rem; font-weight: 680; text-decoration: none; }
.button-primary { color: #13161a; background: linear-gradient(160deg, #f8fafc, #b3bec9); border-color: #e5e9ec; }
.button-primary:hover { color: #13161a; background: #e5e9ec; }
.button-outline { color: var(--text); border-color: #555860; background: #191b20; }
.button-outline:hover { background: #30343b; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--edge); background: radial-gradient(ellipse at 76% 32%, #24282f, transparent 54%), #101114; }
.hero-layout { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; min-height: 410px; padding-block: 2.45rem; }
.hero h1 { max-width: 13ch; font-size: clamp(2.6rem, 6vw, 4.65rem); letter-spacing: -.063em; line-height: .98; text-wrap: balance; }
.hero p { max-width: 35ch; color: var(--secondary); margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 300px; }
.hero-art img { position: relative; display: block; width: min(91%, 320px); height: auto; mix-blend-mode: screen; }
.hero-orbit { position: absolute; width: min(95%, 400px); aspect-ratio: 1; transform: rotate(-22deg) scaleY(.63); border: 1px solid #707983; border-radius: 50%; box-shadow: inset 0 1px 5px #93a6b45e, 0 1px 9px #899cb945; }
.hero-orbit::after { content: ""; position: absolute; inset: .64rem; border: 1px solid #444d58; border-radius: inherit; }
.locations-strip { border-block: 1px solid var(--edge); }
.locations { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 0; padding: 0; }
.locations li { display: grid; gap: .1rem; padding: .7rem .75rem; border-inline-start: 1px solid var(--edge); }
.locations li:last-child { border-inline-end: 1px solid var(--edge); }
.locations span { color: var(--secondary); font-size: .77rem; }
.locations strong { font-size: .875rem; font-weight: 650; }
.pricing { padding-block: 2rem 2.4rem; }
.pricing-header { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem 1rem; margin-bottom: .85rem; }
.pricing-header h2 { font-size: 1.65rem; letter-spacing: -.03em; }
.pricing-header p { color: var(--secondary); font-size: .875rem; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.plan-option { display: grid; gap: .28rem; text-align: start; padding: .9rem; border: 1px solid var(--edge); border-radius: 0; color: var(--text); background: var(--panel); }
.plan-option .price { font-size: clamp(1.25rem, 2.5vw, 1.75rem); letter-spacing: -.04em; }
.plan-option span { color: var(--secondary); font-size: .85rem; font-weight: 500; }
.plan-option.year { background: linear-gradient(145deg, #2c3037, #181a1e); border-color: #85919d; }
.plan-option:hover { background: #25282e; border-color: #cbd4df; }
dialog { padding: 1.75rem; border-radius: .7rem; width: min(29rem, calc(100% - 2rem)); border: 1px solid var(--edge); background: var(--panel); color: var(--text); }
dialog::backdrop { background: #070a0dd9; }
dialog p { margin: .65rem 0; color: var(--secondary); }
.dismiss { float: right; }
.dismiss button { color: var(--text); background: transparent; padding: 0 .4rem; font-size: 1.4rem; }
.checkout-plan { font-weight: 700; font-size: 1.2rem; }
#payment-status { margin-bottom: 0; }
#payment-status:empty { display: none; }
.document { max-width: 48rem; padding: 3rem 0 0; }
.document h1 { margin-bottom: 1rem; line-height: 1.15; }
.document h2 { margin: 1.7rem 0 .5rem; font-size: 1.2rem; }
.document p { margin: .65rem 0; }
.document table { border-collapse: collapse; width: 100%; }
.document th, .document td { padding: .55rem; text-align: left; border-bottom: 1px solid var(--edge); }
.document .note { color: var(--secondary); }
.account { max-width: 46rem; padding: 3rem 0; }
.account h1 { margin-bottom: 1.25rem; line-height: 1.15; font-size: clamp(2rem, 5vw, 3rem); }
.account-card { min-height: auto; gap: .75rem; }
.account-card p { margin-bottom: .65rem; }
.account-card p:empty { display: none; }
#email-form, #account-checkout { border-top: 1px solid var(--edge); padding-top: 1rem; }
#email-form h2, #account-checkout h2 { font-size: 1.15rem; margin-bottom: .65rem; }
#email-form input, #happ-link {
  display: block; width: 100%; margin: .4rem 0 .65rem; padding: .6rem .75rem;
  background: var(--background); color: var(--text); border: 1px solid var(--edge);
  border-radius: .4rem; font: inherit;
}
#account-checkout button { display: block; margin-top: .75rem; }
#email-message { margin-top: .65rem; }
#subscription-link { margin: 1rem 0; }
#sign-out { margin-left: .75rem; }
@media (max-width: 45rem) {
  .hero-layout { grid-template-columns: 1fr; min-height: 0; padding-block: 2rem .8rem; }
  .hero h1 { max-width: 18ch; }
  .hero-art { min-height: 174px; }
  .hero-orbit { width: min(69%, 260px); }
  .hero-art img { width: min(62%, 185px); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 32rem) {
  .shell { width: calc(100% - 2rem); }
  .landing .header { padding-block: .85rem; }
  .locations li { padding-inline: .35rem; }
}
