/* 101 Pixels Web Design — studio site styles.
   Own palette, deliberately different from the three trade templates:
   ink/plum surfaces with a lime accent. Light and dark via [data-theme]. */

:root {
  --bg: #f6f5f2;
  --panel: #ffffff;
  --panel-2: #efece6;
  --ink: #14121a;
  --muted: #565064;
  --line: #ddd8cf;
  --brand: #4b2f7f;
  --brand-soft: #ece7f7;
  --lime: #c9f24d;
  --lime-ink: #14140a;
  --focus: #4b2f7f;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(20, 18, 26, 0.06), 0 18px 40px rgba(20, 18, 26, 0.08);
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0f0d13;
  --panel: #171420;
  --panel-2: #1f1b2a;
  --ink: #f3f1ea;
  --muted: #a8a2b6;
  --line: #2b2637;
  --brand: #b79bff;
  --brand-soft: #241d36;
  --lime: #c9f24d;
  --lime-ink: #14140a;
  --focus: #c9f24d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 40px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  /* 32px, not 34: the mark is drawn on a 32-unit grid, so at 1:1 every pixel block
     lands on a whole pixel and the monogram stays hard-edged. */
  width: 32px;
  height: 32px;
  color: var(--ink);
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-mark .brand-door {
  fill: var(--lime);
}

.brand:hover .brand-mark {
  color: var(--brand);
}

.brand-name {
  /* The wordmark was inheriting 16px, which read as a caption next to the mark
     rather than as the studio's name. 1.3rem keeps two lines inside the topbar. */
  font-size: 1.3rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand-name span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.45rem 0.65rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.site-nav a:hover {
  background: var(--panel-2);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-primary {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: var(--lime);
}

.btn-primary:hover {
  background: var(--lime);
  color: var(--lime-ink);
  filter: brightness(1.05);
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn-dark:hover {
  color: var(--bg);
  opacity: 0.92;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

/* ---------- hero + sections ---------- */

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.25rem 0.6rem;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
}

.hero h1 {
  margin-bottom: 0.5em;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  letter-spacing: -0.035em;
}

/* The home page carries the studio's name and its whole pitch, so its headline is
   allowed to be louder than the interior pages. The floor is unchanged, so phones
   see exactly what they saw before. */
.hero-home h1 {
  font-size: clamp(2.1rem, 5.9vw, 4.2rem);
  line-height: 1.05;
}

.hero-lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.hero-points {
  display: grid;
  gap: 0.35rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-points li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.55rem;
  background: var(--lime);
  border-radius: 2px;
  vertical-align: middle;
}

.hero-panel {
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel li {
  margin-bottom: 0.45rem;
}

.section {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.section-head {
  max-width: 60ch;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.section-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.mono {
  font-family: var(--mono);
}

/* ---------- template cards ---------- */

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpl-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.tpl-shot {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.tpl-shot iframe {
  width: 100%;
  height: 620px;
  border: 0;
  transform: scale(0.62);
  transform-origin: top center;
  pointer-events: none;
}

.tpl-shot.is-tall {
  height: 420px;
}

.tpl-shot.is-tall iframe {
  transform: scale(0.85);
}

.tpl-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem;
  flex: 1;
}

.tpl-body h3 {
  margin: 0;
  font-size: 1.15rem;
}

.tpl-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.tpl-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.swatches {
  display: flex;
  gap: 0.35rem;
  margin: 0.1rem 0 0.4rem;
  padding: 0;
  list-style: none;
}

.swatches li {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.tpl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.tpl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpl-meta li {
  padding: 0.2rem 0.5rem;
  background: var(--panel-2);
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--muted);
}

/* ---------- generic panels ---------- */

.panel {
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.note {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- pricing ---------- */

.price-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.plan-featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.plan-tag {
  align-self: flex-start;
  margin: 0;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime-ink);
  background: var(--lime);
  border-radius: 999px;
}

.plan-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.plan-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.plan-amount {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-per {
  font-size: 0.85rem;
  color: var(--muted);
}

.plan-for {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.plan-list {
  margin: 0.4rem 0 1rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.plan-list li::marker {
  color: var(--brand);
}

.plan .btn {
  margin-top: auto;
  text-align: center;
}

/* ---------- explainer cards ---------- */

.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-card {
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.info-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.info-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- comparison table ---------- */

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 0.6rem;
}

.compare th,
.compare td {
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
}

.compare tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare tbody th,
.compare thead th:first-child {
  position: sticky;
  left: 0;
  background: var(--panel);
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 0.5rem;
}

.faq-list details {
  padding: 0.8rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
}

.faq-list p {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- services and service area chips ---------- */

.chip-field {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chip-field legend {
  padding: 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip-field > .note {
  margin: 0 0 0.6rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.7rem;
  padding: 0;
  list-style: none;
}

.chip-empty {
  padding: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.35rem 0.3rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.chip-remove {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.chip-remove:hover {
  color: var(--ink);
  background: var(--brand-soft);
}

.chip-remove:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.chip-add {
  display: flex;
  gap: 0.4rem;
}

.chip-add input {
  flex: 1 1 12rem;
  min-width: 0;
}

/* ---------- business hours ---------- */

.hours-editor {
  display: grid;
  gap: 0.3rem;
}

.hours-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

.hours-day {
  font-weight: 600;
}

.hours-sep {
  color: var(--muted);
  font-size: 0.8rem;
}

.hours-time {
  min-width: 0;
  padding: 0.35rem 0.45rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hours-time:disabled {
  opacity: 0.45;
}

.hours-closed {
  gap: 0.35rem;
  font-size: 0.82rem;
  white-space: nowrap;
  color: var(--muted);
}

@media (max-width: 34rem) {
  .hours-row {
    grid-template-columns: 5.5rem 1fr auto 1fr;
  }

  .hours-closed {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* ---------- the customer's editor ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.4rem 0 0.9rem;
}

.tab {
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.tab:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.photo-strip,
#photoSlots {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.photo-strip {
  margin-top: 0.9rem;
  grid-column: 1 / -1;
}

.photo-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photo-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.btn-small {
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.section-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.section-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.7rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-note {
  padding-left: 1.6rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--brand);
}

.publish-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin: 1.2rem 0 0.9rem;
  padding: 0.9rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}


.live-card {
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.live-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-url {
  margin: 0.35rem 0 0.9rem;
  font-family: var(--mono);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.live-url a {
  color: var(--brand);
}

.live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.live-card .note:empty {
  display: none;
}

.live-card .note {
  margin: 0.8rem 0 0;
}

.callout {
  padding: 0.8rem 1rem;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-size: 0.9rem;
}

/* ---------- wizard ---------- */

.wizard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 3rem;
}

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.stepper li {
  padding: 0.3rem 0.7rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  counter-increment: step;
}

.stepper li::before {
  content: counter(step) ". ";
  opacity: 0.7;
}

.stepper li[aria-current="step"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
}

.stepper li.is-done {
  border-color: var(--brand);
  color: var(--brand);
}

.step-panel {
  padding: 1.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.step-panel h2 {
  font-size: 1.25rem;
}

.step-panel[hidden] {
  display: none;
}

.field {
  margin-bottom: 1rem;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--brand);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--brand);
  outline: 3px solid var(--lime);
  outline-offset: 1px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.field-hint {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.step-error {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.8rem;
  background: #fdecec;
  border-left: 3px solid #b3261e;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #7a1510;
  font-size: 0.86rem;
}

[data-theme="dark"] .step-error {
  background: #2b1414;
  color: #ffb4a8;
}

.tpl-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
}

.tpl-choice button {
  padding: 0.75rem;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.tpl-choice button span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
}

/* The card's supporting line is a sentence now, so it drops the monospace used
   for the old trade-id list and gets room to wrap. */
.tpl-choice button .tpl-hint {
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.35;
}

.tpl-choice button[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.uploads {
  display: grid;
  gap: 0.9rem;
}

.drop {
  position: relative;
  padding: 1rem;
  background: var(--bg);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
}

.drop:hover,
.drop:focus-within {
  border-color: var(--brand);
}

.drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop strong {
  display: block;
  font-size: 0.9rem;
}

.drop span {
  color: var(--muted);
  font-size: 0.78rem;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.5rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.thumb {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.thumb img {
  display: block;
  width: 100%;
  height: 74px;
  object-fit: cover;
}

.thumb figcaption {
  padding: 0.2rem 0.35rem;
  color: var(--muted);
  font-size: 0.66rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb input {
  width: 100%;
  padding: 0.25rem 0.3rem;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 0.66rem;
  border: 0;
  border-top: 1px solid var(--line);
}

.thumb input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

.thumb button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: rgba(20, 18, 26, 0.8);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.preview-pane {
  position: sticky;
  top: 84px;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.preview-pane h2 {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preview-frame {
  width: 100%;
  height: 430px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.preview-status {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.review-list {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.review-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.review-row dt {
  color: var(--muted);
}

.review-row dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.issues {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: #7a1510;
  font-size: 0.84rem;
}

[data-theme="dark"] .issues {
  color: #ffb4a8;
}

.copy-fields {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.copy-group {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.copy-group > summary {
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
}

.copy-group > summary::-webkit-details-marker {
  display: none;
}

.copy-group > summary::before {
  content: "＋";
  display: inline-block;
  width: 1.1em;
  color: var(--brand);
  font-weight: 700;
}

.copy-group[open] > summary::before {
  content: "−";
}

.copy-group > summary::after {
  content: "";
}

.copy-field {
  margin: 0;
  padding: 0.5rem 0.8rem 0.6rem;
  border-top: 1px solid var(--line);
}

.copy-field label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.copy-field input,
.copy-field textarea {
  font-size: 0.88rem;
}

.copy-field .is-edited {
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* ---------- accounts ---------- */

.site-nav a[data-auth-link] {
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-nav a[data-auth-link][aria-current="page"] {
  border-color: var(--brand);
  color: var(--brand);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  margin-right: 0.4rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch a {
  padding: 0.22rem 0.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 999px;
}

.lang-switch a:hover {
  color: var(--brand);
}

.lang-switch a[aria-current="true"] {
  background: var(--ink);
  color: var(--bg);
}

.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.7fr);
  gap: 2rem;
  align-items: start;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.auth-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  letter-spacing: -0.02em;
}

.auth-aside {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.auth-aside h2 {
  margin-bottom: 0;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin: 1.1rem 0 0;
  padding: 0.72rem 1rem;
  background: #ffffff;
  color: #14121a;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #d6d2c8;
  border-radius: 9px;
}

.google-btn[hidden] {
  display: none;
}

.google-btn:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .google-btn {
  background: #f3f1ea;
  color: #14121a;
  border-color: #3a3450;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.2rem 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-form {
  display: grid;
  gap: 0.9rem;
}

.auth-form .btn {
  justify-self: start;
}

.auth-status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.auth-status:empty {
  display: none;
}

.auth-status.is-error {
  color: #a52d16;
}

[data-theme="dark"] .auth-status.is-error {
  color: #ff9c8a;
}

.auth-dev {
  margin: 0.7rem 0 0;
  padding: 0.6rem 0.7rem;
  background: var(--brand-soft);
  border-radius: 8px;
  font-size: 0.82rem;
  word-break: break-word;
}

.auth-dev[hidden] {
  display: none;
}

/* The honeypot: reachable by bots, invisible to people. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.account-head h1 {
  margin-bottom: 0.2rem;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-list[hidden] {
  display: none;
}

.site-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.site-card h2 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.site-meta {
  margin: 0.15rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-meta a {
  color: var(--brand);
}

.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.billing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.billing-actions .btn {
  white-space: nowrap;
}

.pill {
  grid-row: 2;
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.12rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel-2);
  border-radius: 999px;
}

.pill.is-live {
  background: var(--lime);
  color: var(--lime-ink);
}

/* ---------- conversion components ---------- */

.btn-nav {
  padding: 0.5rem 0.95rem;
  font-size: 0.9rem;
}

.site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 780px) {
  .site-nav a[data-nav-secondary] {
    display: none;
  }
}

.site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 780px) {
  .site-nav a[data-nav-secondary] {
    display: none;
  }
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.proof-strip li {
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.proof-value {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.proof-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.risk-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.risk-band h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
}

.risk-band p {
  margin: 0;
  color: var(--muted);
}

.risk-band .hero-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.step-list {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  position: relative;
  padding-left: 2.5rem;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
}

.step-list h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.step-list p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.checklist {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-item {
  padding: 1rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.check-item h3 {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.check-item h3 span {
  flex: 0 0 auto;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.check-item p {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.check-item .check-fix {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink);
}

.check-item .check-fix strong {
  color: var(--brand);
}

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.calc-fields {
  display: grid;
  gap: 0.9rem;
}

.calc-out {
  padding: 1.1rem 1.2rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.calc-out h3 {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

.calc-row:last-of-type {
  border-bottom: 0;
}

.calc-row strong {
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  white-space: nowrap;
}

.calc-saving {
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.85rem;
  background: var(--lime);
  color: var(--lime-ink);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
}

.faq-group {
  margin-bottom: 1.75rem;
}

.faq-group h2 {
  margin-bottom: 0.7rem;
  font-size: 1.15rem;
}

.honest-note {
  padding: 1.1rem 1.25rem;
  background: var(--panel);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.honest-note h2 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.honest-note p:last-child {
  margin-bottom: 0;
}

/* ---------- community ---------- */

.community-band {
  margin-top: 2.6rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--lime);
}

.community-band > p,
.community-band > h2 {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.community-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.community-item {
  padding-left: 0.85rem;
  border-left: 3px solid var(--lime);
}

.community-item h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.community-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 1.1rem 1.25rem;
  list-style: none;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.stat-value {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.stat-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 2rem;
  align-items: start;
}

.story-body p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.story-body p:last-child {
  margin-bottom: 0;
}

.story-aside {
  padding: 1.1rem 1.2rem;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.story-aside h2 {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.story-aside ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.role-tag {
  display: inline-block;
  margin: 0 0 0.4rem;
  padding: 0.1rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-row li {
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tag-row a {
  color: inherit;
  text-decoration: none;
}

.tag-row a:hover,
.tag-row a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
}

/* ---------- footer ---------- */

.site-footer .footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.7fr));
  gap: 1.5rem;
  align-items: start;
}

.footer-cols h2 {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .hero-grid,
  .wizard,
  .story-grid,
  .auth-wrap,
  .risk-band,
  .calc,
  .site-footer .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .risk-band .hero-actions {
    justify-content: flex-start;
  }

  .preview-pane {
    position: static;
  }

  .tpl-shot {
    height: 220px;
  }
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-nav a {
    padding: 0.4rem 0.45rem;
    font-size: 0.82rem;
  }

  .brand-name {
    /* Without the sub-line the lockup only needs one line's worth of room, so it
       steps back down to keep the topbar on one row on a small phone. */
    font-size: 1.1rem;
  }

  .brand-name span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* ---------- mobile navigation ----------
   The links live in the markup, so with no script the nav still works: the
   `.js-nav` class on <html> (added by js/nav.js) is what lets these rules hide
   the panel on small screens and show it only when the Menu button opens it. */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.nav-toggle svg {
  display: block;
}

.nav-toggle:hover {
  background: var(--panel-2);
}

@media (max-width: 780px) {
  html.js-nav .nav-toggle {
    display: inline-flex;
  }

  html.js-nav .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding: 0.55rem clamp(1rem, 4vw, 2rem) 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.14);
  }

  html.js-nav .site-nav[data-open="true"] {
    display: flex;
  }

  html.js-nav .site-nav a {
    display: block;
    padding: 0.7rem 0.6rem;
    font-size: 1rem;
  }

  /* Every link is reachable from the panel now, so nothing is hidden. */
  html.js-nav .site-nav a[data-nav-secondary] {
    display: block;
  }

  html.js-nav .site-nav .btn-nav {
    justify-content: center;
    margin-top: 0.4rem;
    padding: 0.7rem 1rem;
    text-align: center;
  }
}

/* ---- Colour schemes (wizard step 1) --------------------------------------
   A palette is a brand seed the engine derives every other token from, so the
   swatch shows the three real seeds rather than a decorative gradient. */

.palette-field {
  margin: 1.1rem 0 0.5rem;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.palette-field legend {
  padding: 0 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.palette-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.palette-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}

.palette-option:hover {
  border-color: var(--muted);
}

.palette-option[aria-pressed='true'] {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.palette-option .palette-name {
  font-weight: 700;
  line-height: 1.15;
}

/* Applies to a catalogue button and the custom row alike: the hint sits on its
   own line under the name. Scoping this to .palette-option left the custom row's
   <em> inline, so it read "Your ownany two colours". */
.palette-name em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--muted);
}

.palette-swatch {
  display: inline-flex;
  flex: 0 0 auto;
}

.palette-swatch i {
  display: block;
  width: 16px;
  height: 26px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-right: 0;
}

.palette-swatch i:first-child {
  border-radius: 4px 0 0 4px;
}

.palette-swatch i:last-child {
  border-right: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 0 4px 4px 0;
}

/* Any-colour picker: spans the grid and mirrors the pressed treatment of a
   palette button, so it reads as one more option rather than a separate form. */
.palette-custom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.6rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.palette-custom[data-active='true'] {
  border-style: solid;
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.palette-custom .palette-swatch i {
  height: 22px;
}

.palette-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}

.palette-pick input[type='color'] {
  width: 36px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: none;
  cursor: pointer;
}
