/* EstateLoop landing.
   Layout rhythm is inspired by a product-led marketing page:
   cream canvas, a live product window, split headline, alternating
   showcases, tinted steps, and a question list.
   The page UI is monochrome: charcoal #171717, white, and neutral greys.
   Screenshots of the app may still show their own status colors. */

:root {
  --white: #ffffff;
  --canvas: #f6f6f4;
  --charcoal: #171717;
  --graphite: #262626;
  --steel: #525252;
  --fog: #737373;
  --ash: #e5e5e5;
  --line: #e4e4e0;
  --soft: #ececea;
  --neutral-300: #d4d4d4;
  --hover: #f3f3f1;
  --ink: #171717;
  --wash: #f3f3f1;
  --tint: #ececea;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  --window-shadow: 0 24px 60px rgb(23 23 23 / 0.12);
  --max: 1120px;
  --font: ui-sans-serif, system-ui, sans-serif;
  --header: 72px;
  --step: 0;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

input {
  accent-color: var(--charcoal);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.chip:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--charcoal);
}

::selection {
  background: var(--wash);
  color: var(--charcoal);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 40;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--white);
  padding: 10px 16px;
  font-weight: 600;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap {
    width: min(100% - 64px, var(--max));
  }
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-top: 12px;
  background: transparent;
  border: 0;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 12px 8px 16px;
  border-radius: 28px;
  background: #efefeb;
  box-shadow: 0 8px 24px rgb(23 23 23 / 0.05);
}

