/* ============== Kings Roofing — Roof Generator ============== */
:root {
  --bg: #ffffff;
  --bg-2: #1a1a21;
  --bg-3: #22222c;
  --bg-card: #ffffffbf;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --ink: #131414;
  --ink-2: #595959;
  --ink-3: #807e90;
  --accent: #7c3aed;
  --accent-2: #9b5cff;
  --accent-deep: #5b16a8;
  --accent-soft: rgba(124, 58, 237, 0.16);
  --gold: #f4b63e;
  --good: #37d08a;
  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --display: "Rethink Sans", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
}
::selection {
  background: var(--accent);
  color: #fff;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
input {
  font-family: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}

.app {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 50px;
}

/* ---------- Display type ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.98;
  /* text-transform: uppercase; */
  margin: 0;
}
.accent-text {
  color: var(--accent-2);
}
.accent-underline {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-2);
  text-decoration-thickness: 0.085em;
  text-underline-offset: 0.1em;
  text-decoration-skip-ink: none;
}
/* heading style variants */
.h1.hstyle-mixed {
  text-transform: none;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.h1.hstyle-mixed .accent-text,
.h1.hstyle-mixed .accent-underline {
  text-decoration: none;
  color: var(--accent-2);
}
.h1.hstyle-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  text-stroke: 1.5px var(--ink);
}
.h1.hstyle-outline .accent-text,
.h1.hstyle-outline .accent-underline {
  -webkit-text-stroke: 0;
  text-stroke: 0;
  color: var(--accent-2);
  text-decoration: none;
}
.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow.accent {
  color: var(--accent-2);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(19, 19, 24, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  height: 40px;
  width: auto;
}
.brand .est {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #ffffffbf;
  border-left: 1px solid var(--line-2);
  padding-left: 12px;
  font-weight: 700;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.topnav a {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.topnav a:hover {
  color: var(--accent);
}
.callbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}
.callbox .dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(55, 208, 138, 0.18);
}
.callbox .num {
  font-size: 15px;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}
.callbox .label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #ffffffbf;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: 99px;
  text-decoration: none;
  transition:
    transform 0.12s,
    box-shadow 0.2s,
    background 0.2s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(124, 58, 237, 0.8);
}
.btn-primary:hover {
  background: #8744f0;
  box-shadow: 0 14px 32px -10px rgba(124, 58, 237, 0.95);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 26px -10px rgba(124, 58, 237, 0.8);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn .arrow {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.btn-lg {
  padding: 17px 30px;
  font-size: 15.5px;
}

/* ---------- Marquee credential strip ---------- */
.marquee {
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.mq-track {
  display: flex;
  width: max-content;
  animation: mq 34s linear infinite;
}
.mq-run {
  display: flex;
  flex-shrink: 0;
}
.mq-item {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 0 24px;
  height: 46px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffffbf;
  white-space: nowrap;
}
.mq-dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent-2);
  transform: rotate(45deg);
  flex-shrink: 0;
}
@keyframes mq {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mq-track {
    animation: none;
  }
}

/* ---------- Progress steps ---------- */
.steps {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
}
.step + .step {
  border-left: 1px solid var(--line);
}
.step.active {
  background: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0.14),
    rgba(124, 58, 237, 0.04)
  );
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  flex-shrink: 0;
}
.step.active .step-num {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.step.done .step-num {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
.step-meta .k {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.step-meta .v {
  font-size: 14px;
  font-weight: 700;
}
.step.active .step-meta .v {
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  right: -180px;
  top: -260px;
  border-radius: 99px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.28),
    transparent 62%
  );
  filter: blur(8px);
}
.hero-bg::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -200px;
  bottom: -260px;
  border-radius: 99px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.14),
    transparent 60%
  );
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  padding: 60px 0 80px;
}
.hero-grid.split {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}
.hero-grid.stacked {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  text-align: center;
}
.hero-copy .pill-badge {
  margin-bottom: 22px;
}
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 58, 237, 0.32);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 15px;
  border-radius: 99px;
}
.pill-badge .tick {
  width: 15px;
  height: 15px;
}
.h1 {
  font-size: clamp(40px, 5.4vw, 72px);
}
.hero-sub {
  color: var(--ink-2);
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 30em;
  margin: 22px 0 0;
  line-height: 1.55;
}
.hero-grid.stacked .hero-sub {
  margin-left: auto;
  margin-right: auto;
}
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 26px;
  font-weight: 600;
}
.crumbs b {
  color: var(--ink-2);
}
.hero-grid.stacked .crumbs {
  justify-content: center;
}

