/* Reeli web store. premium-dark-ui tokens with Reeli's coral as the one accent and the app's
   canvas (#0a0a0f). Fonts fall back to system faces when Google Fonts can't load. */
:root {
  --bg: #0a0a0f;
  --bg-raise: #121219;
  --panel: rgba(12, 12, 18, 0.86);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-2: #a2a2ad;
  --text-3: #6c6c76;
  --accent: #ff6b4a;
  --accent-soft: rgba(255, 107, 74, 0.12);
  --violet: #6c4bff;
  --pink: #ff3d8b;
  --green: #4ade80;
  --warn: #ffc94a;
  --error: #ff5d6c;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; width: min(1040px, 100%); margin: 0 auto; padding: 0 16px; }
a { color: inherit; }
::selection { background: rgba(255, 107, 74, 0.3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* texture: film grain + glows */
.noise {
  position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glows { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); }
.glow.a { width: 520px; height: 520px; top: -180px; left: -120px;
  background: radial-gradient(closest-side, rgba(255, 107, 74, 0.22), transparent); }
.glow.b { width: 560px; height: 560px; top: -140px; right: -200px;
  background: radial-gradient(closest-side, rgba(108, 75, 255, 0.2), transparent); }

/* nav */
.nav-wrap { position: sticky; top: 0; z-index: 20; padding: 14px 16px 0; }
.nav {
  width: min(1040px, 100%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 12px; border-radius: 16px;
  background: rgba(10, 10, 15, 0.6); backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255, 107, 74, 0.3), rgba(108, 75, 255, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-mark svg { width: 14px; height: 14px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; color: var(--text-2); font-size: 14px; padding: 7px 12px; border-radius: 999px; transition: color .18s, background .18s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* type */
.kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); }
.h1, .h2 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; }
.h1 {
  margin-top: 16px; font-size: clamp(38px, 6.4vw, 68px);
  background: linear-gradient(180deg, #fff 55%, rgba(255, 255, 255, 0.55));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2 { margin-top: 12px; font-size: clamp(26px, 3.8vw, 36px); }
.h1 em, .h2 em, .h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.sub { margin-top: 14px; max-width: 560px; font-size: 16px; line-height: 1.65; color: var(--text-2); }
.meta { font-family: var(--mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.02em; }

.hero { padding: 64px 0 36px; }
.hero.center { text-align: center; }
.hero.center .sub { margin-left: auto; margin-right: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 500 15px var(--font); border: 1px solid transparent; border-radius: 999px;
  padding: 13px 24px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s;
}
.btn-primary { background: #fff; color: #0a0a0c; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255, 255, 255, 0.14); }
.btn-primary:active { transform: none; box-shadow: none; }
.btn-glass { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.13); color: var(--text); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-link { background: none; border: 0; color: var(--text-2); font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--text); }

/* panels */
.panel {
  position: relative; border-radius: 20px; padding: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.014));
}
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.step-num { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.12em; }

.store { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 16px; align-items: start; padding-bottom: 72px; }
.store aside { position: sticky; top: 96px; }

/* products */
.products { display: grid; gap: 12px; }
.product {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  width: 100%; text-align: left; font: inherit; color: inherit;
  padding: 18px 20px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.09); background: var(--surface);
  transition: border-color .18s, background .18s, transform .18s;
}
.product:hover:not([disabled]) { border-color: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.product[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.product[disabled] { cursor: not-allowed; opacity: 0.5; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); display: grid; place-items: center; }
.product[aria-checked="true"] .radio { border-color: var(--accent); }
.product[aria-checked="true"] .radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.product-name { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-desc { margin-top: 3px; font-size: 13.5px; color: var(--text-2); }
.product-note { margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--warn); }
.price { font-family: var(--mono); font-size: 17px; font-weight: 500; text-align: right; }
.price small { display: block; font-size: 11px; color: var(--text-3); font-weight: 400; }
.tag {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 3px 8px; border-radius: 999px; color: var(--accent); border: 1px solid rgba(255, 107, 74, 0.35);
}

/* forms */
.field + .field { margin-top: 14px; }
.label { display: block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); margin-bottom: 8px; }
.input {
  width: 100%; padding: 13px 14px; font: 400 15px var(--font); color: var(--text);
  background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
  outline: none; transition: border-color .18s, box-shadow .18s;
}
.input:focus { border-color: rgba(255, 107, 74, 0.55); box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.12); }
.input::placeholder { color: var(--text-3); }
.input.code { font-family: var(--mono); font-size: 20px; letter-spacing: 0.4em; text-align: center; }
.prefixed { display: flex; align-items: stretch; }
.prefixed .prefix {
  display: grid; place-items: center; padding: 0 12px; font-family: var(--mono); font-size: 14px; color: var(--text-2);
  border: 1px solid rgba(255, 255, 255, 0.1); border-right: 0; border-radius: 12px 0 0 12px; background: var(--surface-2);
}
.prefixed .input { border-radius: 0 12px 12px 0; }
.hint { margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.form-row { display: flex; gap: 10px; margin-top: 14px; }
.form-row .btn { flex: 1; }
.error { margin-top: 12px; font-size: 13.5px; color: var(--error); }
.error:empty { display: none; }

.signed-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.who { font-size: 14.5px; }
.who b { font-weight: 600; overflow-wrap: anywhere; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-family: var(--mono); font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.14em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* summary */
.summary { margin: 4px 0 18px; }
.summary-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.summary-item .k { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); }
.summary-item .v { font-size: 14px; font-weight: 500; text-align: right; }
.summary-item.total .v { font-family: var(--mono); font-size: 18px; }
.secure { margin-top: 14px; text-align: center; }
.fine { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--text-3); text-align: center; }
.fine a { color: var(--text-2); }

/* status */
.status-card { max-width: 560px; margin: 0 auto 72px; text-align: center; }
.status-icon {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface-2);
}
.status-icon svg { width: 24px; height: 24px; }
.status-icon.ok { color: var(--green); box-shadow: 0 0 40px rgba(74, 222, 128, 0.15); }
.status-icon.bad { color: var(--error); }
.status-icon.wait { color: var(--warn); }
.status-card .actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--warn); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); }
.badge.paid { color: var(--green); border-color: rgba(74, 222, 128, 0.3); }
.badge.created, .badge.needs_review { color: var(--warn); border-color: rgba(255, 201, 74, 0.3); }
.badge.failed, .badge.refunded { color: var(--error); border-color: rgba(255, 93, 108, 0.3); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2.2s ease-in-out infinite; display: inline-block; }
@keyframes pulse { 50% { opacity: 0.4; } }

