/*
 * Aqtora marketing site — one stylesheet, no imports, no web fonts.
 *
 * Monochrome by rule: ink on paper, one amber and one green reserved for status, nothing else.
 * Both accents are dark enough to keep 4.5:1 against the page background, so status text does not
 * become the one unreadable string on the page. Mobile first; the only breakpoints widen a layout
 * that already works at 320px.
 */

:root {
  --bg: #ffffff;
  --bg-sunken: #f6f6f6;
  --ink: #111111;
  --ink-muted: #4a4a4a; /* 8.9:1 on white */
  --line: #d8d8d8;
  --line-strong: #111111;
  /* Status accents only. Amber = waiting for confirmation, green = confirmed. */
  --amber: #8a5300; /* 5.6:1 on white */
  --green: #1a6b32; /* 5.4:1 on white */
  --focus: #111111;
  --radius: 2px;
  --measure: 68ch;
  --font:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
    sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: 1.95rem;
}
h2 {
  font-size: 1.35rem;
}
h3 {
  font-size: 1.05rem;
}

p,
ul,
ol,
table {
  margin: 0 0 1em;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

/* ---------- layout ---------- */

.site-header,
.site-footer,
main > section,
main > article {
  padding-inline: 1.15rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: lowercase;
}

.site-header nav {
  flex: 1 1 100%;
  order: 3;
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
}

.header-cta {
  margin-inline-start: auto;
}

main > section,
main > article {
  max-width: 62rem;
  margin-inline: auto;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--line);
}

main > article.prose {
  max-width: var(--measure);
}

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

.button {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.button:hover {
  background: #000000;
}

.button-quiet {
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  background: var(--bg-sunken);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.25rem;
}

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

.hero h1 {
  font-size: clamp(2rem, 8vw, 3rem);
  max-width: 22ch;
}

.hero .lead {
  font-size: 1.15rem;
  max-width: 46ch;
}

.flow {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}

.flow .confirmed {
  color: var(--green);
}

.flow .pending {
  color: var(--amber);
}

.note {
  color: var(--ink-muted);
  font-size: 0.94rem;
}

/* ---------- steps and cards ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.steps > li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.step-index {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.shot-slot {
  margin-top: 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-sunken);
  aspect-ratio: 9 / 16;
  max-width: 13rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards > li {
  border-top: 2px solid var(--line-strong);
  padding-top: 0.9rem;
}

.cards h3 {
  margin-bottom: 0.35rem;
}

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

/* ---------- pricing ---------- */

.plans {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.plan-featured {
  border-color: var(--line-strong);
  border-width: 2px;
}

.price {
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.15rem;
}

.price-period {
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.plan ul {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  font-size: 0.96rem;
}

.plan li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.plan li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-muted);
}

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq summary::marker {
  color: var(--ink-muted);
}

.faq details p:last-child {
  margin-bottom: 0;
}

.faq details > *:not(summary) {
  margin-top: 0.6rem;
}

/* ---------- /apk ---------- */

.download-grid {
  display: grid;
  gap: 1.75rem;
}

.build-facts {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.build-facts > div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.build-facts > div:last-child {
  border-bottom: 0;
}

.build-facts dt {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.build-facts dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  word-break: break-all;
}

.qr {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  width: fit-content;
  background: var(--bg);
}

.qr img {
  display: block;
  width: 11rem;
  height: 11rem;
}

.callout {
  border-left: 3px solid var(--amber);
  padding: 0.15rem 0 0.15rem 0.9rem;
  color: var(--ink);
}

.steps-ordered {
  padding-left: 1.4rem;
}

.steps-ordered li {
  margin-bottom: 0.6rem;
}

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

.prose h1 {
  font-size: 1.8rem;
}

.prose .doc-meta {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.15rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.prose ol,
.prose ul {
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--bg-sunken);
  font-weight: 600;
}

.placeholder {
  font-family: var(--mono);
  font-size: 0.85em;
  background: #fff4e0;
  border-bottom: 2px solid var(--amber);
  padding: 0 0.15em;
}

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

.site-footer {
  padding-block: 2.25rem;
  max-width: 62rem;
  margin-inline: auto;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.site-footer h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

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

ul.plain li {
  margin-bottom: 0.35rem;
}

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

.copyright {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* ---------- wider screens ---------- */

@media (min-width: 40rem) {
  .site-header nav {
    flex: 0 1 auto;
    order: 0;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans {
    grid-template-columns: repeat(3, 1fr);
  }

  .download-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --bg-sunken: #191919;
    --ink: #f2f2f2;
    --ink-muted: #b4b4b4; /* 8.5:1 on #0f0f0f */
    --line: #333333;
    --line-strong: #f2f2f2;
    --amber: #f0b45c; /* 8.9:1 on #0f0f0f */
    --green: #6fce8c;
    --focus: #f2f2f2;
  }

  .button {
    background: var(--ink);
    color: #0f0f0f;
  }

  .button:hover {
    background: #ffffff;
  }

  .placeholder {
    background: #3a2a08;
  }

  /* The QR keeps its white quiet zone, which a dark page would otherwise crop visually. */
  .qr {
    background: #ffffff;
  }
}
