:root {
  --bg: #24211a;
  --bg-lift: #2c2922;
  --text: #f4efe6;
  --muted: #a89a84;
  --champagne: #c4b08a;
  --ink: #16140f;
  --glass: rgba(255, 248, 236, 0.045);
  --hair: rgba(255, 248, 236, 0.10);
  --hair-strong: rgba(196, 176, 138, 0.28);
  --glow: rgba(196, 176, 138, 0.22);
  --max: 1120px;
  --radius: 18px;
  --pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: Outfit, "IBM Plex Sans", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 55% at 50% 28%, rgba(196, 176, 138, 0.09), transparent 62%),
    var(--bg);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--champagne);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0.85rem 1rem 0;
  background: transparent;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(780px, 100%);
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border-radius: var(--pill);
  background: var(--glass);
  border: 1px solid var(--hair);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 248, 236, 0.04) inset;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--champagne);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--champagne);
}

.brand-lockup {
  display: block;
  width: auto;
  height: 24px;
}

.brand-icon {
  display: none;
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.05rem;
}

.nav-links a {
  color: rgba(244, 239, 230, 0.78);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}


.hero-primary {
  min-height: auto;
  padding: 1.6rem 0 0.4rem;
}

.hero-follow {
  min-height: auto;
  padding: 1.6rem 0 1.4rem;
}

.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 1.4rem 0 1.15rem;
}

.page-home .hero-primary {
  padding-top: 1.6rem;
}

.page-home .hero-follow {
  padding-bottom: 1.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: 2.4rem;
  align-items: center;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--champagne);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 4vw, 3.05rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.lede {
  margin: 0 0 1.05rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 28rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: flex-start;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--pill);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--champagne);
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(196, 176, 138, 0.12), 0 10px 24px var(--glow);
}

.btn-primary:hover {
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hair-strong);
}

.btn-ghost:hover {
  color: var(--text);
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.pay-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.cancel-note {
  margin: 0;
  max-width: 16.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 400;
}

.cancel-note a {
  color: var(--champagne);
}

.proof {
  margin: 1.1rem 0 0;
  color: var(--champagne);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.device {
  margin: 0;
  padding: 0.55rem;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--hair);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    0 0 40px rgba(196, 176, 138, 0.12);
}

.device img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.below {
  padding: 1.2rem 0 3.5rem;
}

.bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-auto-rows: minmax(0, auto);
  gap: 0.85rem;
}

.bento-layouts {
  grid-row: 1 / span 2;
}

.bento-install {
  grid-column: 2 / span 2;
}

.card {
  background: var(--glass);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.3rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.card-kicker {
  margin: 0 0 0.55rem;
  color: var(--champagne);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card p + p {
  margin-top: 0.7rem;
}

.price-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

#pricing,
#pricing-record,
#record,
#record-features,
#features,
#install,
#troubleshooting {
  scroll-margin-top: 5.5rem;
}

.price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.price-card h2 {
  color: var(--champagne);
  font-size: 1.85rem;
}

.pay-card p + p {
  margin-top: 0.85rem;
}

.page-head {
  margin: 0 0 0.85rem;
}

.page-head h1,
.support-copy h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.page-head .lede {
  margin-bottom: 0.4rem;
}

.ndi-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-install .install-first {
  min-height: calc(100svh - 4.6rem);
  padding: 0.85rem 0 1.4rem;
  box-sizing: border-box;
}

.page-support .support-first {
  padding: 0.45rem 0 0.3rem;
}

.install-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.8rem;
  align-items: start;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  padding: 0.65rem 0;
  border-top: 1px solid var(--hair);
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps h2 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.step-num {
  color: var(--champagne);
  font-weight: 500;
  margin-right: 0.4rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.install-cards {
  display: grid;
  gap: 0.85rem;
}

.page-install .below {
  padding-top: 2.2rem;
  padding-bottom: 3rem;
}

.qa {
  margin: 0.35rem 0 0;
}

.qa-item {
  padding: 0.85rem 0;
  border-top: 1px solid var(--hair);
}

.qa-item:first-child {
  border-top: 0;
  padding-top: 0.35rem;
}

.qa dt {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.55;
}

.qa dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.qa-lead {
  margin: 1rem 0 0;
  color: var(--muted);
}

@media (min-width: 821px) {
  .qa-item {
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    gap: 1.2rem 1.6rem;
    align-items: start;
  }

  .qa dt {
    margin: 0;
  }
}

pre {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  overflow: auto;
  border-radius: 12px;
  background: #1a1712;
  border: 1px solid var(--hair);
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.45;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
}

.support-first {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  gap: 1.6rem;
  align-items: start;
  min-height: calc(100svh - 4.4rem);
}

.support-copy .lede {
  margin-bottom: 0.7rem;
}

.support-copy p {
  margin: 0 0 0.4rem;
  color: var(--muted);
}

.page-support .support-form {
  padding: 1rem 1.1rem 1.05rem;
}

.support-form label {
  display: block;
  margin: 0 0 0.22rem;
  color: var(--champagne);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.support-form input,
.support-form textarea {
  width: 100%;
  padding: 0.42rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--hair);
  background: #12100c;
  color: var(--text);
  font: inherit;
}

.support-form input:focus,
.support-form textarea:focus {
  outline: 1px solid var(--hair-strong);
}

.support-form textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.45;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  align-items: end;
  margin: 0 0 0.55rem;
}

.form-row-2 .field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-row-2 .field label {
  margin: 0 0 0.22rem;
}

.support-form p {
  margin: 0 0 0.38rem;
}

.form-actions {
  margin-top: 0.15rem;
}

.form-note {
  margin: 0.35rem 0 0 !important;
  color: var(--muted);
  font-size: 0.78rem;
}

.support-receipt {
  padding: 1.15rem 1.2rem 1.2rem;
}

.support-receipt[hidden] {
  display: none;
}

.support-receipt-title {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--champagne);
}