/* trust row */
.trust {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero-grid.stacked .trust {
  justify-content: center;
}

/* showcase layout */
.showcase-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 34px;
  border: 1px solid var(--line);
}
.showcase-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: brightness(0.42) saturate(0.9);
}
.showcase-inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 66px 28px;
  background: linear-gradient(
    180deg,
    rgba(19, 19, 24, 0.34),
    rgba(19, 19, 24, 0.86)
  );
}
.showcase-inner .hero-copy {
  max-width: 780px;
}
.showcase-inner .h1 {
  font-size: clamp(34px, 4.6vw, 58px);
}
.showcase-inner .crumbs {
  justify-content: center;
}
.trust-item {
  display: flex;
  gap: 12px;
  align-items: center;
}
.trust-ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent-2);
  flex-shrink: 0;
}
.trust-tx .t {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
}
.trust-tx .s {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}
.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--gold);
}

/* ---------- Generator card ---------- */
.gen-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.gen-section {
  padding: 26px 28px;
}
.gen-section + .gen-section {
  border-top: 1px solid var(--line);
}
.gen-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}
.gen-head .n {
  width: 27px;
  height: 27px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.gen-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.gen-note {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 16px;
  line-height: 1.5;
}

.seg {
  display: flex;
  gap: 8px;
  background: #f1f1f4;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 5px;
  margin-bottom: 16px;
}
.seg button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 8px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: 0.15s;
  white-space: nowrap;
}
.seg button .ic {
  width: 17px;
  height: 17px;
}
.seg button.on {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(124, 58, 237, 0.9);
}
.seg .tag {
  font-size: 9px;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 7px;
  border-radius: 99px;
  text-transform: uppercase;
}

.field {
  position: relative;
}
.input-wrap {
  position: relative;
}
.input-wrap .ic {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  width: 19px;
  height: 19px;
  pointer-events: none;
}
.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 13px;
  padding: 16px 16px 16px 44px;
  color: var(--ink);
  font-size: 15px;
  transition: 0.15s;
}
.field input::placeholder {
  color: var(--ink-3);
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 11px;
  line-height: 1.5;
}

.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.suggest button {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  font-size: 14px;
  transition: 0.12s;
}
.suggest button:hover {
  background: rgba(124, 58, 237, 0.16);
}
.suggest button + button {
  border-top: 1px solid var(--line);
}
.suggest .pin {
  color: var(--accent-2);
  width: 16px;
  flex-shrink: 0;
}

/* upload */
.dropzone {
  border: 1.5px dashed var(--line-2);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: 0.18s;
  background: #f1f1f4;
}
.dropzone.drag {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone .up-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-3);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--accent-2);
}
.dropzone h4 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 700;
}
.dropzone p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
}
.dropzone .pick {
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: underline;
}
.thumb-pick {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 13px;
  padding: 12px;
}
.thumb-pick img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}
.thumb-pick .tx {
  flex: 1;
}
.thumb-pick .tx .t {
  font-weight: 700;
  font-size: 13.5px;
}
.thumb-pick .tx .s {
  font-size: 11.5px;
  color: var(--ink-3);
}
.thumb-pick .x {
  color: var(--ink-3);
  padding: 6px;
  border-radius: 8px;
}
.thumb-pick .x:hover {
  background: var(--bg-3);
  color: var(--ink);
}

