/* ============================================================
   owntogo — glass theme tokens (mirrors the SPA's src/styles/global.scss)
   Dark is the default; a saved choice (Nav toggle, shared via the
   `owntogo-theme` localStorage key) can flip to [data-theme="light"].
   ============================================================ */
:root {
  /* --- accent palette (pick one for --accent) --- */
  --accent-teal:   #3fa3bd; /* DEFAULT / brand */
  --accent-ember:  #e2714a;
  --accent-indigo: #6f8cf5;
  --accent-mint:   #4fae7c;
  --accent-orchid: #c26bb0;

  --accent: var(--accent-teal);
  --accent-on: #ffffff;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  --blur-panel: blur(20px) saturate(150%);
  --blur-nav: blur(24px) saturate(150%);

  /* --- dark theme tokens (default) --- */
  --bg:        #0d1015;
  --text:      #dfe4ea;
  --text-2:    #8b95a3;
  --text-3:    #6b7480;
  --ai:        #9db4c8;

  --nav-bg:    rgba(13, 16, 21, 0.62);
  --nav-overlay-bg: rgba(13, 16, 21, 0.94);
  --card:      rgba(20, 25, 33, 0.72);
  --panel:     rgba(255, 255, 255, 0.06);
  --panel-2:   rgba(255, 255, 255, 0.08);
  --panel-3:   rgba(255, 255, 255, 0.04);
  --tint:      rgba(255, 255, 255, 0.02);

  --border:        rgba(255, 255, 255, 0.13);
  --border-soft:   rgba(255, 255, 255, 0.08);
  --border-dashed: rgba(255, 255, 255, 0.22);
  --border-strong: rgba(255, 255, 255, 0.32);

  --hilite: rgba(255, 255, 255, 0.10);
  --shadow: rgba(0, 0, 0, 0.45);
  --glow:   rgba(190, 214, 240, 0.10);
  --grid:   rgba(255, 255, 255, 0.035);

  --btn:      #dfe4ea;
  --btn-text: #0d1015;

  --blob-a: 0.18;
  --blob-b: 0.15;
  --blob-c: 0.11;

  --font-sans: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max-width: 1100px;
  --article-width: 760px;
}

[data-theme='light'] {
  --bg:        #eef1f6;
  --text:      #141c28;
  --text-2:    #56637a;
  --text-3:    #8b98a7;
  --ai:        #3f6f96;

  --nav-bg:    rgba(238, 241, 246, 0.60);
  --nav-overlay-bg: rgba(238, 241, 246, 0.94);
  --card:      rgba(255, 255, 255, 0.88);
  --panel:     rgba(255, 255, 255, 0.62);
  --panel-2:   rgba(20, 28, 40, 0.05);
  --panel-3:   rgba(255, 255, 255, 0.50);
  --tint:      rgba(255, 255, 255, 0.42);

  --border:        rgba(20, 28, 40, 0.11);
  --border-soft:   rgba(20, 28, 40, 0.08);
  --border-dashed: rgba(20, 28, 40, 0.20);
  --border-strong: rgba(20, 28, 40, 0.34);

  --hilite: rgba(255, 255, 255, 0.85);
  --shadow: rgba(20, 28, 40, 0.13);
  --glow:   rgba(255, 255, 255, 0.85);
  --grid:   rgba(20, 28, 40, 0.07);

  --btn:      #141c28;
  --btn-text: #ffffff;

  --blob-a: 0.20;
  --blob-b: 0.16;
  --blob-c: 0.12;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-on);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ── ambient background blobs ───────────────────────────────────── */

.ambient-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
}

.ambient-blob-a {
  top: -180px;
  left: -120px;
  width: 620px;
  height: 620px;
  background: var(--accent);
  opacity: var(--blob-a);
  filter: blur(120px);
}

.ambient-blob-b {
  top: 12%;
  right: -160px;
  width: 560px;
  height: 560px;
  background: #5b8bd8;
  opacity: var(--blob-b);
  filter: blur(130px);
}

.ambient-blob-c {
  bottom: -220px;
  left: 30%;
  width: 700px;
  height: 700px;
  background: #7a6bd8;
  opacity: var(--blob-c);
  filter: blur(140px);
}

