:root {
  color-scheme: dark;
  --bg: #0d1110;
  --surface: #141918;
  --surface-raised: #1a201e;
  --line: #29322f;
  --line-strong: #3a4742;
  --text: #e8ece9;
  --muted: #929d98;
  --accent: #82b68a;
  --accent-soft: #16251a;
  --danger: #ee8e82;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -.025em;
}
.shell, .site-header, footer, .account-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #46604c;
  border-radius: 6px;
  background: var(--accent-soft);
  color: #acd2b2;
  font-size: 13px;
  font-weight: 700;
}
.site-nav { display: flex; flex: 1; align-items: center; min-width: 0; margin-left: 34px; }
.nav-links, .nav-actions { display: flex; align-items: center; }
.nav-links { gap: 20px; }
.nav-actions { gap: 8px; margin-left: auto; }
.nav-links > a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.nav-links > a:hover, .nav-links > a[aria-current="page"] { color: var(--text); }
.social-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  text-decoration: none;
}
.social-icon:hover { background: var(--surface-raised); }
.social-icon:focus-visible, .nav-links > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.social-icon img { display: block; width: 21px; height: 21px; opacity: .82; }
.social-icon:hover img { opacity: 1; }
.download-menu { position: relative; display: inline-flex; }
.download-menu > summary { list-style: none; }
.download-menu > summary::-webkit-details-marker { display: none; }
.download-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  display: grid;
  min-width: 225px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}
.nav-actions .download-options { right: 0; left: auto; }
.download-options a {
  padding: 9px 10px;
  border-radius: 4px;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}
