/* Gen2Themes — site styles */
:root {
  --ink: #111114;
  --muted: #55555f;
  --line: #e4e4de;
  --paper: #ffffff;
  --wash: #f4f4ef;
  --cobalt: #2b3bff;
  --cobalt-ink: #1a26c9;
  --lime: #d6f55b;
  --danger: #b4231b;
  --ok: #1e7a3c;

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius: 18px;
  --wrap: 1240px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 92px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 46ch; }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.hl { background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%); padding: 0 0.08em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-ink); border-color: var(--cobalt-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.arrow { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.logo-mark { width: 34px; height: 34px; }
.nav { display: flex; gap: 28px; margin-left: auto; align-items: center; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 72px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 24px; display: flex; flex-direction: column; gap: 4px; }
.menu-panel a { text-decoration: none; font-weight: 700; font-size: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .nav { display: none; } .menu { display: block; } }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; margin-bottom: 56px; }
.section-head .mono { padding-top: 14px; border-top: 2px solid var(--ink); }
.section-head .lede { margin-top: 18px; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }
.wash { background: var(--wash); }
.dark { background: var(--ink); color: #fff; }
.dark a { color: #fff; }
.dark .lede, .dark .muted { color: #b9b9c4; }
.dark .section-head .mono { border-top-color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-tag { align-self: flex-start; display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); }
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Browser mock of Biscuit */
.mock { border: 2px solid var(--ink); border-radius: 22px; background: var(--paper); box-shadow: 12px 12px 0 var(--ink); overflow: hidden; }
@media (max-width: 640px) { .mock { box-shadow: 6px 6px 0 var(--ink); margin-right: 6px !important; } .mock-nav small span:nth-child(-n+2) { display: none; } }
.mock-bar { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 2px solid var(--ink); background: var(--wash); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink); }
.mock-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.mock-body { background: #fff3df; padding: 22px; display: flex; flex-direction: column; gap: 18px; color: #2a1f3d; }
.mock-nav { display: flex; align-items: center; justify-content: space-between; font-family: "Bricolage Grotesque", var(--font-display); font-weight: 800; font-size: 18px; }
.mock-nav small { font-family: var(--font-body); font-weight: 600; font-size: 11px; display: flex; gap: 12px; }
.mock-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center; }
.mock-hero b { font-family: "Bricolage Grotesque", var(--font-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 32px); line-height: 1; letter-spacing: -0.03em; display: block; }
.mock-pill { display: inline-block; margin-top: 12px; padding: 6px 14px; border-radius: 999px; background: #f4a62a; border: 2px solid #2a1f3d; box-shadow: 3px 3px 0 #2a1f3d; font-weight: 700; font-size: 12px; }
.mock-photo { aspect-ratio: 1 / 1; border-radius: 22px; border: 2px solid #2a1f3d; background: #ffdccb; position: relative; }
.mock-photo::after { content: "Save 10%"; position: absolute; top: -10px; left: -10px; width: 58px; height: 58px; border-radius: 50%; background: #f4a62a; border: 2px solid #2a1f3d; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; font-size: 10px; line-height: 1.05; transform: rotate(-12deg); padding: 6px; }
.mock-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mock-tiles span { height: 64px; border-radius: 16px; border: 2px solid #2a1f3d; display: flex; align-items: flex-end; padding: 8px; font-weight: 800; font-size: 11px; }

/* ---------- Theme card ---------- */
.theme-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 2px solid var(--ink); border-radius: 28px; overflow: hidden; background: var(--paper); }
.theme-visual { background: #fff3df; padding: 40px; display: flex; align-items: center; justify-content: center; border-right: 2px solid var(--ink); }
.theme-visual .swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 420px; }
.theme-visual .swatches span { aspect-ratio: 1 / 1; border-radius: 50%; border: 2px solid #2a1f3d; }
.theme-visual .swatches span:nth-child(2n) { border-radius: 24px; }
.theme-info { padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.theme-name { font-family: "Bricolage Grotesque", var(--font-display); font-weight: 800; font-size: 56px; letter-spacing: -0.04em; line-height: 1; }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--lime); font-weight: 700; font-size: 13px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks svg { margin-top: 4px; }
@media (max-width: 860px) { .theme-card { grid-template-columns: 1fr; } .theme-visual { border-right: 0; border-bottom: 2px solid var(--ink); } }
.next-up { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 22px 28px; border: 2px dashed #9a9aa3; border-radius: 22px; color: var(--muted); }

/* ---------- Grids ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1040px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.contact-aside .card { background: var(--paper); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); }
.dark .card { background: #1b1b20; border-color: #2e2e36; }
.card .num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.dark .card .num { color: #9d9daa; }
.card p { color: var(--muted); }
.dark .card p { color: #b9b9c4; }
.icon-chip { width: 48px; height: 48px; border-radius: 14px; background: var(--lime); color: var(--ink); display: flex; align-items: center; justify-content: center; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid #fff; margin-top: 56px; }
.steps li { list-style: none; padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.steps .mono { color: var(--lime); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--ink); border-radius: 24px; overflow: hidden; }
.platform { padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; border-right: 2px solid var(--ink); }
.platform:last-child { border-right: 0; }
.platform.live { background: var(--cobalt); color: #fff; }
.platform .tag { margin-top: auto; align-self: flex-start; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; font-size: 13px; font-weight: 700; }
@media (max-width: 860px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } .platform:nth-child(2) { border-right: 0; } .platform:nth-child(-n+2) { border-bottom: 2px solid var(--ink); } }
@media (max-width: 480px) { .platforms { grid-template-columns: 1fr; } .platform { border-right: 0; border-bottom: 2px solid var(--ink); } .platform:last-child { border-bottom: 0; } }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--muted); max-width: 70ch; }

/* ---------- Form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.contact-aside { display: flex; flex-direction: column; gap: 22px; }
.contact-aside dl { margin: 0; display: grid; gap: 16px; }
.contact-aside dt { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.contact-aside dd { margin: 2px 0 0; font-weight: 700; }
form.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 32px; border: 2px solid var(--ink); border-radius: 28px; background: var(--paper); box-shadow: 10px 10px 0 var(--cobalt); }
@media (max-width: 640px) { form.form { grid-template-columns: 1fr; padding: 22px; box-shadow: 6px 6px 0 var(--cobalt); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; }
.field .hint { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; min-height: 50px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--cobalt); outline-offset: 1px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form-foot small { color: var(--muted); max-width: 44ch; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 14px; font-weight: 700; display: none; }
.form-status.ok { display: block; background: #e3f5e8; color: var(--ok); }
.form-status.err { display: block; background: #fbe6e4; color: var(--danger); }

/* ---------- Docs / prose ---------- */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 56px 0 120px; }
.doc nav { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.doc nav a { text-decoration: none; color: var(--muted); }
.doc nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 32px; } .doc nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; } }
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 18px; }
.prose h1 { font-size: clamp(36px, 5vw, 60px); }
.prose h2 { font-size: 28px; margin-top: 32px; scroll-margin-top: 96px; }
.prose h3 { font-size: 19px; margin-top: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose code { font-family: var(--font-mono); font-size: 14px; background: var(--wash); padding: 2px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }
.note { padding: 16px 18px; border-radius: 14px; background: var(--wash); border: 1px solid var(--line); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 72px 0 32px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-top h2 { font-size: clamp(28px, 3.6vw, 44px); }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot-col .mono { color: #9d9daa; margin-bottom: 6px; }
.foot-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid #2e2e36; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; color: #9d9daa; font-size: 14px; }
.foot-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 15vw, 210px); letter-spacing: -0.06em; line-height: .8; margin-top: 56px; color: #1f1f26; user-select: none; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }
