/* Brinkz - shared styles for the public store (/) and the signed-in app (/app/).
   Dark theme only. Tokens follow "Brinkz Build Prompt.md" section 2. */
:root {
  --bg: #0e0b1f;
  --bg-sunken: #120f26;
  --surface: #1a1633;
  --surface-raised: #342d58;
  --border: #2a2448;
  --border-strong: #342d58;
  --border-control: #4a4170;
  --row-divider: #1f1a3a;
  --text: #f4f1ff;
  --text-2: #d6d1ec;
  --text-3: #bdb7d8;
  --text-muted: #a39dc4;
  --text-faint: #6f6896;
  --accent: #ff8a4c;
  --accent-hover: #ffa877;
  --blue: #6b7bff;
  --blue-light: #9aa5ff;
  --purple: #7c5cff;
  --success: #3ddc84;
  --warning: #ffd166;
  --danger: #ff6b8a;
  --on-fill: #0e0b1f;
  --display: 'Chakra Petch', sans-serif;
  --body: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
button, input, select, textarea { font-family: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: var(--surface-raised); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: var(--surface-raised) transparent; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------------------------------------------------------------- page */
.page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(14, 11, 31, .35) 0, var(--bg) 560px),
    url(../assets/banner.png) top center / 100% 560px no-repeat,
    var(--bg);
}
#view { position: relative; min-height: calc(100vh - 64px); }
#view.loading::after {
  content: 'Loading\2026'; position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 120px; color: var(--text-faint); font-size: 13px;
}
.no-access { max-width: 520px; margin: 80px auto; padding: 0 28px; text-align: center; color: var(--text-muted); }
.no-access strong { display: block; color: var(--text); font: 700 24px var(--display); text-transform: uppercase; margin-bottom: 8px; }

.eyebrow { font: 600 11px var(--mono); letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.mono { font-family: var(--mono); }

/* --------------------------------------------------------------- header */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; height: 64px; padding: 0 20px;
  background: rgba(14, 11, 31, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.avatar-btn {
  display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%;
  transition: transform .15s, box-shadow .15s;
}
.avatar-btn:hover { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(255, 138, 76, .35); }
.avatar-btn img { display: block; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); }
.wordmark { font: 700 21px var(--display); letter-spacing: .06em; color: var(--text); cursor: pointer; }
.wordmark:hover { color: var(--text); text-decoration: none; }
.topbar .nav { display: flex; height: 100%; flex: none; }
.topbar .nav a {
  position: relative; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 12px;
  color: var(--text-muted); font: 600 14px var(--display); letter-spacing: .06em; text-transform: uppercase;
}
.topbar .nav a:hover { color: var(--text); text-decoration: none; }
.topbar .nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: transparent;
}
.topbar .nav a.on { color: var(--text); }
.topbar .nav a.on::after { background: var(--accent); }
.spacer { flex: 1 1 0; min-width: 0; }
.signin-pill {
  flex: none; display: flex; align-items: center; gap: 8px; height: 36px; border: 0; background: #fff; color: #1f1f1f;
  font-size: 13px; font-weight: 500; padding: 0 14px 0 10px; border-radius: 999px; cursor: pointer;
}
.g-ring {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2.5px solid #4285f4; border-right-color: #34a853; border-bottom-color: #fbbc05; border-left-color: #ea4335;
}
.g-ring.lg { width: 18px; height: 18px; }
.user-box { display: flex; align-items: center; gap: 10px; flex: none; }
.initials {
  width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--accent));
  color: var(--on-fill); display: grid; place-items: center; font-weight: 700; font-size: 12px; overflow: hidden;
}
.initials img { width: 100%; height: 100%; object-fit: cover; }
.link-btn { border: 0; background: none; color: var(--text-muted); font-size: 12.5px; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--text); }

@media (max-width: 560px) {
  .topbar { gap: 10px; padding: 0 12px; }
  .wordmark { font-size: 18px; }
  .topbar .nav a { padding: 0 8px; font-size: 13px; }
  .topbar .nav a::after { left: 8px; right: 8px; }
  .user-box .link-btn { display: none; }
}

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; border: 0; white-space: nowrap;
  text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn:disabled { cursor: default; }
