/* Free CRM Website Generator. Plain CSS, OKLCH tokens, light + dark. */
:root {
  color-scheme: light;
  --hue: 192;
  --bg: oklch(1 0 0);
  --band: oklch(0.965 0.006 var(--hue));
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.96 0.012 var(--hue));
  --ink: oklch(0.23 0.025 var(--hue));
  --ink-2: oklch(0.42 0.025 var(--hue));
  --line: oklch(0.88 0.015 var(--hue));
  --line-strong: oklch(0.72 0.02 var(--hue));
  --brand: oklch(0.47 0.075 var(--hue));
  --brand-ink: oklch(0.38 0.07 var(--hue));
  --hero-bg: oklch(0.33 0.04 195);
  --hero-ink: oklch(0.97 0.01 var(--hue));
  --hero-ink-2: oklch(0.86 0.03 var(--hue));
  --accent: oklch(0.72 0.15 52);
  --accent-hover: oklch(0.67 0.16 50);
  --accent-ink: oklch(0.22 0.04 50);
  --code-bg: oklch(0.22 0.03 var(--hue));
  --code-ink: oklch(0.93 0.015 var(--hue));
  --focus: oklch(0.62 0.17 52);
  --warn: oklch(0.52 0.16 40);

  --art-card: oklch(0.98 0.005 var(--hue));
  --art-chrome: oklch(0.9 0.015 var(--hue));
  --art-dot: oklch(0.78 0.02 var(--hue));
  --art-ink: oklch(0.35 0.04 var(--hue));
  --art-soft: oklch(0.82 0.02 var(--hue));
  --art-soft2: oklch(0.93 0.02 var(--hue));
  --art-photo1: oklch(0.78 0.07 200);
  --art-photo2: oklch(0.8 0.07 120);
  --art-photo3: oklch(0.82 0.06 70);
  --art-photo-ink: oklch(0.3 0.04 var(--hue));
  --art-panel: oklch(0.2 0.03 var(--hue));
  --art-panel-ink: oklch(0.92 0.02 var(--hue));
  --art-panel-soft: oklch(0.7 0.03 var(--hue));
  --art-lead: oklch(0.29 0.035 var(--hue));

  --radius: 10px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* The type system of www.unysonplus.com: Josefin Sans headings, Open Sans text, JetBrains Mono code. */
  --font-display: "Josefin Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --z-sticky: 10;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 700 0.98rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { border-color: oklch(1 0 0 / 0.45); color: var(--hero-ink); }
.btn--ghost:hover { border-color: var(--hero-ink); color: var(--hero-ink); background: oklch(1 0 0 / 0.08); }
.btn--ghost-dark { border-color: oklch(1 0 0 / 0.28); color: var(--code-ink); background: transparent; }
.btn--ghost-dark:hover { border-color: var(--code-ink); }
.btn--quiet { background: transparent; color: var(--ink-2); border-color: var(--line); min-height: 40px; font-size: 0.9rem; }
.btn--quiet:hover { color: var(--ink); border-color: var(--line-strong); }

/* Header */
.top {
  position: absolute; inset-inline: 0; top: 0; z-index: var(--z-sticky);
  color: var(--hero-ink);
  padding-top: env(safe-area-inset-top, 0px);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 14px; color: var(--hero-ink); text-decoration: none; }
.logo img { display: block; height: 40px; width: auto; }
.logo__app { padding-left: 14px; border-left: 1px solid oklch(1 0 0 / 0.35); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.1; }
.logo:hover { color: var(--hero-ink); }
.top nav { display: flex; gap: clamp(12px, 2.5vw, 28px); flex-wrap: wrap; }
.top nav a { color: var(--hero-ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.top nav a:hover { color: var(--hero-ink); text-decoration: underline; }

/* Hero */
.hero {
  background-color: var(--hero-bg);
  background-image: url("img/hero-bg.jpg");
  background-image: image-set(url("img/hero-bg.webp") type("image/webp"), url("img/hero-bg.jpg") type("image/jpeg"));
  background-size: cover; background-position: center;
  color: var(--hero-ink); padding-block: calc(84px + env(safe-area-inset-top, 0px) + clamp(32px, 6vw, 80px)) clamp(56px, 8vw, 112px); overflow: hidden;
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__tag { margin: 0 0 18px; font-weight: 600; color: var(--accent); font-size: 0.95rem; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 700; letter-spacing: -0.01em; max-width: 15ch; }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--hero-ink-2); max-width: 52ch; margin: 22px 0 30px; line-height: 1.55; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__note { margin: 22px 0 0; font-size: 0.92rem; color: var(--hero-ink-2); }
.hero__art { margin: 0; }
.hero__art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 48px oklch(0.1 0.03 var(--hue) / 0.45)); }

