:root {
  --ink: #101a2c;
  --muted: #64748b;
  --line: #e1e6f0;
  --bg: #f4f6fb;
  --card: #ffffff;
  --accent: #2f6fed;
  --accent-ink: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 26, 44, 0.05), 0 4px 14px rgba(16, 26, 44, 0.05);

  /* Good/better/best progression for tier badges — the first two stay in
     the brand blue family (lighter to the accent color), but "best" breaks
     to gold on purpose: it needs to read as the premium pick at a glance
     during a live presentation, not just a slightly darker blue. */
  --tier-good: #5b8def;
  --tier-better: #2f6fed;
  --tier-best: #c9962b;
  --tier-best-ink: #3a2a06;
}

* { box-sizing: border-box; }

/* Baseline cross-browser reset for every <select> in the app — without
   this, Safari and Firefox render their own native control chrome (bevel,
   arrow, sometimes a different height/border) fighting with whatever
   custom background/border a select has, which is what made status pills
   and other dropdowns look broken outside Chrome. Gets a custom arrow
   since the native one is removed; individual uses (e.g. .status-pill)
   just override padding/background-position for their own size. */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 7px;
  cursor: pointer;
}

/* Same story for input[type=search] — Safari otherwise imposes its own
   native pill shape and clear-button chrome inside the custom border,
   which is what made the search box look doubled-up/broken there. */
input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 520px at 15% -10%, rgba(47, 111, 237, 0.07), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(47, 111, 237, 0.05), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: linear-gradient(115deg, #0c1524 0%, #16233c 55%, #1b2c4c 100%);
  padding: 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-block {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  flex-shrink: 0;
}

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

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.module-tag {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aeb8d0;
}

.main-nav {
  background: #262e42;
}

.main-nav .wrap {
  display: flex;
  gap: 4px;
  padding-top: 0;
  padding-bottom: 0;
}

.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #b7bccb;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: #ffffff;
}

.main-nav a.active {
  color: #ffffff;
  border-bottom-color: var(--accent);
}

.mode-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #29334a;
  color: #aeb8d0;
}

.mode-badge.live {
  background: #1e3324;
  color: #7fd39a;
}

.step-indicator {
  font-size: 13px;
  font-weight: 600;
  color: #b7bccb;
}

.intro {
  padding: 36px 0 8px;
}