.btn-primary { background: var(--accent); color: var(--on-fill); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-fill); }
.btn-primary.idle, .btn-primary:disabled { background: var(--border-control); color: var(--on-fill); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-control); }
.btn-outline:hover { border-color: var(--text-muted); color: var(--text); }
.btn-outline.hot:hover { border-color: var(--accent); color: var(--accent); }
.btn-raised { background: var(--surface-raised); color: var(--text); }
.btn-raised:hover { background: var(--border-control); }
.btn-green { background: var(--success); color: var(--on-fill); font-weight: 600; }
.btn-blue { background: var(--blue); color: var(--on-fill); font-weight: 600; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(255, 107, 138, .45); }
.btn-danger:hover { border-color: var(--danger); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-xl { height: 48px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }

.tag {
  font: 500 10.5px var(--mono); letter-spacing: .06em; padding: 2px 7px; border-radius: 4px;
  background: rgba(255, 255, 255, .12); text-transform: uppercase; color: var(--text);
}
.tag.dark { background: rgba(14, 11, 31, .55); font-size: 10px; }
.tag.soft { background: rgba(255, 255, 255, .08); font-size: 11px; padding: 3px 8px; }
.tag-owned {
  font: 600 10px var(--mono); letter-spacing: .08em; padding: 3px 7px; border-radius: 4px;
  background: var(--accent); color: var(--on-fill);
}
.tag-owned.lg { font-size: 11px; padding: 3px 8px; }
.tag-private {
  font: 600 10px var(--mono); letter-spacing: .08em; padding: 3px 7px; border-radius: 4px;
  background: rgba(14, 11, 31, .7); color: var(--blue-light); border: 1px solid rgba(107, 123, 255, .45);
}

/* ----------------------------------------------------------------- art */
.art { position: relative; overflow: hidden; }
.art .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px;
}
.art .mono-mark {
  position: absolute; font-family: var(--display); font-weight: 700; line-height: 1; color: transparent;
  pointer-events: none; user-select: none; white-space: nowrap;
}
/* A card's first screenshot, over the colour art. */
.art .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------------- home */
.home { max-width: 1240px; margin: 0 auto; padding: 40px 28px 96px; display: flex; flex-direction: column; gap: 56px; }
.hero { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; }
.hero-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero-copy h1 { margin: 0; font: 700 58px/.98 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.hero-copy .lead { margin: 0; font-size: 17px; color: var(--text-3); max-width: 460px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.hero-feature { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.feature-card {
  position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  cursor: pointer; display: block; color: var(--text);
}
.feature-card:hover { text-decoration: none; color: var(--text); }
.feature-card .mono-mark { right: -24px; bottom: -80px; font-size: 300px; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .22); }
.feature-card .fade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14, 11, 31, .92) 0%, rgba(14, 11, 31, .2) 55%, rgba(14, 11, 31, 0) 100%);
}
.feature-card .meta {
  position: absolute; left: 28px; right: 28px; bottom: 24px; display: flex; justify-content: space-between;
  align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
.feature-card .meta-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feature-card .name { font: 700 40px/1 var(--display); text-transform: uppercase; }
.feature-card .tagline { color: var(--text-2); font-size: 15px; }
.price-chip {
  font: 600 14px var(--mono); padding: 6px 12px; border-radius: 8px; background: rgba(14, 11, 31, .6);
  border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.dots { display: flex; gap: 6px; justify-content: center; }
.dots button {
  width: 8px; height: 6px; border: 0; border-radius: 3px; background: var(--border-control); cursor: pointer; padding: 0;
  transition: width .3s, background .3s;
}
.dots button.on { width: 28px; background: var(--accent); }

.apps-section { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 84px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font: 700 24px var(--display); text-transform: uppercase; letter-spacing: .04em; }
.segmented { display: flex; padding: 3px; background: var(--surface); border-radius: 9px; gap: 2px; border: 1px solid var(--border); }
.segmented button {
  border: 0; background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 500; padding: 6px 14px;
  border-radius: 7px; cursor: pointer;
}
.segmented button.on { background: var(--surface-raised); color: var(--text); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 18px; }
.tile { display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: transform .2s; color: var(--text); }
.tile:hover { transform: translateY(-4px); text-decoration: none; color: var(--text); }
.tile .art { aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--border); }
.tile .mono-mark { right: -8px; bottom: -40px; font-size: 140px; -webkit-text-stroke: 1px rgba(255, 255, 255, .3); }
.tile .tl { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.tile .tr { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.tile .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tile .name { font: 700 19px var(--display); text-transform: uppercase; }
.tile .tagline { font-size: 13px; color: var(--text-muted); }
.tile .price { font-weight: 600; font-size: 14px; white-space: nowrap; padding-top: 2px; }
.empty-note { padding: 28px 0; color: var(--text-muted); }

.footer {
  display: flex; gap: 18px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--text-faint); font-size: 12.5px;
}
.footer .mark { font: 700 13px var(--display); letter-spacing: .06em; color: var(--text-muted); }
.footer a { color: var(--text-faint); }
.footer a:hover { color: var(--text-muted); }
.footer .grow { flex: 1; }

@media (max-width: 560px) {
  .home { padding: 28px 16px 72px; gap: 40px; }
  .hero-copy h1 { font-size: 42px; }
  .feature-card .name { font-size: 28px; }
  .feature-card .meta { left: 18px; right: 18px; bottom: 16px; }
  .feature-card .mono-mark { font-size: 200px; bottom: -50px; }
}

/* ------------------------------------------------------------- product */
.product { position: relative; }
.product .glow {
  position: absolute; left: 0; right: 0; top: 0; height: 520px; filter: blur(70px); opacity: .45; pointer-events: none;
}
.product main { position: relative; max-width: 1240px; margin: 0 auto; padding: 24px 28px 96px; display: flex; flex-direction: column; gap: 24px; }
.crumbs { font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--text); text-decoration: none; }
.crumbs .here { color: var(--text); }
.product-title { display: flex; flex-direction: column; gap: 8px; }
.product-title h1 { margin: 0; font: 700 56px/1 var(--display); text-transform: uppercase; }
.product-title .sub { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.product-title .sub .tagline { font-size: 16px; color: var(--text-2); margin-right: 6px; }
.product-cols { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.product-main { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.shots { display: flex; flex-direction: column; gap: 10px; }
.shot { aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--border); }
.shot .grid { background-size: 40px 40px; }
.shot .mono-mark { right: -20px; bottom: -70px; font-size: 300px; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .2); }
.shot .label {
  position: absolute; left: 12px; top: 10px; z-index: 1; pointer-events: none; padding: 2px 7px; border-radius: 4px;
  font: 400 11px var(--mono); color: rgba(255, 255, 255, .8); background: rgba(14, 11, 31, .55);
}
.shot.media { position: relative; overflow: hidden; background: #07060f; }
.shot.media img, .shot.media video, .shot.media iframe { display: block; width: 100%; height: 100%; border: 0; }
.shot.media img, .shot.media video { object-fit: contain; }
.shot-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.shot-nav {
  position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; border: 0;
  background: rgba(14, 11, 31, .7); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s;
}
.shot-nav.prev { left: 10px; }
.shot-nav.next { right: 10px; }
.shot.media:hover .shot-nav, .shot-nav:focus-visible { opacity: 1; }
@media (hover: none) { .shot-nav { opacity: .85; } }
.shot-caption { font-size: 13.5px; color: var(--text-3); }
.thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 4); gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; opacity: .6; padding: 0;
}
.thumbs button:hover { opacity: .85; }
.thumbs button.on { border-color: var(--accent); opacity: 1; }
.thumbs img, .thumbs video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.play {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: rgba(14, 11, 31, .72); pointer-events: none;
}
.play::after {
  content: ''; position: absolute; left: 11px; top: 9px; border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}
.lightbox {
  position: fixed; inset: 0; z-index: 70; background: rgba(5, 4, 12, .94); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; padding: 56px 16px 24px;
}
.lightbox img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; border-radius: 8px; }
.lightbox .cap { color: var(--text-2); font-size: 14px; text-align: center; max-width: 900px; }
.lb-close, .lb-nav {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 26px; line-height: 1;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 10px; right: 12px; }
.lb-nav { top: 50%; margin-top: -22px; }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
.about-block { display: flex; flex-direction: column; gap: 10px; }
.about-block h3 { margin: 0; font: 700 18px var(--display); text-transform: uppercase; letter-spacing: .05em; }
.about-block p { margin: 0; font-size: 15.5px; color: var(--text-2); max-width: 700px; white-space: pre-line; }
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.feature-cards div { padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--border);
  border-radius: 12px; background: var(--bg-sunken); overflow: hidden;
}
.facts div { padding: 14px 16px; border-right: 1px solid var(--border); margin-right: -1px; }
.facts .k { font-size: 12px; color: var(--text-muted); }
.facts .v { font-weight: 500; margin-top: 2px; }
.panel {
  flex: 0 1 370px; min-width: 300px; position: sticky; top: 84px; background: rgba(18, 20, 27, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.panel .price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.panel .price-row .lbl { color: var(--text-muted); }
.panel .price-row .big { font: 700 32px var(--display); }
.panel .fine { font-size: 12.5px; color: var(--text-muted); }
.panel .currency-pick { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel .currency-pick .lbl { color: var(--text-muted); font-size: 13px; }
.panel .currency-pick .input { width: auto; min-width: 0; flex: 0 1 200px; height: 34px; padding: 0 10px; }
.panel .owned-row { display: flex; justify-content: space-between; align-items: center; }
.panel .latest { font: 400 12.5px var(--mono); color: var(--text-muted); }
.panel .key { font: 500 12px var(--mono); color: var(--text-muted); letter-spacing: .04em; word-break: break-all; }
.panel .license-line { font-size: 13px; color: var(--text-muted); }
.panel .license-line b { color: var(--text); font-weight: 600; }
.panel .license-line.warn { color: var(--warning); }
.panel .key b { color: var(--accent); font-weight: 500; }
.whats-new { padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.whats-new .k { font-size: 12px; color: var(--text-muted); }
.whats-new .v { font-size: 13.5px; color: var(--text-2); }
.not-found { max-width: 600px; margin: 80px auto; padding: 0 28px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.not-found h1 { margin: 0; font: 700 32px var(--display); text-transform: uppercase; }
.not-found p { margin: 0; color: var(--text-3); }

@media (max-width: 560px) {
  .product main { padding: 18px 16px 72px; }
  .product-title h1 { font-size: 40px; }
  .panel { position: static; min-width: 0; flex-basis: 100%; }
  .shot .mono-mark { font-size: 180px; bottom: -40px; }
}

/* --------------------------------------------------------------- about */
.about { max-width: 1000px; margin: 0 auto; padding: 32px 28px 96px; display: flex; flex-direction: column; gap: 40px; }
.profile { border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.profile .banner { aspect-ratio: 4 / 1; min-height: 150px; background: url(../assets/banner.png) center / cover, var(--surface-raised); }
.profile .body { padding: 0 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.profile .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.profile .big-avatar {
  width: 128px; height: 128px; border-radius: 50%; border: 4px solid var(--surface); margin-top: -64px; background: var(--surface);
}
.profile .links { display: flex; gap: 10px; flex-wrap: wrap; }
.in-icon {
  width: 20px; height: 20px; border-radius: 4px; background: var(--on-fill); color: var(--accent); display: grid;
  place-items: center; font-size: 11px; font-weight: 700;
}
.profile .who { display: flex; flex-direction: column; gap: 4px; }
.profile h1 { margin: 0; font: 700 44px/1 var(--display); text-transform: uppercase; }
.profile .line { color: var(--text-muted); font-size: 15px; }
.profile .intro { margin: 0; font-size: 18px; color: var(--text); max-width: 680px; }
.story { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; align-items: start; }
.story .head, .about-section .head { display: flex; flex-direction: column; gap: 12px; }
.about h2 { margin: 0; font: 700 30px/1.05 var(--display); text-transform: uppercase; }
.story .copy { display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: var(--text-2); }
.story .copy p { margin: 0; }
.about-section { display: flex; flex-direction: column; gap: 20px; }
.about-section .head { gap: 10px; }
.ai-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.ai-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.ai-card.claude { background-image: radial-gradient(360px 200px at 100% 0%, rgba(255, 138, 76, .18), transparent 70%); }
.ai-card.codex { background-image: radial-gradient(360px 200px at 100% 0%, rgba(107, 123, 255, .22), transparent 70%); }
.ai-card .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-card .name { font: 700 26px var(--display); text-transform: uppercase; }
.ai-card p { margin: 0; color: var(--text-2); }
.pill { font: 500 11px var(--mono); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pill.orange { color: var(--accent); border: 1px solid rgba(255, 138, 76, .4); }
.pill.blue { color: var(--blue-light); border: 1px solid rgba(107, 123, 255, .45); }
.loop {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 8px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px;
}
.loop div { padding: 14px; border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.loop .n { font: 700 22px var(--display); color: var(--border-control); }
.loop .t { font-weight: 600; }
.loop .d { font-size: 13px; color: var(--text-muted); }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.skill { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.skill .t { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--bg-sunken); border: 1px solid var(--border-strong); color: var(--text-2); }
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.promise { padding: 18px 0; border-top: 2px solid var(--accent); display: flex; flex-direction: column; gap: 6px; }
.promise .t { font: 700 18px var(--display); text-transform: uppercase; }
.promise .d { font-size: 14px; color: var(--text-muted); }
.cta-band {
  border-radius: 20px; padding: 32px; border: 1px solid var(--border); display: flex; justify-content: space-between;
  align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(rgba(14, 11, 31, .55), rgba(14, 11, 31, .75)), url(../assets/banner.png) center / cover;
}
.cta-band .copy { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.cta-band .big { font: 700 28px/1.05 var(--display); text-transform: uppercase; }
.cta-band .small { color: var(--text-2); }
.cta-band .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost { height: 44px; padding: 0 20px; border: 1px solid var(--text-muted); border-radius: 10px; background: rgba(14, 11, 31, .4); color: var(--text); font-size: 14.5px; font-weight: 500; cursor: pointer; }
.btn-ghost:hover { border-color: var(--text); }

@media (max-width: 560px) {
  .about { padding: 24px 16px 72px; }
  .profile .body { padding: 0 18px 22px; }
  .cta-band { padding: 22px; }
}

/* ------------------------------------------------------------- controls */
.switch { width: 40px; height: 22px; border-radius: 11px; background: var(--surface-raised); padding: 3px; display: flex; justify-content: flex-start; flex: none; transition: background .2s; }
.switch.on { background: var(--accent); justify-content: flex-end; }
.switch span { width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.swatch { width: 52px; height: 34px; border-radius: 7px; flex: none; display: grid; place-items: center; font: 700 12px var(--display); }

/* -------------------------------------------------------------- modals */
.scrim {
  position: fixed; inset: 0; z-index: 50; background: rgba(5, 6, 9, .7); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; overflow-y: auto;
}
.modal {
  width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px;
  overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.modal .pad { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal .title { font: 700 22px var(--display); text-transform: uppercase; }
.modal .sub { font-size: 13px; color: var(--text-muted); }
.modal .err { font-size: 13px; color: var(--danger); }
.modal .note { font-size: 13px; color: var(--text-3); padding: 10px 12px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--border); }
.signin { padding: 30px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.signin img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--accent); }
.signin .title { font-size: 24px; }
.signin .text { color: var(--text-3); font-size: 14px; }
.google-btn {
  width: 100%; height: 46px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; background: #fff; color: #1f1f1f; font-size: 14.5px; font-weight: 500; border-radius: 999px; cursor: pointer;
}
.google-btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.pay-head { height: 110px; position: relative; }
.pay-head .n { position: absolute; left: 22px; bottom: 14px; font: 700 26px var(--display); text-transform: uppercase; }
.pay-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.pay-line .l { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-note { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.card-box { border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg-sunken); overflow: hidden; }
.card-box .f { height: 44px; padding: 13px 14px; }
.card-box .f + .split, .card-box .f.first { border-bottom: 1px solid var(--border-strong); }
.card-box .split { display: flex; }
.card-box .split .f { flex: 1; min-width: 0; }
.card-box .split .f:first-child { border-right: 1px solid var(--border-strong); }
.secured { text-align: center; font-size: 12px; color: var(--text-muted); }
.secured strong { color: #8f88ff; letter-spacing: -.02em; }
.done { padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.done .title { font-size: 26px; }
.done .text { color: var(--text-3); font-size: 14px; }
.keybox { width: 100%; font: 500 15px var(--mono); letter-spacing: .05em; color: var(--accent); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px; word-break: break-all; user-select: all; }
.done .btns { display: flex; gap: 10px; width: 100%; }
.done .btns .btn { flex: 1; height: 44px; }
.check {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-control); display: grid; place-items: center;
  color: var(--on-fill); font-size: 12px; font-weight: 700; flex: none;
}
.input {
  height: 40px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 12px; font-size: 14px; outline: none;
  background: var(--bg); color: var(--text); width: 100%;
}
.input:focus { border-color: var(--border-control); }
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.input { padding-right: 8px; }

/* --------------------------------------------------------------- toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--accent);
  color: var(--on-fill); font-size: 13.5px; font-weight: 500; padding: 10px 18px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); max-width: calc(100vw - 32px); text-align: center;
}
.toast.err { background: var(--danger); }

/* --------------------------------------------------------------- admin */
.admin { max-width: 1320px; margin: 0 auto; padding: 36px 28px 96px; display: flex; flex-direction: column; gap: 20px; }
.admin h1 { margin: 0; font: 700 40px var(--display); text-transform: uppercase; }
.admin .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.admin .card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.admin table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin th { text-align: left; font-weight: 500; color: var(--text-muted); font-size: 12px; padding: 11px 16px; background: var(--bg-sunken); border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin td { padding: 12px 16px; border-bottom: 1px solid var(--row-divider); vertical-align: middle; }
.admin tr:last-child td { border-bottom: 0; }
.admin tr.click { cursor: pointer; }
.admin tr.click:hover td { background: rgba(255, 255, 255, .02); }
.admin tr.dim td { opacity: .5; }
.admin .scroll { overflow-x: auto; }
.admin .app-cell { display: flex; align-items: center; gap: 12px; }
.admin .muted { color: var(--text-muted); }
.admin .faint { color: var(--text-faint); }
.admin .status { padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.admin .status.ok { border: 1px solid rgba(61, 220, 132, .35); background: rgba(61, 220, 132, .08); color: #a6f3c9; }
.admin .status.err { border: 1px solid rgba(255, 107, 138, .35); background: rgba(255, 107, 138, .08); color: #ffb3c3; }
.vis { font: 600 10.5px var(--mono); letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.vis.public { color: var(--success); border: 1px solid rgba(61, 220, 132, .4); }
.vis.private { color: var(--blue-light); border: 1px solid rgba(107, 123, 255, .45); }
.editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; padding: 20px; }
.editor label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.editor label.wide { grid-column: 1 / -1; }
.editor .hint { font-size: 12px; color: var(--text-faint); }
.editor .checks { display: flex; gap: 16px; align-items: center; height: 40px; color: var(--text); font-size: 14px; }
.editor .checks label { flex-direction: row; align-items: center; gap: 6px; color: var(--text); font-size: 14px; }
.editor .colors { display: flex; gap: 8px; align-items: center; }
.editor .colors input[type=color] { width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg); padding: 2px; }
.editor-foot { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; border-top: 1px solid var(--border); background: var(--bg-sunken); }
.editor-foot .grp { display: flex; gap: 10px; flex-wrap: wrap; }
.vis-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.vis-toggle button { flex: 1; min-width: 160px; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); cursor: pointer; color: var(--text); }
.vis-toggle button.on { border-color: var(--accent); }
.vis-toggle button .t { font-weight: 600; display: block; }
.vis-toggle button .d { font-size: 12px; color: var(--text-muted); display: block; margin-top: 2px; }
.access { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-top: 1px solid var(--border); }
.access .t { font-weight: 600; }
.access .add { display: flex; gap: 8px; flex-wrap: wrap; }
.access .add .input { flex: 1 1 240px; width: auto; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.media-item { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-sunken); }
.media-item .face { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #07060f; }
.media-item .face img, .media-item .face video { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-item .face .tag { position: absolute; left: 6px; top: 6px; background: rgba(14, 11, 31, .75); }
.media-item .input { width: 100%; }
.media-item .tools { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.email-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--bg-sunken); border: 1px solid var(--border-strong); color: var(--text-2); }
.email-chip button { border: 0; background: none; color: var(--text-faint); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 4px; }
.email-chip button:hover { color: var(--danger); }
.role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-strong); font: 500 11.5px var(--mono); color: var(--text-muted); cursor: pointer; user-select: none; }
.role-chip.on { border-color: rgba(255, 138, 76, .55); color: var(--accent); background: rgba(255, 138, 76, .08); }
.role-chip input { margin: 0; accent-color: var(--accent); }
.person { display: flex; align-items: center; gap: 10px; }
.person img, .person .ini { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.person .ini { display: grid; place-items: center; background: var(--surface-raised); color: var(--text-muted); font-weight: 600; }
.you { font: 500 10px var(--mono); color: var(--accent); border: 1px solid rgba(255, 138, 76, .4); border-radius: 3px; padding: 0 4px; margin-left: 6px; }

@media (max-width: 560px) {
  .admin { padding: 24px 16px 72px; }
  .admin h1 { font-size: 32px; }
}

/* Admin: one price per currency */
.price-line { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.price-line .input.cur { flex: 0 0 90px; width: auto; text-transform: uppercase; }
.price-line .input.amt { flex: 0 1 160px; width: auto; min-width: 0; }

/* Admin: how an app is sold */
.plan-pick { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.plan-pick label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.plan-pick label:first-child { flex: 1 1 280px; }
.plan-pick .input { width: auto; min-width: 0; }
.plan-pick input[name=planDays] { width: 110px; }