/* Load choreography: content is visible by default; motion only enhances. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 700ms var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: 60ms; }
  .hero__copy > :nth-child(3) { animation-delay: 140ms; }
  .hero__copy > :nth-child(4) { animation-delay: 220ms; }
  .hero__copy > :nth-child(5) { animation-delay: 300ms; }
  .art-site { animation: rise 800ms var(--ease) 120ms both; }
  .art-tile { animation: fade 600ms var(--ease) both; }
  .art-tile:nth-of-type(1) { animation-delay: 420ms; }
  .art-tile:nth-of-type(2) { animation-delay: 500ms; }
  .art-tile:nth-of-type(3) { animation-delay: 580ms; }
  .art-crm { animation: slideIn 800ms var(--ease) 520ms both; }
  .art-lead--move { animation: leadMove 900ms var(--ease) 1300ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translate(24px, 18px); } to { opacity: 1; transform: none; } }
@keyframes leadMove { from { transform: translateX(-86px); } to { transform: none; } }

/* Generator */
.gen { background: var(--bg); padding-block: clamp(56px, 8vw, 104px); }
.gen__head { max-width: 62ch; margin-bottom: 36px; }
.gen__head h2, .how h2, .inc h2, .idx h2, .faq h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
.gen__head p { color: var(--ink-2); font-size: 1.05rem; margin: 12px 0 0; }
.gen__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 3vw, 40px); align-items: start; }

.form { display: grid; gap: 18px; }
fieldset {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 20px 20px 22px; display: grid; gap: 14px; min-width: 0;
}
legend { font-weight: 800; font-size: 1.1rem; padding: 0 6px; margin-left: -6px; letter-spacing: -0.01em; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.row--3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
select { padding-right: 32px; text-overflow: ellipsis; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-weight: 600; font-size: 0.92rem; }
.field > span i { font-style: normal; font-weight: 400; color: var(--ink-2); }
.field--inline { grid-template-columns: auto 120px; align-items: center; gap: 12px; justify-content: start; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 10px 12px; min-height: 44px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--ink-2); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px oklch(0.62 0.17 52 / 0.35); }
.field--color input { padding: 4px; height: 44px; cursor: pointer; }
.hint { color: var(--ink-2); font-size: 0.86rem; line-height: 1.5; }
.sub { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.sublabel { margin: 4px 0 -4px; font-weight: 600; font-size: 0.92rem; }

/* Chips (multi-select) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.92rem; font-weight: 500;
  background: var(--bg); transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.chips span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-strong); flex: none; }
.chips input:checked + span { background: var(--surface-2); border-color: var(--brand); color: var(--ink); }
.chips input:checked + span::before { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2 5.8 10 11 4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--brand); }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Check list (pages, forms) */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 16px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 8px 6px; border-radius: 6px; cursor: pointer; }
.check:hover { background: var(--surface-2); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.check b { display: block; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.check small { display: block; color: var(--ink-2); font-size: 0.84rem; line-height: 1.4; margin-top: 2px; }
.check input:disabled { cursor: not-allowed; }
.check:has(input:disabled) { cursor: default; }

/* Segmented radio cards */
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; gap: 4px; height: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.seg b { font-size: 0.95rem; }
.seg small { color: var(--ink-2); font-size: 0.83rem; line-height: 1.4; }
.seg input:checked + span { border-color: var(--brand); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--brand); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Output */
.out {
  position: sticky; top: 16px; z-index: var(--z-sticky);
  background: var(--code-bg); color: var(--code-ink); border-radius: 14px;
  display: flex; flex-direction: column; max-height: calc(100vh - 32px); min-width: 0;
  box-shadow: 0 30px 60px -30px oklch(0.15 0.03 var(--hue) / 0.5);
}
.out__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 0; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; }
.tabs button {
  font: 600 0.9rem/1 var(--font); color: oklch(0.78 0.02 var(--hue)); background: transparent;
  border: 0; border-radius: 8px 8px 0 0; padding: 12px 14px; cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--code-ink); background: oklch(1 0 0 / 0.07); }
