/* ============================================================
   QRCODER — Design System
   Brand: orange #E84E1B  ·  charcoal #4D4D4D
   A premium developer-tool aesthetic.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --orange:       #E84E1B;
  --orange-600:   #D2440F;
  --orange-700:   #B8390B;
  --orange-300:   #F58A5E;
  --orange-100:   #FCE7DD;
  --orange-soft:  #FFF4EF;

  --charcoal:     #4D4D4D;
  --ink:          #1B1B1F;
  --ink-700:      #2B2B30;

  /* Neutrals */
  --text:         #1F1F23;
  --muted:        #6A6A72;
  --muted-2:      #8C8C94;
  --line:         #ECE9E4;
  --line-2:       #E2DED7;

  /* Surfaces */
  --bg:           #FFFFFF;
  --bg-soft:      #FAF8F5;
  --bg-warm:      #F6F2EC;
  --card:         #FFFFFF;

  /* Code surface (dark terminal) */
  --code-bg:      #18181D;
  --code-bg-2:    #1F1F26;
  --code-bar:     #14141A;
  --code-line:    #2A2A33;
  --code-text:    #E7E6EA;
  --code-muted:   #8B8B97;

  /* Syntax */
  --syn-key:      #F58A5E;   /* keywords / php */
  --syn-str:      #9BD17B;   /* strings */
  --syn-var:      #6FB7E8;   /* variables */
  --syn-fn:       #E8C06B;   /* functions */
  --syn-com:      #6A6A78;   /* comments */
  --syn-punc:     #B8B8C4;

  /* Effects */
  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    24px;
  --shadow-sm:    0 1px 2px rgba(27,27,31,.06), 0 1px 1px rgba(27,27,31,.04);
  --shadow:       0 4px 24px -6px rgba(27,27,31,.12), 0 2px 6px -2px rgba(27,27,31,.06);
  --shadow-lg:    0 24px 60px -18px rgba(27,27,31,.28), 0 8px 24px -10px rgba(232,78,27,.10);
  --shadow-orange:0 18px 40px -14px rgba(232,78,27,.45);

  --ring:         0 0 0 4px rgba(232,78,27,.16);
  --ease:         cubic-bezier(.4,0,.2,1);
  --maxw:         1180px;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-600); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--orange-700); }
