/* ==========================================================================
   Portfolio site styles
   One stylesheet for every page in /portfolio.
   The look follows the three demo templates: near-black background, warm
   off-white text, one warm accent, serif display type with a mono label.

   Contents
     1. Tokens          5. Hero                 9. Forms
     2. Base            6. Sections + cards    10. Setup steps (wizard)
     3. Buttons         7. Template cards      11. Summary panel
     4. Header/footer   8. Lists, steps, FAQ   12. Responsive
   ========================================================================== */

/* ─── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg: #0b0b0d;
  --bg-2: #101013;
  --surface: #15151a;
  --surface-2: #1c1c22;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f1eee8;
  --muted: #a09b92;
  --dim: #6d6961;
  --accent: #ff6a3d;
  --accent-2: #ff8a63;
  --accent-ink: #1a0c05;
  --accent-soft: rgba(255, 106, 61, 0.13);
  --ok: #5fd39a;
  --danger: #ff8f85;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── 2. Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.015em; }
h1, h2 { font-family: var(--serif); line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(46px, 7.4vw, 104px); }
h2 { font-size: clamp(36px, 5vw, 66px); }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); }
.skip:focus { left: 8px; }

/* Small uppercase mono label used above headings and on cards */
.label {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--accent { color: var(--accent); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }

/* Scroll-in animation (added by site.js) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── 3. Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; text-align: center;
  background: none;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-2); }
.btn--light { background: var(--text); color: #111; }
.btn--light:hover { background: #fff; }
.btn--line { border-color: var(--line-2); }
.btn--line:hover { border-color: var(--text); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--accent); }

/* ─── 4. Header and footer ──────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.top.is-scrolled { border-color: var(--line); }
.top__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
/* The logo has a black background; "screen" blending drops the black so only the glowing lines show. */
.brand__logo, .about__logo, .foot__logo { mix-blend-mode: screen; }
.brand__logo { height: 30px; width: auto; }
.brand__name { font: 400 24px/1 var(--serif); }
.brand__role { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--muted); font-size: 15px; text-decoration: none; transition: color 0.2s; }
.nav a:not(.btn):hover, .nav a[aria-current='page'] { color: var(--text); }
.burger { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); transition: transform 0.25s, top 0.25s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded='true'] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.foot { margin-top: clamp(70px, 10vw, 130px); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot__big { font: 400 clamp(30px, 4vw, 48px)/1.05 var(--serif); max-width: 14ch; margin-bottom: 22px; }
.foot h4 { font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { color: var(--muted); text-decoration: none; }
.foot ul a:hover { color: var(--text); }
.foot__base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }

/* ─── 5. Hero ───────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(48px, 8vw, 110px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero::before {
  /* soft ember glow behind the headline */
  content: ''; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 106, 61, 0.2), transparent 70%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { margin: 18px 0 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.hero__facts b { color: var(--text); font-weight: 600; }

/* Stack of browser frames showing the real demos */
.stack { position: relative; aspect-ratio: 1 / 0.95; }
.stack .frame { position: absolute; width: 78%; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); transition: transform 0.7s var(--ease); }
.stack .frame:nth-child(1) { top: 0; right: 0; transform: rotate(3deg); }
.stack .frame:nth-child(2) { top: 22%; left: 0; transform: rotate(-4deg); z-index: 1; }
.stack .frame:nth-child(3) { bottom: 0; right: 6%; transform: rotate(1.5deg); z-index: 2; }
.stack:hover .frame:nth-child(1) { transform: rotate(4deg) translate(8px, -8px); }
.stack:hover .frame:nth-child(2) { transform: rotate(-5deg) translate(-8px, 0); }
.stack:hover .frame:nth-child(3) { transform: rotate(2deg) translate(6px, 8px); }

/* Browser-window frame around a screenshot */
.frame { display: block; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--surface); }
.frame__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.frame__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.frame__bar b { margin-left: 10px; font: 400 11px/1 var(--mono); color: var(--dim); }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* Page header for inner pages */
.page-head { padding: clamp(44px, 7vw, 90px) 0 clamp(26px, 4vw, 50px); }
.page-head h1 { font-size: clamp(44px, 6.4vw, 88px); margin: 16px 0 20px; }