.tabs button:hover { color: var(--code-ink); }
.out__meta { font-size: 0.82rem; color: oklch(0.75 0.02 var(--hue)); }
.out__panel { flex: 1; overflow: auto; background: oklch(1 0 0 / 0.04); margin: 0 14px; border-radius: 0 8px 8px 8px; min-height: 280px; }
.out__panel pre { margin: 0; padding: 18px; font: 0.82rem/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.out__panel pre.flash { animation: flash 600ms var(--ease); }
@keyframes flash { from { background: oklch(0.72 0.15 52 / 0.12); } to { background: transparent; } }
.out__actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; }
.out__actions .btn { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.out__status { margin: 0; padding: 0 16px 14px; font-size: 0.86rem; color: var(--accent); min-height: 1.4em; }

/* How: a dark band between the two white sections, three steps as cards, the result lit up. */
.how {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(64px, 9vw, 120px);
  color: var(--hero-ink);
  background:
    radial-gradient(60% 70% at 8% 0%, oklch(0.42 0.07 var(--hue) / 0.55), transparent 70%),
    radial-gradient(45% 60% at 100% 100%, oklch(0.5 0.12 52 / 0.16), transparent 70%),
    oklch(0.2 0.03 var(--hue));
}
/* A faint grid, fading out, so the band has texture without noise. */
.how::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 70% at 20% 10%, #000 20%, transparent 75%);
}
.how h2 { color: var(--hero-ink); }
.how__head p { margin: 16px 0 0; max-width: 52ch; font-size: clamp(1.02rem, 1.4vw, 1.14rem); line-height: 1.65; color: var(--hero-ink-2); }

.steps {
  --step-gap: 22px;
  list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--step-gap);
}
.step {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(26px, 2.8vw, 34px) clamp(24px, 2.6vw, 32px) clamp(86px, 7.5vw, 100px);
  border-radius: 20px;
  background: linear-gradient(180deg, oklch(1 0 0 / 0.07), oklch(1 0 0 / 0.025));
  border: 1px solid oklch(1 0 0 / 0.12);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.08), 0 24px 48px -28px oklch(0.08 0.03 var(--hue) / 0.9);
  transition: border-color 260ms var(--ease), translate 260ms var(--ease), box-shadow 260ms var(--ease);
}
/* Concentric rings in the corner: the same mark on every card, a different hue on the result. */
.step__deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.step__deco::before {
  content: ""; position: absolute; top: -90px; right: -90px; width: 220px; height: 220px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 38%, oklch(0.62 0.08 var(--hue) / 0.16) 38.5%, oklch(0.62 0.08 var(--hue) / 0.16) 39.5%, transparent 40%,
      transparent 58%, oklch(0.62 0.08 var(--hue) / 0.12) 58.5%, oklch(0.62 0.08 var(--hue) / 0.12) 59.5%, transparent 60%),
    radial-gradient(circle, oklch(0.55 0.08 var(--hue) / 0.28), transparent 38%);
}
.step:hover { border-color: oklch(1 0 0 / 0.22); translate: 0 -3px; }