/* colour swatches */
.cat-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin: 0 0 14px;
}
.sw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
}
.swatch {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-3);
  transition: 0.16s;
  position: relative;
}
.swatch:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.swatch.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transform: translateY(-2px);
}
.swatch .chip {
  display: block;
  width: 100%;
  height: 100px;
  position: relative;
}
.swatch .chip .pop {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(19, 19, 24, 0.7);
  backdrop-filter: blur(6px);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 99px;
  color: #fff;
}
.swatch .chip .pop .d {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--accent-2);
}
.swatch .chip .check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 21px;
  height: 21px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  display: none;
  place-items: center;
  font-size: 12px;
}
.swatch.on .chip .check {
  display: grid;
}
.swatch .meta {
  padding: 10px 11px 12px;
}
.swatch .meta .nm {
  font-weight: 700;
  font-size: 13px;
}
.swatch .meta .sub {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 5px;
}
.swatch .meta .hex {
  font-size: 11px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}

/* chips variant */
.sw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-sw {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  transition: 0.15s;
}
.chip-sw:hover {
  border-color: var(--line-2);
}
.chip-sw.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.chip-sw .dot {
  width: 26px;
  height: 26px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.chip-sw .nm {
  font-weight: 700;
  font-size: 13px;
}

/* finish tabs */
.finish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 22px 0 4px;
}
.finish-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 4px;
}
.finish-tabs button {
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-2);
  transition: 0.15s;
}
.finish-tabs button.on {
  background: var(--ink);
  color: var(--bg);
}
.finish-note {
  font-size: 12.5px;
  color: var(--ink-3);
  max-width: 24em;
}

/* sticky bar */
.sticky-bar {
  position: sticky;
  bottom: 16px;
  z-index: 30;
  margin: 22px 0 0;
}
.sticky-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding: 11px 11px 11px 18px;
  box-shadow: var(--shadow);
}
.sticky-sel {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1;
  min-width: 0;
}
.sticky-sel .swdot {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  flex-shrink: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.06) 0 6px,
    transparent 6px 12px
  );
}
.sticky-sel .tx {
  min-width: 0;
}
.sticky-sel .tx .t {
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-sel .tx .s {
  font-size: 11.5px;
  color: var(--ink-3);
}

/* ---------- Modal / forms ---------- */
.flow-wrap {
  padding: 46px 0 70px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
  transition: 0.15s;
}
.back-link:hover {
  color: var(--ink);
}
.flow-addr {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 6px 0 0;
}
.flow-eyebrow {
  margin-bottom: 6px;
}

.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
  gap: 24px;
  margin-top: 30px;
  align-items: start;
}
.stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c0c10;
  aspect-ratio: 1/1;
}
.stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.stage-blur {
  filter: blur(16px) brightness(0.7);
  transform: scale(1.1);
}
.stage-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 38%,
    transparent,
    rgba(8, 8, 12, 0.55)
  );
  display: grid;
  place-items: center;
  padding: 24px;
}

.code-card {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 30px;
  width: 100%; /* fill the column so the form matches the "Your selection" card width */
  box-shadow: var(--shadow);
}
.lock-ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 58, 237, 0.3);
  display: grid;
  place-items: center;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.code-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.code-card p {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.code-card p b {
  color: var(--ink);
}
.otp {
  display: flex;
  gap: 9px;
  margin-bottom: 18px;
}
.otp input {
  width: 100%;
  aspect-ratio: 1;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  color: var(--ink);
  transition: 0.15s;
}
.otp input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.otp input.filled {
  border-color: var(--accent-2);
  background: var(--accent-soft);
}
.code-links {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}
.code-links button {
  color: var(--ink-3);
  font-weight: 600;
}
.code-links button:hover {
  color: var(--accent-2);
}

/* lead form */
.lead-form {
  display: grid;
  gap: 14px;
}
.lead-form .fl-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
.lead-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 7px;
}
.lead-field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 14.5px;
  transition: 0.15s;
}
.lead-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.5;
}
.consent input {
  margin-top: 2px;
  accent-color: var(--accent);
}

