:root {
  --brand-red: #c62836;
  --brand-red-deep: #8f1f29;
  --brand-red-soft: #f1d2d5;
  --ink: #201719;
  --ink-soft: #625758;
  --panel-light: #fffaf4;
  --line: rgba(32, 23, 25, 0.08);
  --shadow-xl: 0 28px 80px rgba(32, 23, 25, 0.14);
  --shadow-soft: 0 16px 40px rgba(32, 23, 25, 0.1);
  --radius-xl: 36px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(198, 40, 54, 0.12), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255, 216, 170, 0.24), transparent 30%),
    #f6efe7;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.page-shell {
  position: relative;
  overflow-x: hidden;
  padding: 28px;
}

.ambient {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.ambient-left {
  top: -8rem;
  left: -10rem;
  background: rgba(255, 206, 154, 0.65);
}

.ambient-right {
  right: -8rem;
  bottom: -10rem;
  background: rgba(198, 40, 54, 0.18);
}

.topbar,
.landing-main,
.success-main {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand-red), var(--brand-red-deep));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-name,
.brand-caption,
.eyebrow,
.mini-kicker,
.mini-label,
.note-pill,
.preview-badge,
.success-badge,
.success-id {
  margin: 0;
}

.brand-name { font-weight: 800; font-size: 1rem; }
.brand-caption { font-size: 0.85rem; color: var(--ink-soft); }

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topnav a {
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(32, 23, 25, 0.04);
  transition: transform 160ms ease, background 160ms ease;
}

.topnav a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.88);
}

.landing-main,
.success-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.split-layout-home { min-height: calc(100vh - 130px); }
.split-layout-form { align-items: stretch; }

.panel {
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.panel-light {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.92)),
    var(--panel-light);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.panel-brand {
  color: #fff5f2;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(150deg, #d43847 0%, #c62836 42%, #8f1f29 100%);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(198, 40, 54, 0.1);
  color: var(--brand-red);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff5f2;
}

h1, h2, h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.1rem); max-width: 12ch; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 14ch; }
h3 { font-size: 1.3rem; }

.owner-question {
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: rgba(255, 245, 242, 0.92);
}

.owner-title {
  max-width: 11ch;
}

.lede,
.form-subtitle,
.success-copy {
  font-size: 1.04rem;
  line-height: 1.7;
  max-width: 62ch;
  color: var(--ink-soft);
}

.success-copy-next {
  margin: 24px auto 0;
  text-align: center;
}

.lede-light { color: rgba(255, 245, 242, 0.84); }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button-row-end { justify-content: flex-end; }
.button-row-center { justify-content: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  cursor: pointer;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-deep));
  color: #fff;
  box-shadow: 0 14px 28px rgba(143, 31, 41, 0.24);
}

.button-primary.button-ready {
  transform: scale(1.05);
  box-shadow: 0 18px 34px rgba(143, 31, 41, 0.3);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border-color: rgba(32, 23, 25, 0.12);
}

.button-light {
  background: #fff8f5;
  color: var(--brand-red-deep);
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  margin-top: 34px;
}

.phone-frame {
  width: min(320px, 100%);
  padding: 16px;
  border-radius: 38px;
  background: #121010;
  box-shadow: 0 30px 60px rgba(32, 23, 25, 0.22);
  transform: rotate(-4deg);
  transform-origin: center center;
}

.phone-notch {
  width: 34%;
  height: 20px;
  margin: 0 auto 10px;
  border-radius: 0 0 14px 14px;
  background: #1f1b1b;
}

.phone-screen {
  position: relative;
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #ca3242 0%, #911d28 60%, #4f0e15 100%);
  color: var(--ink);
}

.phone-view {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.mini-hero {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.mini-hero p {
  margin: 0;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.mini-kicker,
.mini-label,
.note-pill,
.preview-badge,
.success-badge,
.success-id,
.preview-meta {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-hero h2 {
  margin: 8px 0;
  font-size: 2rem;
  max-width: none;
}

.mini-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.mini-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
}

.mini-card strong,
.mini-card small {
  display: block;
}

.mini-card strong { margin-top: 8px; }
.mini-card small { margin-top: 4px; color: rgba(255, 255, 255, 0.75); }

.mini-card-accent {
  background: rgba(255, 248, 242, 0.92);
  color: var(--ink);
}

.mini-card-accent small { color: var(--ink-soft); }

.floating-note {
  position: absolute;
  max-width: 220px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  animation: floaty 4.8s ease-in-out infinite;
  transition:
    background 240ms ease,
    box-shadow 240ms ease;
}

.floating-note p,
.floating-note strong,
.flow-step p,
.flow-step strong,
.metric-card strong,
.metric-card span,
.process-head,
.process-list,
.property-preview p,
.success-panel p,
.timeline-step p,
.timeline-step strong {
  margin: 0;
}

.floating-note-top { top: 38px; right: 12px; }
.floating-note-bottom { left: 0; bottom: 24px; animation-delay: 0.7s; }

.note-pill {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(198, 40, 54, 0.1);
  color: var(--brand-red);
}

.owner-flow,
.metric-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.flow-step,
.metric-card,
.owner-preview-card,
.process-card,
.insight-card,
.property-preview,
.success-panel,
.timeline-card,
.success-card {
  position: relative;
  overflow: hidden;
}

.flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.11);
}

.flow-step span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.flow-step p { margin-top: 4px; color: rgba(255, 245, 242, 0.82); }

.owner-preview-card,
.process-card {
  margin-top: 28px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
}

.preview-line,
.process-head,
.property-preview-head,
.success-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-badge,
.success-badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.preview-meta,
.success-id,
.muted-line {
  color: rgba(255, 245, 242, 0.74);
}

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

.metric-grid-owner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.metric-card,
.insight-card,
.property-preview,
.success-panel,
.timeline-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 245, 242, 0.8);
}