/* ─── 6. Sections and cards ─────────────────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(30px, 4vw, 54px); }
.section__head h2 { margin-top: 14px; }
.section__head .lead { max-width: 42ch; }

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

.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card__n { display: block; margin-bottom: 26px; font: 400 13px/1 var(--mono); color: var(--accent); letter-spacing: 0.1em; }

/* About block on the home page */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.about__photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 20% 10%, #3a2018, var(--surface) 62%);
  display: grid; place-items: center; overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo:has(.about__logo) { background: #000; border-color: var(--line); }
.about__photo img.about__logo { width: 82%; height: auto; object-fit: contain; }
.foot__logo { width: 150px; height: auto; margin: 0 0 18px -12px; }
.about__text { display: grid; gap: 18px; }
.about__text p { color: var(--muted); font-size: 17px; max-width: 60ch; }
.about__text p strong { color: var(--text); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; padding: 0; list-style: none; }
.chips li { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--muted); }

/* Price panel */
.price-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(26px, 5vw, 70px); padding: clamp(28px, 4vw, 54px); border: 1px solid var(--line-2); border-radius: 26px; background: linear-gradient(140deg, var(--accent-soft), transparent 55%), var(--surface); }
.price { font: 400 clamp(84px, 12vw, 150px)/0.9 var(--serif); letter-spacing: -0.03em; }
.price small { display: block; margin-top: 14px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Call-to-action band */
.band { padding: clamp(36px, 6vw, 70px); border-radius: 26px; background: var(--accent); color: var(--accent-ink); display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.band h2 { max-width: 16ch; }
.band h2 em { color: inherit; }
.band .btn { background: var(--accent-ink); color: var(--text); }
.band .btn:hover { background: #000; }

/* ─── 7. Template cards (shop) ──────────────────────────────────────────── */
.tpls { display: grid; gap: 22px; }
.tpls--3 { grid-template-columns: repeat(3, 1fr); }
.tpl { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); overflow: hidden; transition: border-color 0.3s, opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.tpl:hover { border-color: var(--line-2); }
.tpl__shot { position: relative; display: block; padding: 22px 22px 0; text-decoration: none; background: radial-gradient(120% 100% at 50% 0%, var(--surface-2), var(--surface)); }
.tpl__shot .frame { border-bottom: 0; border-radius: 14px 14px 0 0; transition: transform 0.6s var(--ease); }
.tpl__shot:hover .frame { transform: translateY(-6px); }
.tpl__open { position: absolute; right: 34px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(11, 11, 13, 0.85); backdrop-filter: blur(8px); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s; }
.tpl__shot:hover .tpl__open, .tpl__shot:focus-visible .tpl__open { opacity: 1; transform: none; }
.tpl__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 26px; border-top: 1px solid var(--line); }
.tpl__body h3 { font: 400 38px/1 var(--serif); }
.tpl__blurb { color: var(--muted); }
.tpl__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 16px; }
.tpl__actions .btn--accent { flex: 1 1 auto; }

/* Wide layout used on the shop page: screenshot beside the text */
.tpls--wide .tpl { flex-direction: row; }
.tpls--wide .tpl__shot { flex: 0 0 52%; display: flex; align-items: flex-end; }
.tpls--wide .tpl__shot .frame { width: 100%; }
.tpls--wide .tpl__body { border-top: 0; border-left: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.tpls--wide .tpl:nth-child(even) .tpl__shot { order: 2; }
.tpls--wide .tpl:nth-child(even) .tpl__body { border-left: 0; border-right: 1px solid var(--line); }

.tpl__custom { flex: 1 1 100%; font-size: 14.5px; color: var(--muted); }

/* Two offers side by side */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 3.4vw, 44px); border: 1px solid var(--line); border-radius: 26px; background: var(--surface); }
.plan--featured { border-color: var(--line-2); background: linear-gradient(140deg, var(--accent-soft), transparent 55%), var(--surface); }
.plan__price { font: 400 clamp(52px, 6.4vw, 84px)/0.95 var(--serif); letter-spacing: -0.02em; }
.plan h3 { font-size: 22px; }
.plan > p { color: var(--muted); }
.plan > p.plan__price { color: var(--text); }
.plan > p.label--accent { color: var(--accent); }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* Price list (what each page / feature adds) */
.pricelist { list-style: none; margin: 0; padding: 0; }
.pricelist li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); color: var(--muted); }
.pricelist b { color: var(--text); font-weight: 600; white-space: nowrap; }
.pricelist-wrap h3 { margin-bottom: 8px; }