/* ── Nav ─────────────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  border-bottom: 1px solid var(--border);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
}

.logo-icon {
  display: block;
  flex-shrink: 0;
}

.site-nav .links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.site-nav .links a {
  text-decoration: none;
  color: var(--text-2);
  transition: color 0.15s;
}

.site-nav .links a:hover {
  color: var(--text);
}

.nav-cta {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent) !important;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  padding: 10px 20px;
  border-radius: var(--r-pill);
  transition: background 0.15s, border-color 0.15s;
}

.nav-cta:hover {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 51;
}

.nav-burger-icon {
  position: relative;
  width: 22px;
  height: 10px;
  display: block;
}

.nav-burger-bar {
  position: absolute;
  right: 0;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.25, 1),
              width 320ms cubic-bezier(0.2, 0.8, 0.25, 1),
              background-color 200ms ease;
}

.nav-burger-bar-1 { top: 0; width: 22px; }
.nav-burger-bar-2 { bottom: 0; width: 14px; background: var(--accent); }

.nav-burger-open .nav-burger-bar-1 { transform: translateY(4px) rotate(45deg); }
.nav-burger-open .nav-burger-bar-2 { width: 22px; background: var(--text); transform: translateY(-4px) rotate(-45deg); }

@keyframes navMenuVeil {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes navMenuFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.nav-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--nav-overlay-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  display: flex;
  flex-direction: column;
  animation: navMenuVeil 220ms ease both;
}

.nav-menu-overlay[hidden] {
  display: none;
}

.nav-menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
}

.nav-menu-links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  text-decoration: none;
  animation: navMenuFadeUp 380ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.nav-menu-links a:nth-child(1) { animation-delay: 60ms; }
.nav-menu-links a:nth-child(2) { animation-delay: 120ms; }
.nav-menu-links a:nth-child(3) { animation-delay: 180ms; }
.nav-menu-links a:nth-child(4) { animation-delay: 240ms; }
.nav-menu-links a:last-child { border-bottom: none; }
.nav-menu-links a:hover { color: var(--accent); }

.nav-menu-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  width: 22px;
  flex-shrink: 0;
}

.nav-menu-label {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.nav-menu-foot {
  flex: none;
  padding: 0 32px 40px;
  animation: navMenuFadeUp 400ms ease both;
  animation-delay: 300ms;
}

.nav-menu-cta {
  display: block;
  text-align: center;
  padding: 16px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: var(--accent) !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: none !important;
  transition: background 0.15s, border-color 0.15s;
}

.nav-menu-cta:hover {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

@media (max-width: 600px) {
  .site-nav .links { display: none; }
  .nav-burger { display: flex; }
}

/* ── Footer ──────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 64px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  padding: 40px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon img,
.footer-logo-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-logo-name {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

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

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}

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

.site-footer-dark {
  background: var(--card);
  border-top-color: var(--border);
  margin-top: 0;
}

.site-footer-dark .footer-copy,
.site-footer-dark .footer-links a {
  color: var(--text-3);
}

.site-footer-dark .footer-logo-name {
  color: var(--text);
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── Page head (blog index) ─────────────────────────────────────────── */

.page-head {
  padding: 56px 0 40px;
  max-width: 640px;
}

.page-head .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-head h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.page-head p {
  color: var(--text-2);
  font-size: 1.125rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Blog index ──────────────────────────────────────────────────── */

.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: 0 0 96px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  backdrop-filter: var(--blur-panel);
  -webkit-backdrop-filter: var(--blur-panel);
  box-shadow: inset 0 1px 0 var(--hilite), 0 14px 34px var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 var(--hilite), 0 18px 40px var(--shadow);
  border-color: var(--border-strong);
}

.blog-cover {
  aspect-ratio: 5 / 3;
  background: var(--panel-2);
}

.blog-cover img, .blog-cover svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 28px 30px;
}

.blog-card-body h2 {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.blog-card-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-2);
}

.read-more {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 820px) {
  .blog-list { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Blog article + app detail meta/back link ───────────────────────── */

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.cat {
  color: var(--accent);
  font-weight: 700;
}

.dot {
  color: var(--text-3);
}

.article {
  padding: 56px 0 96px;
  max-width: var(--article-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.article .back, .detail-hero .back {
  display: inline-block;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-3);
  transition: color 0.15s;
}

.article .back:hover, .detail-hero .back:hover {
  color: var(--accent);
}

.article .meta {
  margin-bottom: 18px;
}

.article h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--text);
}

.article .excerpt {
  color: var(--text-2);
  font-size: 1.19rem;
  line-height: 1.6;
  margin: 0 0 36px;
}

.article .cover {
  aspect-ratio: 16 / 9;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
}

.cover-mock-light, .cover-mock-dark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-mock-dark {
  background: var(--card);
}

.cover-mock-text {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--accent);
}