.metric-card-light {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(32, 23, 25, 0.08);
}

.metric-card-light strong {
  color: var(--ink);
}

.metric-card-light span {
  color: var(--ink-soft);
}

.process-list {
  margin-top: 16px;
  padding-left: 18px;
  line-height: 1.7;
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.insight-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.insight-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(198, 40, 54, 0.12);
  color: var(--brand-red);
  font-weight: 800;
}

.panel-brand .metric-card,
.panel-brand .process-card,
.panel-brand .owner-preview-card {
  color: #fff5f2;
}

.panel-brand .metric-card {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

.panel-brand .metric-card span {
  color: rgba(255, 245, 242, 0.8);
}

.preview-meta,
.success-id,
.muted-line {
  color: var(--ink-soft);
}

.owner-preview-card .preview-meta,
.process-card .preview-meta,
.success-panel-brand .preview-meta,
.success-panel-brand .muted-line {
  color: rgba(255, 245, 242, 0.74);
}

.form-header {
  margin-bottom: 24px;
}

.auth-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(198, 40, 54, 0.08);
}

.auth-switch-button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.auth-switch-button.is-active {
  background: #fff;
  color: var(--brand-red-deep);
  box-shadow: 0 8px 18px rgba(32, 23, 25, 0.08);
}

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

.owner-dashboard {
  margin-top: 22px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 18px;
  margin-top: 28px;
}

.dashboard-summary {
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(150deg, #d43847 0%, #c62836 42%, #8f1f29 100%);
  color: #fff5f2;
  box-shadow: var(--shadow-soft);
}

.registered-properties {
  display: grid;
  gap: 14px;
}

.registered-property-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(32, 23, 25, 0.08);
  box-shadow: var(--shadow-soft);
}

.registered-property-card-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 220px;
}

.registered-property-card h3,
.registered-property-card p,
.registered-property-card strong,
.registered-property-card small {
  margin: 0;
}

.registered-property-card h3 {
  margin-top: 12px;
  font-size: 1.42rem;
  max-width: none;
}

.registered-property-card p {
  margin-top: 8px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.registered-property-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.status-chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-chip-active {
  background: rgba(15, 109, 83, 0.12);
  color: #0f6d53;
}

.status-chip-pending {
  background: rgba(198, 40, 54, 0.12);
  color: var(--brand-red);
}

.registered-property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.registered-property-footer small {
  color: var(--ink-soft);
}

.owner-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(198, 40, 54, 0.4);
  box-shadow: 0 0 0 4px rgba(198, 40, 54, 0.08);
  transform: translateY(-1px);
}

.field-full {
  width: 100%;
}

.field-note,
.status-text {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.autocomplete-wrap {
  position: relative;
}

.autocomplete-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(32, 23, 25, 0.08);
  box-shadow: var(--shadow-soft);
  z-index: 12;
}

.autocomplete-item {
  width: 100%;
  text-align: left;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

.autocomplete-item + .autocomplete-item {
  margin-top: 6px;
}

.autocomplete-item:hover,
.autocomplete-item.is-active {
  background: rgba(198, 40, 54, 0.08);
  transform: translateX(3px);
}

.autocomplete-item strong,
.autocomplete-item span {
  display: block;
}

.autocomplete-item span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.property-preview[hidden] {
  display: none;
}

.property-preview-city h3 {
  max-width: none;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(198, 40, 54, 0.1);
  color: var(--brand-red);
  font-size: 0.86rem;
  font-weight: 700;
}

.chip-row-light .chip-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff5f2;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.status-text.is-ready {
  color: #0f6d53;
}

.status-text.is-loading {
  color: var(--brand-red);
}

.status-text.is-error {
  color: #b42318;
}

.success-main {
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 110px);
}

.success-card {
  width: min(1080px, 100%);
  padding: clamp(28px, 5vw, 44px);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.95)),
    #fffaf4;
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.success-panel-brand {
  color: #fff5f2;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(150deg, #d43847 0%, #c62836 42%, #8f1f29 100%);
}

.timeline-card {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.timeline-step span {
  width: 16px;
  height: 16px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-deep));
  box-shadow: 0 0 0 8px rgba(198, 40, 54, 0.08);
}

.timeline-step p {
  margin-top: 4px;
  color: var(--ink-soft);
}

.reveal-card {
  animation: revealUp 620ms ease both;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1120px) {
  .metric-grid,
  .insight-strip,
  .success-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .split-layout {
    grid-template-columns: 1fr;
  }

  .split-layout-home {
    min-height: auto;
  }

  .phone-stage {
    min-height: auto;
    padding-bottom: 18px;
  }

  .floating-note {
    position: static;
    max-width: none;
  }

  .phone-frame {
    transform: rotate(-2deg);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    width: 100%;
  }

  .topnav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .metric-grid-owner {
    grid-template-columns: 1fr;
  }

  .button-row,
  .button-row-end,
  .button-row-center {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .panel,
  .success-card {
    border-radius: 28px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.8rem);
  }

  h2 {
    font-size: clamp(1.85rem, 11vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-note,
  .reveal-card {
    animation: none;
  }
}