/* ─── 8. Numbered steps and FAQ ─────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding: 26px 0 0; border-top: 1px solid var(--line-2); }
.steps li::before { content: '0' counter(step); display: block; margin-bottom: 22px; font: 400 13px/1 var(--mono); letter-spacing: 0.1em; color: var(--accent); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }

.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 80px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 300 26px/1 var(--sans); color: var(--accent); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); }

/* ─── 9. Forms ──────────────────────────────────────────────────────────── */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span, .fieldset > legend { font-size: 14px; font-weight: 500; color: var(--muted); }
.field em, .fieldset em { font-style: normal; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  font: inherit; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field [aria-invalid='true'] { border-color: var(--danger); }
.field__error { min-height: 0; font-size: 13px; color: var(--danger); }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset > legend { padding: 0; margin-bottom: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Status line under a form */
.status { font-size: 15px; color: var(--muted); }
.status.is-ok { color: var(--ok); }
.status.is-error { color: var(--danger); }
.notice { padding: 18px 20px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font-size: 15px; display: grid; gap: 12px; }
.notice strong { color: var(--text); }
.notice .btn { justify-self: start; }

/* Contact page layout */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.contact__details { display: grid; gap: 22px; margin: 0; }
.contact__details dt { font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.contact__details dd { margin: 0; font-size: 18px; }
.panel { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }

/* Selectable option tiles (checkboxes and radios styled as cards) */
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.options--3 { grid-template-columns: repeat(3, 1fr); }
.options--4 { grid-template-columns: repeat(4, 1fr); }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option__box {
  display: grid; gap: 4px; height: 100%; padding: 16px 44px 16px 18px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2);
  transition: border-color 0.2s, background 0.2s;
}
.option__box b { font-weight: 600; }
.option__box small { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.option__box::after {
  /* tick mark, top right */
  content: ''; position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: transparent; transition: background 0.2s, border-color 0.2s;
}
.option:hover .option__box { border-color: rgba(255, 255, 255, 0.34); }
.option input:checked + .option__box { border-color: var(--accent); background: var(--accent-soft); }
.option input:checked + .option__box::after {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231a0c05' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.option input:focus-visible + .option__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.option input:disabled + .option__box { opacity: 0.75; cursor: default; }
.option__price { color: var(--accent); font-weight: 600; font-size: 14px; }
.option__blank { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 10px; border: 1px dashed var(--line-2); border-radius: 8px; font: 300 44px/1 var(--sans); color: var(--dim); }
.review__price { margin-left: 6px; color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }
.option__lock { font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }

/* Compact pill-style choices */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14.5px; color: var(--muted); transition: border-color 0.2s, background 0.2s, color 0.2s; }
.pill:hover span { border-color: rgba(255, 255, 255, 0.34); color: var(--text); }
.pill input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.pill i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-2); }

/* Template picker tiles in step 1 */
.option--tpl .option__box { padding: 12px 12px 16px; }
.option--tpl .option__box::after { top: 22px; right: 22px; background-color: rgba(11, 11, 13, 0.7); }
.option--tpl img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 10px; }
.option--tpl b, .option--tpl small { padding: 0 6px; }

/* Style swatches */
.swatch { display: flex; height: 44px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); margin-bottom: 8px; }
.swatch i { flex: 1; }
.swatch i:last-child { flex: 0 0 34%; }
.font-sample { font-size: 40px; line-height: 1; margin-bottom: 6px; }

/* ─── 10. Setup steps (wizard) ──────────────────────────────────────────── */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(22px, 3vw, 40px); align-items: start; padding-bottom: 40px; }
.progress { list-style: none; margin: 0 0 26px; padding: 0; display: flex; gap: 6px; }
.progress li { flex: 1; min-width: 0; }
.progress button {
  width: 100%; padding: 12px 0 0; border: 0; border-top: 2px solid var(--line-2); background: none; text-align: left;
  font: 500 12px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s, border-color 0.2s;
}
.progress button b { color: inherit; font-weight: 500; margin-right: 6px; }
.progress li.is-done button { border-color: var(--accent); color: var(--muted); }
.progress li.is-active button { border-color: var(--accent); color: var(--text); }
.progress button:disabled { cursor: default; }