/* selection sidebar */
.sel-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sel-card .sel-h {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.sel-card .sel-h .k {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
}
.sel-body {
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.sel-body .big {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  flex-shrink: 0;
}
.sel-body .nm {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.sel-body .sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
}
.sel-foot {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* result reveal */
.reveal {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c0c10;
  aspect-ratio: 1/1;
  user-select: none;
}
.reveal canvas,
.reveal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reveal .after-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.reveal .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.5);
  z-index: 5;
  cursor: ew-resize;
}
.reveal .handle .grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 99px;
  background: #fff;
  color: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  font-size: 15px;
}
.reveal .lbl {
  position: absolute;
  bottom: 14px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 99px;
  background: rgba(12, 12, 16, 0.72);
  backdrop-filter: blur(6px);
  z-index: 4;
  white-space: nowrap;
}
.reveal .lbl.before {
  left: 14px;
  color: var(--ink-2);
}
.reveal .lbl.after {
  right: 14px;
  color: #fff;
  background: var(--accent);
}
.render-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  /* Semi-transparent scrim so the user's home shows THROUGH the loader
     (instant preview) instead of being hidden behind a solid panel. */
  background: rgba(10, 10, 16, 0.42);
  backdrop-filter: blur(2px);
  z-index: 8;
}
.spinner {
  width: 46px;
  height: 46px;
  border-radius: 99px;
  border: 3px solid var(--line-2);
  border-top-color: var(--accent-2);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-tx {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
}
.loading-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(260px, 66%);
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.45s ease;
}

/* result colour rail */
.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: 24px;
  margin-top: 26px;
  align-items: start;
}
.try-rail {
  margin-top: 18px;
}
.try-rail .lab {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 12px;
}
.rail-sw {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.rail-sw button {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
}
.rail-sw .d {
  width: 52px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  transition: 0.15s;
}
.rail-sw.on .d,
.rail-sw button.on .d {
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-color: var(--accent);
}
.rail-sw .n {
  font-size: 9.5px;
  color: var(--ink-3);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* quote CTA */
.quote-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.3);
  margin: 34px 0 0;
  padding: 46px 48px;
}
.quote-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 340px;
  height: 340px;
  border-radius: 99px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 62%);
}
.quote-cta .inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}
.quote-cta h2 {
  font-size: clamp(26px, 3vw, 40px);
  max-width: 14em;
}
.quote-cta p {
  color: var(--ink-2);
  font-size: 15px;
  margin: 14px 0 0;
  max-width: 34em;
}
.quote-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 30px 0;
  background: rgba(19, 19, 24, 0.82);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #ffffffbf;
}
.foot-inner img {
  height: 30px;
  opacity: 0.9;
}

/* loading dots */
.dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--accent-2);
  margin: 0 2px;
  animation: bp 1s infinite ease-in-out;
}
.dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.dots span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes bp {
  0%,
  80%,
  100% {
    transform: scale(0.5);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeUp 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes fadeUp {
  from {
    transform: translateY(16px);
  }
  to {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
  }
}

/* Top View / Street View radio (under the address input) */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.view-toggle .vt-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}
.view-toggle label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.15s;
}
.view-toggle label.on {
  color: var(--ink);
}
.view-toggle input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.gen-foot {
  padding: 0 28px 24px;
}

