/* ==========================================================================
   Ember PDF -- site theme
   Every colour, font and radius the site uses is declared once, here.
   Change this block and the whole site changes with it.
   ========================================================================== */
:root {
  --color-primary: #ff6b35;
  --color-secondary: #f7931e;
  --color-accent: #ffc45c;
  --color-bg: #16120f;
  --color-bg-alt: #1e1916;
  --color-text: #f6efe9;
  --color-text-muted: #a99a8f;
  --color-border: #322a24;

  --font-heading: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  --ember: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --shell: 1160px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1rem; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-secondary); }

img { max-width: 100%; display: block; }

code, .mono { font-family: var(--font-mono); font-size: .88em; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.kicker,
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 .9rem;
}

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; }
.eyebrow span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, .18);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: .98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-primary {
  background: var(--ember);
  color: #16120f;
  box-shadow: 0 12px 32px rgba(255, 107, 53, .3);
}
.btn-primary:hover {
  color: #16120f;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 107, 53, .42);
}

.btn-light { background: var(--color-text); color: var(--color-bg); }
.btn-light:hover { color: var(--color-bg); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-text); }

.text-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 18, 15, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.nav-brand { display: flex; align-items: center; gap: .6rem; }
.nav-brand img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: .95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--color-text); }

.nav-cta {
  background: var(--ember);
  color: #16120f !important;
  padding: .6rem 1.25rem;
  border-radius: 999px;
  font-weight: 650;
}
.nav-cta:hover { transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  width: 900px;
  height: 640px;
  transform: translateX(-40%);
  background: radial-gradient(circle, rgba(255, 107, 53, .22), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.lede {
  font-size: 1.13rem;
  color: var(--color-text-muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin: 1.8rem 0 1.4rem;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .9rem;
  color: var(--color-text-muted);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #56d364;
  box-shadow: 0 0 0 4px rgba(86, 211, 100, .16);
}

/* ---------- hero product stage ---------- */
.product-stage {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 107, 53, .14), transparent 60%),
    var(--color-bg-alt);
  box-shadow: var(--shadow);
}

.stage-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
}
.stage-head img { height: 22px; width: 22px; }
.stage-head span { margin-left: auto; color: var(--color-text-muted); font-size: .8rem; }

.dropzone {
  border: 1.5px dashed rgba(255, 107, 53, .5);
  border-radius: var(--radius);
  background: rgba(255, 107, 53, .06);
  padding: 1.4rem 1rem;
  text-align: center;
  margin-bottom: 1rem;
}
.dropzone strong { display: block; font-family: var(--font-heading); font-size: .98rem; }
.dropzone small { color: var(--color-text-muted); }

.file-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .9rem;
  margin-bottom: .6rem;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
}
.file-row .tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  padding: .18rem .45rem;
  border-radius: 4px;
  background: rgba(255, 107, 53, .16);
  color: var(--color-secondary);
}
.file-row span:last-child { margin-left: auto; color: var(--color-text-muted); font-size: .82rem; }

.stage-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
  margin: 1.1rem 0 .6rem;
}
.stage-bar i { display: block; height: 100%; width: 72%; background: var(--ember); }
.stage-status { font-size: .84rem; color: var(--color-text-muted); margin: 0; }

.stage-stamp {
  position: absolute;
  right: -14px;
  bottom: -18px;
  padding: .75rem 1.1rem;
  border-radius: var(--radius);
  background: var(--ember);
  color: #16120f;
  font-size: .8rem;
  line-height: 1.3;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(255, 107, 53, .35);
}

/* ---------- strip ---------- */
.strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: 1.1rem 0;
}
.strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  font-size: .9rem;
  color: var(--color-text-muted);
}
.strip-row span:first-child {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.strip-row p { margin: 0; }

/* ---------- generic sections ---------- */
section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--color-bg-alt); }

.section-head { max-width: 62ch; margin-bottom: 2.6rem; }
.section-head p { color: var(--color-text-muted); margin-bottom: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- card grids ---------- */
.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.card {
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(255, 107, 53, .55); transform: translateY(-3px); }
.card p { color: var(--color-text-muted); margin-bottom: 0; font-size: .95rem; }
.section-alt .card { background: rgba(255, 255, 255, .025); }

.card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(255, 107, 53, .14);
  color: var(--color-secondary);
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.step-number {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  color: var(--color-primary);
}

/* ---------- feature table ---------- */
.tool-list { display: grid; gap: .55rem; }
.tool-list > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: .95rem 1.15rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.tool-list strong { font-family: var(--font-heading); font-size: .98rem; }
.tool-list small { color: var(--color-text-muted); font-size: .92rem; }

/* ---------- privacy call-out ---------- */
.callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 107, 53, .13), transparent 55%),
    var(--color-bg-alt);
}
.check-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.7rem; color: var(--color-text-muted); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ember);
}