.step { display: grid; gap: 22px; }
.step__head h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 10px; }
.step__head p { color: var(--muted); max-width: 56ch; }
.step__group { display: grid; gap: 12px; }
.step__group > h3 { font-size: 15px; font-weight: 600; color: var(--muted); }
.step__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 22px; margin-top: 6px; border-top: 1px solid var(--line); }
.step__actions .status { flex: 1 1 100%; }

/* Review list in the final setup step and on the start page */
.review { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.review > div { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: baseline; padding: 16px 20px; background: var(--bg-2); }
.review > div + div { border-top: 1px solid var(--line); }
.review dt { font: 500 12px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.review dd { margin: 0; }
.review dd.is-empty { color: var(--dim); }
.review button { border: 0; background: none; padding: 0; color: var(--accent); font-size: 14px; font-weight: 600; }
.review button:hover { text-decoration: underline; }

/* ─── 11. Summary panel (sticky sidebar) ────────────────────────────────── */
.summary { position: sticky; top: 96px; padding: 24px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); display: grid; gap: 16px; }
.summary__title { font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.summary__tpl { display: flex; gap: 12px; align-items: center; }
.summary__tpl img { width: 76px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); }
.summary__tpl b { display: block; font: 400 26px/1 var(--serif); }
.summary__tpl small { color: var(--muted); font-size: 13px; }
.summary__rows { display: grid; gap: 10px; margin: 0; padding: 16px 0; border-block: 1px solid var(--line); }
.summary__rows div { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; }
.summary__rows dt { color: var(--muted); }
.summary__rows dd { margin: 0; text-align: right; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; }
.summary__total span { color: var(--muted); }
.summary__total b { font: 400 44px/1 var(--serif); }
.summary__note { font-size: 13px; color: var(--dim); line-height: 1.5; }

/* Success panel after a request is sent */
.done { display: grid; gap: 18px; justify-items: start; padding: clamp(28px, 5vw, 60px); border: 1px solid var(--line-2); border-radius: 26px; background: linear-gradient(140deg, var(--accent-soft), transparent 55%), var(--surface); }
.done__mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 26px; font-weight: 700; }
.done pre { width: 100%; margin: 0; padding: 18px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); color: var(--muted); font: 400 13px/1.6 var(--mono); white-space: pre-wrap; max-height: 320px; overflow: auto; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ─── 12. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .tpls--3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .summary--compact .summary__rows, .summary--compact .summary__note { display: none; }
  .options--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px var(--gutter) 22px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .brand__role { display: none; }

  .hero__grid, .about, .price-panel, .faq, .contact { grid-template-columns: 1fr; }
  .stack { max-width: 520px; margin-inline: auto; width: 100%; }
  .about__photo { max-width: 340px; }
  .grid-3, .grid-2, .plans { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > :first-child { grid-column: 1 / -1; }

  .tpls--wide .tpl { flex-direction: column; }
  .tpls--wide .tpl__shot { flex: none; }
  .tpls--wide .tpl:nth-child(even) .tpl__shot { order: 0; }
  .tpls--wide .tpl__body, .tpls--wide .tpl:nth-child(even) .tpl__body { border: 0; border-top: 1px solid var(--line); }
  .tpl__open { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .tpls--3, .steps, .form__row, .options, .options--3, .options--4 { grid-template-columns: 1fr; }
  .options--tight { grid-template-columns: 1fr 1fr; }
  .review > div { grid-template-columns: 1fr auto; }
  .review dt { grid-column: 1 / -1; }
  .progress button { font-size: 0; padding-top: 10px; }
  .progress button b { font-size: 12px; margin: 0; }
  .btn--lg { min-height: 54px; padding: 0 22px; }
  .hero__cta .btn, .step__actions .btn { flex: 1 1 100%; }
  .foot__grid { grid-template-columns: 1fr; }
  .band .btn { width: 100%; }
}