.site-header.is-scrolled .header-inner {
  background: rgb(239 239 235 / 0.88);
  box-shadow: 0 14px 36px rgb(23 23 23 / 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border-radius: 8px;
}

.brand img,
.footer-brand img {
  width: auto;
  height: 32px;
}

.brand-name,
.footer-brand {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.nav-section,
.nav-text,
.header-signin {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-section:hover,
.nav-text:hover,
.header-signin:hover {
  background: rgb(255 255 255 / 0.8);
}

.nav-section[aria-current="true"] {
  background: var(--white);
  box-shadow: var(--shadow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-signin {
  display: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--charcoal);
  border-radius: 2px;
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -5px;
}

.menu-bars::after {
  top: 5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--white);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
}

.btn-primary:hover {
  background: var(--graphite);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgb(23 23 23 / 0.16);
}

.btn:active {
  transform: translateY(1px);
}

.btn-soft {
  background: var(--soft);
  color: var(--charcoal);
}

.btn-soft:hover {
  background: #e3e3df;
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--neutral-300);
  background: var(--white);
}

.arrow {
  width: 0.45em;
  height: 0.45em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.btn:hover .arrow,
.text-link:hover .arrow {
  transform: translate(2px, -2px) rotate(45deg);
}

.hero {
  padding-bottom: 24px;
}

.stage {
  margin-top: 12px;
  border-radius: 28px;
  padding: 28px 16px 0;
  background-color: var(--wash);
  background-image:
    linear-gradient(to right, rgb(23 23 23 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(23 23 23 / 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.app-window {
  max-width: 980px;
  margin: 0 auto -42px;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--window-shadow);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.18s ease;
}

.app-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.traffic {
  display: inline-flex;
  gap: 5px;
}

.traffic i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--ash);
}

.chrome-title {
  font-size: 13px;
  font-weight: 600;
}

.chrome-note {
  margin-left: auto;
  color: var(--fog);
  font-size: 12px;
}

.app-body {
  display: grid;
  min-height: 340px;
}

.app-nav {
  display: flex;
  gap: 6px;
  padding: 10px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.tab {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: var(--wash);
}

.app-main {
  padding: 18px 16px 20px;
}

.panel-kicker {
  margin: 0;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 600;
}

.panel-title {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.panel-note,
.section-copy,
.steps-head p,
.close p,
.faq p {
  color: var(--steel);
}

.panel-note {
  margin: 12px 0 0;
  font-size: 14px;
}

.mock-list,
.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.mock-list li,
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  font-weight: 550;
}

.mock-list li:first-child,
.check-list li:first-child {
  border-top: 0;
}

.avatar {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 99px;
  background: var(--wash);
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 700;
}

.tag {
  margin-left: auto;
  border-radius: 99px;
  background: var(--hover);
  padding: 2px 8px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 600;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
}

.check-list input {
  width: 16px;
  height: 16px;
  accent-color: var(--charcoal);
}

.check-list input:checked + span,
.check-list label:has(input:checked) {
  color: var(--fog);
  text-decoration: line-through;
}

.message {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--hover);
}

.message-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fog);
}

.message p:last-child {
  margin: 0;
}

.hero-copy {
  display: grid;
  gap: 18px;
  padding-top: 78px;
}

.display {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 {
  font-size: 42px;
}

.lead,
.section-copy,
.steps-head p,
.close p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.fine-print {
  max-width: 36rem;
  margin: 14px 0 0;
  color: var(--steel);
  font-size: 14px;
}

.fine-print a,
.text-link {
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section,
#features {
  padding-block: 72px;
  scroll-margin-top: 112px;
}

#features {
  padding-block: 0;
}

.kicker {
  margin: 0 0 10px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 600;
}

.section h2,
.steps h2,
.close h2,
.faq-layout h2 {
  font-size: 36px;
}

.section-copy {
  margin-top: 14px;
}

.split {
  display: grid;
  gap: 28px;
  align-items: center;
}

.board {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  padding: 16px;
  box-shadow: var(--shadow);
}

.board-label {
  margin: 0 0 12px;
  color: var(--steel);
  font-size: 13px;
}

.lanes {
  display: grid;
  gap: 10px;
}

.lane {
  border: 1px dashed var(--neutral-300);
  border-radius: 16px;
  padding: 10px;
  min-height: 118px;
  background: var(--canvas);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lane.is-over,
.lane:has(input:checked) {
  border-style: solid;
  border-color: var(--charcoal);
  background: var(--wash);
}

.lane-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.lane-label input {
  accent-color: var(--charcoal);
}

.lane-drop {
  min-height: 64px;
  margin-top: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 20px rgb(23 23 23 / 0.08);
  font-weight: 650;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.chip.is-dragging {
  cursor: grabbing;
  box-shadow: 0 16px 30px rgb(23 23 23 / 0.16);
}

.book-stage {
  border-radius: 28px;
  background: var(--wash);
  padding: 28px 20px;
}

.point-cards {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.point-cards li {
  border-radius: 16px;
  background: var(--white);
  padding: 16px;
}

.point-cards strong {
  display: block;
  margin-bottom: 4px;
}

.point-cards span {
  color: var(--steel);
  font-size: 15px;
}

.steps-head {
  max-width: 36rem;
}

.steps-head p {
  margin-top: 12px;
}

.step-track {
  height: 3px;
  margin-top: 28px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.step-thumb {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: var(--charcoal);
  transform: translateX(calc(var(--step) * 100%));
  transition: transform 0.45s ease;
}

.step-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 22px;
  background: var(--white);
  padding: 22px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.step-grid li:nth-child(1) .step-card {
  background: var(--wash);
}

.step-grid li:nth-child(3) .step-card {
  background: var(--tint);
}

.step-card[aria-current="step"] {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgb(23 23 23 / 0.08);
}

.step-num {
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.step-grid li:nth-child(3) .step-num {
  color: var(--charcoal);
}

.step-name {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.step-copy {
  margin-top: 8px;
  color: var(--steel);
  font-size: 15px;
  line-height: 1.45;
}

.faq-layout {
  display: grid;
  gap: 18px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-right: 1.5px solid var(--charcoal);
  border-bottom: 1.5px solid var(--charcoal);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
}

.faq p {
  margin: 0 0 16px;
  max-width: 62ch;
}

.close {
  padding-top: 20px;
}

.close-inner {
  text-align: center;
}

.close h2,
.close p {
  margin-inline: auto;
}

.close p {
  max-width: 34rem;
  margin-top: 12px;
}

.close-actions {
  justify-content: center;
}

.site-footer {
  padding-bottom: 28px;
}

.footer-panel {
  display: grid;
  gap: 22px;
  border-radius: 28px;
  background: #efefeb;
  padding: 28px 22px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-copy {
  margin: 0;
  color: var(--steel);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-content: end;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav a:hover {
  color: var(--charcoal);
}

.footer-side {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.footer-label {
  display: block;
  margin: 0 0 6px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 650;
}

.legal {
  padding-top: 36px;
  padding-bottom: 80px;
}

.legal h1 {
  max-width: 16ch;
  font-size: 40px;
}

.legal-meta,
.legal p,
.legal li {
  max-width: 68ch;
  color: var(--steel);
}

.legal-meta {
  margin: 14px 0 0;
}

.legal h2 {
  margin: 2.2rem 0 0.6rem;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.legal h2,
.legal h1 {
  color: var(--charcoal);
}

.legal p,
.legal ul,
.legal ol {
  margin: 0.7rem 0 0;
}

.legal ul,
.legal ol {
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

.legal a {
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.toc ol {
  margin: 8px 0 0;
}

.toc a {
  font-weight: 550;
}

@media (min-width: 720px) {
  .legal h1 {
    font-size: 56px;
  }
}

.missing {
  padding-block: 64px 120px;
}

.missing h1 {
  font-size: 44px;
}

.missing p {
  max-width: 32rem;
  color: var(--steel);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 720px) {
  .hero h1,
  .section h2,
  .steps h2,
  .close h2,
  .faq-layout h2 {
    font-size: 56px;
  }

  .stage {
    padding: 42px 28px 0;
  }

  .app-body {
    grid-template-columns: 210px minmax(0, 1fr);
    min-height: 390px;
  }

  .app-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: visible;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 12px;
  }

  .tab {
    justify-content: flex-start;
    border-radius: 10px;
  }

  .app-main {
    padding: 28px 28px 24px;
  }

  .panel-title {
    font-size: 28px;
  }

  .hero-copy {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 40px;
    align-items: end;
    padding-top: 88px;
  }

  .lanes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .book-stage {
    padding: 48px;
  }

  .step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .faq-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .footer-panel {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 36px 36px;
  }
}

@media (min-width: 980px) {
  .split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
  }

  .header-signin {
    display: inline-flex;
  }

  .nav .nav-text {
    display: none;
  }

  .section {
    padding-block: 104px;
  }
}

@media (max-width: 979px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav.is-collapsible {
    display: none;
  }

  .nav.is-collapsible.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    margin: 0;
    padding: 8px;
    border: 0;
    border-radius: 22px;
    background: #efefeb;
    box-shadow: 0 14px 36px rgb(23 23 23 / 0.1);
  }

  .nav.is-collapsible.is-open .nav-section,
  .nav.is-collapsible.is-open .nav-text {
    display: flex;
  }
}

@media (max-width: 380px) {
  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .close-actions .btn {
    width: auto;
  }
}

@media (forced-colors: active) {
  .btn-primary,
  .chip,
  .app-window {
    border: 1px solid ButtonText;
  }
}

.shot-shell {
  max-width: 980px;
  margin: 0 auto -42px;
}

.shot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.shot-tabs {
  display: flex;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.shot-bar,
.stage,
.shot-shell {
  min-width: 0;
  max-width: 100%;
}

.shot-tab,
.b-step {
  flex: none;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.55);
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.shot-tab[aria-selected="true"],
.b-step[aria-selected="true"] {
  background: var(--charcoal);
  color: var(--white);
}

.shot-jump {
  flex: none;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shot-frame,
.shot-card {
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--window-shadow);
  overflow: hidden;
}

.shot-frame img,
.shot-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: left top;
  transition: opacity 0.2s ease;
}

@media (min-width: 800px) {
  .shot-frame img {
    height: 460px;
  }

  .shot-card img {
    height: 380px;
  }
}

@media (max-width: 720px) {
  .shot-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .shot-jump {
    display: none;
  }
}

.shot-frame img.is-fading {
  opacity: 0.45;
}

.builder-intro {
  max-width: 40rem;
  margin-bottom: 28px;
}

.builder {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  padding: 16px;
  box-shadow: var(--shadow);
}

.builder-kicker {
  margin: 0 0 8px;
  color: var(--fog);
  font-size: 13px;
}

.builder-steps {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.b-step span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  place-items: center;
  border-radius: 99px;
  background: var(--ash);
  font-size: 11px;
}

.b-step[aria-selected="true"] span {
  background: var(--white);
  color: var(--charcoal);
}

.builder-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.b-panel h3,
.email-top p {
  margin: 0;
}

.b-panel h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.b-panel p,
.builder-real {
  color: var(--steel);
}

.aud-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.aud {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--white);
}

.aud:has(input:checked) {
  border-color: var(--charcoal);
  box-shadow: inset 0 0 0 1px var(--charcoal);
}

.recip {
  font-weight: 650;
}

.write-meta,
.device-row,
.mode-row,
.width-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.field {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}

.field input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  font-weight: 500;
}

.merge-hint,
.hint,
.ongoing-note {
  color: var(--steel);
  font-size: 13px;
}

.template-btn,
.mode-row button,
.device-row button,
.width-row button,
.ghost {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  min-height: 36px;
  padding: 6px 12px;
  cursor: pointer;
}

.mode-row button[aria-pressed="true"],
.device-row button[aria-pressed="true"],
.width-row button[aria-pressed="true"],
.ghost[aria-pressed="true"] {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.template-menu {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.template-menu button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  padding: 8px 10px;
  cursor: pointer;
}

.saved {
  margin-left: auto;
  color: var(--fog);
  font-size: 13px;
}

.designer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f3f3f1;
  padding: 10px;
}

.designer.is-settings {
  grid-template-columns: 52px minmax(0, 1fr);
}

.block-rail {
  display: flex;
  flex-flow: row wrap;
  gap: 8px;
}

.block-rail button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: grab;
  font-size: 14px;
  font-weight: 650;
  touch-action: none;
}

.canvas-col {
  min-width: 0;
}

.canvas {
  width: min(100%, var(--mail-width, 600px));
  margin: 12px auto 0;
  border: 1px dashed #c8c8c4;
  border-radius: 12px;
  background: var(--white);
  padding: 18px 16px;
}

.canvas[data-device="mobile"] {
  width: min(100%, 280px);
}

.canvas.is-over {
  border-color: var(--charcoal);
  background: var(--wash);
}

.canvas-title {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.canvas-hi,
.canvas-copy {
  margin: 0 0 8px;
}

.merge.is-filled {
  border-radius: 4px;
  background: var(--wash);
  padding: 0 4px;
}

.dropped {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  border-radius: 10px;
  background: var(--canvas);
  padding: 8px 10px;
}

.dropped button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--steel);
}

.settings-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 12px;
}

.settings-panel h4 {
  margin: 0 0 8px;
}

.review-mail {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--canvas);
}

.review-mail p {
  margin: 0 0 6px;
}

.review-body {
  margin-top: 10px;
  border-radius: 12px;
  background: var(--white);
  padding: 14px;
}

.auto-card {
  margin-top: 16px;
  border-radius: 16px;
  background: var(--wash);
  padding: 14px 16px;
}

.auto-card h4,
.auto-card p,
.auto-card ol {
  margin: 0;
}

.auto-card ol {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.auto-card li {
  border-radius: 10px;
  background: var(--white);
  padding: 8px 10px;
}

.editor-shot {
  margin-top: 18px;
}

.editor-shot figcaption {
  padding: 10px 4px 0;
  color: var(--steel);
  font-size: 14px;
}

.builder.is-full {
  position: relative;
  z-index: 5;
}

.builder.is-preview .designer,
.builder.is-preview .field,
.builder.is-preview .merge-hint,
.builder.is-preview .hint,
.builder.is-preview .template-wrap {
  display: none;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.choice-row label,
.subject-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--canvas);
  font-size: 14px;
  font-weight: 600;
}

.choice-row label:has(input:checked) {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
}

.choice-row input {
  accent-color: var(--charcoal);
}

.subject-field {
  display: flex;
  width: min(100%, 420px);
  margin-top: 12px;
  border-radius: 12px;
  font-weight: 500;
}

.subject-field input,
.choice-row input[type="radio"],
.choice-row input[type="checkbox"] {
  margin: 0;
}

.subject-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
}

.email {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--canvas);
  overflow: hidden;
}

.email-top {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.email-top span {
  display: inline-block;
  min-width: 4.5rem;
  color: var(--fog);
  font-weight: 500;
}

.email-sheet {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.block {
  margin: 0;
  border-radius: 12px;
  background: var(--white);
  padding: 12px 14px;
}

.listing-block {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.block[hidden],
.b-panel[hidden],
.listing-block[hidden] {
  display: none;
}

.listing-block span,
.email-foot {
  color: var(--steel);
  font-size: 13px;
}

.email-btn {
  display: inline-flex;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--white);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 650;
}

.email-foot {
  padding: 0 16px 14px;
}

.builder-real {
  max-width: 46rem;
  margin: 18px 0 0;
}

.builder-real a {
  color: var(--charcoal);
  font-weight: 650;
}

.shot-card {
  margin: 0;
}

@media (min-width: 860px) {
  .designer {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .block-rail {
    flex-direction: column;
    align-items: stretch;
  }

  .builder {
    padding: 22px;
  }

  .builder-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    align-items: stretch;
  }

  .email {
    min-height: 320px;
  }
}

.drag-ghost {
  position: fixed;
  z-index: 40;
  transform: translate(-50%, -50%);
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--charcoal);
  color: var(--white);
  font-size: 14px;
  font-weight: 650;
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero .wrap {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    order: -1;
    padding-top: 20px;
  }

  .stage {
    order: 1;
    margin-top: 20px;
    padding: 14px 12px 14px;
  }

  .shot-shell {
    margin: 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions .btn,
  .close-actions .btn {
    width: 100%;
  }

  .shot-frame img,
  .shot-card img {
    height: 220px;
  }

  .shot-tab,
  .menu-toggle,
  .btn-sm,
  .mode-row button,
  .device-row button,
  .width-row button,
  .ghost,
  .template-btn,
  .template-menu button {
    min-height: 44px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .shot-tabs {
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .shot-tab {
    scroll-snap-align: start;
    padding-inline: 14px;
  }

  .builder-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .b-step {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
  }

  .nav.is-collapsible.is-open .nav-section,
  .nav.is-collapsible.is-open .nav-text {
    min-height: 48px;
  }

  .faq summary {
    min-height: 48px;
  }

  .section {
    padding-block: 56px;
  }

  .canvas-title {
    font-size: 22px;
  }
}

@media (min-width: 700px) and (max-width: 899px) {
  .hero h1,
  .section h2,
  .steps h2,
  .close h2,
  .faq-layout h2 {
    font-size: 44px;
  }

  .shot-frame img {
    height: 340px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  .step-card[aria-current="step"] {
    transform: none;
  }
}
