:root {
  --paper: rgb(250, 248, 241);
  --card: rgb(255, 254, 249);
  --cream: rgb(242, 237, 224);
  --ink: rgb(19, 20, 22);
  --secondary: rgb(116, 115, 124);
  --accent: rgb(158, 37, 33);
  --accent-dark: rgb(79, 14, 22);
  --border: rgb(225, 217, 202);
  --success: rgb(55, 122, 84);
  --warning: rgb(173, 110, 37);
  --shadow: rgba(79, 14, 22, 0.045);
  color-scheme: light;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

#contractorCategory {
  width: auto;
  min-width: 146px;
  max-width: 48%;
  min-height: 36px;
  padding: 7px 24px 7px 10px;
  border-radius: 999px;
  background-color: rgba(242, 237, 224, 0.38);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.province-select {
  width: min(258px, calc(100% - 78px));
  min-width: 0;
  min-height: 36px;
  padding: 7px 32px 7px 10px;
  border-radius: 999px;
  background-color: rgba(242, 237, 224, 0.38);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

button {
  border: 0;
  cursor: pointer;
}

.icon,
.nav-icon,
.symbol-icon,
.request-row-icon {
  display: inline-block;
  flex: 0 0 auto;
}

.app-shell {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  background: var(--paper);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 740px) {
  body {
    background: var(--paper);
  }

  .app-shell {
    max-width: 520px;
    margin: 0 auto;
  }
}

.app-view {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 96px;
  scrollbar-width: none;
}

.app-view::-webkit-scrollbar {
  display: none;
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: screen-in 160ms ease-out;
}

@keyframes screen-in {
  from {
    opacity: 0.3;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.onboarding {
  min-height: 100dvh;
  padding: 6px 4px 28px;
}

.onboarding .tab-bar,
.is-onboarding .tab-bar {
  display: none;
}

.hero-center {
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-top: 4px;
}

.app-icon {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(79, 14, 22, 0.16);
}

.app-icon.large {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.brand-title,
.display-title {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  letter-spacing: 0;
}

.brand-title {
  font-size: 28px;
  line-height: 1.04;
  font-weight: 800;
}

.display-title {
  font-size: 38px;
  line-height: 1.04;
  font-weight: 800;
}

.screen-title {
  font-size: 31px;
  line-height: 1.06;
  font-weight: 900;
}

.section-title {
  font-size: 24px;
  line-height: 1.08;
  font-weight: 900;
}

.card-title {
  font-size: 20px;
  line-height: 1.12;
  font-weight: 900;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

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

.subhead {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.35;
}

.fine {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.3;
}

.accent-rule {
  width: 52px;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(225, 217, 202, 0.88);
  border-radius: 22px;
  box-shadow: 0 8px 18px var(--shadow);
}

.card.pad {
  padding: 14px;
}

.card.big-pad {
  padding: 18px;
  border-radius: 26px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row.top {
  align-items: flex-start;
}

.row.between {
  justify-content: space-between;
}

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

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

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 31px;
  padding: 7px 12px;
  color: var(--accent);
  background: rgba(158, 37, 33, 0.09);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pill.dark {
  color: white;
  background: var(--accent);
}

.button-primary,
.button-secondary,
.tab-button,
.chip-button {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.button-primary {
  min-height: 52px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  color: white;
  background: linear-gradient(135deg, var(--accent), rgba(79, 14, 22, 0.94));
  border-radius: 19px;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
}

.button-secondary {
  min-height: 52px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  color: var(--accent);
  background: rgba(242, 237, 224, 0.45);
  border: 1px solid var(--border);
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 900;
}

.button-secondary.compact {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 15px;
}

.chip-button {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(242, 237, 224, 0.38);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}

.plain-button {
  background: transparent;
  color: var(--secondary);
  font-weight: 800;
  padding: 8px 12px;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 130px);
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #cfc8ba;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline-color: rgba(158, 37, 33, 0.35);
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.field-label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.plan-grid {
  display: grid;
  gap: 10px;
}

.plan-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.plan-card.selected {
  border-color: rgba(158, 37, 33, 0.72);
  box-shadow: 0 0 0 3px rgba(158, 37, 33, 0.1);
}

.plan-price {
  color: var(--accent);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.plan-feature-list {
  display: grid;
  gap: 5px;
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.contractor-form button:disabled {
  opacity: 0.64;
}

.category-tile {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  text-align: left;
}

.symbol {
  width: 30px;
  flex: 0 0 30px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.symbol-icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  padding: 3px;
}

.request-row-icon {
  width: 42px;
  height: 42px;
  color: var(--accent);
  padding: 6px;
}

.category-section {
  overflow: hidden;
  border-radius: 24px;
}

.section-header {
  padding: 16px 16px 8px;
}

.category-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.category-row + .category-row {
  border-top: 1px solid rgba(225, 217, 202, 0.9);
}

.category-row.selected {
  background: rgba(158, 37, 33, 0.08);
}

.chevron {
  margin-left: auto;
  color: rgba(116, 115, 124, 0.55);
  font-weight: 900;
}

.empty-state {
  align-items: center;
  text-align: center;
  padding: 22px 18px;
}

.empty-symbol {
  color: var(--accent);
  font-size: 40px;
}

.contractor-card {
  padding: 18px;
  border-radius: 26px;
}

.thumb {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(158, 37, 33, 0.1);
}

.contractor-name {
  font-size: 18px;
  line-height: 1.12;
  font-weight: 900;
}

.badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.split-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-image {
  width: 100%;
  height: 250px;
  border-radius: 28px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(225, 217, 202, 0.82);
  box-shadow: 0 10px 20px rgba(79, 14, 22, 0.12);
}

.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.34));
}

.floating-symbol {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 22px;
  font-weight: 900;
}

.bullet-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 750;
}

.check {
  color: var(--success);
  font-weight: 900;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 0 10px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(116, 115, 124, 0.28);
}

.dot.active {
  background: var(--accent);
}

.tab-bar {
  position: fixed;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 0;
  width: min(100%, 520px);
  height: 82px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  padding: 8px 8px max(10px, env(safe-area-inset-bottom));
  background: rgba(255, 254, 249, 0.94);
  border-top: 1px solid rgba(225, 217, 202, 0.95);
  backdrop-filter: blur(16px);
  z-index: 10;
}

.tab-button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--secondary);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.tab-button .nav-icon {
  width: 24px;
  height: 24px;
  padding: 2px;
}

.nav-icon-wrap {
  position: relative;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
}

.tab-badge {
  position: absolute;
  top: -3px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  border: 2px solid rgba(255, 254, 249, 0.96);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(79, 14, 22, 0.18);
}

.tab-button.active {
  color: var(--accent);
}

.sheet {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(19, 20, 22, 0.32);
  z-index: 20;
}

.sheet.open {
  display: flex;
}

.sheet-panel {
  width: min(430px, 100%);
  max-height: min(92dvh, 880px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -18px 50px rgba(19, 20, 22, 0.22);
}

.sheet.full-page-sheet {
  align-items: stretch;
  background: var(--paper);
}

.sheet.full-page-sheet .sheet-panel {
  width: min(520px, 100%);
  max-height: 100dvh;
  min-height: 100dvh;
  border-radius: 0;
  box-shadow: none;
}

.sheet-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 20px 12px;
  background: var(--paper);
  border-bottom: 1px solid rgba(225, 217, 202, 0.72);
}

.request-header {
  gap: 10px;
  padding-top: 12px;
}

.request-nav {
  display: grid;
  grid-template-columns: 74px 1fr 74px;
  align-items: center;
  min-height: 36px;
  text-align: center;
  font-size: 13px;
}

.close-pill {
  justify-self: start;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.8);
  color: var(--accent);
  border: 1px solid rgba(225, 217, 202, 0.8);
}

.request-step-title {
  font-size: 18px;
  line-height: 1.15;
}

.request-question {
  font-size: 16px;
  line-height: 1.25;
  padding: 0 4px;
}

.progress-track {
  height: 5px;
  width: 100%;
  border-radius: 999px;
  background: rgba(116, 115, 124, 0.18);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.sheet-body {
  padding: 18px 20px 20px;
}

.sheet-footer {
  position: sticky;
  bottom: 0;
  padding: 16px 20px 20px;
  background: var(--paper);
  border-top: 1px solid rgba(225, 217, 202, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
}

.back-button {
  height: 52px;
  border-radius: 18px;
  color: var(--accent);
  background: rgba(242, 237, 224, 0.45);
  border: 1px solid var(--border);
  font-size: 22px;
  font-weight: 900;
}

.select-dot {
  margin-left: auto;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  border: 2px solid rgba(116, 115, 124, 0.32);
}

.select-dot.selected {
  border-color: var(--accent);
  background:
    radial-gradient(circle at center, var(--accent) 0 38%, transparent 41%),
    white;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  font-size: 15px;
  line-height: 1.3;
}

.summary-row span:first-child {
  color: var(--secondary);
}

.summary-row span:last-child {
  text-align: right;
  color: var(--ink);
}

.summary-row.compact {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(242, 237, 224, 0.38);
  font-size: 14px;
}

.reply-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(250, 248, 241, 0.62);
  border: 1px solid rgba(225, 217, 202, 0.9);
}

.reply-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.success-pill {
  width: max-content;
  background: rgba(55, 122, 84, 0.12);
  color: var(--success);
}

.profile-hero {
  height: 190px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  color: white;
}

.profile-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.64));
}

.profile-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.34);
}