.intro h1 {
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.intro p {
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 20px 0;
}

.card h2 {
  margin-top: 0;
  font-size: 18px;
}

.card h2:not(:first-child) {
  margin-top: 28px;
}

.empty-state {
  text-align: center;
  padding: 44px 24px;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eaf1fd, #dce7fb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.empty-state-icon svg { width: 26px; height: 26px; }

.empty-state h2 { margin: 0 0 8px; }

.empty-state p {
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto 20px;
}

/* A soft-tinted panel — same treatment as the landing page's "Why this
   works" section — for one callout worth setting apart from the run of
   plain white cards on a given page. Not meant to be used more than once
   or twice per page, or it stops reading as a highlight. */
.soft-panel {
  background: linear-gradient(160deg, #eef2fb, #e6ecf9);
  border-radius: var(--radius);
  padding: 24px;
}

/* A small colored circular accent that sits before a card's h2 — the same
   language as the landing page's numbered feature circles — so a section
   heading on a working page reads with the same visual rhythm as the sales
   page instead of a plain black heading. Color follows the tier palette so
   it can also imply sequence/tier where relevant; .section-icon.info is the
   neutral default for headings with no tier meaning. */
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.section-icon svg { width: 15px; height: 15px; }

.section-icon.budget { background: var(--tier-good); }
.section-icon.mid { background: var(--tier-better); }
.section-icon.premium { background: linear-gradient(135deg, #dcaa40, var(--tier-best)); color: var(--tier-best-ink); }
.section-icon.info { background: #7c3aed; }

.optional-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  margin-left: 6px;
}

.muted {
  color: var(--muted);
}

.customer-summary h1 {
  margin-bottom: 4px;
}

.customer-summary p {
  margin: 2px 0;
  font-size: 15px;
}

.source-photos {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.presenting-photo {
  position: relative;
  display: inline-block;
  flex: 1 1 260px;
  max-width: 420px;
}

.presenting-photo img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 8px 24px rgba(16, 26, 44, 0.14);
}

.presenting-photo .tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(28, 35, 51, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.options-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.options-header h2 {
  margin: 0;
}

.secondary-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
  /* A tap on a touchscreen isn't perfectly still — without this, a tiny
     amount of finger drag during the tap selects the button's own label
     text instead of firing the click, which reads as "nothing happened"
     and is easy to mistake for a broken button. This is a field sales
     tool used on phones, so this matters everywhere a button appears. */
  user-select: none;
  -webkit-user-select: none;
}

.secondary-btn:hover:not(:disabled) {
  background: #eaf1fd;
}

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

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 32px;
  cursor: pointer;
  text-align: center;
  color: var(--muted);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: #f3f7ff;
}

.dropzone img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 8px;
  margin-top: 12px;
}

.primary-btn {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  text-decoration: none;
  display: inline-block;
  /* Same reasoning as .secondary-btn above — prevents a touch tap from
     selecting the button's own label text instead of firing the click. */
  user-select: none;
  -webkit-user-select: none;
}

.primary-btn:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(47, 111, 237, 0.3);
  transform: translateY(-1px);
}

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

.primary-btn[hidden],
.secondary-btn[hidden] {
  display: none;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dbe4f5;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-text {
  color: #b3432f;
  font-size: 13px;
  padding: 12px;
}

.error-text .render-retry-btn {
  margin-top: 8px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.field-row label {
  flex: 1;
  min-width: 200px;
}

form label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--muted);
  gap: 4px;
}

form input,
form textarea,
form select {
  font-family: inherit;
  font-size: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  /* Longhand, not the `background` shorthand — that would reset the
     custom dropdown-arrow image the global `select` rule sets, which is
     exactly the "select renders differently outside Chrome" bug this
     select is supposed to avoid. */
  background-color: #fff;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--accent);
}

form select {
  /* Room for the custom arrow (see the global `select` reset) — without
     extra right padding here it sits directly on top of the option text. */
  padding-right: 30px;
}

.room-constraints {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.room-constraints[hidden] {
  display: none;
}

.room-constraints-label {
  font-size: 13px;
  color: var(--muted);
}

form label.checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}

form label.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.full { width: 100%; }

/* ---- New customer intake wizard ---- */

.intake-wizard { padding: 28px 28px 32px; }

.wizard-progress {
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
}

.wizard-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.wizard-progress-step:disabled {
  cursor: not-allowed;
}

.wizard-progress-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  background: var(--card);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.wizard-progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.wizard-progress-step.active .wizard-progress-num {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.wizard-progress-step.active .wizard-progress-label,
.wizard-progress-step.done .wizard-progress-label {
  color: var(--ink);
}

.wizard-progress-step.done .wizard-progress-num {
  border-color: var(--accent);
  color: var(--accent);
  background: #eaf1fd;
}

.wizard-progress-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin-top: 15px;
}

.wizard-panel h2 {
  margin-top: 0;
}

.room-type-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0 20px;
  max-width: 420px;
}

.room-type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.room-type-option:hover {
  border-color: #c3d0ea;
}

.room-type-option.selected {
  border-color: var(--accent);
  background: #eaf1fd;
}

.room-type-icon {
  font-size: 26px;
  line-height: 1;
}

.room-type-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.wizard-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .intake-wizard { padding: 20px 16px 24px; }
  .wizard-progress-label { font-size: 10.5px; }
  .wizard-progress-num { width: 28px; height: 28px; font-size: 13px; }
  .wizard-progress-line { margin-top: 13px; }
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.option-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--card);
  box-shadow: 0 2px 8px rgba(16, 26, 44, 0.06), 0 10px 28px rgba(16, 26, 44, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.option-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 1;
  background: var(--tier-better);
}

.option-card[data-tier="budget"]::before { background: var(--tier-good); }
.option-card[data-tier="mid"]::before { background: var(--tier-better); }
.option-card[data-tier="premium"]::before { background: linear-gradient(90deg, #dcaa40, var(--tier-best)); }

.option-card:hover {
  box-shadow: 0 4px 14px rgba(16, 26, 44, 0.09), 0 16px 36px rgba(16, 26, 44, 0.12);
  transform: translateY(-2px);
}

.option-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 14px rgba(16, 26, 44, 0.09), 0 16px 36px rgba(16, 26, 44, 0.12);
}

.option-card-selected-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 12.5px;
  margin: 8px 0 0;
}