/* account */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.stat b { display: block; margin-top: 6px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 2px; font-size: 13px; color: var(--text-2); }
.orders { width: 100%; border-collapse: collapse; font-size: 14px; }
.orders th { text-align: left; font-family: var(--mono); font-size: 10.5px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); padding: 0 8px 10px; }
.orders td { padding: 12px 8px; border-top: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
.orders td.num { font-family: var(--mono); text-align: right; }
.orders td.id { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.empty { color: var(--text-2); font-size: 14px; }

/* legal pages */
.prose { max-width: 720px; padding-bottom: 80px; }
.prose h2 { margin: 36px 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--text-2); font-size: 15.5px; line-height: 1.75; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 10px 0 0 20px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-underline-offset: 3px; }
.prose .meta { margin-top: 10px; }
/* Unfilled business details. Visible on purpose: fill every one before publishing. */
.todo { color: #0a0a0c; background: var(--warn); border-radius: 4px; padding: 0 5px; font-family: var(--mono); font-size: 0.85em; }

/* landing */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: 80px; }
.feature { padding: 24px; border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.014)); }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; }
.hero .actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero.center .actions { justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 28px 16px 36px; }
.foot { width: min(1040px, 100%); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--text-3); font-size: 13px; text-decoration: none; }
.foot a:hover { color: var(--text-2); }

/* entrance */
.rise { animation: rise 0.6s var(--ease) both; }
.rise.d1 { animation-delay: 80ms; }
.rise.d2 { animation-delay: 160ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .store { grid-template-columns: 1fr; }
  .store aside { position: static; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero { padding: 40px 0 24px; }
  .panel { padding: 20px; }
  .product { grid-template-columns: auto 1fr; }
  .product .price { grid-column: 2; text-align: left; }
  .nav-links a { padding: 7px 9px; }
  .stats { grid-template-columns: 1fr; }
  .orders th:nth-child(3), .orders td:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
