/* Northstar Digital — one stylesheet, same origin, no imports, no webfonts. */

:root {
  --paper: #FAF8F4;
  --paper-alt: #F2EEE6;
  --ink: #101826;
  --ink-soft: #55606F;
  --rule: #DCD6CA;
  --panel: #0C1320;
  --panel-ink: #F2EFE9;
  --panel-soft: #A8B2C0;
  --panel-rule: #26303F;
  --accent: #D89B3C;
  --accent-ink: #101826;
  --accent-text: #8A5A12;
  --accent-on-panel: #E7B463;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 20px;
  --measure: 34rem;
  --radius: 3px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.021em;
  font-weight: 640;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-text); text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
a:hover { text-decoration-thickness: 0.13em; }

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}
.panel :focus-visible, .site-footer :focus-visible, .site-header :focus-visible {
  outline-color: var(--accent-on-panel);
}

/* Visible only to a screen reader, until focused. */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.1rem; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- header ---------- */

.site-header {
  background: var(--panel);
  color: var(--panel-ink);
  border-bottom: 1px solid var(--panel-rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--panel-ink); text-decoration: none; font-weight: 660;
  letter-spacing: -0.015em; font-size: 1.0625rem; padding-block: 0.7rem;
}
.brand .star { color: var(--accent); flex: none; }
.brand:hover { color: #fff; }
.header-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding-block: 0.4rem; }
.header-links a { color: var(--panel-soft); text-decoration: none; font-size: 0.9375rem; padding-block: 0.4rem; }
.header-links a:hover { color: var(--panel-ink); text-decoration: underline; }

/* ---------- sections ---------- */

section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.panel { background: var(--panel); color: var(--panel-ink); }
.panel h1, .panel h2, .panel h3 { color: var(--panel-ink); }
.panel p { color: var(--panel-soft); }
.alt { background: var(--paper-alt); }

.eyebrow {
  font-size: 0.78125rem; font-weight: 680; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.9rem;
}
.panel .eyebrow { color: var(--accent-on-panel); }

h1 { font-size: clamp(2.05rem, 6.4vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 4.4vw, 2.3rem); }
h3 { font-size: 1.1875rem; letter-spacing: -0.012em; }

.lede { font-size: clamp(1.0625rem, 2.4vw, 1.1875rem); color: var(--ink-soft); max-width: var(--measure); }
.panel .lede { color: var(--panel-soft); }
.section-intro { max-width: var(--measure); margin-bottom: 2.5rem; }
.section-intro p { margin-top: 0.9rem; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(3.25rem, 9vw, 6rem); }
.hero h1 { max-width: 19ch; }
.hero .lede { margin-top: 1.3rem; font-size: clamp(1.0625rem, 2.5vw, 1.25rem); }

/* On a wide screen the offer sits beside the headline rather than under it. Stacked,
   the price and the button end up marooned in whitespace on the left of a 1440px
   viewport; in a card they are the second thing the eye lands on. */
.hero-grid { display: grid; gap: 2.5rem; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
}
.hero-offer {
  border: 1px solid var(--panel-rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.2vw, 2.1rem);
  background: rgba(255, 255, 255, 0.032);
}
.hero-offer .price-line { margin-top: 0; }
.hero-offer .hero-actions { margin-top: 1.5rem; }
.hero-offer .btn, .hero-offer .btn-unavailable { width: 100%; }

.price-line {
  display: flex; align-items: baseline; gap: 0.15rem 0.7rem; flex-wrap: wrap;
  margin-top: 2rem;
}
.price-line .amount {
  font-size: clamp(2.1rem, 6vw, 2.9rem); font-weight: 700;
  letter-spacing: -0.03em; color: var(--panel-ink); line-height: 1;
}
.price-line .qualifier { color: var(--accent-on-panel); font-weight: 600; font-size: 1rem; }