/* ============== Responsive ============== */
/* Tablet landscape */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 36px;
    padding: 48px 0 64px;
  }
  .quote-cta {
    padding: 40px 36px;
  }
  .quote-cta h2 {
    max-width: none;
  }
}
/* Tablet portrait — stack the two-column layouts */
@media (max-width: 980px) {
  .app {
    padding: 0 30px;
  } /* tablet gutters */
  .hero-grid.split {
    grid-template-columns: 1fr;
  }
  .hero-grid.split .hero-copy {
    max-width: 680px;
  }
  .flow-grid {
    grid-template-columns: 1fr;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .topnav {
    display: none;
  }
}
/* Large phone / small tablet */
@media (max-width: 700px) {
  .hero-grid {
    padding: 34px 0 48px;
    gap: 26px;
  }
  .h1 {
    font-size: clamp(34px, 8vw, 52px);
  }
  .hero-sub {
    font-size: 16px;
  }
  /* lead / verify: let the form flow instead of being clipped by the fixed-ratio stage */
  .stage {
    aspect-ratio: auto;
    background: none;
    border: none;
    overflow: visible;
  }
  .stage-blur {
    display: none;
  }
  .stage-overlay {
    position: static;
    background: none;
    padding: 0;
    display: block;
  }
  .code-card {
    max-width: none;
  }
  /* topbar: drop the call box, keep brand + quote */
  .callbox {
    display: none;
  }
  .quote-cta .inner {
    gap: 22px;
  }
  .quote-actions {
    width: 100%;
  }
  .quote-actions .btn {
    flex: 1;
    justify-content: center;
  }
}
/* Phones */
@media (max-width: 560px) {
  .app {
    padding: 0 20px;
  } /* mobile gutters */
  .topbar-inner {
    height: 62px;
  }
  .brand img {
    height: 32px;
  }
  .brand .est {
    display: none;
  }
  .btn {
    padding: 11px 16px;
    font-size: 13px;
  }
  .btn-lg {
    padding: 14px 20px;
    font-size: 14.5px;
  }
  .mq-item {
    padding: 0 18px;
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }
  .gen-section {
    padding: 20px 16px;
  }
  .gen-foot {
    padding: 0 16px 18px;
  }
  .gen-head h3 {
    font-size: 16.5px;
  }
  .seg .tag {
    display: none;
  }
  .seg button {
    font-size: 12.5px;
    padding: 10px 6px;
    gap: 6px;
  }
  .sw-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
  }
  .swatch .chip {
    height: 64px;
  }
  .finish-row {
    margin-top: 16px;
  }
  .finish-note {
    display: none;
  }
  .lead-form .fl-row {
    grid-template-columns: 1fr;
  }
  .code-card {
    padding: 24px 20px;
  }
  .otp {
    gap: 6px;
  }
  .otp input {
    font-size: 18px;
  }
  .flow-wrap {
    padding: 30px 0 54px;
  }
  .quote-cta {
    padding: 26px 20px;
  }
  .quote-cta h2 {
    font-size: clamp(22px, 6vw, 30px);
  }
  .step-meta .k {
    display: none;
  }
  .sticky-bar {
    bottom: 12px;
  }
  .sticky-inner {
    padding: 9px 9px 9px 14px;
    gap: 12px;
  }
  .sticky-sel .swdot {
    width: 36px;
    height: 36px;
  }
  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
/* Very small phones */
@media (max-width: 380px) {
  .sw-grid {
    grid-template-columns: 1fr 1fr;
  }
  .seg {
    flex-direction: column;
  }
}

/* ============================================================
   Light theme for the generator form (.gen-card) and the
   lead / OTP form (.code-card). Cards become white with
   light-grey inputs and dark text. The "Use my address"
   segmented toggle intentionally stays dark (matches mockup).
   ============================================================ */
.gen-card {
  background: #ffffff;
  border-color: #e6e6ea;
  box-shadow: 0 24px 60px -28px rgba(20, 20, 30, 0.35);
}
.gen-section + .gen-section {
  border-top-color: #ececf0;
}
.gen-head h3 {
  color: #1c1c24;
}
.gen-note {
  color: #6c6c78;
}

/* address field */
.gen-card .field input {
  background: #f1f1f4;
  border-color: #dcdce3;
  color: #1c1c24;
}
.gen-card .field input::placeholder {
  color: #9a9aa6;
}
.gen-card .field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.gen-card .input-wrap .ic {
  color: #9a9aa6;
}
.gen-card .field-hint {
  color: #8a8a96;
}

/* address suggestions dropdown */
.gen-card .suggest {
  background: #ffffff;
  border-color: #dcdce3;
  box-shadow: 0 24px 60px -28px rgba(20, 20, 30, 0.35);
}
.gen-card .suggest button {
  color: #1c1c24;
}
.gen-card .suggest button:hover {
  background: rgba(124, 58, 237, 0.08);
}
.gen-card .suggest button + button {
  border-top-color: #ececf0;
}

/* Top view / Street view radio */
.gen-card .view-toggle .vt-label {
  color: #6c6c78;
}
.gen-card .view-toggle label {
  color: #55555f;
}
.gen-card .view-toggle label.on {
  color: #1c1c24;
}

/* colour swatches */
.gen-card .swatch {
  background: #ffffff;
  border-color: #e6e6ea;
}
.gen-card .swatch:hover {
  border-color: #cfcfd8;
}
.gen-card .swatch .meta .nm {
  color: #1c1c24;
}
.gen-card .swatch .meta .sub {
  color: #9a9aa6;
}
.gen-card .swatch .meta .hex {
  color: #6c6c78;
}

/* finish tabs (light track, dark active pill) */
.gen-card .finish-tabs {
  background: #f1f1f4;
  border-color: #e6e6ea;
}
.gen-card .finish-tabs button {
  color: #55555f;
}
.gen-card .finish-tabs button.on {
  background: #131318;
  color: #ffffff;
}
.gen-card .finish-note {
  color: #8a8a96;
}

/* colour dropdown (compact replacement for the swatch grid) */
.cdrop {
  position: relative;
  width: 100%;
}
.cdrop-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f1f1f4;
  border: 1px solid #dcdce3;
  border-radius: 13px;
  padding: 14px 16px;
  color: #1c1c24;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
}
.cdrop-btn:hover {
  border-color: #cfcfd8;
}
.cdrop.open .cdrop-btn {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.cdrop-dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(20, 20, 30, 0.12);
  flex-shrink: 0;
}
.cdrop-name {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cdrop-hex {
  font-size: 12px;
  color: #8a8a96;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cdrop-caret {
  color: #9a9aa6;
  display: flex;
  transition: transform 0.18s;
}
.cdrop.open .cdrop-caret {
  transform: rotate(180deg);
}
.cdrop-menu {
  /* In normal flow (not absolute) so the card + auto-resizing iframe grow to
     fit it — an absolute popover gets clipped by .gen-card's overflow:hidden. */
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #dcdce3;
  border-radius: 14px;
  box-shadow: 0 18px 40px -24px rgba(20, 20, 30, 0.35);
  padding: 6px;
  max-height: 300px;
  overflow-y: auto;
}
.cdrop-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #1c1c24;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.12s;
  text-align: left;
}
.cdrop-item:hover {
  background: rgba(124, 58, 237, 0.08);
}
.cdrop-item.on {
  background: var(--accent-soft);
}
.cdrop-pop {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
  background: rgba(124, 58, 237, 0.12);
  padding: 3px 7px;
  border-radius: 99px;
  flex-shrink: 0;
}
.cdrop-check {
  color: var(--accent);
  display: flex;
  flex-shrink: 0;
}