.download-options a:hover { background: var(--surface-raised); color: var(--text); }
.download-note { margin: 4px 10px 7px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.button {
  display: inline-flex;
  min-height: 40px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.button:hover { border-color: #55645e; background: #202725; }
.button.primary {
  border-color: #55745c;
  background: var(--accent-soft);
  color: #b7dbbc;
}
.button.primary:hover { background: #1b2e20; border-color: var(--accent); }
.button.small { min-height: 34px; padding: 0 13px; font-size: 13px; }
.button.full { width: 100%; }
.button:disabled, button:disabled { opacity: .48; cursor: wait; }

.eyebrow {
  color: var(--accent);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 68px;
  align-items: center;
  padding-block: 78px 64px;
}
.hero h1 {
  max-width: 560px;
  margin: 13px 0 18px;
  font-size: clamp(38px, 4.3vw, 50px);
  line-height: 1.04;
}
.hero-copy {
  max-width: 500px;
  margin-bottom: 0;
  color: #b1bbb6;
  font-size: 17px;
}
.actions { display: flex; gap: 10px; margin-top: 26px; }
.fine-print { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.centered { text-align: center; }

.app-preview {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #101412;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .22);
}
.preview-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.preview-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45504b;
}
.preview-bar strong {
  margin-left: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.preview-empty {
  height: calc(100% - 38px);
  display: grid;
  place-content: center;
  text-align: center;
  color: #77827d;
}
.preview-empty span { font-size: 14px; }
.preview-empty small { margin-top: 3px; color: #59625e; }

.access-section { padding-top: 58px; }
.access-heading { margin-bottom: 16px; }
.access-heading h2 { margin: 5px 0 0; font-size: 23px; }
.access-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.access-card {
  display: grid;
  grid-template-columns: minmax(112px, .75fr) 1.25fr;
  gap: 18px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.access-term span { display: block; color: var(--muted); font-size: 12px; }
.access-term strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.access-details ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.access-details li + li { margin-top: 6px; }

.pricing-section { padding-block: 72px 90px; }
.pricing-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #111614;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-heading h2 { margin: 7px 0 0; font-size: 30px; }
.section-heading p { margin-bottom: 3px; color: var(--muted); font-size: 13px; }
.price-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.price-cards a {
  position: relative;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
  text-decoration: none;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.price-cards a.recommended { border-color: #55745c; }
.price-cards small, .package-row small {
  display: block;
  margin-bottom: 5px;
  color: #b7dbbc;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.price-cards a:hover {
  border-color: var(--accent);
  background: #1c2420;
  transform: translateY(-1px);
}
.price-cards strong { display: block; font-size: 16px; font-weight: 650; }
.price-cards span {
  display: block;
  margin-top: 7px;
  color: var(--accent);
  font-size: 17px;
}

footer.site-footer {
  display: block;
  padding-block: 30px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px; padding-bottom: 26px; }
.footer-brand p { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.footer-column { display: grid; align-content: start; justify-items: start; gap: 7px; }
.footer-column h2 { margin: 0 0 4px; color: var(--text); font-family: inherit; font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.footer-column a { color: var(--muted); text-decoration: none; font-size: 12px; }
.footer-column a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: #77817c; font-size: 11px; }
.legal-shell a, .fine-print a { color: #a7cbae; }
.placeholder-shell { min-height: 300px; padding-block: 70px 90px; }
.placeholder-shell h1 { margin: 9px 0 8px; font-size: 36px; }
.placeholder-shell p { color: var(--muted); }

.legal-shell { max-width: 760px; padding-block: 54px 90px; }
.legal-shell h1 { margin: 9px 0 28px; font-size: 36px; }
.legal-shell h2 { margin: 36px 0 10px; font-size: 21px; }
.legal-shell h3 { margin-top: 24px; font-size: 17px; }
.legal-shell p, .legal-shell li { color: #b7c0bc; }
.legal-shell ul { padding-left: 20px; }
.legal-meta { color: var(--muted); font-size: 12px; }
.contact-card {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.contact-card address { color: #bcc5c1; font-style: normal; }

.account-shell { max-width: 900px; padding-block: 54px 84px; }
.account-heading { margin-bottom: 28px; }
.account-heading h1 { margin: 9px 0 12px; font-size: 34px; line-height: 1.1; }
.account-heading p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.auth-panel { max-width: 460px; }
.tab-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -5px -5px 18px;
  padding: 4px;
  border-radius: 7px;
  background: var(--bg);
}
.tab {
  padding: 8px 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}
.tab.active { background: var(--surface-raised); color: var(--text); }
label { display: grid; gap: 5px; margin-bottom: 13px; color: var(--muted); font-size: 12px; }
input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: #0f1312;
  color: var(--text);
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(130, 182, 138, .1); }
.notice {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #425d48;
  border-radius: 6px;
  background: var(--accent-soft);
  color: #c5dfca;
}
.notice.error { border-color: #69433e; background: #251816; color: #f2b2aa; }
.dashboard-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.account-email { font-size: 18px; font-weight: 600; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dashboard-grid .wide { grid-column: 1 / -1; }
.card-label {
  color: var(--accent);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status-card p { color: var(--muted); }
.status-title { margin-top: 9px; font-size: 24px; font-weight: 600; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.panel-heading h2 { margin: 6px 0 14px; font-size: 21px; }
.panel-heading span { color: var(--muted); font-size: 12px; }
.inline-form { display: flex; gap: 8px; margin-top: 12px; }
.inline-form input { flex: 1; min-width: 0; }
.copies-list, .purchase-list { display: grid; gap: 6px; }
.copy-row, .purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.copy-row small, .purchase-row small, .empty { display: block; color: var(--muted); }
.copy-row button { border: 0; background: transparent; color: var(--danger); cursor: pointer; }
.package-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.package-row button {
  min-height: 86px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  text-align: left;
  cursor: pointer;
}
.package-row button:hover { border-color: var(--accent); }
.package-row button.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(130, 182, 138, .12);
}
.package-row span { display: block; margin-top: 3px; color: var(--accent); font-size: 17px; }
.checkout-button { width: min(100%, 240px); margin: 12px auto 0; display: flex; }

@media (max-width: 760px) {
  .site-header { align-items: stretch; flex-direction: column; padding-block: 12px; gap: 10px; }
  .site-nav { width: 100%; flex-wrap: wrap; margin-left: 0; gap: 8px; }
  .nav-links { flex-wrap: wrap; gap: 14px; }
  .nav-actions { margin-left: auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .nav-links > a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 42px; padding-block: 56px 48px; }
  .hero-content { max-width: 600px; }
  .app-preview { max-width: 600px; width: 100%; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-options { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid .wide { grid-column: auto; }
  .package-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .shell, .site-header, footer, .account-shell { width: min(calc(100% - 24px), var(--max)); }
  .site-header { min-height: 58px; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 10px; }
  .nav-actions { align-self: flex-end; }
  .brand { font-size: 14px; }
  .button.small { min-height: 32px; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: 38px; }
  .hero-copy { font-size: 15px; }
  .actions, .inline-form { align-items: stretch; flex-direction: column; }
  .pricing-section { padding-block: 54px 70px; }
  .access-section { padding-top: 44px; }
  .access-card { grid-template-columns: minmax(92px, .65fr) 1.35fr; gap: 12px; padding: 14px; }
  .pricing-panel { padding: 15px; }
  .dashboard-top { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .tab-row { grid-template-columns: 1fr; }
  .package-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
