/* ==========================================================
   Huesmith — design system
   The interface stays neutral so the user's colors are the star.
   Ink     #17161C  text, primary buttons
   Paper   #FFFFFF  surfaces
   Mist    #F5F4F7  page background, wells
   Line    #E7E5EC  borders
   Muted   #6C6A76  secondary text
   Signal  #3D5AFE  focus and links only
   Brand mark: the "spectrum bar" (five rounded bars in a row).
   Type: Bricolage Grotesque (display), Instrument Sans (text), Fragment Mono (color codes)
   ========================================================== */
:root {
  --ink: #17161C; --ink-2: #2A2931; --paper: #FFFFFF; --mist: #F5F4F7; --line: #E7E5EC; --muted: #6C6A76; --signal: #3D5AFE;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Fragment Mono", "Cascadia Mono", Consolas, monospace;
  --r-s: 8px; --r-m: 12px; --r-l: 20px;
  --head-h: 60px; --bar-h: 58px;
  --shadow: 0 1px 2px rgba(23, 22, 28, .06), 0 12px 32px -12px rgba(23, 22, 28, .22);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); }
a { color: var(--ink); text-decoration-color: rgba(23, 22, 28, .3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 720px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header { height: var(--head-h); border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header.full .wrap { max-width: none; padding: 0 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.22rem var(--display); letter-spacing: -.03em; }
.logo svg { width: 34px; height: 22px; }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .93rem; padding: 7px 12px; border-radius: 99px; }
.site-header nav a:hover { color: var(--ink); background: var(--mist); }
.site-header nav a[aria-current] { color: var(--ink); background: var(--mist); }
.site-header .menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 .9rem var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: #CFCCD8; background: var(--mist); }
.btn:active { transform: translateY(1px); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--ink-2); }
.btn.icon { width: 40px; padding: 0; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.lg { min-height: 50px; padding: 0 22px; font-size: 1rem; border-radius: 14px; }
select.btn { appearance: none; padding-right: 32px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2317161C' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; }
kbd { font: 500 .78rem var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--paper); }

/* ---------- Generator app ---------- */
.app { height: calc(100vh - var(--head-h)); height: calc(100dvh - var(--head-h)); min-height: 520px; display: flex; flex-direction: column; }
.bar { height: var(--bar-h); flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.bar .group { display: flex; align-items: center; gap: 6px; }
.hint { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 8px; margin-right: 6px; }
.count { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-m); height: 40px; }
.count button { width: 34px; height: 100%; border: 0; background: none; cursor: pointer; color: var(--ink); display: grid; place-items: center; border-radius: var(--r-m); }
.count button:hover { background: var(--mist); }
.count button:disabled { opacity: .3; cursor: default; }
.count span { min-width: 20px; text-align: center; font: 600 .95rem var(--mono); }
.sep { width: 1px; height: 26px; background: var(--line); margin: 0 4px; }

.swatches { flex: 1; display: flex; min-height: 0; }
.sw { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 10px 34px; transition: flex .25s ease; --fg: #fff; color: var(--fg); }
.sw .tools { display: flex; flex-direction: column; gap: 4px; margin-bottom: 22px; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; }
.sw:hover .tools, .sw:focus-within .tools, .sw.locked .tools { opacity: 1; transform: none; }
.sw.locked .tools .t:not(.lock) { opacity: 0; }
.sw.locked:hover .tools .t, .sw.locked:focus-within .tools .t { opacity: 1; }
.t { width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.t:hover { background: color-mix(in srgb, var(--fg) 14%, transparent); }
.t svg.i { width: 20px; height: 20px; }
.sw.locked .t.lock { background: color-mix(in srgb, var(--fg) 16%, transparent); }
.hex { font: 500 clamp(1.15rem, 2.1vw, 1.75rem)/1 var(--mono); letter-spacing: .02em; border: 0; background: none; color: inherit; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.hex:hover { background: color-mix(in srgb, var(--fg) 12%, transparent); }
.cname { margin-top: 6px; font-size: .85rem; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.badge { white-space: nowrap; margin-top: 10px; font: 600 .72rem var(--sans); letter-spacing: .02em; padding: 3px 8px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); opacity: .85; }
.sim-note { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-size: .75rem; padding: 3px 8px; border-radius: 99px; background: color-mix(in srgb, var(--fg) 14%, transparent); }

/* Drawer (edit + shades) */
.drawer { position: fixed; z-index: 40; right: 16px; top: calc(var(--head-h) + var(--bar-h) + 12px); width: 330px; max-height: calc(100vh - var(--head-h) - var(--bar-h) - 28px); overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 18px; }
.drawer h3 { margin: 0; font: 700 1.05rem var(--display); letter-spacing: -.02em; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.chip-swatch { height: 64px; border-radius: var(--r-m); margin-bottom: 14px; border: 1px solid rgba(0, 0, 0, .06); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .lbl { font-size: .8rem; font-weight: 600; color: var(--muted); }
.field-row { display: flex; gap: 8px; }
.input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: var(--r-m); padding: 0 12px; font: 500 1rem var(--mono); color: var(--ink); background: var(--paper); }
.input:focus { outline: none; border-color: var(--ink); }
input[type=color] { width: 46px; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); cursor: pointer; }
.slider { display: grid; grid-template-columns: 24px 1fr 52px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .85rem; }
.slider b { font: 600 .8rem var(--mono); color: var(--muted); }
.slider output { font: 500 .85rem var(--mono); text-align: right; }
.slider input[type=range] { width: 100%; height: 14px; appearance: none; border-radius: 99px; outline-offset: 4px; }
.slider input[type=range]::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.slider input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.codes { display: grid; gap: 4px; margin-top: 6px; }
.codes button { display: flex; justify-content: space-between; gap: 10px; border: 0; background: var(--mist); border-radius: var(--r-s); padding: 8px 10px; font: 500 .85rem var(--mono); color: var(--ink); cursor: pointer; text-align: left; }
.codes button:hover { background: var(--line); }
.codes span { color: var(--muted); font-family: var(--sans); }
.shade-list { display: grid; gap: 4px; }
.shade { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: 0 10px; height: 38px; border-radius: var(--r-s); border: 0; cursor: pointer; font: 500 .85rem var(--mono); text-align: left; }
.shade.cur { outline: 2px solid var(--ink); outline-offset: 1px; }
.shade em { font-style: normal; font-family: var(--sans); font-size: .78rem; opacity: .8; }
.drawer .note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(23, 22, 28, .45); }
.modal .panel { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 22px; }
.modal h2 { margin: 0; font: 700 1.4rem var(--display); letter-spacing: -.03em; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tab { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 6px 13px; font: 600 .85rem var(--sans); cursor: pointer; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
pre.code { margin: 0; background: #F7F6FA; border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; font: 500 .88rem/1.6 var(--mono); overflow: auto; max-height: 300px; white-space: pre; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.strip { display: flex; height: 54px; border-radius: var(--r-m); overflow: hidden; margin-bottom: 16px; }
.strip i { flex: 1; }
.lib { display: grid; gap: 10px; }
.lib-item { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.lib-item .strip { height: 44px; margin: 0; cursor: pointer; }
.empty { color: var(--muted); padding: 20px 0; text-align: center; }

/* Toast */
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 99px; font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 8px; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(255, 255, 255, .4); }

/* ---------- Sections below the app ---------- */
.section { padding: 72px 0 0; }
.kicker { color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.display { font: 800 clamp(2.2rem, 5.2vw, 4rem)/1.02 var(--display); letter-spacing: -.045em; margin: 0; max-width: 880px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 16px 0 0; }
.h2 { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--display); letter-spacing: -.035em; margin: 0 0 8px; }

/* Live preview mock */
.preview-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-top: 28px; align-items: start; }
.mock { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--p-bg); color: var(--p-text); font-family: var(--sans); }
.mock-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; }
.mock-logo { display: flex; align-items: center; gap: 8px; font: 700 1rem var(--display); }
.mock-logo i { width: 18px; height: 18px; border-radius: 6px; background: var(--p-primary); }
.mock-links { display: flex; gap: 16px; font-size: .85rem; opacity: .75; }
.mock-hero { padding: 26px 22px 30px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: center; }
.mock-hero h4 { font: 800 clamp(1.5rem, 2.6vw, 2.2rem)/1.05 var(--display); letter-spacing: -.04em; margin: 0 0 10px; }
.mock-hero p { margin: 0 0 16px; font-size: .92rem; opacity: .8; }
.mock-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mock-btn { padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .85rem; background: var(--p-primary); color: var(--p-on-primary); }
.mock-btn.alt { background: transparent; border: 1.5px solid var(--p-text); color: var(--p-text); }
.mock-card { background: var(--p-surface); color: var(--p-on-surface); border-radius: 16px; padding: 16px; }
.mock-card .row { display: flex; justify-content: space-between; font-size: .8rem; opacity: .8; }
.mock-card .num { font: 700 1.8rem var(--display); letter-spacing: -.03em; margin: 6px 0 10px; }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.mock-bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--p-accent); }
.mock-bars i:nth-child(odd) { background: var(--p-primary); }
.mock-tag { display: inline-block; margin-top: 12px; font-size: .75rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--p-accent); color: var(--p-on-accent); }
.roles { display: grid; gap: 8px; align-content: start; }
.role { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-m); }
.role i { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .06); }
.role b { display: block; font-size: .9rem; }
.role span { font: 500 .8rem var(--mono); color: var(--muted); }
.role select { font: 500 .85rem var(--sans); border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: var(--paper); }