.step__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px;
  border-radius: 14px; color: oklch(0.86 0.08 var(--hue));
  background: oklch(0.47 0.075 var(--hue) / 0.35);
  box-shadow: inset 0 0 0 1px oklch(0.8 0.08 var(--hue) / 0.22);
}
.step h3 { font-size: clamp(1.24rem, 1.7vw, 1.46rem); font-weight: 700; color: var(--hero-ink); }
.step p { margin: 12px 0 0; color: var(--hero-ink-2); max-width: 46ch; line-height: 1.65; }
.step code { white-space: nowrap; background: oklch(1 0 0 / 0.1); color: var(--hero-ink); }
.step__link {
  margin-top: auto; padding-top: 24px; font-weight: 700; font-size: 0.97rem; color: var(--hero-ink);
  text-decoration: underline; text-decoration-color: oklch(1 0 0 / 0.35); text-underline-offset: 7px; text-decoration-thickness: 1px;
  transition: text-decoration-color 180ms var(--ease), color 180ms var(--ease);
}
.step__link span { color: var(--accent); display: inline-block; transition: translate 200ms var(--ease); }
.step__link:hover { color: var(--hero-ink); text-decoration-color: currentColor; }
/* The page's global a:hover turns links dark ink, which is written for white sections. In this dark
   band any link keeps a light colour on hover. */
.how a:not(.btn):hover { color: var(--hero-ink); }
.step__link:hover span { translate: 3px 0; }
/* The step's number, large and quiet in the corner: the order is the point of this section. */
.step__num {
  position: absolute; right: clamp(20px, 2.2vw, 28px); bottom: clamp(16px, 1.8vw, 22px); z-index: -1;
  font-family: var(--font-display); font-size: clamp(4.4rem, 6.4vw, 5.8rem); font-weight: 700; line-height: 0.8; letter-spacing: -0.02em;
  color: oklch(1 0 0 / 0.06); pointer-events: none; user-select: none;
}
/* Arrow between steps, sitting on the seam. */
.step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 2; top: 48px; right: calc(-1 * var(--step-gap) / 2 - 17px);
  width: 34px; height: 34px; border-radius: 50%;
  background: oklch(0.24 0.035 var(--hue)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8a15a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.16), 0 6px 14px -6px oklch(0.05 0.02 var(--hue) / 0.8);
}

/* The result: warm accent instead of teal, so the payoff reads as the destination. */
.step--result {
  border-color: oklch(0.72 0.15 52 / 0.45);
  background: linear-gradient(180deg, oklch(0.72 0.15 52 / 0.14), oklch(0.72 0.15 52 / 0.04) 70%), oklch(0.23 0.035 var(--hue));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.1), 0 28px 60px -30px oklch(0.6 0.15 52 / 0.55);
}
.step--result:hover { border-color: oklch(0.72 0.15 52 / 0.7); }
.step--result .step__deco::before {
  background:
    radial-gradient(circle, transparent 38%, oklch(0.75 0.14 52 / 0.2) 38.5%, oklch(0.75 0.14 52 / 0.2) 39.5%, transparent 40%,
      transparent 58%, oklch(0.75 0.14 52 / 0.14) 58.5%, oklch(0.75 0.14 52 / 0.14) 59.5%, transparent 60%),
    radial-gradient(circle, oklch(0.72 0.15 52 / 0.3), transparent 38%);
}
.step--result .step__icon { color: var(--accent); background: oklch(0.72 0.15 52 / 0.16); box-shadow: inset 0 0 0 1px oklch(0.72 0.15 52 / 0.35); }
.step--result .step__num { color: oklch(0.85 0.1 52 / 0.1); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .step { animation: step-in linear both; animation-timeline: view(); animation-range: entry calc(4% + var(--i) * 6%) entry calc(46% + var(--i) * 6%); }
  }
}
@keyframes step-in { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .step:hover { translate: none; }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); --step-gap: 30px; }
  .step { padding-bottom: 92px; }
  .step:not(:last-child)::after { top: auto; right: auto; left: 50%; bottom: calc(-1 * var(--step-gap) / 2 - 17px); translate: -50% 0; rotate: 90deg; }
}

/* Included */
.inc { background: var(--bg); padding-block: clamp(56px, 8vw, 104px); }
.inc__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.inc__intro { position: sticky; top: 24px; }
.inc__intro p { color: var(--ink-2); font-size: 1.05rem; margin: 14px 0 0; max-width: 44ch; }
.inc__list { margin: 0; display: grid; gap: 0; }
.inc__list div { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(150px, 0.4fr) 1fr; gap: 6px 24px; }
.inc__list div:last-child { border-bottom: 1px solid var(--line); }
.inc__list dt { font-weight: 700; font-size: 1.05rem; }
.inc__list dd { margin: 0; color: var(--ink-2); }

