/* Ciqui website — dark cinematic theme matching the app. No external fonts. */

:root {
  --bg: #111315;
  --surface: #191c1f;
  --surface-2: #22262a;
  --border: #30363b;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #d4a85c;
  --accent-hover: #e2bb76;
  --accent-ink: #111315;
  --success: #5ebe8a;
  --error: #ef6b6b;
  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 16px;
  --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;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2,
.h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
}

h3,
.h3 {
  font-size: 1.15rem;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.92em;
}

code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0 0.4em;
  line-height: 1.5;
  color: var(--text);
}

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

.small {
  font-size: 0.875rem;
}

.center {
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 8px;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container.narrow {
  max-width: 780px;
}

.container.wide {
  max-width: 1320px;
}

@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }
}

.section {
  padding: 72px 0;
}

.section.tight {
  padding: 8px 0 72px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(25, 28, 31, 0.6), rgba(25, 28, 31, 0.9));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.page-head {
  padding: 56px 0 28px;
}

.stack > * + * {
  margin-top: 20px;
}

.stack-sm > * + * {
  margin-top: 10px;
}

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75em;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------------- banners */

.config-banner {
  background: #3d2c0e;
  border-bottom: 1px solid var(--accent);
  color: #fbe6bf;
  font-size: 0.9rem;
  padding: 10px 0;
}

.config-banner code {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(212, 168, 92, 0.4);
}

.config-banner .muted {
  color: #e3c992;
}

/* ---------------------------------------------------------------- header & footer */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 19, 21, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

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

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 1px 8px;
  vertical-align: middle;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav > a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.site-nav > a:not(.btn):hover,
.site-nav > a[aria-current="page"]:not(.btn) {
  color: var(--text);
  background: var(--surface-2);
}

@media (max-width: 719px) {
  .site-nav > a[href^="/#"] {
    display: none;
  }
  .brand span {
    font-size: 0.95rem;
  }
  body.admin .brand > span {
    display: none;
  }
}

@media (max-width: 400px) {
  .brand > span {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-nav > a.hide-narrow {
    display: none;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  background: #0d0f10;
}

.footer-inner {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .footer-inner > .small {
    grid-column: 1 / -1;
  }
}

.footer-brand {
  font-weight: 700;
  margin-bottom: 0.2em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

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

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

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #4a525a;
  color: var(--text);
}

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

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

.btn-danger {
  background: transparent;
  border-color: rgba(239, 107, 107, 0.6);
  color: var(--error);
}

.btn-danger:hover {
  background: rgba(239, 107, 107, 0.12);
  color: var(--error);
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-large {
  padding: 14px 24px;
  font-size: 1rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn[disabled],
fieldset[disabled] .btn {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.is-copied {
  border-color: var(--success);
  color: var(--success);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 16px;
}

.cta-row.center {
  justify-content: center;
}

@media (max-width: 480px) {
  .hero .cta-row .btn {
    flex: 1 1 100%;
  }
}

.inline-form {
  display: inline;
  margin: 0;
}

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

.hero {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, rgba(212, 168, 92, 0.13), rgba(212, 168, 92, 0));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 96px 0 104px;
  }
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.35em;
}

.hero .lead {
  max-width: 600px;
}

/* Decorative duplicate-group illustration (not a screenshot). */
.hero-art {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.art-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.art-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #15181a;
}

.art-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4046;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
}

.art-tile {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.art-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55));
}