/* sticky "render my roof" bar */
.gen-card .sticky-inner {
  background: #ffffff;
  border-color: #e6e6ea;
  box-shadow: 0 18px 40px -20px rgba(20, 20, 30, 0.35);
}
.gen-card .sticky-sel .tx .t {
  color: #1c1c24;
}
.gen-card .sticky-sel .tx .s {
  color: #8a8a96;
}
.gen-card .sticky-sel .swdot {
  border-color: #dcdce3;
}

/* ---- lead / OTP form ---- */
.code-card {
  background: #ffffff;
  border-color: #e6e6ea;
  box-shadow: 0 24px 60px -28px rgba(20, 20, 30, 0.4);
}
.code-card h3 {
  color: #1c1c24;
}
.code-card p {
  color: #55555f;
}
.code-card p b {
  color: #1c1c24;
}
.code-card .lead-field label {
  color: #6c6c78;
}
.code-card .lead-field input {
  background: #f1f1f4;
  border-color: #dcdce3;
  color: #1c1c24;
}
.code-card .lead-field input::placeholder {
  color: #9a9aa6;
}
.code-card .lead-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.code-card .consent {
  color: #6c6c78;
}
.code-card .otp input {
  background: #f1f1f4;
  border-color: #dcdce3;
  color: #1c1c24;
}
.code-card .otp input.filled {
  background: var(--accent-soft);
  border-color: var(--accent-2);
}
.code-card .code-links button {
  color: #8a8a96;
}
.code-card .code-links button:hover {
  color: var(--accent);
}