/* Contrast matrix */
.matrix { margin-top: 24px; overflow-x: auto; }
.matrix table { border-collapse: separate; border-spacing: 4px; }
.matrix th { font: 500 .75rem var(--mono); color: var(--muted); padding: 4px; }
.matrix th i { display: block; width: 28px; height: 28px; border-radius: 8px; margin: 0 auto 4px; border: 1px solid rgba(0, 0, 0, .08); }
.matrix td { width: 74px; height: 60px; border-radius: 10px; text-align: center; font: 600 .8rem var(--sans); vertical-align: middle; }
.matrix td small { display: block; font-weight: 500; font-size: .68rem; opacity: .85; }
.matrix td.na { background: repeating-linear-gradient(45deg, var(--mist) 0 6px, #fff 6px 12px); color: transparent; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.feature { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line); }
.feature:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.feature h3 { font: 700 1.12rem var(--display); letter-spacing: -.02em; margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.shortcuts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; color: var(--muted); font-size: .92rem; }

/* Content pages */
main.content { padding-bottom: 24px; }
.page-head { padding: 52px 0 10px; }
.page-head h1 { font: 800 clamp(2.2rem, 5vw, 3.6rem)/1.03 var(--display); letter-spacing: -.045em; margin: 0; }
.page-head p { color: var(--muted); font-size: 1.1rem; margin: 14px 0 0; max-width: 680px; }
.crumbs { margin: 0 0 12px !important; font-size: .9rem !important; }
.crumbs a { color: var(--muted); text-decoration: none; }
.content h2 { font: 700 1.6rem/1.2 var(--display); letter-spacing: -.03em; margin: 48px 0 12px; }
.content h3 { font: 700 1.15rem var(--display); letter-spacing: -.02em; margin: 26px 0 6px; }
.content p, .content li { color: #3B3943; }
.content li { margin: 6px 0; }
.ad-slot { margin: 40px 0; min-height: 90px; }
.faq { border-top: 1px solid var(--line); margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; }
.meta { color: var(--muted); font-size: .9rem; }
.ex-strip { display: flex; height: 72px; border-radius: var(--r-m); overflow: hidden; margin: 16px 0; }
.ex-strip span { flex: 1; display: flex; align-items: flex-end; padding: 8px; font: 500 .72rem var(--mono); }
.cta { margin: 48px 0 0; padding: 28px; border-radius: var(--r-l); background: var(--ink); color: #fff; }
.cta h2, .cta h3 { color: #fff; margin: 0 0 8px !important; }
.cta p { color: #C9C7D2 !important; margin: 0 0 18px; }
.cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.post-list { list-style: none; padding: 0; margin: 8px 0 0; }
.post-list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-list a { text-decoration: none; }
.post-list h2 { margin: 0 0 6px !important; font-size: 1.4rem !important; }
.post-list a:hover h2 { text-decoration: underline; }
.post-list p { margin: 0 0 4px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 28px; }
.pal { text-decoration: none; color: var(--ink); display: block; }
.pal .strip { height: 120px; margin: 0 0 10px; border-radius: 16px; transition: transform .2s; }
.pal:hover .strip { transform: translateY(-3px); }
.pal .strip i { transition: flex .25s; }
.pal .strip i:hover { flex: 1.8; }
.pal b { display: block; font: 700 1rem var(--display); letter-spacing: -.02em; }
.pal span { font-size: .82rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }

/* Tool pages: contrast + image */
.tool { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; background: var(--paper); }
.cc-preview { border-radius: var(--r-l); padding: 30px; min-height: 260px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); }
.cc-preview .big { font: 800 3.6rem/1 var(--display); letter-spacing: -.04em; }
.cc-preview p { margin: 14px 0 0; }
.cc-preview .small { font-size: .95rem; }
.ratio { font: 800 4rem/1 var(--display); letter-spacing: -.04em; margin: 6px 0 14px; }
.checks { display: grid; gap: 6px; }
.check { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: var(--r-m); background: var(--mist); font-size: .92rem; }
.pill { font: 700 .78rem var(--sans); padding: 3px 10px; border-radius: 99px; }
.pill.pass { background: #DFF5E7; color: #0E5A2E; }
.pill.fail { background: #FBE3E1; color: #8A1C12; }
.drop { border: 2px dashed #CFCCD8; border-radius: var(--r-l); min-height: 280px; display: grid; place-items: center; text-align: center; padding: 24px; cursor: pointer; transition: border-color .15s, background .15s; position: relative; overflow: hidden; }
.drop:hover, .drop.over { border-color: var(--ink); background: var(--mist); }
.drop img { max-width: 100%; max-height: 420px; border-radius: var(--r-m); display: block; }
.drop p { margin: 8px 0 0; color: var(--muted); }
.result-sw { display: flex; height: 140px; border-radius: var(--r-l); overflow: hidden; }
.result-sw button { flex: 1; border: 0; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding: 10px 4px; font: 500 .8rem var(--mono); }

/* Footer */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 40px 0 46px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-footer p { margin: 8px 0 0; max-width: 300px; }
.site-footer h4 { margin: 0 0 8px; color: var(--ink); font: 700 .95rem var(--display); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hint { display: none; }
  .preview-wrap, .tool { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature, .feature:not(:nth-child(3n+1)) { padding: 22px 18px 22px 0; border-left: 0; }
  .feature:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
}
@media (max-width: 760px) {
  :root { --head-h: 56px; }
  .wrap { padding: 0 16px; }
  .site-header .menu-btn { display: inline-flex; }
  .site-header nav { display: none; position: absolute; top: var(--head-h); left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 12px 12px; }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 10px 12px; }
  .bar { height: auto; padding: 8px 10px; flex-wrap: wrap; gap: 6px; }
  .bar .group { width: 100%; flex-wrap: nowrap; }
  .bar .group:first-child { flex-wrap: wrap; }
  #gen { flex: 1 0 100%; min-height: 46px; }
  .bar .label { display: none; }
  #mode, #vision { flex: 1; min-width: 0; }
  .bar .sep { display: none; }
  .bar .btn.icon, .count button { flex: none; }
  .vision-note { display: none; }
  .app { height: auto; min-height: 0; }
  .swatches { flex-direction: column; }
  .sw { flex: none; height: 118px; flex-direction: row; justify-content: space-between; align-items: center; padding: 0 12px 0 18px; }
  .sw .meta-col { display: flex; flex-direction: column; align-items: flex-start; }
  .sw .tools { order: 2; flex-direction: row; margin: 0; opacity: 1; transform: none; }
  .sw.locked .tools .t:not(.lock) { opacity: 1; }
  .t { width: 38px; height: 38px; }
  .cname { margin-top: 4px; }
  .badge { margin-top: 6px; }
  .drawer { left: 10px; right: 10px; width: auto; top: auto; bottom: 10px; max-height: 70vh; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(even) { padding-left: 0; border-left: 0; }
  .mock-hero { grid-template-columns: 1fr; }
  .mock-links { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
  .cc-preview .big { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.meta-col { display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; }
.vision-note { font-size: .82rem; color: var(--muted); }

/* ---------- Pro ---------- */
.pro-tag { display: inline-flex; align-items: center; font: 700 .7rem/1 var(--sans); letter-spacing: .04em; padding: 4px 7px; border-radius: 6px; color: #fff;
  background: linear-gradient(90deg, #FF5A4E, #FFB23F 30%, #33CC8A 55%, #3D7BFF 80%, #17161C); }
.pro-tag.sm { font-size: .6rem; padding: 3px 5px; margin-left: 4px; }
.tab[aria-selected="true"] .pro-tag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.locked { border: 1px dashed #CFCCD8; border-radius: var(--r-m); padding: 28px; text-align: center; background: var(--mist); }
.locked p { margin: 10px 0 14px; color: var(--muted); }
.pro-panel { max-width: 520px; }
.pro-panel h2 { margin: 4px 0 6px; }
.pro-list { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; gap: 8px; }
.pro-list li { position: relative; padding-left: 26px; }
.pro-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }
.count button.needs-pro { position: relative; }
.count button.needs-pro::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #FF5A4E, #3D7BFF); }
.site-header nav a.nav-pro { color: var(--ink); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.install-btn svg.i { width: 16px; height: 16px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; max-width: 900px; }
.plan { border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.plan.featured { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.plan h2 { margin: 0 !important; font: 700 1.4rem var(--display) !important; display: flex; align-items: center; gap: 10px; }
.price { font: 800 2.8rem/1 var(--display); letter-spacing: -.04em; margin: 8px 0 0; }
.price small { font: 500 1rem var(--sans); color: var(--muted); letter-spacing: 0; }
.plan .pro-list { margin: 10px 0 18px; flex: 1; }
.plan .btn { width: 100%; }
.soon { display: inline-block; font: 600 .8rem var(--sans); color: var(--muted); background: var(--mist); border-radius: 99px; padding: 4px 10px; }
.install-steps { counter-reset: s; list-style: none; padding: 0; }
.install-steps li { counter-increment: s; position: relative; padding-left: 40px; margin: 14px 0; }
.install-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 .85rem var(--sans); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .header-actions .install-btn span { display: none; } }
.plan .pro-list { align-content: start; }
.site-footer .logo { color: var(--ink); }

/* ---------- Logo motion ---------- */
.logo svg.hs-mark { width: 30px; height: 22px; }
.hs-mark .b { transform-box: view-box; }
/* Bars 1, 3, 5 go up while 2 and 4 go down, then the opposite, in a loop. */
.hs-mark.anim .b, .logo:hover .hs-mark .b { animation: hs-wave 1.2s cubic-bezier(.45, 0, .55, 1) infinite; }
.hs-mark.anim .b2, .hs-mark.anim .b4, .logo:hover .hs-mark .b2, .logo:hover .hs-mark .b4 { animation-direction: reverse; }
@keyframes hs-wave { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-12px); } 75% { transform: translateY(12px); } }
.splash { display: none; }
html.app-launch .splash { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: #fff; transition: opacity .35s ease; }
html.app-launch .splash svg { width: 104px; height: 78px; }
html.app-launch .splash.out { opacity: 0; pointer-events: none; }
.hs-loader { display: grid; place-items: center; gap: 14px; color: var(--muted); font-size: .9rem; padding: 24px; }
.hs-loader svg { width: 72px; height: 54px; }
@media (prefers-reduced-motion: reduce) { .hs-mark .b { animation: none !important; } }

/* ---------- Showcase and images ---------- */
.showcase-banner { position: relative; border-radius: 24px; overflow: hidden; background: #F1F0F4; }
.showcase-banner img { display: block; width: 100%; height: auto; }
.showcase-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 22%; }
.showcase-copy .display { font-size: clamp(1.8rem, 3.6vw, 3.1rem); }
.showcase-copy .lead { font-size: 1.05rem; margin-top: 12px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; margin-top: 34px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--mist); }
.shot h3 { font: 700 1.1rem var(--display); letter-spacing: -.02em; margin: 14px 0 4px; display: flex; gap: 8px; align-items: center; }
.shot p { margin: 0; color: var(--muted); font-size: .95rem; }
.cover { display: block; width: 100%; height: auto; border-radius: 18px; margin: 20px 0 8px; }
.post-list .with-thumb a { display: grid; grid-template-columns: 220px 1fr; gap: 6px 20px; align-items: start; }
.post-list .with-thumb .thumb { grid-row: span 2; width: 100%; height: auto; border-radius: 12px; }
.post-list .with-thumb h2 { margin-top: 4px !important; }
@media (max-width: 980px) { .shots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .showcase-banner { background: none; border-radius: 16px; }
  .showcase-copy { position: static; padding: 18px 0 0; align-items: flex-start; text-align: left; }
  .shots { grid-template-columns: 1fr; }
  .post-list .with-thumb a { grid-template-columns: 1fr; }
}

/* Contact form */
.contact-form { margin-top: 8px; max-width: 620px; }
.contact-form .field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .input { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); color: var(--ink); }
.contact-form textarea.input { resize: vertical; min-height: 150px; line-height: 1.5; }
.contact-form .input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent; }
.contact-form .opt { font-weight: 400; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { margin-top: 4px; }
.form-status { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r-m); font-weight: 500; }
.form-status.ok { background: #E6F7EE; color: #0F5132; }
.form-status.err { background: #FDECEA; color: #842029; }
@media (max-width: 640px) { .contact-form .field-2 { grid-template-columns: 1fr; gap: 0; } }

/* Creator tag */
.site-footer a.maker { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--muted); font-size: .78rem; line-height: 1; transition: border-color .2s; }
.site-footer a.maker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: conic-gradient(#FF5A4E, #FFB23F, #33CC8A, #3D7BFF, #FF5A4E); }
.site-footer a.maker strong { color: var(--ink); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.site-footer a.maker:hover { border-color: var(--ink); color: var(--muted); }