.support-receipt-body {
  margin: 0 0 0.65rem;
  color: var(--text);
  line-height: 1.5;
}

.support-receipt-cancel {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.support-form[hidden] {
  display: none;
}

.form-status {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
}

.form-status--ok {
  color: var(--champagne);
}

.form-status--err {
  color: #d27a6a;
}

.form-status[hidden] {
  display: none;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#support-form {
  position: relative;
}

.site-footer {
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding-top: 1.2rem;
  }

  .hero-grid,
  .install-grid,
  .support-first,
  .bento,
  .feature-bento,
  .price-row,
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .bento-layouts {
    grid-row: auto;
  }

  .bento-install {
    grid-column: auto;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

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

  .cta-row .btn,
  .cta-stack {
    width: 100%;
  }

  .cta-stack .btn {
    width: 100%;
  }

  .price-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-pill {
    width: 100%;
    gap: 0.45rem;
    padding: 0.38rem 0.55rem 0.38rem 0.5rem;
  }

  .brand-lockup {
    height: 22px;
  }

  .nav-links {
    flex-wrap: nowrap;
    gap: 0.42rem;
  }

  .nav-links a {
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .page-install .install-first {
    min-height: auto;
  }

  .support-first {
    min-height: auto;
    padding-bottom: 2rem;
  }
}

@media (max-width: 420px) {
  .nav-pill {
    gap: 0.35rem;
    padding: 0.34rem 0.45rem 0.34rem 0.4rem;
  }

  .brand-lockup {
    height: 20px;
  }

  .nav-links {
    gap: 0.32rem;
  }

  .nav-links a {
    font-size: 0.66rem;
  }
}

@media (max-width: 380px) {
  .brand-lockup {
    display: none;
  }

  .brand-icon {
    display: block;
  }
}

/* Phones/tablets: keep long commands and filenames inside the column */
@media (max-width: 820px) {
  .install-grid > *,
  .install-cards > * {
    min-width: 0;
  }

  .steps :not(pre) > code {
    overflow-wrap: anywhere;
  }

  .steps pre,
  main pre {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

/* Catalog home */
.catalog-home {
  padding: 2.4rem 0 2.5rem;
  min-height: calc(100svh - 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.company-line {
  text-align: center;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 2rem;
  color: var(--muted);
}

.product-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 0;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  padding: 0.9rem;
}

.catalog-shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: var(--bg-lift);
  aspect-ratio: 16 / 9;
  box-shadow: 0 0 48px var(--glow);
}

.catalog-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem 0.45rem 0.35rem;
  flex: 1;
}

.catalog-body h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.catalog-value {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 36ch;
}

.catalog-body .proof {
  margin: 0.15rem 0 0;
}

.catalog-body .cta-row {
  margin-top: auto;
  padding-top: 0.85rem;
}

.product-card .product-meta {
  margin: 0.5rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-card .os-line {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.product-card--slot[hidden] {
  display: none !important;
}

.assistant-stub {
  margin-top: 1.5rem;
  grid-column: 1 / -1;
}

.assistant-embed {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 12px;
  background: #0c0e12;
}

.todo-mark {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--hair-strong);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 1100px) and (min-width: 801px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .product-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-home {
    min-height: auto;
    padding-top: 1.4rem;
  }
}

/* Product pages */
.section-label {
  margin: 2rem 0 0.9rem;
  color: var(--champagne);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-label:first-child {
  margin-top: 0;
}

.feature-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.feature-bento-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-row-dual {
  grid-template-columns: 1fr 1fr;
}

.pay-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.install-block {
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

.muted {
  color: var(--muted);
}

.record-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.85rem 0 0;
}

@media (max-width: 820px) {
  .feature-bento,
  .feature-bento-3,
  .record-features,
  .price-row-dual {
    grid-template-columns: 1fr;
  }
}

/* Support email as image (spam-resistant; no mailto in HTML) */
.support-email-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.support-email {
  height: 1.05em;
  width: auto;
  vertical-align: middle;
  display: inline-block;
}
.support-email--lg {
  height: 1.35em;
}

/* Installer file size next to Download buttons */
.cta-row .dl-size {
  align-self: center;
}