.level-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.level-badge.budget { background: var(--tier-good); }
.level-badge.mid { background: var(--tier-better); }
.level-badge.premium {
  background: linear-gradient(135deg, #dcaa40, var(--tier-best));
  color: var(--tier-best-ink);
  box-shadow: 0 2px 8px rgba(201, 150, 43, 0.45);
}

.present-mode-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  background: rgba(16, 26, 44, 0.7);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.present-mode-btn:hover {
  background: rgba(16, 26, 44, 0.9);
}

.img-row {
  display: flex;
}

.option-card .img-wrap {
  position: relative;
  flex: 1 1 0;
  aspect-ratio: 4 / 3;
  background: #eef0f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-slot-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(16, 26, 44, 0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: 999px;
}

.render-fallback-notice {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  background: rgba(179, 67, 47, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  padding: 6px 9px;
  border-radius: 8px;
  z-index: 1;
}

.option-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.option-card .meta {
  padding: 14px;
}

.option-card h3 {
  margin: 0 0 2px;
  font-size: 16px;
}

.option-card .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.option-card .tagline {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
}

.option-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.option-card ul li { margin-bottom: 4px; }

.materials-list {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.materials-list summary {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.materials-list table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 12.5px;
}

.materials-list td {
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
  vertical-align: top;
}

.materials-list td.category {
  color: var(--muted);
  font-weight: 600;
  width: 38%;
  white-space: nowrap;
}

.material-model {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.custom-request {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-request label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.custom-request textarea {
  font-family: inherit;
  font-size: 13px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfe;
  resize: vertical;
}

.custom-request textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.custom-request .request-btn {
  align-self: flex-start;
  padding: 6px 14px;
  font-size: 13px;
}

.selection-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.select-btn {
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.select-btn.selected {
  border-color: var(--accent);
  background: #eaf1fd;
  color: var(--accent);
}

.new-customer-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.continue-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #eaf1fd;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.continue-link[hidden] {
  display: none;
}

.continue-link:hover {
  background: #dbe7fb;
}

.present-mode-finishes-link {
  margin-top: 8px;
}

.lead-status {
  font-size: 14px;
  min-height: 20px;
}

.lead-status.success { color: #2f6b3a; }
.lead-status.error { color: #b3432f; }

.silly-confirm-btn {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* ---- Admin (create paid accounts) ---- */

.admin-activation-box {
  margin-top: 16px;
  padding: 14px 16px;
  background: #eef2fb;
  border-radius: 10px;
}

.admin-activation-link-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.admin-activation-link-row input {
  flex: 1;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

/* ---- Settings (white-label branding + team) ---- */

.settings-logo-preview {
  display: block;
  align-self: flex-start;
  width: auto;
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  margin: 10px 0 16px;
  background: var(--ink);
  padding: 10px;
  border-radius: 8px;
}

.catalog-editor-toggle {
  display: flex;
  gap: 8px;
  margin: 4px 0 16px;
}

.catalog-room-tab {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.catalog-room-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.catalog-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-tier-accordion {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 20px;
}

.catalog-tier-accordion summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
}

.catalog-tier-accordion summary::-webkit-details-marker { display: none; }

.catalog-tier-body {
  padding-bottom: 20px;
}

.catalog-tier-body label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 4px;
}

.catalog-tier-body input[type="number"] {
  width: 140px;
  font-family: inherit;
  font-size: 13.5px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-category-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.catalog-category-block h4 { margin: 0 0 4px; font-size: 14px; }

.catalog-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.catalog-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.catalog-option-row input[type="number"] { width: 110px; }

.catalog-costlines-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.catalog-costline-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-costline-row input[type="text"] {
  flex: 1;
  font-family: inherit;
  font-size: 13.5px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-costline-row input[type="number"] {
  width: 110px;
  flex-shrink: 0;
}

.catalog-costline-remove {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
}

.catalog-costline-remove:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.catalog-add-line-btn { margin-top: 10px; }

.catalog-costlines-total {
  margin: 10px 0 0;
  font-size: 13.5px;
}

.catalog-save-btn { margin-top: 18px; }

.team-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
}

.team-table th,
.team-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.team-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Sign in / sign up ---- */

.auth-wrap {
  max-width: 420px;
  padding-top: 40px;
}

.auth-card h1 {
  font-size: 22px;
  margin-bottom: 4px;
}

.auth-toggle {
  margin-top: 16px;
  font-size: 13px;
}

/* ---- Finishes selection + accurate pricing ---- */

.finish-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.finish-category h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.finish-option-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.finish-option {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  position: relative;
}

.finish-option.selected {
  border-color: var(--accent);
  background: #f3f7fe;
  box-shadow: 0 0 0 1px var(--accent);
}

.finish-option input {
  position: absolute;
  top: 10px;
  right: 10px;
  accent-color: var(--accent);
  z-index: 1;
}

.finish-swatch {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.finish-swatch-svg,
.finish-swatch img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.finish-option-label {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}

.finish-option-brand {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.finish-option-price {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  margin-top: 6px;
}

.finish-color-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.finish-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 0 1px #fff inset;
}

.finish-color-swatch.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #fff inset, 0 0 0 1px var(--accent);
}

.finish-color-name {
  font-size: 11px;
  color: var(--muted);
  margin-left: 2px;
  flex-basis: 100%;
}

.price-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.price-summary-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.price-summary-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
}

.price-summary-financing {
  font-size: 13px;
  color: var(--muted);
  max-width: 320px;
  text-align: right;
}

.finishes-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.price-override-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.price-calculated-note {
  font-size: 12.5px;
  margin-top: 2px;
}

.price-override-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.price-override-form {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 16px;
}

.price-override-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.tile-estimate-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
  margin-bottom: 16px;
}

.tile-estimate-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.tile-estimate-list {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink);
}

.tile-estimate-list li {
  margin-bottom: 4px;
}

.tile-estimate-list .muted {
  font-size: 12px;
}

.tile-estimate-total {
  margin: 0;
  font-size: 14px;
}

.tile-estimate-note {
  margin: 6px 0 0;
  font-size: 12px;
}

/* ---- Materials cost breakdown ---- */

.materials-breakdown-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.materials-breakdown-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.materials-breakdown-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 8px 10px 8px 0;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}

.materials-breakdown-table td {
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.materials-breakdown-product {
  display: flex;
  align-items: center;
  gap: 10px;
}

.materials-breakdown-product img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.materials-breakdown-label {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.materials-breakdown-brand {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.materials-breakdown-line-total {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* ---- Purchase list (post-win shopping list) ---- */

.purchase-list-header {
  position: relative;
}

.purchase-list-header .no-print {
  position: absolute;
  top: 20px;
  right: 20px;
}

.purchase-list-table .purchase-list-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.purchase-list-row-checked {
  opacity: 0.5;
}

.purchase-list-row-checked .materials-breakdown-label {
  text-decoration: line-through;
}

.purchase-list-find-btn {
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.purchase-list-estimate-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.purchase-list-estimate-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-summary-amount-small {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

@media print {
  .site-header,
  .main-nav,
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .card {
    box-shadow: none;
    border: none;
  }
}

/* ---- Leads page ---- */

.leads-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-field-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-field input[type="search"] {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-field input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.status-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.status-filter-chip {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.status-filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.status-filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.status-filter-count {
  opacity: 0.75;
  font-weight: 700;
}

.leads-table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 10px;
  /* Keeps the whole page — search bar, filters, nav — on screen at once;
     only the row list itself scrolls, with the header staying put (see
     `position: sticky` below) instead of scrolling away after a couple of
     rows. Capped by 100vh too, so it still shrinks gracefully on a short
     viewport. */
  max-height: min(calc(100vh - 340px), 640px);
  min-height: 240px;
}

.leads-table {
  /* Fixed layout + explicit column widths (below) instead of the old
     max-content/nowrap combination, which let every column expand to fit
     its longest unwrapped string — that alone is what made the table
     nearly 2x wider than the page. Fixed layout respects the widths below
     and wraps text inside them instead. */
  table-layout: fixed;
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.leads-table th:nth-child(1), .leads-table td:nth-child(1) { width: 24%; }
.leads-table th:nth-child(2), .leads-table td:nth-child(2) { width: 24%; }
.leads-table th:nth-child(3), .leads-table td:nth-child(3) { width: 14%; }
.leads-table th:nth-child(4), .leads-table td:nth-child(4) { width: 18%; }
.leads-table th:nth-child(5), .leads-table td:nth-child(5) { width: 20%; }

/* Job cost came in higher than quoted (bad) vs. lower than quoted (good) —
   same red/green convention as elsewhere in the app for negative/positive
   outcomes. */
.leads-table td.variance-bad { color: #a03434; font-weight: 600; }
.leads-table td.variance-good { color: #2f6b3a; font-weight: 600; }

.leads-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 10px 12px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.leads-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: break-word;
}

.leads-table tr:last-child td {
  border-bottom: none;
}

.leads-table tr:hover td {
  background: #f8fafc;
}

.lead-actions-cell {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.lead-identity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lead-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e6edf5;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.leads-table .lead-name { font-weight: 600; line-height: 1.3; }
.leads-table .lead-address,
.leads-table .lead-date,
.leads-table .lead-reason { color: var(--muted); font-size: 12.5px; }
.leads-table .lead-date { margin-top: 2px; }

.lead-owner-select {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background-color: transparent;
  border: none;
  padding: 2px 16px 2px 0;
  background-position: right 2px center;
  background-size: 8px 6px;
}

.leads-table .lead-reason {
  /* The one column with genuinely long freeform text — truncate with an
     ellipsis instead of forcing the whole table absurdly wide for one
     long note. Full text is a hover (title attribute) away. */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.pricing-tier {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.pricing-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.pricing-cost {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.lead-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lead-icon-btn svg {
  width: 16px;
  height: 16px;
}

.lead-icon-btn:hover {
  background: #eaf1fd;
  border-color: var(--accent);
  color: var(--accent);
}

.lead-icon-btn-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 22px 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background-position: right 8px center;
  background-size: 8px 6px;
}

.status-pill.status-scheduled { background-color: #ece7f7; color: #5b4a8f; }
.status-pill.status-new { background-color: #e6edf5; color: #34618f; }
.status-pill.status-presented { background-color: #dcedf7; color: #1d6f96; }
.status-pill.status-quoted { background-color: #eee6f5; color: #6a3f94; }
.status-pill.status-won { background-color: #e3f0e6; color: #2f6b3a; }
.status-pill.status-lost { background-color: #f5e6e6; color: #a03434; }

/* ---- Home / dashboard ---- */

.home-hero {
  background: linear-gradient(115deg, #0c1524 0%, #16233c 55%, #1b2c4c 100%);
  padding: 40px 0 40px;
}

.home-hero-eyebrow {
  color: #8fa2c9;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.home-hero h1 {
  color: #ffffff;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.home-hero-sub {
  color: #b8c0d4;
  font-size: 15.5px;
  margin: 0 0 22px;
  max-width: 60ch;
}

.home-hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-hero-cta-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.home-hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.home-main {
  padding-top: 24px;
}

.home-appointments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.home-appointment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 10px;
  flex-wrap: wrap;
}

.home-appointment-when {
  font-weight: 700;
  color: var(--ink);
  font-size: 13.5px;
  min-width: 150px;
}

.home-appointment-who {
  flex: 1;
  min-width: 160px;
}

.home-appointment-who .lead-name {
  font-weight: 600;
  color: var(--ink);
}

.home-appointment-who .lead-address {
  color: var(--muted);
  font-size: 13px;
}

.home-usage-banner {
  background: #fdf3e7;
  border: 1px solid #f0dcb8;
  color: #6b4a17;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.home-stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(16, 26, 44, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-stat-card .section-icon {
  margin: 0 0 4px;
}

.home-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
}

.home-stat-label {
  font-size: 13px;
  color: var(--muted);
}

.home-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.home-cta-card h2 { margin: 0 0 4px; }
.home-cta-card p { margin: 0; }

.home-cta-btn,
.home-hero-cta {
  white-space: nowrap;
}

/* ---- Home: sales analytics ---- */

.home-analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 16px;
}

.home-analytics-col h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: 0 0 14px;
}

.home-bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-bar-row {
  display: grid;
  grid-template-columns: 84px 1fr 34px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.home-bar-track {
  background: var(--bg);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.home-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  min-width: 3px;
}

.home-bar-count {
  text-align: right;
  font-weight: 700;
  color: var(--ink);
}

.home-analytics-note {
  margin-top: 18px;
  font-size: 13px;
}

/* ---- Home: how it works ---- */

.home-how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.home-how-step {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 14px;
  margin: -14px;
  border-radius: 12px;
  transition: background-color 0.15s ease;
}

.home-how-step:hover {
  background: rgba(255, 255, 255, 0.6);
}

.home-how-step h3 {
  margin: 12px 0 4px;
  font-size: 15px;
}

.home-how-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .home-analytics-grid { grid-template-columns: 1fr; gap: 24px; }
  .home-how-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .home-stats { grid-template-columns: 1fr; }
  .home-cta-card { flex-direction: column; align-items: flex-start; }
  .home-how-steps { grid-template-columns: 1fr; }
}

.empty-leads {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

/* ---- Present mode: full-screen single-option view for a big screen ---- */

.present-mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 26, 44, 0.92);
  overflow-y: auto;
  padding: 32px 20px;
  display: flex;
  justify-content: center;
}

.present-mode-overlay[hidden] {
  display: none;
}

/* ---- Image lightbox: click any render to show it full-screen ---- */

.img-wrap img {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 12, 22, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.image-lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ---- Notes / communication log modal ---- */

.notes-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 12, 22, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.notes-modal-overlay[hidden] { display: none; }

.notes-modal {
  background: var(--card);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
}

.notes-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}

.notes-modal h2 { margin: 0 0 4px; }

.notes-form-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.notes-form-row select {
  flex-shrink: 0;
  width: 130px;
  font-family: inherit;
  font-size: 13.5px;
  padding: 9px 26px 9px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #fff;
}

.notes-form-row textarea {
  flex: 1;
  font-family: inherit;
  font-size: 13.5px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

.notes-modal .primary-btn {
  margin-top: 10px;
}

.actual-cost-section {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.actual-cost-section h3 { margin: 0 0 4px; font-size: 15px; }

.actual-cost-section .notes-form-row input[type="number"] {
  flex-shrink: 0;
  width: 130px;
  font-family: inherit;
  font-size: 13.5px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.actual-cost-section .notes-form-row input[type="text"] {
  flex: 1;
  font-family: inherit;
  font-size: 13.5px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.actual-cost-section .secondary-btn {
  margin-top: 10px;
}

.notes-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.notes-entry-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}

.notes-entry-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 999px;
}

.notes-entry-type.type-text { background: #dcedf7; color: #1d6f96; }
.notes-entry-type.type-call { background: #eee6f5; color: #6a3f94; }
.notes-entry-type.type-email { background: #e6edf5; color: #34618f; }
.notes-entry-type.type-note { background: #eef0f3; color: #55606b; }

.notes-entry-text {
  font-size: 14px;
  color: var(--ink);
  white-space: pre-wrap;
  line-height: 1.5;
}

.present-mode-inner {
  background: var(--card);
  border-radius: var(--radius);
  max-width: 1200px;
  width: 100%;
  height: fit-content;
  padding: 32px 40px 40px;
  position: relative;
}

.present-mode-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.present-mode-header .level-badge {
  position: static;
  font-size: 14px;
  padding: 6px 14px;
}

.present-mode-header h2 {
  font-size: 32px;
  margin: 0;
  letter-spacing: -0.01em;
}

.present-mode-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.present-mode-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 8px;
}

.present-mode-close:hover {
  color: var(--ink);
}

.present-mode-img-row {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.present-mode-img-row .img-wrap {
  position: relative;
  flex: 1 1 0;
  aspect-ratio: 4 / 3;
  background: #eef0f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.present-mode-img-row .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.present-mode-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

/* Grid items default to min-width: auto, which refuses to shrink below
   the widest descendant's intrinsic width (here, the materials table) —
   the classic CSS grid overflow trap. Without this, a wide table forces
   the whole present-mode overlay wider than the viewport on a phone
   instead of scrolling within its own wrapper. */
.present-mode-column {
  min-width: 0;
}

@media (max-width: 760px) {
  .present-mode-body { grid-template-columns: 1fr; }
  .present-mode-inner { padding: 24px 20px 28px; }
  .present-mode-header h2 { font-size: 24px; }
}

/* ---- Mobile: header/nav must never wrap or overflow — this is a
   in-the-field sales tool, so the header has to hold up on a phone. ---- */
@media (max-width: 600px) {
  .site-header .wrap {
    flex-wrap: wrap;
    row-gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .module-tag {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .brand-logo {
    height: 24px;
  }

  .header-right,
  .step-indicator,
  .mode-badge {
    font-size: 11px;
  }

  /* Nav scrolls horizontally instead of wrapping onto a second line and
     cutting off the last item (e.g. "Settings"). */
  .main-nav .wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-nav .wrap::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 12px;
  }
}

.present-mode-column h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 10px;
}

.present-mode-included {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 24px;
  padding-left: 20px;
}

.materials-list-full-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.materials-list-full table {
  width: 100%;
  min-width: 380px;
  border-collapse: collapse;
  font-size: 15px;
}

.materials-list-full th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 6px 8px 6px 0;
  border-bottom: 2px solid var(--line);
}

.materials-list-full td {
  padding: 8px 8px 8px 0;
  border-bottom: 1px dashed var(--line);
  vertical-align: top;
}

.materials-list-full td.category {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.materials-list-full td.material-brand {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.present-mode-column .custom-request {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 20px;
}

.present-mode-column .custom-request textarea {
  font-size: 16px;
  padding: 12px;
}

.present-mode-column .primary-btn {
  width: 100%;
  margin-bottom: 10px;
  font-size: 16px;
  padding: 14px 20px;
}

.present-mode-save-status {
  text-align: center;
}

.landing-wrap {
  max-width: 1080px;
  padding-top: 8px;
  padding-bottom: 60px;
}

.landing-header.site-header {
  background: linear-gradient(180deg, #0b1220 0%, var(--ink) 100%);
}

.landing-hero-section {
  background: linear-gradient(180deg, var(--ink) 0%, #16213a 55%, var(--bg) 100%);
  padding-bottom: 64px;
}

.landing-hero-grid {
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 48px;
}

.landing-hero-copy h1 {
  font-size: 42px;
  line-height: 1.14;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.landing-hero-copy .landing-subhead {
  max-width: 480px;
  margin: 0 0 28px;
  font-size: 16.5px;
  line-height: 1.6;
  color: #b8c0d4;
}

.landing-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.landing-cta .primary-btn {
  font-size: 16px;
  padding: 14px 28px;
}

.landing-cta .landing-secondary-cta {
  font-size: 16px;
  padding: 13px 24px;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.landing-cta .landing-secondary-cta:hover {
  background: rgba(255, 255, 255, 0.08);
}

.landing-hero-second-image {
  max-width: 1080px;
  padding-top: 28px;
}

.landing-hero-image {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.landing-screenshot {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 8px 20px 48px;
}

.landing-screenshot-image {
  max-width: 1440px;
  margin: 0 auto;
}

.landing-screenshot-image img {
  aspect-ratio: 2576 / 888;
  background: #f4f6fb;
}

.landing-before-after {
  padding: 0 0 48px;
  text-align: center;
}

.landing-before-after-image {
  max-width: 820px;
  margin: 0 auto;
}

.landing-before-after-image img {
  aspect-ratio: 2012 / 1333;
  background: #f4f6fb;
}

.landing-before-after-caption {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---- Drag-to-compare before/after slider ----
   Both images are stacked, full-size, absolutely positioned inside the
   same box — the "before" one is clipped with clip-path rather than
   nested in a shrinking container, so it never has to be re-measured or
   squished as the divider moves. A native range input, stretched
   invisible over the whole image, drives a --pos custom property that
   both the clip-path and the handle/line position read from — that's
   the only thing compare-slider.js touches on drag. */
.compare-slider {
  --pos: 50%;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f4f6fb;
  touch-action: pan-y;
}

.compare-slider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.compare-slider-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  pointer-events: none;
}

.compare-slider-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(16, 26, 44, 0.35);
  color: var(--ink);
  font-size: 16px;
  pointer-events: none;
}

.compare-slider-label {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: rgba(16, 26, 44, 0.55);
  pointer-events: none;
}

.compare-slider-label-before { left: 14px; }
.compare-slider-label-after { right: 14px; }

.compare-slider-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
}

.product-feature-image {
  margin-top: 20px;
}

.compare-slider-caption {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---- Footer (public marketing pages) ---- */

.landing-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.landing-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.landing-footer a {
  color: var(--muted);
  text-decoration: underline;
}

.landing-footer a:hover { color: var(--ink); }

/* ---- Legal pages (privacy policy, etc.) ---- */

.legal-wrap {
  max-width: 760px;
  padding-top: 40px;
  padding-bottom: 48px;
}

.legal-card h1 {
  margin-bottom: 4px;
}

.legal-card h2 {
  font-size: 17px;
  margin: 28px 0 10px;
}

.legal-card h2:first-of-type {
  margin-top: 24px;
}

.legal-card p,
.legal-card li {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.65;
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
}

.legal-card li + li { margin-top: 6px; }

.legal-disclaimer {
  background: #fdf3e7;
  border: 1px solid #f0dcb8;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 20px 0 28px;
  font-size: 13.5px;
  line-height: 1.6;
}

.landing-hero-image-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(16, 26, 44, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 999px;
}

.landing-section-title {
  font-size: 26px;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 32px;
}

/* A quiet "go deeper" link under a homepage section's title, pointing at
   that topic's full dedicated page — pulls up under the title's existing
   bottom margin rather than adding its own full gap on top of it. */
.landing-section-link {
  text-align: center;
  margin: -20px 0 28px;
  font-size: 14px;
}

.landing-section-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.landing-section-link a:hover {
  text-decoration: underline;
}

.landing-section-link-full {
  grid-column: 1 / -1;
}

.landing-how {
  padding: 8px 0 48px;
}

.landing-how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}

.landing-how-step {
  flex: 1;
  max-width: 240px;
  text-align: center;
}

.landing-how-step h3 {
  margin: 14px 0 6px;
  font-size: 16px;
}

.landing-how-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.landing-how-arrow {
  color: var(--line);
  font-size: 22px;
  padding-top: 10px;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.landing-feature h2 {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 18px;
}

.landing-feature p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

.landing-feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
}

.landing-feature-num.budget { background: var(--tier-good); }
.landing-feature-num.mid { background: var(--tier-better); }
.landing-feature-num.premium { background: var(--tier-best); }
.landing-feature-num.info { background: #7c3aed; }

.landing-knowledge {
  background: #eef2fb;
  border-radius: var(--radius);
  padding: 44px 32px;
  margin-bottom: 40px;
}

.landing-knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.landing-knowledge-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--ink);
}

.landing-knowledge-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.landing-tech { padding: 8px 0 8px; }

.landing-tech-grid { grid-template-columns: repeat(3, 1fr); }

/* ---- Pricing ---- */

.landing-pricing { padding: 8px 0 48px; }

.landing-pricing-sub {
  text-align: center;
  color: var(--muted);
  margin: -20px 0 32px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: 0 2px 8px rgba(16, 26, 44, 0.06);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 28px rgba(47, 111, 237, 0.16);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-tier-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-amount {
  font-size: 32px;
  font-weight: 800;
  margin: 8px 0 6px;
  color: var(--ink);
}

.pricing-amount span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.pricing-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 18px;
  min-height: 38px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
}

.pricing-features li {
  font-size: 13.5px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.pricing-features li:first-child { border-top: none; }

.pricing-cta { text-align: center; width: 100%; }

/* ---- Trust / security ---- */

.landing-trust {
  background: #eef2fb;
  border-radius: var(--radius);
  padding: 44px 32px;
  margin-bottom: 40px;
}

.landing-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.landing-trust-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--ink);
}

.landing-trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.landing-faq { padding: 8px 0 48px; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 20px;
}

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

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

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .landing-tech-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .landing-trust-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

.landing-demo {
  margin-bottom: 24px;
  scroll-margin-top: 24px;
}

.landing-demo h1,
.landing-demo h2 {
  margin-top: 0;
}

.landing-demo form {
  margin-top: 16px;
}

.landing-demo-success {
  text-align: center;
  padding: 24px 0;
}

.book-demo-hero-section { padding-bottom: 48px; }

.book-demo-hero-wrap {
  max-width: 640px;
  text-align: center;
  padding-top: 48px;
}

.book-demo-hero-wrap h1 {
  font-size: 36px;
  line-height: 1.16;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.book-demo-hero-wrap .landing-subhead {
  max-width: none;
  margin: 0 auto 32px;
}

.book-demo-hero-image {
  aspect-ratio: 3 / 2;
}

.book-demo-wrap {
  max-width: 560px;
  padding-top: 0;
}

.book-demo-card {
  margin-top: -64px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.book-demo-privacy-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.book-demo-privacy-note a { color: var(--muted); }

@media (max-width: 760px) {
  .book-demo-hero-wrap h1 { font-size: 28px; }
  .book-demo-card { margin-top: 24px; }
}

.landing-footer-cta {
  text-align: center;
  padding: 36px 20px;
}

.landing-footer-cta p {
  margin: 6px 0 20px;
}

/* ---- Marketing subpages (Product, How it works, Who it's for, Pricing,
   Security) — a lighter-weight hero than the homepage's full gradient +
   two-image hero, since these pages open on a single focused headline
   rather than trying to make the whole pitch above the fold. ---- */

.subpage-hero {
  padding: 48px 0 44px;
}

.subpage-eyebrow {
  color: #8fa2c9;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.subpage-h1 {
  color: #ffffff;
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 720px;
  margin: 0 0 16px;
}

.subpage-hero .landing-subhead {
  max-width: 560px;
  margin: 0;
}

.subpage-section-sub {
  color: var(--muted);
  font-size: 14.5px;
  margin: -8px 0 24px;
  max-width: 640px;
}

/* Product page's capability cards carry a bulleted detail list each — full
   width instead of the homepage's 2-column short-blurb grid, since a long
   list reads cramped in a narrow column. */
.product-section {
  grid-template-columns: 1fr;
}

.product-feature h2 {
  margin-top: 16px;
}

.product-detail-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.product-detail-list li {
  margin-bottom: 8px;
}

.product-detail-list li:last-child {
  margin-bottom: 0;
}

/* How-it-works page's longer 7-step walkthrough — a vertical numbered
   list rather than the homepage's horizontal 4-step arrow row, which
   doesn't scale past 4-5 steps. */
.howitworks-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 48px;
}

.howitworks-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.howitworks-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.howitworks-body h2 {
  margin: 4px 0 6px;
  font-size: 19px;
}

.howitworks-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 640px;
}

.howitworks-image-row {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  max-width: 640px;
}

.howitworks-image {
  flex: 1;
  min-width: 0;
}

.who-segment-image {
  margin-top: 16px;
}

.landing-security-note {
  text-align: center;
}

.landing-security-note p {
  margin: 8px 0 0;
}

.team-story p {
  max-width: 640px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.team-story p + p {
  margin-top: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.team-card {
  text-align: center;
}

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  box-shadow: 0 8px 24px rgba(16, 26, 44, 0.14);
}

.team-card h2 {
  margin: 0 0 2px;
  font-size: 19px;
}

.team-title {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .subpage-h1 { font-size: 28px; }
  .howitworks-step { flex-direction: column; gap: 8px; }
}

@media (max-width: 760px) {
  .landing-hero-grid { grid-template-columns: 1fr; padding-top: 32px; }
  .landing-hero-copy h1 { font-size: 32px; }
  .landing-hero-copy .landing-subhead { max-width: none; }
  .landing-how-steps { flex-direction: column; align-items: stretch; }
  .landing-how-arrow { display: none; }
  .landing-how-step { max-width: none; }
  .landing-features { grid-template-columns: 1fr; }
  .landing-knowledge-grid { grid-template-columns: 1fr; }
}

.view-photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.view-photo {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef0f3;
  box-shadow: 0 8px 24px rgba(16, 26, 44, 0.14);
}

.view-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.view-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.view-tier-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--card);
  box-shadow: 0 2px 8px rgba(16, 26, 44, 0.06), 0 10px 28px rgba(16, 26, 44, 0.08);
}

.view-tier-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tier-better);
}

.view-tier-card[data-tier="budget"]::before { background: var(--tier-good); }
.view-tier-card[data-tier="mid"]::before { background: var(--tier-better); }
.view-tier-card[data-tier="premium"]::before { background: linear-gradient(90deg, #dcaa40, var(--tier-best)); }

.view-tier-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 14px rgba(16, 26, 44, 0.09), 0 16px 36px rgba(16, 26, 44, 0.12);
}

.view-tier-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 6px;
  margin-bottom: 12px;
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
}

.view-tier-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.view-tier-card h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.view-tier-selected-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 12.5px;
  margin: 4px 0 0;
}

@media (max-width: 640px) {
  .view-tier-grid { grid-template-columns: 1fr; }
  .view-photo-row { flex-direction: column; }
}