.article .cover img, .article .cover svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-2);
}

.article-body p {
  margin: 0 0 20px;
}

.article-body h2 {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 44px 0 16px;
  color: var(--text);
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
  color: var(--text);
}

.article-body a {
  color: var(--accent);
}

.article-body strong {
  font-weight: 600;
  color: var(--text);
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--panel-2);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--text);
  word-break: break-word;
}

.article-body ul {
  margin: 0 0 22px;
  padding-left: 22px;
  list-style: none;
}

.article-body li {
  position: relative;
  margin-bottom: 12px;
  line-height: 1.7;
}

.article-body li::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.tableScroll {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.tableScroll table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 0.9rem;
}

.tableScroll th, .tableScroll td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}

.tableScroll th:last-child, .tableScroll td:last-child {
  border-right: none;
}

.tableScroll tbody tr:last-child td {
  border-bottom: none;
}

.tableScroll thead th {
  background: var(--panel-2);
  font-weight: 700;
  font-size: 0.8rem;
}

.tableScroll tbody td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .page-head h1 { font-size: 2.1rem; }
  .article h1 { font-size: 1.9rem; }
  .article .excerpt { font-size: 1.05rem; }
}

/* ── App detail page ─────────────────────────────────────────────── */

.detail-hero {
  display: grid;
  gap: 32px;
  padding: 48px 0;
  position: relative;
  z-index: 1;
}

.detail-hero .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.detail-hero h1 {
  font-size: 2.2rem;
  margin: 8px 0;
  color: var(--text);
}

.detail-hero .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-hero .tag {
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--text-2);
  background: var(--panel);
}

.buy-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: var(--panel);
  backdrop-filter: var(--blur-panel);
  -webkit-backdrop-filter: var(--blur-panel);
  box-shadow: inset 0 1px 0 var(--hilite), 0 14px 34px var(--shadow);
  max-width: 360px;
}

.buy-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.buy-card .price-note {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-left: 8px;
}

.buy-card .checklist {
  margin: 16px 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-2);
}

.buy-card .checklist li {
  margin-bottom: 8px;
}

.buy-card .checklist .check {
  color: var(--accent-mint);
  margin-right: 8px;
}

.buy-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-on);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.buy-btn:hover {
  opacity: 0.88;
}

.buy-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.buy-meta {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-2);
  margin-top: 8px;
}

.section-block {
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-heading {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-sub {
  margin: 0 0 32px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 580px;
}

.dash-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-2);
}

.dash-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--accent);
}

/* ── Make it yours ───────────────────────────────────────────────── */

.miy-heading {
  max-width: 600px;
}

.miy-sub {
  margin-bottom: 36px;
}

.miy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.miy-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: var(--blur-panel);
  -webkit-backdrop-filter: var(--blur-panel);
  box-shadow: inset 0 1px 0 var(--hilite), 0 14px 34px var(--shadow);
}

.miy-prompt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.miy-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-2);
}

@media (max-width: 800px) {
  .miy-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 1.6rem; }
}

/* ── Detail CTA (glass full-bleed band) ──────────────────────────────── */

.detail-cta {
  background:
    radial-gradient(680px 340px at 25% 50%, var(--glow), transparent 70%),
    var(--tint);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 24px;
  z-index: 1;
}

.detail-cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.detail-cta-inner h2 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.detail-cta-inner p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 480px;
}

.detail-cta-btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-on);
  background: var(--accent);
  padding: 15px 32px;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: opacity 0.15s;
}

.detail-cta-btn:hover {
  opacity: 0.88;
}

.detail-cta-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.detail-cta-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
}

@media (max-width: 600px) {
  .detail-cta-inner { padding: 28px 20px; }
  .detail-cta-inner h2 { font-size: 1.75rem; }
}

@media (max-width: 600px) {
  .detail-hero { gap: 20px; padding: 24px 0; }
  .detail-hero .back { margin-bottom: 14px; }
  .detail-hero h1 { margin: 6px 0; }
  .detail-hero p { margin: 6px 0; }
  .detail-hero .tags { margin-top: 10px; }
  .detail-hero .tag { font-size: 0.72rem; }

  .buy-card { padding: 16px; }
  .buy-card .price { font-size: 1.7rem; }
  .buy-card .checklist { margin: 10px 0; }
  .buy-card .checklist li { margin-bottom: 5px; }
  .buy-btn { padding: 14px 11px; margin-top: 6px; }
  .buy-meta { margin-top: 5px; }
}

/* ── Screenshot carousel + lightbox (app detail page) ───────────────── */

.carousel-section {
  padding: 40px 0 16px;
  position: relative;
  z-index: 1;
}

.carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.carousel-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.carousel-caption {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.carousel-side-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  background: color-mix(in srgb, var(--card) 40%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 var(--hilite), 0 8px 24px var(--shadow);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.carousel-side-btn:hover {
  border-color: color-mix(in srgb, var(--text) 30%, transparent);
  background: color-mix(in srgb, var(--card) 60%, transparent);
}

.carousel-side-btn-prev { left: 12px; }
.carousel-side-btn-next { right: 12px; }

.carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.carousel-thumb {
  padding: 0;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--panel-2);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: border-color 0.15s, opacity 0.15s, transform 0.15s;
  opacity: 0.6;
}

.carousel-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.carousel-thumb-active {
  border-color: var(--accent);
  opacity: 1;
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.carousel-stage {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  overflow: hidden;
}

.carousel-track {
  overflow: hidden;
  border-radius: 12px;
}

.carousel-slides {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.carousel-slide {
  min-width: 100%;
  padding: 0 6px;
}

.carousel-img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--panel-2);
  border-radius: 12px;
  cursor: zoom-in;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  padding: 0;
  background: var(--border);
  transition: background 0.2s;
}

.carousel-dot-active {
  background: var(--accent);
}

.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 9, 12, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-overlay[hidden] {
  display: none;
}

.lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.lb-close, .lb-nav {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lb-close:hover, .lb-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lb-close {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.lb-nav-prev {
  left: 20px;
}

.lb-nav-next {
  right: 20px;
}

.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 600px) {
  .carousel-section { padding: 32px 0 16px; }
  .carousel-stage { padding: 16px; }
  .carousel-caption { font-size: 18px; }
  .lb-nav { display: none; }
  .lb-img { max-width: 96vw; max-height: 80vh; }
  .carousel-thumbs { grid-template-columns: repeat(3, 1fr); }
  .carousel-thumb-desktop-only { display: none; }
  .carousel-side-btn { width: 36px; height: 36px; }
  .carousel-side-btn-prev { left: 6px; }
  .carousel-side-btn-next { right: 6px; }
}

.not-found {
  padding: 96px 0;
  text-align: center;
}

@media (min-width: 800px) {
  .detail-hero {
    grid-template-columns: 1fr 360px;
  }
}

/* ── ORM diagram widget (blog article) ──────────────────────────────── */

.orm-widget {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 32px 0;
  background: var(--panel);
  backdrop-filter: var(--blur-panel);
  -webkit-backdrop-filter: var(--blur-panel);
}

.orm-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}

.orm-badge {
  font-family: var(--font-mono);
  background: var(--accent);
  color: var(--accent-on);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.orm-hint {
  color: var(--text-2);
}

.orm-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  padding: 24px 0;
}

.orm-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  min-width: 104px;
  height: 90px;
  border: 2px solid var(--border);
  border-radius: 10px;
  gap: 4px;
  padding: 8px;
  background: var(--panel-2);
  transition: border-color 0.2s, background 0.2s;
}

.orm-slot {
  border-style: dashed;
  cursor: pointer;
}

.orm-slot-over {
  background: var(--border);
}

.orm-orm {
  border-color: var(--accent);
}

.orm-backend {
  background: var(--btn);
  border-color: var(--btn);
}

.orm-node-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--text-2);
}

.orm-backend .orm-node-label {
  color: var(--btn-text);
  opacity: 0.65;
}

.orm-backend .orm-node-name {
  color: var(--btn-text);
}

.orm-node-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.orm-link {
  display: inline-flex;
  align-items: center;
  width: 36px;
  min-width: 36px;
}

.orm-line {
  flex: 1;
  height: 2px;
  background: var(--text-3);
}

.orm-arrow {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--text-3);
}

.orm-tray {
  margin-top: 8px;
}