/* IDX note */
.idx {
  background-color: var(--hero-bg);
  background-image: url("img/hero-bg.jpg");
  background-image: image-set(url("img/hero-bg.webp") type("image/webp"), url("img/hero-bg.jpg") type("image/jpeg"));
  background-size: cover; background-position: center;
  color: var(--hero-ink); padding-block: clamp(48px, 7vw, 88px);
}
.idx__in { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); }
.idx p { margin: 0; color: var(--hero-ink-2); font-size: 1.08rem; max-width: 68ch; line-height: 1.65; }
.idx b { color: var(--hero-ink); }

/* Closing CTA: the desk scene keeps its props in the corners, so copy sits in the empty middle. */
.cta {
  background-color: var(--hero-bg);
  background-image: radial-gradient(ellipse 46% 60% at 50% 50%, oklch(0.22 0.03 195 / 0.75), transparent 100%), url("img/desk-bg.jpg");
  background-image: radial-gradient(ellipse 46% 60% at 50% 50%, oklch(0.22 0.03 195 / 0.75), transparent 100%), image-set(url("img/desk-bg.webp") type("image/webp"), url("img/desk-bg.jpg") type("image/jpeg"));
  background-size: cover; background-position: center;
  color: var(--hero-ink); text-align: center;
  min-height: clamp(380px, 34vw, 560px); display: grid; align-items: center;
  padding-block: clamp(56px, 8vw, 96px);
}
.cta__in { display: grid; justify-items: center; gap: 18px; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.01em; max-width: 16ch; }
.cta p { margin: 0 0 8px; color: var(--hero-ink-2); font-size: 1.08rem; max-width: 46ch; }

/* Breadcrumb (industry pages) */
.crumbs { margin: 0 0 14px; font-size: 0.92rem; color: var(--hero-ink-2); }
.crumbs a { color: var(--hero-ink-2); }
.crumbs a:hover { color: var(--hero-ink); }
.crumbs [aria-current] { color: var(--hero-ink); font-weight: 600; }

/* Industry picker (home) */
.pick { background: var(--band); padding-block: clamp(48px, 7vw, 88px); }
.pick__head { max-width: 62ch; margin-bottom: 28px; }
.pick__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
.pick__head p { color: var(--ink-2); font-size: 1.05rem; margin: 12px 0 0; }
.pick__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 22px; }
.ind > a, .ind > div { display: flex; flex-direction: column; gap: 4px; height: 100%; text-decoration: none; color: var(--ink); }
.ind__img { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; margin-bottom: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ind__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease), filter 500ms var(--ease); }
.ind b { font-size: 1.08rem; }
.ind__desc { color: var(--ink-2); font-size: 0.93rem; }
.ind em { font-style: normal; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); margin-top: auto; padding-top: 8px; }
.ind--live > a em { color: var(--brand-ink); }
.ind--live > a em::after { content: " →"; }
.ind--live > a:hover b, .ind--live > a:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
.ind--live > a:hover .ind__img img { transform: scale(1.04); }
.ind:not(.ind--live) b { color: var(--ink-2); }
.ind:not(.ind--live) .ind__img img { filter: grayscale(1) opacity(0.7); }
.pick__more { margin: 18px 0 0; color: var(--ink-2); font-size: 0.95rem; }

/* Before you build */
.ready { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 18px 20px; }
.ready h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.ready > p { margin: 6px 0 12px; color: var(--ink-2); font-size: 0.9rem; }
.ready__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ready__list li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: baseline; font-size: 0.93rem; }
.ck-state { font-size: 0.78rem; font-weight: 700; text-align: center; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }
.is-done .ck-state { color: var(--brand-ink); }
.is-missing .ck-state { color: var(--warn); }
.is-prep .ck-state { color: var(--ink-2); }
.is-done .ck-label { color: var(--ink-2); }

