/* Orrel's dark site theme, loaded after styles.css on every page that has <html class="dark">.
   The home page's own sections (hero, bento, pricing) live here too. */

html.dark {
  color-scheme: dark;
  --bg: #07070b;
  --bg-tint: #0b0b11;
  --card: #121218;
  --card-2: #191921;
  --ink: #f5f5f7;
  --ink-2: #d4d4dc;
  --muted: #a0a0ab;
  --faint: #7c7c88;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --accent: #8b7cff;
  --accent-ink: #b4a9ff;
  --accent-hover: #9d90ff;
  --accent-soft: rgba(139, 124, 255, 0.16);
  --glass: rgba(28, 28, 36, 0.6);
  --glass-line: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(7, 7, 11, 0.62);
  --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-float: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.55);
  --shadow-shot: drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.3)) drop-shadow(0 30px 60px rgba(0, 0, 0, 0.65));
  --key-top: #2e2e36;
  --key-bot: #22222a;
  --key-edge: #0c0c10;
  --key-ink: #ececf1;
  --sky-1: #0e0b24;
  --sky-2: #07070b;
  --hand: #a0a0ab;
  --grad: linear-gradient(100deg, #a5b4fc 0%, #c4b5fd 30%, #f0abfc 62%, #fda4af 100%);
  --display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
}