.orm-tray-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
  display: block;
  margin-bottom: 8px;
}

.orm-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.orm-chip {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--panel-2);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text);
}

.orm-chip-active {
  border-color: var(--accent);
  font-weight: 600;
}

.orm-caption {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-2);
  text-align: center;
}

/* ── Blog index: hero, featured post, grid, newsletter ──────────────── */

.blog-hero {
  padding: 80px 0 48px;
  position: relative;
  z-index: 1;
}

.blog-hero-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.blog-hero h1 {
  margin: 0;
  font-size: 3.2rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 720px;
  color: var(--text);
}

.blog-hero p {
  margin: 16px 0 0;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 560px;
}

.blog-pills {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.blog-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.blog-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}

.blog-pill-active, .blog-pill-active:hover {
  color: var(--btn-text);
  background: var(--btn);
  border-color: var(--btn);
}

.featured-wrap {
  padding: 16px 0 40px;
  position: relative;
  z-index: 1;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  backdrop-filter: var(--blur-panel);
  -webkit-backdrop-filter: var(--blur-panel);
  box-shadow: inset 0 1px 0 var(--hilite), 0 14px 34px var(--shadow);
  transition: border-color 0.15s;
}

.featured-card:hover {
  border-color: var(--accent);
}

.featured-visual {
  background: var(--card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  gap: 24px;
}

.featured-visual-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ai);
  font-weight: 700;
}

.featured-terminal {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.9;
  color: var(--text-2);
}

.ft-you { color: var(--accent); }
.ft-ai { color: var(--ai); }
.ft-line { color: var(--text); }
.ft-dim { color: var(--text-3); }

.featured-visual-file {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}

.featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.featured-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.featured-content h2 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.featured-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-2);
}

.post-grid-section {
  padding: 0 0 96px;
  position: relative;
  z-index: 1;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  backdrop-filter: var(--blur-panel);
  -webkit-backdrop-filter: var(--blur-panel);
  box-shadow: inset 0 1px 0 var(--hilite), 0 14px 34px var(--shadow);
  transition: border-color 0.15s;
}

.post-card:hover {
  border-color: var(--accent);
}

.post-card-cover {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
}

.pcc-light {
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}

.pcc-dark {
  background: var(--card);
}

.pcc-chip {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 700;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
}

.pcc-chip-dark {
  color: var(--text);
}

.cover .pcc-chip {
  font-size: 1.1rem;
  padding: 12px 22px;
}

.pcc-text {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 700;
}

.pcc-green { color: var(--accent-mint); }
.pcc-peach { color: var(--ai); }

.post-card-cover-real {
  height: 150px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}

.post-card-cover-real img, .post-card-cover-real svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-card-cat {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  font-weight: 700;
}

.post-card-body h3 {
  margin: 0;
  font-size: 1.156rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.post-card-body p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-2);
  flex: 1;
}

.post-card-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .blog-hero { padding: 48px 0 32px; }
  .blog-hero h1 { font-size: 2.2rem; }
  .blog-hero p { margin-top: 12px; }
  .blog-pills { margin-top: 20px; }
  .featured-wrap { padding-top: 0; }
  .post-grid { grid-template-columns: 1fr; }

  .featured-visual { display: none; }
  .featured-content { padding: 28px 20px; gap: 12px; }
  .featured-content h2 { font-size: 1.375rem; }

  .newsletter-box { padding: 28px 20px; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { width: auto; flex: 1; min-width: 0; }
}

.newsletter-box {
  margin-top: 56px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.newsletter-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-copy h3 {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.newsletter-copy p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--text-2);
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 18px;
  border-radius: 10px;
  width: 240px;
  outline: none;
}

.newsletter-form button {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-on);
  background: var(--accent);
  padding: 13px 24px;
  border: none;
  border-radius: 10px;
  white-space: nowrap;
  cursor: not-allowed;
}

.newsletter-form input:disabled, .newsletter-form button:disabled {
  opacity: 0.7;
}

/* ── Coming soon placeholder ─────────────────────────────────────────── */

.coming-soon {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 96px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.coming-soon-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 16px;
}

.coming-soon h1 {
  font-size: 2rem;
  margin: 0 0 16px;
  color: var(--text);
}

.coming-soon p {
  color: var(--text-2);
  font-size: 1.05rem;
  margin: 0 0 24px;
}