h1,h2,h3,h4 { color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
p { margin: 0 0 1em; }
::selection { background: var(--orange); color: #fff; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-600);
  background: var(--orange-soft);
  border: 1px solid var(--orange-100);
  padding: 6px 14px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 4px rgba(232,78,27,.18); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 14px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--orange-600); color: #fff; transform: translateY(-2px); box-shadow: 0 22px 46px -14px rgba(232,78,27,.55); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--ink); border-color: var(--charcoal); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 17px 30px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 70px; }
.nav .logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav .logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--charcoal); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--orange-600); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* logo mark (CSS QR-ish square) */
.mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background:
    linear-gradient(135deg, var(--orange), var(--orange-600));
  position: relative; box-shadow: var(--shadow-sm);
}
.mark::before {
  content:""; position:absolute; inset:7px; border-radius:3px;
  background:
    linear-gradient(#fff 0 0) 0 0/8px 8px no-repeat,
    linear-gradient(#fff 0 0) 100% 0/8px 8px no-repeat,
    linear-gradient(#fff 0 0) 0 100%/8px 8px no-repeat,
    linear-gradient(rgba(255,255,255,.55) 0 0) 100% 100%/8px 8px no-repeat;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 80px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(232,78,27,.10), transparent 70%),
    radial-gradient(50% 50% at 8% 12%, rgba(232,78,27,.07), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 900; letter-spacing: -.035em; }
.hero h1 .grad { background: linear-gradient(120deg, var(--orange), var(--orange-700)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta .item { display:flex; align-items:center; gap:9px; font-size: 14px; color: var(--muted); font-weight: 500; }
.hero-meta svg { width: 18px; height: 18px; color: var(--orange); flex:none; }

/* Hero visual: floating preview card */
.preview-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(.6deg);
}
.preview-card .pc-bar { display:flex; align-items:center; gap:8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.pc-dot { width:11px;height:11px;border-radius:50%; }
.pc-dot.r{background:#FF5F57;} .pc-dot.y{background:#FEBC2E;} .pc-dot.g{background:#28C840;}
.pc-url { margin-left: 10px; font-family:'JetBrains Mono',monospace; font-size: 12px; color: var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.preview-card .pc-body { display:grid; grid-template-columns: 1fr auto; gap: 22px; padding: 26px; align-items:center; }
.pc-qr {
  width: 150px; height: 150px; border-radius: 14px; background:#fff; padding:12px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pc-fields .f { margin-bottom: 14px; }
.pc-fields label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 700; }
.pc-fields .v { font-family:'JetBrains Mono',monospace; font-size: 13px; color: var(--ink); margin-top: 3px; }
.pc-swatches { display:flex; gap:8px; margin-top: 4px; }
.pc-swatch { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(0,0,0,.08); }

/* floating badge on hero card */
.float-badge {
  position:absolute; right: -14px; bottom: -16px;
  background: var(--ink); color:#fff; border-radius: 14px; padding: 12px 16px;
  display:flex; align-items:center; gap:10px; box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 600;
}
.float-badge b { color: var(--orange-300); }

/* ---------- Logo cloud / trust ---------- */
.trust { border-top:1px solid var(--line); border-bottom:1px solid var(--line); background: var(--bg-soft); }
.trust .row { display:flex; align-items:center; justify-content:space-between; gap: 30px; padding: 26px 0; flex-wrap: wrap; }
.trust .label { font-size:13px; font-weight:600; color: var(--muted-2); text-transform:uppercase; letter-spacing:.1em; }
.trust .langs { display:flex; gap: 26px; flex-wrap:wrap; }
.trust .langs span { font-weight:700; color: var(--charcoal); font-size: 15px; }

/* ---------- Section headings ---------- */
.section-head { max-width: 660px; margin: 0 auto 56px; text-align:center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -.03em; }
.section-head p { font-size: 18px; color: var(--muted); margin-top: 16px; }

/* ---------- Feature grid ---------- */
.features { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; display:grid; place-items:center;
  background: var(--orange-soft); color: var(--orange-600); margin-bottom: 18px;
  border: 1px solid var(--orange-100);
}
.feature .ico svg { width: 23px; height: 23px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Code block (the star) ---------- */
.code-block {
  background: var(--code-bg); border: 1px solid var(--code-line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow); position: relative;
}
.code-head {
  display:flex; align-items:center; gap: 10px; padding: 11px 14px;
  background: var(--code-bar); border-bottom: 1px solid var(--code-line);
}
.code-dots { display:flex; gap:7px; }
.code-dots i { width:11px;height:11px;border-radius:50%;display:block; }
.code-dots .r{background:#FF5F57;} .code-dots .y{background:#FEBC2E;} .code-dots .g{background:#28C840;}
.code-file { font-family:'JetBrains Mono',monospace; font-size:12.5px; color: var(--code-muted); margin-left: 6px; }
.code-lang {
  margin-left:auto; font-family:'JetBrains Mono',monospace; font-size:11px; font-weight:600;
  color: var(--orange-300); background: rgba(232,78,27,.12); padding: 3px 9px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .06em;
}
.copy-btn {
  display:inline-flex; align-items:center; gap:7px; cursor:pointer;
  font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600; color: var(--code-muted);
  background: rgba(255,255,255,.06); border: 1px solid var(--code-line); border-radius: 8px;
  padding: 6px 11px; transition: all .15s var(--ease);
}
.copy-btn:hover { color:#fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
.copy-btn.copied { color: #9BD17B; border-color: rgba(155,209,123,.4); background: rgba(155,209,123,.1); }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn .lbl-copied { display:none; }
.copy-btn.copied .lbl-copy { display:none; }
.copy-btn.copied .lbl-copied { display:inline; }

.code-block pre {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  font-family:'JetBrains Mono',monospace; font-size: 13.5px; line-height: 1.7;
  color: var(--code-text); tab-size: 4;
}
.code-block pre code { font-family: inherit; background: none; color: inherit; padding: 0; white-space: pre; }
.code-block.with-bar pre { padding-top: 16px; }

/* inline code */
:not(pre) > code {
  font-family:'JetBrains Mono',monospace; font-size: .88em;
  background: var(--orange-soft); color: var(--orange-700);
  padding: .14em .42em; border-radius: 6px; border: 1px solid var(--orange-100);
}

/* syntax tokens */
.tok-key { color: var(--syn-key); }
.tok-str { color: var(--syn-str); }
.tok-var { color: var(--syn-var); }
.tok-fn  { color: var(--syn-fn); }
.tok-com { color: var(--syn-com); font-style: italic; }
.tok-punc{ color: var(--syn-punc); }
.tok-num { color: #C8A6F0; }

/* ---------- Tabs ---------- */
.tabs { }
.tab-list { display:flex; gap: 4px; padding: 4px; background: var(--bg-warm); border:1px solid var(--line); border-radius: 12px; width: fit-content; margin-bottom: 16px; }
.tab-btn {
  font-family:inherit; font-size: 14px; font-weight:600; color: var(--muted);
  background: transparent; border: none; cursor: pointer; padding: 8px 16px; border-radius: 9px;
  transition: all .15s var(--ease);
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity:0; transform: translateY(4px);} to {opacity:1; transform:none;} }

/* ---------- Steps ---------- */
.steps { display:grid; gap: 18px; }
.step { display:grid; grid-template-columns: 44px 1fr; gap: 18px; align-items:start; }
.step .num {
  width:44px;height:44px;border-radius:12px; display:grid;place-items:center;
  font-weight:800; font-size:17px; color:#fff; background: linear-gradient(135deg,var(--orange),var(--orange-600));
  box-shadow: var(--shadow-orange);
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0 0 14px; }

/* ---------- Params table ---------- */
.params { width:100%; border-collapse:separate; border-spacing:0; border:1px solid var(--line); border-radius: 14px; overflow:hidden; }
.params th { text-align:left; font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted-2); font-weight:700; padding: 14px 18px; background: var(--bg-soft); border-bottom:1px solid var(--line); }
.params td { padding: 16px 18px; border-bottom:1px solid var(--line); vertical-align:top; font-size: 14.5px; color: var(--charcoal); }
.params tr:last-child td { border-bottom: none; }
.params tr:hover td { background: var(--orange-soft); }
.params .pname { font-family:'JetBrains Mono',monospace; font-weight:600; color: var(--orange-700); }
.params .ptype { font-family:'JetBrains Mono',monospace; font-size:12.5px; color: var(--muted); }
.badge-req { font-size:10px; font-weight:700; letter-spacing:.05em; color:#fff; background: var(--orange); padding: 2px 7px; border-radius:5px; text-transform:uppercase; margin-left:8px; }
.badge-opt { font-size:10px; font-weight:700; letter-spacing:.05em; color:var(--muted); background: var(--bg-warm); padding: 2px 7px; border-radius:5px; text-transform:uppercase; margin-left:8px; }

/* ---------- Pricing ---------- */
.pricing { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--card); border:1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display:flex; flex-direction:column; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--orange); box-shadow: var(--shadow-orange); position: relative; }
.price-card.featured::after { content:"MOST POPULAR"; position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  background: var(--orange); color:#fff; font-size:11px; font-weight:800; letter-spacing:.08em; padding:5px 14px; border-radius:999px; }
.price-card h3 { font-size: 16px; text-transform:uppercase; letter-spacing:.06em; color: var(--charcoal); }
.price-amt { display:flex; align-items:baseline; gap:6px; margin: 18px 0 6px; }
.price-amt .amt { font-size: 46px; font-weight:900; letter-spacing:-.03em; color: var(--ink); }
.price-amt .per { color: var(--muted); font-weight:500; }
.price-card ul { list-style:none; padding:0; margin: 22px 0; display:grid; gap: 12px; }
.price-card li { display:flex; gap:10px; align-items:flex-start; font-size:15px; color: var(--charcoal); }
.price-card li svg { width:19px;height:19px;color: var(--orange); flex:none; margin-top:1px; }
.price-card .btn { margin-top: auto; }

/* ---------- CTA band ---------- */
.cta-band { position:relative; overflow:hidden; background: var(--ink); border-radius: var(--radius-lg); padding: 60px; text-align:center; }
.cta-band::before { content:""; position:absolute; inset:0;
  background: radial-gradient(50% 120% at 50% 0%, rgba(232,78,27,.4), transparent 60%); }
.cta-band > * { position:relative; z-index:1; }
.cta-band h2 { color:#fff; font-size: clamp(28px,4vw,40px); }
.cta-band p { color: rgba(255,255,255,.7); font-size: 18px; max-width: 520px; margin: 16px auto 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 36px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 13px; text-transform:uppercase; letter-spacing:.08em; color: var(--muted-2); margin-bottom: 16px; }
.footer-grid a { display:block; color: var(--charcoal); font-size: 14.5px; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--orange-600); }
.footer-grid .blurb { color: var(--muted); font-size: 14px; max-width: 280px; margin-top: 14px; }
.footer-bottom { border-top:1px solid var(--line); padding-top: 24px; display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; color: var(--muted); font-size: 13.5px; }

/* ---------- Misc ---------- */
.divider { height:1px; background: var(--line); border:0; margin: 0; }
.kbd { font-family:'JetBrains Mono',monospace; font-size:12px; background:var(--bg-warm); border:1px solid var(--line-2); border-bottom-width:2px; border-radius:6px; padding:2px 7px; color:var(--charcoal); }
.note { background: var(--orange-soft); border:1px solid var(--orange-100); border-left: 3px solid var(--orange); border-radius: 10px; padding: 16px 18px; font-size: 14.5px; color: var(--charcoal); display:flex; gap:12px; }
.note svg { width:20px;height:20px; color: var(--orange); flex:none; margin-top:1px; }

/* toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 30px);
  background: var(--ink); color:#fff; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; font-weight:600; box-shadow: var(--shadow-lg); z-index: 200;
  opacity: 0; pointer-events:none; transition: all .25s var(--ease); display:flex; gap:9px; align-items:center;
}
.toast.show { opacity:1; transform: translate(-50%, 0); }
.toast svg { width:18px;height:18px; color: var(--orange-300); }

/* ---------- Prose (article / legal / SEO content) ---------- */
.prose { max-width: 760px; }
.prose.center-col { margin-left: auto; margin-right: auto; }
.prose h1 { font-size: clamp(28px,4vw,42px); font-weight: 900; letter-spacing: -.03em; margin: 0 0 22px; }
.prose h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 44px 0 12px; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 30px 0 10px; color: var(--ink); }
.prose p { font-size: 16.5px; color: var(--charcoal); line-height: 1.8; margin: 0 0 16px; }
.prose ul, .prose ol { color: var(--charcoal); font-size: 16.5px; line-height: 1.8; padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--orange-600); font-weight: 500; }
.prose a:hover { color: var(--orange-700); }
.prose strong, .prose b { color: var(--ink); }
.prose img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin: 10px 0 26px; }
.prose .embed { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin: 10px 0 28px; }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .code-block { margin: 8px 0 26px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

/* simple page hero (legal, contact, pricing intros) */
.page-hero { padding: 56px 0 4px; position: relative; overflow: hidden; }
.page-hero .hero-grid { opacity: .35; }
.page-hero h1 { font-size: clamp(30px,4.4vw,46px); font-weight: 900; letter-spacing: -.03em; margin: 16px 0 10px; }
.page-hero .lede { font-size: 18px; color: var(--muted); max-width: 640px; }

/* ---------- QR Generator (homepage tool) ---------- */
.gen-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.gen-stage {
  background:
    radial-gradient(120% 120% at 50% 0%, var(--orange-soft), #fff 70%);
  padding: 30px; display: grid; place-items: center; border-bottom: 1px solid var(--line);
}
.gen-stage #image_output {
  width: 230px; height: 230px; max-width: 70vw; background: #fff; border-radius: 16px;
  padding: 14px; box-shadow: var(--shadow); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.gen-stage #image_output svg,
.gen-stage #image_output img { width: 100%; height: 100%; display: block; }
.gen-controls { padding: 24px; }
.gen-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 700; margin-bottom: 8px; }
.gen-input {
  width: 100%; font-family: inherit; font-size: 15px; padding: 14px 16px;
  border: 1px solid var(--line-2); border-radius: 12px; outline: none; margin-bottom: 14px;
  transition: border-color .15s, box-shadow .15s; background: #fff; color: var(--ink);
}
.gen-input:focus { border-color: var(--orange); box-shadow: var(--ring); }
.gen-toggle {
  display: inline-flex; align-items: center; gap: 7px; margin: 16px 0 0;
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--orange-700); background: none; border: 0; cursor: pointer; padding: 0;
}
.gen-toggle::after { content: "▾"; transition: transform .2s var(--ease); }
.gen-toggle.open::after { transform: rotate(180deg); }
.gen-options { display: none; margin-top: 16px; }
.gen-options.open { display: block; animation: fade .25s var(--ease); }
.gen-swatch-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.gen-swatch-row .btn,
.gen-swatch-row button.toggleBtn {
  font-family: inherit; font-size: 11px !important; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--charcoal); background: var(--bg-warm); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 11px 10px; cursor: pointer; transition: border-color .15s, transform .1s; width: 100%;
}
.gen-swatch-row .btn:hover { border-color: var(--orange); transform: translateY(-1px); }
/* spectrum picker chrome to match */
.gen-swatch-row .sp-replacer { border-radius: 10px; border-color: var(--line-2); padding: 7px; background: var(--bg-warm); }
.gen-swatch-row .sp-replacer:hover { border-color: var(--orange); }
.gen-downloads { display: flex; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.gen-downloads span {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--charcoal);
  background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 14px;
  transition: all .15s var(--ease);
}
.gen-downloads span:hover { color: var(--orange-700); border-color: var(--orange); background: var(--orange-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .features, .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display:none; }
  .section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .preview-card .pc-body { grid-template-columns: 1fr; justify-items:center; text-align:center; }
}