.detail-grid {
  gap: 12px;
}

.profile-bio {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 4px;
}

.profile-bio p:last-child {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.42;
}

.detail-grid dt {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 4px;
}

.detail-grid dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
}

.account-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.account-token {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--accent);
  background: rgba(158, 37, 33, 0.08);
  font-size: 18px;
  font-weight: 900;
}

.account-icon {
  width: 24px;
  height: 24px;
}

.account-row + .account-row {
  padding-top: 12px;
  border-top: 1px solid rgba(225, 217, 202, 0.72);
}

.provider-button {
  min-height: 52px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 8px;
  background: white;
  border: 1px solid #dadce0;
  color: #3c4043;
  font-size: 16px;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.16);
}

.apple-provider {
  min-height: 54px;
  background: #000;
  border-color: #000;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  box-shadow: none;
}

.google-provider {
  background: #fff;
}

.provider-button:not(:disabled):active {
  transform: translateY(1px);
}

.provider-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.apple-logo {
  fill: currentColor;
}

.contractor-signup-image {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

.warm-card {
  background: rgb(248, 242, 230);
  border-color: rgba(158, 37, 33, 0.16);
}

.app-store-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: rgb(255, 254, 249);
}

.compact-app-store {
  padding: 13px;
  gap: 11px;
}

.app-store-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 7px 16px rgba(19, 20, 22, 0.12);
}

.app-store-link {
  min-height: 54px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  color: white;
  background: #050505;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(19, 20, 22, 0.14);
}

.app-store-link .provider-logo {
  width: 25px;
  height: 25px;
}

.app-store-link span {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.app-store-link small {
  font-size: 10px;
  font-weight: 700;
}

.app-store-link strong {
  font-size: 19px;
  font-weight: 900;
}

.hidden {
  display: none !important;
}