/* ---------- final CTA ---------- */
.final-cta {
  background: var(--ember);
  color: #16120f;
}
.final-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.final-cta h2 { color: #16120f; }
.final-cta p { color: rgba(22, 18, 15, .78); }
.final-cta .kicker { color: rgba(22, 18, 15, .65); }
.final-cta .btn-light { background: #16120f; color: var(--color-text); }
.final-cta .btn-light:hover { color: var(--color-text); }

/* ---------- page header (subpages) ---------- */
.page-head {
  padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(1.6rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 107, 53, .12), transparent 55%),
    var(--color-bg);
}
.page-head p { color: var(--color-text-muted); max-width: 62ch; margin-bottom: 0; }

/* ---------- prose (legal, about) ---------- */
.prose { max-width: 76ch; padding: clamp(2.2rem, 5vw, 3.5rem) 0; }
.prose h2 { font-size: 1.4rem; margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { color: var(--color-text-muted); }
.prose ul, .prose ol { padding-left: 1.2rem; display: grid; gap: .45rem; margin-bottom: 1.4rem; }
.prose strong { color: var(--color-text); }
.prose .updated {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 860px; display: grid; gap: .7rem; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  overflow: hidden;
}
.faq-item.open { border-color: rgba(255, 107, 53, .55); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.3rem;
  background: none;
  border: 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-q::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { content: "–"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.faq-a p {
  padding: 0 1.3rem 1.25rem;
  margin: 0;
  color: var(--color-text-muted);
  font-size: .95rem;
}

/* ---------- contact form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: start;
}
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 600; }
.field input,
.field textarea {
  width: 100%;
  padding: .8rem .95rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: inherit;
  font-size: .95rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--color-primary); outline: none; }
.contact-form .btn { justify-self: start; }

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 8, 7, .78);
  backdrop-filter: blur(4px);
  z-index: 120;
}
.overlay.show { display: flex; }
.overlay-card {
  max-width: 420px;
  width: 100%;
  padding: 2rem;
  text-align: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.overlay-card p { color: var(--color-text-muted); }

/* ---------- uninstall toggles ---------- */
.toggle-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.8rem; }
.toggle-row button {
  padding: .6rem 1.2rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.toggle-row button.active {
  background: var(--ember);
  border-color: transparent;
  color: #16120f;
}
.panel { display: none; }
.panel.active { display: block; }
.steps-ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .7rem;
  max-width: 720px;
}
.steps-ol li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1.2rem 1rem 3.3rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}
.steps-ol li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 107, 53, .16);
  color: var(--color-secondary);
  font-family: var(--font-mono);
  font-size: .78rem;
}

/* ---------- centered status pages ---------- */
.status-page {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3.5rem 0;
}
.status-page img.mark { width: 72px; height: 72px; margin: 0 auto 1.5rem; }
.status-page p { color: var(--color-text-muted); max-width: 54ch; margin-inline: auto; }
.status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-top: 1.8rem;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: 3rem 0 1.8rem;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 2.5rem;
  padding-bottom: 2.2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 650;
  margin-bottom: .7rem;
}
.footer-brand img { height: 42px; width: 42px; }
.footer-tagline { color: var(--color-text-muted); font-size: .92rem; max-width: 38ch; margin: 0; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 1.5rem;
}
.footer-column { display: grid; gap: .5rem; align-content: start; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 .2rem;
}
.footer-column a { color: var(--color-text-muted); font-size: .92rem; }
.footer-column a:hover { color: var(--color-text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: .85rem;
  color: var(--color-text-muted);
}

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 1.2rem;
  width: calc(100% - 36px);
  max-width: 700px;
  padding: 1rem 1.3rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 140;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--color-text-muted); }
.cookie-actions { display: flex; gap: .5rem; margin-left: auto; flex-shrink: 0; }
.cookie-actions button {
  padding: .5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.cookie-accept { background: var(--ember) !important; border-color: transparent !important; color: #16120f !important; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .callout,
  .final-cta-inner,
  .form-grid,
  .footer-main { grid-template-columns: 1fr; }

  .stage-stamp { right: 8px; bottom: -14px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .6rem 24px 1.2rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .55rem 0; }
  .nav-cta { text-align: center; margin-top: .5rem; }
}

@media (max-width: 620px) {
  .tool-list > div { grid-template-columns: 1fr; gap: .2rem; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