/* Preview tab */
.out__panel--light { background: var(--surface); color: var(--ink); }
.pv { padding: 16px; display: grid; gap: 10px; }
.pv-site { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); }
.pv-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--pv-primary); color: #fff; font-size: 0.72rem; }
.pv-logo { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.pv-nav { display: flex; gap: 8px; flex: 1; overflow: hidden; white-space: nowrap; opacity: 0.85; }
.pv-btn, .pv-cta { background: var(--pv-accent); color: #111; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.pv-hero { display: grid; gap: 4px; justify-items: start; padding: 18px 12px; background: color-mix(in oklch, var(--pv-primary) 88%, black); color: #fff; }
.pv-h { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.pv-sub { font-size: 0.78rem; opacity: 0.8; }
.pv-cta { font-size: 0.72rem; margin-top: 6px; }
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; }
.pv-card { height: 46px; border-radius: 6px; background: color-mix(in oklch, var(--pv-primary) 18%, var(--surface)); }
.pv-title { font-size: 0.86rem; font-weight: 800; margin-top: 8px; }
.pv-pages, .pv-forms { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.84rem; }
.pv-pages { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pv-pages li, .pv-forms li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.pv-pages code { background: none; padding: 0; color: var(--ink-2); font-size: 0.78rem; }
.pv-forms li { flex-direction: column; gap: 0; }
.pv-forms span { color: var(--ink-2); font-size: 0.78rem; }
.pv-pipe { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: st; }
.pv-pipe li { counter-increment: st; font-size: 0.8rem; padding: 5px 10px; border-radius: 6px; background: color-mix(in oklch, var(--pv-primary) 14%, var(--surface)); border: 1px solid color-mix(in oklch, var(--pv-primary) 35%, var(--surface)); }
.pv-pipe li::before { content: counter(st) ". "; font-weight: 700; }

/* FAQ */
.faq { background: var(--band); padding-block: clamp(56px, 8vw, 104px); }
.faq__in { max-width: 860px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--brand); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 68ch; }

/* Footer */
.foot { background: oklch(0.22 0.025 195); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 0.92rem; color: var(--hero-ink-2); }
.foot a { color: var(--hero-ink); }
.foot a:hover { color: var(--accent); }
.foot__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
  .hero__in, .gen__grid, .inc__grid, .idx__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; }
  .out { position: static; max-height: none; }
  .out__panel { max-height: 70vh; }
  .inc__intro { position: static; }
}
@media (max-width: 560px) {
  .inc__list div { grid-template-columns: 1fr; }
  .logo img { height: 30px; }
  .logo { gap: 10px; }
  .logo__app { padding-left: 10px; font-size: 0.92rem; }
  .cta { background-image: linear-gradient(oklch(0.22 0.03 195 / 0.72), oklch(0.22 0.03 195 / 0.72)), url("img/desk-bg.jpg"); }
  .top nav a:nth-child(-n+2) { display: none; }
  fieldset { padding: 16px 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}

/* Build setup: track notes */
.note:empty { display: none; }
.note { margin: 2px 0 0; padding: 10px 12px; border-radius: 8px; background: #fff6e8; border: 1px solid #f0d3a8; color: #5b3b0c; font-size: 0.92rem; }
.hint-line { margin: 6px 0 0; font-size: 0.9rem; color: #4a5a56; }
.hint-line a { color: inherit; text-decoration: underline; }

/* Style preview — a screenshot of a preset as it actually renders on WordPress. It is shown at half its
   pixel width (captured at 2x) so it stays sharp on HiDPI screens; without an explicit width the browser
   would draw it at twice the intended size. The frame is deliberately plain: a border and the page's own
   radius, nothing that would read as part of the style being previewed. */
.stylep { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.stylep img { display: block; width: 100%; height: auto; }
.stylep figcaption { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-top: 1px solid var(--line); background: var(--bg); }
.stylep figcaption b { font-size: 1.08rem; }
.stylep figcaption span { color: var(--ink-2); font-size: 0.93rem; }
.stylep__note { color: var(--ink-2); font-size: 0.93rem; margin: 16px 0 0; }
.stylep__link { display: block; }
.stylep__link:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.stylep figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Two presets and counting, so the single figure becomes a grid. It stays one column until there is
   genuinely room for two side by side — these are screenshots of whole pages, and halving them on a
   narrow screen makes both unreadable rather than compact. */
.stylep__grid { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start; }
@media (min-width: 900px) { .stylep__grid { grid-template-columns: 1fr 1fr; } }