.hero-actions { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: 0.85rem 1.1rem; align-items: center; }
.hero-note { margin-top: 1.2rem; font-size: 0.9375rem; color: var(--panel-soft); max-width: 42ch; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font: inherit; font-weight: 660; letter-spacing: -0.005em;
  padding: 0.95rem 1.5rem; min-height: 52px;
  border-radius: var(--radius); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.btn-buy {
  background: var(--accent); color: var(--accent-ink);
  /* The gold fill is only 2.28:1 against paper, which fails the 3:1 a control boundary
     needs. This darker edge is the boundary a person actually perceives. See
     www/src/tokens.mjs, where it is the pair that gets checked. */
  border-color: var(--accent-text);
}
.btn-buy:hover { background: #E7AC55; }
.btn-ghost { background: transparent; color: var(--panel-ink); border-color: var(--panel-rule); }
.panel .btn-ghost:hover, .site-header .btn-ghost:hover { border-color: var(--panel-soft); background: rgba(255,255,255,0.05); }
.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark:hover { background: #1C2838; }
.btn-small { padding: 0.55rem 1rem; min-height: 40px; font-size: 0.9375rem; }

/* The buy button when there is no live payment link. Not a link, not clickable, and
   visibly not something you can press. */
.btn-unavailable {
  background: transparent; color: var(--panel-soft);
  border: 2px dashed var(--panel-rule); cursor: not-allowed;
}
/* .hero-actions is a flex row, so the note is given a full basis to sit under the
   button rather than beside it. The explanation belongs below the control it explains,
   in both places it appears. */
.unavailable-note {
  flex-basis: 100%; margin-top: 1rem;
  font-size: 0.9375rem; color: var(--panel-soft); max-width: 46ch;
}
.unavailable-note a { color: var(--accent-on-panel); }

/* ---------- grids ---------- */

.grid { display: grid; gap: 1.75rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- steps ---------- */

.steps { counter-reset: step; display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; } }
.step { border-top: 2px solid var(--rule); padding-top: 1.1rem; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-size: 0.875rem; font-weight: 700; margin-bottom: 0.75rem;
}
.step h3 { margin-bottom: 0.45rem; }
.step p { color: var(--ink-soft); font-size: 0.96875rem; }

/* ---------- tick / cross lists ---------- */

.ticks { list-style: none; display: grid; gap: 0.75rem; }
.ticks li { display: grid; grid-template-columns: 1.35rem 1fr; gap: 0.7rem; align-items: start; }
.ticks svg { margin-top: 0.35rem; flex: none; }
.ticks .tick { color: var(--accent-text); }
.ticks .cross { color: var(--ink-soft); }
.ticks li b { font-weight: 640; }
.ticks li span { color: var(--ink-soft); }

.card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: clamp(1.4rem, 3.5vw, 1.9rem);
}
.card h3 { margin-bottom: 0.9rem; }
.card > p { color: var(--ink-soft); }
.card > p + .ticks, .card > .ticks { margin-top: 1.1rem; }

/* ---------- sample ---------- */

.sample-frame {
  border: 1px solid var(--panel-rule); border-radius: var(--radius);
  overflow: hidden; background: #0A101B; margin-top: 2.5rem;
}
.sample-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--panel-rule); background: #111A28;
}
.sample-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--panel-rule); flex: none; }
.sample-bar span {
  margin-left: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--panel-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sample-shots { display: grid; gap: 1px; background: var(--panel-rule); }
/* Below 760px the desktop screenshot squeezes to about 350px and becomes unreadable —
   a picture of a website rather than a website. A visitor on a phone is shown the phone
   view only. It is also the view they care about. Paired with loading="lazy", Chrome
   does not fetch the hidden 190 kB desktop shot at all. */
.sample-shots .shot-desktop { display: none; }
@media (min-width: 760px) {
  .sample-shots { grid-template-columns: 1.9fr 1fr; align-items: start; }
  .sample-shots .shot-desktop { display: block; }
}
/* min-width: 0 is load-bearing. A grid item's automatic minimum size is its content
   size, so a 760px-wide screenshot forces its 1fr track to 760px and the whole frame
   overflows — which .sample-frame's overflow: hidden then silently clips. */
.sample-shots img { width: 100%; min-width: 0; background: var(--panel); }
.sample-missing { padding: clamp(2rem, 6vw, 3.5rem); color: var(--panel-soft); font-size: 0.9375rem; }
.sample-caption { margin-top: 1.1rem; font-size: 0.875rem; color: var(--panel-soft); }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--rule); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 620; font-size: 1.0625rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 1.55rem;
  width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text);
  transform: rotate(45deg); transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.faq .answer { padding: 0 0 1.4rem; color: var(--ink-soft); max-width: var(--measure); }
.faq .answer p + p { margin-top: 0.8rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--panel); color: var(--panel-soft);
  padding-block: 3rem 2.25rem; border-top: 1px solid var(--panel-rule);
}
.footer-top { display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.footer-brand { color: var(--panel-ink); font-weight: 660; font-size: 1.0625rem; display: flex; align-items: center; gap: 0.6rem; }
.footer-brand .star { color: var(--accent); }
.footer-meta { margin-top: 0.9rem; font-size: 0.9375rem; line-height: 1.8; }
.footer-meta a { color: var(--accent-on-panel); }
.footer-nav h2 { font-size: 0.78125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--panel-soft); font-weight: 680; margin-bottom: 0.9rem; }
.footer-nav ul { list-style: none; display: grid; gap: 0.6rem; font-size: 0.9375rem; }
.footer-nav a { color: var(--panel-ink); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--panel-rule);
  font-size: 0.875rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}

/* ---------- legal pages ---------- */

.legal { padding-block: clamp(2.5rem, 6vw, 4rem); }
.legal .doc { max-width: 42rem; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.legal .updated { margin-top: 1rem; font-size: 0.9375rem; color: var(--ink-soft); }
.legal .doc > section { padding-block: 0; margin-top: 2.6rem; }
.legal h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-bottom: 0.4rem; }
.legal h3 { margin-top: 1.7rem; margin-bottom: 0.3rem; }
.legal .doc p { margin-top: 0.9rem; }
.legal .doc ul { margin-top: 0.9rem; padding-left: 1.2rem; list-style: disc; display: grid; gap: 0.55rem; }
.legal .doc li::marker { color: var(--accent-text); }
.legal .summary-box {
  margin-top: 1.7rem; border-left: 3px solid var(--accent);
  background: var(--paper-alt); padding: 1.2rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.legal .summary-box p { margin-top: 0; }
.legal .summary-box p + p { margin-top: 0.75rem; }
.legal .back { margin-top: 3rem; display: inline-block; font-size: 0.9375rem; }

/* ---------- print ---------- */

@media print {
  .site-header, .site-footer, .hero-actions, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .faq details { border-color: #999; }
}