.tile-a {
  background:
    radial-gradient(circle at 35% 40%, #e8c38a 0 12%, transparent 13%),
    linear-gradient(160deg, #5c4a37, #2a2420 60%, #171513);
}
.tile-b {
  background:
    radial-gradient(circle at 40% 42%, #dcb47c 0 11%, transparent 12%),
    linear-gradient(160deg, #54442f, #282220 60%, #161412);
}
.tile-c {
  background:
    radial-gradient(circle at 45% 45%, #c9a675 0 10%, transparent 11%),
    linear-gradient(150deg, #4c3f30, #252020 60%, #151312);
}
.tile-d {
  background:
    radial-gradient(circle at 52% 40%, #d1ad7a 0 11%, transparent 12%),
    linear-gradient(170deg, #4f412f, #26211e 60%, #141210);
}
.tile-e {
  /* Soft edges suggest an out-of-focus frame (the label itself stays sharp). */
  background:
    radial-gradient(circle at 50% 45%, rgba(150, 145, 139, 0.95) 0, rgba(150, 145, 139, 0.35) 13%, transparent 24%),
    linear-gradient(160deg, #3a3938, #232221 60%, #151514);
}
.tile-f {
  background:
    radial-gradient(circle at 30% 45%, #c39f6f 0 10%, transparent 11%),
    linear-gradient(150deg, #483b2d, #231f1c 60%, #131110);
}

.art-tile.is-best {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  box-shadow: 0 0 24px rgba(212, 168, 92, 0.35);
}

.art-label {
  position: absolute;
  left: 6px;
  bottom: 5px;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e5e7eb;
  background: rgba(17, 19, 21, 0.72);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.is-best .art-label {
  color: var(--accent-ink);
  background: var(--accent);
}

.is-reject .art-label {
  color: #fff;
  background: rgba(239, 107, 107, 0.85);
}

/* ---------------------------------------------------------------- cards & grids */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

@media (max-width: 480px) {
  .card {
    padding: 18px;
  }
}

.card h2 {
  font-size: 1.35rem;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.feature h3 {
  color: var(--text);
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature em {
  color: var(--text);
  font-style: normal;
}

.platform-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.platform h3 {
  margin-bottom: 0.4em;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.checklist.large li {
  margin-bottom: 14px;
}

.price-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  justify-self: center;
}

.price {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.1em;
  font-variant-numeric: tabular-nums;
}

.price.price-tbd {
  font-size: 1.5rem;
  margin-bottom: 0.3em;
}

/* ---------------------------------------------------------------- status pills */

.status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
  vertical-align: middle;
}

.status-ok {
  color: var(--success);
  border-color: rgba(94, 190, 138, 0.5);
  background: rgba(94, 190, 138, 0.08);
}

.status-wait {
  color: var(--accent);
  border-color: rgba(212, 168, 92, 0.5);
  background: rgba(212, 168, 92, 0.08);
}

.status-bad {
  color: var(--error);
  border-color: rgba(239, 107, 107, 0.5);
  background: rgba(239, 107, 107, 0.08);
}

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

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq details:first-child {
  border-top: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 0 20px;
  color: var(--muted);
}

.faq-body strong {
  color: var(--text);
}

.placeholder-text {
  color: #f0c46f;
  background: rgba(212, 168, 92, 0.12);
  border: 1px dashed rgba(212, 168, 92, 0.6);
  border-radius: 4px;
  padding: 0 4px;
}

.final-cta {
  border-top: 1px solid var(--border);
}

.final-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 16px;
}

/* ---------------------------------------------------------------- forms */

.order-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 900px) {
  .order-layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
  }
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 6px 0 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="date"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #0f1113;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  min-height: 46px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

input::placeholder {
  color: #6b7280;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 168, 92, 0.25);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
}

textarea {
  display: block;
  resize: vertical;
  line-height: 1.5;
}

textarea.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  word-break: break-all;
}

/* Admin › Rilis: one block per platform. */
.platform-row {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.platform-row .field {
  margin-bottom: 12px;
}

input:disabled {
  opacity: 0.6;
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: start;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.checkbox-field label {
  font-weight: 400;
  margin: 0;
}

.checkbox-field .field-error {
  grid-column: 2;
}

.field-error {
  color: var(--error);
  font-size: 0.875rem;
  margin: 6px 0 0;
}

.form-grid {
  display: grid;
  gap: 0 16px;
  align-items: end;
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr 1fr auto;
  }
  .form-grid > div:last-child {
    margin-bottom: 20px;
  }
}

/* ---------------------------------------------------------------- alerts */

.alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin: 0 0 16px;
}

.alert-warning {
  border-color: rgba(212, 168, 92, 0.55);
  background: rgba(212, 168, 92, 0.1);
  color: #f6dfb4;
}

.alert-error {
  border-color: rgba(239, 107, 107, 0.55);
  background: rgba(239, 107, 107, 0.1);
  color: #fbd0d0;
}

.alert-success {
  border-color: rgba(94, 190, 138, 0.55);
  background: rgba(94, 190, 138, 0.1);
  color: #cdeedb;
}

.alert-info {
  border-color: var(--border);
  background: var(--surface);
}

.alert .btn {
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------------------------------------------------------------- order page */

.order-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  letter-spacing: 0;
}

.order-title .status {
  font-family: var(--font);
  font-size: 0.85rem;
}

.highlight-card {
  border-color: rgba(212, 168, 92, 0.45);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(212, 168, 92, 0.08), rgba(212, 168, 92, 0) 60%),
    var(--surface);
}

.copy-field {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.copy-field.big {
  display: flex;
  margin: 4px 0 14px;
}

.amount {
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.unique-digits {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.license-key {
  font-size: clamp(0.85rem, 3.8vw, 1.6rem);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow-wrap: normal;
  max-width: 100%;
  overflow-x: auto;
  padding: 10px 14px;
  color: var(--text);
  background: #0f1113;
  border-color: rgba(212, 168, 92, 0.45);
  user-select: all;
}

.bank {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

@media (min-width: 720px) {
  .bank {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 12px 40px;
  }
}

.bank dt,
.meta-grid dt {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.bank dd,
.meta-grid dd {
  margin: 0;
  font-weight: 600;
}

.bank code {
  font-size: 1.05rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 16px;
  min-height: 28px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(212, 168, 92, 0.55);
  background: rgba(212, 168, 92, 0.08);
}

.steps.compact li {
  margin-bottom: 12px;
}

/* ---------------------------------------------------------------- download */

.download-card {
  display: grid;
  gap: 20px;
}

.download-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.download-main img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex: none;
}

.download-main h2 {
  margin-bottom: 0.2em;
}

.download-card > .btn {
  justify-self: start;
  white-space: normal;
}

@media (max-width: 480px) {
  .download-card > .btn {
    justify-self: stretch;
  }
}

.checksum code#sha256 {
  font-size: 0.8rem;
  word-break: break-all;
}

.notice {
  border-color: rgba(212, 168, 92, 0.4);
}

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

.prose h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.prose ul {
  padding-left: 1.3em;
}

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

.draft-banner {
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------- admin */

.login-box {
  max-width: 420px;
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-head h1,
.admin-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-form {
  display: flex;
  gap: 8px;
  flex: 1 1 360px;
  max-width: 560px;
}

.search-form input {
  min-height: 40px;
  padding: 8px 12px;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

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

.data-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  background: #15181a;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tr.row-pending td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

.data-table .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.data-table .actions .copy-field {
  flex-basis: 100%;
}

.nowrap {
  white-space: nowrap;
}

body.admin .section.tight {
  padding-top: 32px;
}

.amount-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.device-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.device-list li + li {
  margin-top: 6px;
}

.meta-grid {
  display: grid;
  gap: 14px 28px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  margin: 8px 0 0;
}

.meta-grid dd {
  overflow-wrap: anywhere;
}

.pager {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 819px) {
  .table-wrap {
    border: 0;
    background: transparent;
  }
  .data-table thead {
    display: none;
  }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }
  .data-table tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 6px 0;
  }
  .data-table td {
    border-bottom: 0;
    padding: 6px 16px;
  }
  .data-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .data-table tr.row-pending td:first-child {
    box-shadow: none;
  }
  .data-table tr.row-pending {
    border-left: 3px solid var(--accent);
  }
}

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

/* ================================================================ public theme
   Dark, with cream type, the Ciqui pick's cream for actions and the logo's red for marks, and
   pill controls. The landing page adds landing.css (the app in 3D, the scroll story). Scoped to
   body.public; admin pages keep their dense layout. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("/assets/fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("/assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


body.public {
  --bg: #111214;
  --cream: #ece8dc;
  --cream-2: #d8d3c4;
  --soft: #9c9f95;
  /* Ciqui: the pick's cream for actions, the logo's red for the mark. */
  --lime: #ede1a8;
  --lime-ink: #1b1607;
  --red: #ab2c2e;
  --line: rgba(237, 225, 168, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --card-radius: 30px;
  font-family: "DM Sans", var(--font);
  background: var(--bg);
  color: var(--cream);
}

body.public a {
  color: var(--lime);
}

body.public :focus-visible {
  outline-color: var(--lime);
}

body.public .eyebrow {
  color: var(--lime);
}

body.public .muted,
body.public .lead.muted {
  color: var(--soft);
}

body.public h1,
body.public h2,
body.public h3 {
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--cream);
}

body.public .frame {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px) 24px;
}

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

body.public .btn {
  border-radius: 999px;
  font-weight: 600;
}

body.public .btn-primary {
  background: var(--lime);
  color: var(--lime-ink);
}

body.public .btn-primary:hover {
  background: #f5ecc4;
  color: var(--lime-ink);
}

body.public .btn-secondary,
.btn-outline {
  background: transparent;
  border: 1px solid rgba(236, 232, 220, 0.28);
  color: var(--cream);
}

body.public .btn-secondary:hover,
.btn-outline:hover {
  background: rgba(236, 232, 220, 0.06);
  border-color: rgba(236, 232, 220, 0.5);
  color: var(--cream);
}

body.public .btn-large {
  padding: 13px 24px;
}

/* ---------------------------------------------------------------- top bar */

/* Brand left, the sections in a pill in the middle, actions right; it stays on screen, and its
   pieces carry their own dark glass so they read over light and dark sections alike. */
.site-top {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 0 14px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(22, 20, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  min-width: 0;
}

body.public .top-links a {
  padding: 8px 16px;
  border-radius: 999px;
  color: rgba(236, 232, 220, 0.78);
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

body.public .top-links a:hover {
  color: var(--cream);
}

body.public .top-links a.is-on {
  background: var(--cream);
  color: #151410;
}

.brand-mark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: rgba(22, 20, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--cream) !important;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand-mark b {
  color: var(--red);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.pill-ghost,
.pill-cream {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.pill-ghost {
  padding: 5px 5px 5px 16px;
  background: rgba(22, 20, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--cream) !important;
}

.pill-ghost .pill-icon {
  background: rgba(236, 232, 220, 0.1);
  color: var(--cream);
}

.pill-cream {
  padding: 5px 5px 5px 18px;
  background: var(--lime);
  color: #1b1607 !important;
  font-weight: 600;
  box-shadow: 0 8px 30px -8px rgba(237, 225, 168, 0.55);
}

.pill-cream .pill-icon {
  background: #1b1607;
  color: var(--lime);
}

.pill-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.pill-ghost:hover {
  border-color: rgba(236, 232, 220, 0.4);
}

.pill-cream:hover {
  background: #f5ecc4;
}

@media (max-width: 999px) {
  .site-top {
    grid-template-columns: 1fr auto;
  }
  .top-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

/* On a phone the bar takes two rows: it scrolls away instead of covering the page. */
@media (max-width: 719px) {
  .site-top {
    position: relative;
    top: 0;
  }
}

@media (max-width: 559px) {
  .pill-ghost {
    display: none;
  }
  body.public .top-links a {
    padding: 7px 11px;
    font-size: 0.82rem;
  }
}

/* ---------------------------------------------------------------- price card & FAQ (landing, order page) */

body.public .price-card {
  background: var(--cream);
  color: #151612;
  border: 0;
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 0 0 6px rgba(236, 232, 220, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

body.public .price-card .eyebrow {
  color: var(--red);
}

body.public .price-card .price {
  color: #151612;
}

body.public .price-card .muted,
body.public .price-card .checklist li {
  color: #4a4c45;
}

body.public .price-card .checklist li::before {
  border-color: var(--red);
}

body.public .price-card .btn-primary {
  background: #151612;
  color: var(--cream);
}

body.public .price-card .btn-primary:hover {
  background: #2a2c26;
}

body.public .price-card .btn-secondary {
  border-color: rgba(21, 22, 18, 0.25);
  color: #151612;
}

body.public .price-card .btn-secondary:hover {
  background: rgba(21, 22, 18, 0.06);
}

body.public .checklist li::before {
  border-color: var(--lime);
}

body.public .faq details,
body.public .faq details:first-child {
  border-color: var(--line-soft);
}

body.public .faq summary::after {
  color: var(--lime);
}

body.public .faq-body,
body.public .faq-body p {
  color: var(--soft);
}

body.public .faq-body strong,
body.public .faq-body code {
  color: var(--cream);
}


/* ---------------------------------------------------------------- inner pages */

.page-body {
  padding: clamp(4px, 1vw, 12px) 0;
  border-radius: var(--card-radius);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(150, 108, 44, 0.16), transparent 70%),
    linear-gradient(180deg, #18191c, #131417);
}

.page-body .section {
  padding: 44px 0;
}

.page-body .section.tight {
  padding: 0 0 48px;
}

body.public .page-body .card {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-soft);
  border-radius: 22px;
}

body.public .page-body h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.045em;
}

body.public input,
body.public textarea,
body.public select {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--cream);
}

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

.site-foot {
  margin-top: 22px;
  padding: 30px 4px 8px;
  border-top: 1px solid var(--line-soft);
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
}

.foot-brand p {
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 0.88rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-content: flex-start;
}

.foot-links a {
  color: var(--cream-2) !important;
  font-size: 0.9rem;
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--lime) !important;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.76rem;
  color: #7f8378;
}

.foot-bottom a {
  color: inherit !important;
}

.credits {
  max-width: 72ch;
}