html.dark body {
  background:
    radial-gradient(1100px 620px at 50% -140px, rgba(124, 92, 255, 0.34), transparent 70%),
    radial-gradient(700px 420px at 88% 8%, rgba(236, 72, 153, 0.16), transparent 70%),
    radial-gradient(700px 480px at 8% 14%, rgba(56, 189, 248, 0.12), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}

/* ---------- Shared pieces ---------- */
.dark .btn-primary { background: #fff; color: #0b0b10; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 8px 30px rgba(139, 124, 255, 0.35); }
.dark .btn-primary:hover { background: #ececf4; }
.dark .btn-secondary { background: rgba(255, 255, 255, 0.06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.dark .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.dark .nav .btn-primary { box-shadow: none; }
.dark .nav-links a { color: var(--muted); }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.dark .h2 { font-family: var(--display); font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.dark .lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 680px; margin: 18px auto 0; }
.dark .sec { padding: 120px 0; position: relative; }
.dark .sec-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }

/* ---------- Hero ---------- */
.hero2 { padding: 84px 0 0; text-align: center; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 13.5px; color: var(--ink-2);
}
.badge:hover { text-decoration: none; background: rgba(255, 255, 255, 0.08); }
.badge b { background: var(--grad); color: #120f24; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.hero2 h1 {
  font-family: var(--display); font-weight: 750; font-size: clamp(44px, 8vw, 92px); line-height: 0.98;
  letter-spacing: -0.045em; margin: 26px auto 0; max-width: 980px;
}
.hero2 .lead { max-width: 720px; }
.hero2 .cta-row { margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: 13.5px; color: var(--faint); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .ic { width: 16px; height: 16px; color: #8ee6b0; stroke-width: 2.2; }

.toolbelt { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 40px auto 0; }
.toolbelt a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 14px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.toolbelt a:hover { text-decoration: none; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-2); }
.toolbelt .ic { width: 17px; height: 17px; color: var(--accent-ink); }

.hero-shot { position: relative; max-width: 1180px; margin: 64px auto 0; padding: 0 24px; }
.hero-shot::before {
  content: ""; position: absolute; inset: 6% 8% -4%; border-radius: 40px; z-index: 0;
  background: radial-gradient(closest-side, rgba(139, 124, 255, 0.55), rgba(236, 72, 153, 0.18) 60%, transparent);
  filter: blur(60px);
}
.window {
  position: relative; z-index: 1; border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 120px rgba(0, 0, 0, 0.7);
  background: #0e0e14;
}
.window img { width: 100%; }
.hero-fade { height: 120px; margin-top: -120px; position: relative; z-index: 2; background: linear-gradient(transparent, var(--bg)); }

/* ---------- Proof strip ---------- */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); margin-top: 72px; }
.proof div { background: var(--bg-tint); padding: 26px 24px; }
.proof strong { display: block; font-family: var(--display); font-size: 30px; letter-spacing: -0.03em; font-weight: 700; }
.proof span { font-size: 14px; color: var(--muted); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative; grid-column: span 3; border-radius: 26px; padding: 30px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex; flex-direction: column;
}
.tile.w2 { grid-column: span 2; }
.tile.w4 { grid-column: span 4; }
.tile.w6 { grid-column: span 6; }
.tile-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-bottom: 10px; }
.tile-tag .ic { width: 17px; height: 17px; }
.tile h3 { font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
.tile > p { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin-top: 10px; max-width: 560px; }
.tile .more { margin-top: 14px; font-size: 14.5px; font-weight: 500; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; }
.tile .more .ic { width: 16px; height: 16px; }
.tile-media { margin-top: 26px; }
.tile-media.bleed { margin: 26px -30px -30px; }
.tile-media.bleed img { border-top-left-radius: 14px; border-top-right-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.tile-media.offset { margin: 26px -30px -30px 30px; }
.tile-media.offset img { border-top-left-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.tile .fine { font-size: 13px; color: var(--faint); margin-top: 14px; line-height: 1.5; }
.tile .card { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tile .demo-search { margin-top: 24px; }
.tile .shortcuts { margin-top: 22px; background: rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 0 1px var(--line); }
.tile .convert-demo { margin-top: 10px; }
.tile .ql, .tile .ports, .tile .prompts, .tile .review { margin-top: 24px; }
.tile .prompts li { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tile .ports, .tile .review, .tile .ql { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.glow-violet::after, .glow-pink::after, .glow-cyan::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; pointer-events: none; filter: blur(70px); opacity: 0.35; z-index: -1;
}
.tile { isolation: isolate; }
.glow-violet::after { background: #7c5cff; right: -140px; top: -160px; }
.glow-pink::after { background: #ec4899; left: -160px; bottom: -200px; opacity: 0.22; }
.glow-cyan::after { background: #38bdf8; right: -160px; bottom: -220px; opacity: 0.2; }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips-row span { font-size: 13px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }

.tpl-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.tpl-mini div { border-radius: 16px; padding: 16px; background: rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.tpl-mini b { display: block; font-size: 14px; margin-bottom: 8px; color: var(--ink); }
.tpl-mini s { display: block; color: var(--faint); text-decoration: line-through; font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
.tpl-mini i { display: block; font-style: normal; color: #a7f3d0; font-family: var(--mono); font-size: 11.5px; margin-top: 6px; word-break: break-all; }

/* ---------- Compare ---------- */
.dark .compare-card { background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); border-radius: 24px; }
.dark .compare tfoot td:last-child { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 20px; }

/* ---------- Trust grid ---------- */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trust div { border-radius: 22px; padding: 26px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.trust .ic { width: 26px; height: 26px; color: var(--accent-ink); }
.trust h3 { font-size: 17px; margin-top: 14px; letter-spacing: -0.02em; }
.trust p { font-size: 14.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ---------- Pricing ---------- */
.dark .price { background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); border-radius: 26px; }
.dark .price-pro { background: linear-gradient(180deg, rgba(139, 124, 255, 0.18), rgba(139, 124, 255, 0.04)); box-shadow: inset 0 0 0 1px rgba(180, 169, 255, 0.5), 0 30px 80px rgba(124, 92, 255, 0.25); }
.dark .price-amount { font-family: var(--display); }
.dark .price-includes { background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.dark .trial-badge { background: var(--grad); color: #120f24; }

/* ---------- FAQ, guides, closing ---------- */
.dark .faq details { border-color: var(--line); }
.dark .teaser { background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.dark .teaser:hover { background: rgba(255, 255, 255, 0.06); }
.closing2 { text-align: center; padding: 140px 0 150px; position: relative; overflow: hidden; }
.closing2::before { content: ""; position: absolute; left: 50%; top: 40%; width: 900px; height: 520px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(124, 92, 255, 0.4), transparent); filter: blur(40px); z-index: -1; }
.closing2 img { margin: 0 auto 26px; border-radius: 22px; box-shadow: 0 20px 60px rgba(124, 92, 255, 0.4); }
.closing2 .cta-row { margin-top: 30px; }

.dark .footer { background: #050508; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .tile, .tile.w2, .tile.w4 { grid-column: span 6; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .dark .sec { padding: 84px 0; }
  .hero2 { padding-top: 56px; }
  .hero-shot { margin-top: 44px; padding: 0 16px; }
  .window { border-radius: 12px; }
  .tile { padding: 24px; border-radius: 22px; }
  .tile-media.bleed { margin: 22px -24px -24px; }
  .tile-media.offset { margin: 22px -24px -24px 24px; }
  .tpl-mini { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .proof div { padding: 20px 18px; }
  .proof strong { font-size: 24px; }
  .toolbelt a { font-size: 13px; padding: 8px 12px; }
}

/* Shortcuts in the narrow tile: label above the keys, keys without word labels. */
.tile .shortcuts { padding: 20px; gap: 14px; }
.tile .shortcuts > div { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 14px; }
.tile .shortcuts dt { font-size: 14.5px; color: var(--ink-2); }
.tile .shortcuts kbd { min-width: 36px; height: 36px; }
.tile .shortcuts kbd b { display: none; }
.tile .shortcuts kbd i { align-self: center; font-size: 15px; }
.dark .keys kbd { box-shadow: 0 3px 0 var(--key-edge), 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1); }

/* Screenshots peek out of their tiles rather than filling them. */
.tile-media.bleed { margin: 28px 6% -30px; max-height: 470px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.tile-media.offset { max-height: 420px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
@media (max-width: 640px) { .tile-media.bleed { margin: 22px 0 -24px; max-height: 300px; } .tile-media.offset { max-height: 260px; } }

/* ---------- Guides, guide index and privacy in the dark theme ---------- */
.dark .prose h1, .dark .legal-head h1 { font-family: var(--display); font-weight: 750; letter-spacing: -0.04em; line-height: 1.04; }
.dark .prose h1 { font-size: clamp(36px, 5.4vw, 58px); }
.dark .prose h2 { font-family: var(--display); letter-spacing: -0.03em; }
.dark .guide { padding-top: 64px; }
.dark .guide .eyebrow, .dark .prose > .eyebrow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.dark .guide-lede { color: var(--muted); }
.dark .prose p, .dark .prose li { color: #c8c8d2; }
.dark .prose a { color: var(--accent-ink); }
.dark .prose code { background: rgba(255, 255, 255, 0.07); color: #e9e5ff; }
.dark .prose pre { background: #0d0d13; border-color: var(--line); }
.dark .prose kbd { background: rgba(255, 255, 255, 0.06); }
.dark .prose .callout { background: linear-gradient(180deg, rgba(139, 124, 255, 0.16), rgba(139, 124, 255, 0.06)); box-shadow: inset 0 0 0 1px rgba(180, 169, 255, 0.28); border-radius: 16px; }
.dark .prose table { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.dark .prose th { background: rgba(255, 255, 255, 0.05); }
.dark .guide-cta {
  background: linear-gradient(135deg, rgba(139, 124, 255, 0.2), rgba(236, 72, 153, 0.08));
  box-shadow: inset 0 0 0 1px rgba(180, 169, 255, 0.3), 0 30px 80px rgba(124, 92, 255, 0.18); border-radius: 24px;
}
.dark .related a, .dark .guide-list a, .dark .guide-faq .faq, .dark .legal-body, .dark .card {
  background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line);
}
.dark .related a:hover, .dark .guide-list a:hover { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line-2); }
.dark .legal-body p { color: #c8c8d2; }
.dark .crumbs a { color: var(--muted); }
.dark .prose a.btn-primary { color: #0b0b10; }
.dark .prose a.btn-secondary { color: var(--ink); }
