:root {
  --bg: #f7f8f5;
  --surface: #fff;
  --surface-2: #f0f2ed;
  --ink: #0c120e;
  --muted: #687168;
  --line: #dfe4dc;
  --green: #7fb525;
  --green-dark: #4f7f13;
  --green-soft: #edf6dc;
  --danger: #b3261e;
  --success: #277a42;
  --shadow: 0 24px 70px rgba(28, 39, 29, 0.1);
  --radius: 24px;
  --radius-sm: 16px;
  --header: 72px;
  --nav: 76px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(127, 181, 37, 0.35);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
}
.skip-link:focus {
  top: 12px;
}
.app-header {
  height: var(--header);
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(247, 248, 245, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(12, 18, 14, 0.06);
}
.brand-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 8px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.03em;
}
.brand-button img {
  width: 34px;
  height: 34px;
}
.brand-button b {
  color: var(--green-dark);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.usage-button,
.avatar-button {
  border: 0;
  cursor: pointer;
}
.usage-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 700;
}
.usage-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--green-soft);
}
.avatar-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}
.button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 760;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button:active {
  transform: scale(0.98);
}
.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(12, 18, 14, 0.16);
}
.button-primary:hover {
  background: #1a231c;
}
.button-secondary {
  background: var(--green-soft);
  color: var(--green-dark);
}
.button-ghost {
  background: transparent;
  border: 1px solid var(--line);
}
.button-xl {
  min-height: 56px;
  padding: 0 26px;
}
.full-width {
  width: 100%;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green-dark);
  font-weight: 760;
  padding: 10px;
  cursor: pointer;
}
.icon-button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 22px;
  cursor: pointer;
}
.screen {
  display: none;
  min-height: calc(100vh - var(--header));
}
.screen.active {
  display: block;
}
.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.home-hero {
  width: min(1380px, calc(100% - 32px));
  margin: 16px auto 0;
  min-height: 620px;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(135deg, #eff4e8, #e7ece4);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  position: relative;
}
.hero-copy {
  padding: clamp(48px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 850;
  color: var(--green-dark);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.hero-copy h1 {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.94;
  letter-spacing: -0.065em;
  margin-bottom: 24px;
  max-width: 760px;
}
.hero-copy h1 span {
  color: var(--green-dark);
}
.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: #485249;
  max-width: 620px;
  margin-bottom: 30px;
}
.hero-copy .button {
  align-self: flex-start;
}
.hero-proof {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.hero-proof span:before {
  content: "✓";
  color: var(--green-dark);
  margin-right: 6px;
}
.hero-visual {
  min-height: 620px;
  background: url("assets/hero-landscape.jpg") center/cover no-repeat;
  position: relative;
}
.hero-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(239, 244, 232, 0.9), transparent 35%);
}
.hero-badge {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  padding: 15px 18px;
  box-shadow: var(--shadow);
}
.hero-badge span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.hero-badge strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}
.home-sections {
  padding: 68px 0 120px;
}
.content-section {
  margin-bottom: 72px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-head h2,
.page-title h1 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.project-card {
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: 0.2s ease;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.project-card-image {
  height: 180px;
  background: #e7ebe4 center/cover no-repeat;
}
.project-card-body {
  padding: 18px;
}
.project-card h3 {
  font-size: 20px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.project-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.empty-state {
  text-align: center;
  padding: 58px 20px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px dashed var(--line);
}
.empty-symbol {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 25px;
  margin: 0 auto 18px;
}
.empty-state h3 {
  font-size: 26px;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 22px;
}
.ideas-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.idea-card {
  position: relative;
  height: 260px;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #ddd center/cover no-repeat;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: 0.2s ease;
}
.idea-card:hover {
  transform: translateY(-3px);
}
.idea-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.78));
}
.idea-card div {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #fff;
}
.idea-card b {
  display: block;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.idea-card span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
.project-builder {
  min-height: calc(100vh - var(--header));
  display: flex;
  flex-direction: column;
}
.builder-header {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(980px, calc(100% - 36px));
  margin: 22px auto 0;
}
.builder-header h1 {
  font-size: 34px;
  letter-spacing: -0.05em;
  margin: 0;
}
.builder-progress {
  height: 3px;
  background: #e4e8e1;
  margin-top: 20px;
}
.builder-progress span {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--green);
  transition: width 0.35s ease;
}
.conversation-shell {
  width: min(760px, calc(100% - 36px));
  margin: 42px auto 120px;
}
.assistant-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.assistant-message img {
  width: 34px;
  height: 34px;
}
.assistant-message div {
  background: var(--surface);
  border-radius: 4px 18px 18px 18px;
  padding: 14px 18px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  max-width: 620px;
}
.assistant-message strong {
  font-size: 13px;
}
.assistant-message p {
  margin: 3px 0 0;
  color: var(--muted);
}
.builder-step {
  display: none;
  animation: stepIn 0.28s ease;
}
.builder-step.active {
  display: block;
}
@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.upload-panel {
  background: var(--surface);
  border: 2px dashed #ced5ca;
  border-radius: 28px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  cursor: pointer;
  transition: 0.2s ease;
}
.upload-panel:hover {
  border-color: var(--green);
  background: #fbfdf8;
}
.upload-plus {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-size: 32px;
  margin-bottom: 14px;
}
.upload-panel h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.upload-panel p {
  color: var(--muted);
}
.quick-photo-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.quick-photo-actions button {
  min-height: 82px;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  cursor: pointer;
}
.quick-photo-actions span {
  display: block;
  font-size: 22px;
  color: var(--green-dark);
}
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.photo-thumb {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-thumb button {
  position: absolute;
  right: 6px;
  top: 6px;
  border: 0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}
.conversation-input,
.field {
  display: block;
}
.conversation-input > span,
.field > span,
.field-hint {
  display: block;
  font-weight: 760;
  margin-bottom: 10px;
}
.conversation-input textarea,
.field input,
.form-stack input,
.explore-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  padding: 18px;
  color: var(--ink);
  font-size: 17px;
  resize: vertical;
}
.conversation-input textarea {
  min-height: 180px;
}
.conversation-input small {
  float: right;
  color: var(--muted);
  margin-top: 6px;
}
.chips,
.preference-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}
.chip.selected {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.field-hint {
  margin-top: 28px;
  color: var(--muted);
}
.field-hint.large {
  font-size: 22px;
  color: var(--ink);
}
.budget-control {
  background: var(--surface);
  padding: 28px;
  border-radius: 28px;
  margin-bottom: 22px;
}
.budget-control > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.budget-control strong {
  font-size: 38px;
  letter-spacing: -0.05em;
}
.budget-control input[type="range"] {
  width: 100%;
  height: 44px;
  accent-color: var(--green);
  margin: 18px 0 0;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 16px;
}
.search-input input {
  border: 0;
  padding-left: 0;
}
.location-results {
  background: var(--surface);
  border-radius: 18px;
  margin-top: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: 300px;
  overflow-y: auto;
}
.location-results button {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.location-results button:hover {
  background: var(--green-soft);
}
.review-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
}
.review-image {
  min-height: 350px;
  background: #e9ece6 center/cover no-repeat;
}
.review-details {
  padding: 32px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
}
.review-details span {
  color: var(--muted);
}
.builder-actions {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.13);
}
.builder-actions .button:last-child {
  min-width: 150px;
}
.processing-view {
  min-height: calc(100vh - var(--header));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.processing-orbit {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  position: relative;
  margin-bottom: 24px;
}
.processing-orbit:after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid transparent;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}
.processing-orbit img {
  width: 44px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.processing-view h1 {
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.06em;
  max-width: 700px;
}
.processing-steps {
  margin: 24px auto;
  text-align: left;
}
.processing-steps p {
  color: #a1a8a1;
  margin: 12px 0;
}
.processing-steps p:before {
  content: "○";
  margin-right: 10px;
}
.processing-steps p.active {
  color: var(--ink);
  font-weight: 750;
}
.processing-steps p.active:before {
  content: "●";
  color: var(--green);
}
.result-shell {
  padding: 24px 0 120px;
}
.result-header,
.result-content {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
}
.result-header {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.result-header h1 {
  font-size: 34px;
  letter-spacing: -0.05em;
  margin: 0;
}
.result-hero {
  width: min(1320px, calc(100% - 24px));
  margin: 0 auto;
  position: relative;
}
.result-hero img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  border-radius: 32px;
  background: #e7ebe4;
}
.result-price {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.result-price span,
.result-price small {
  display: block;
  color: var(--muted);
}
.result-price strong {
  display: block;
  font-size: 34px;
  letter-spacing: -0.05em;
}
.result-content {
  padding-top: 48px;
}
.result-content h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.055em;
}
.scope-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  padding: 0;
  list-style: none;
}
.scope-list li:before {
  content: "✓";
  color: var(--green-dark);
  font-weight: 800;
  margin-right: 8px;
}
.cost-section {
  padding: 64px 0;
}
.tier-tabs {
  display: flex;
  gap: 8px;
  background: var(--surface-2);
  padding: 6px;
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
}
.tier-tabs button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 760;
  cursor: pointer;
}
.tier-tabs button.active {
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.tier-detail {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  margin-top: 16px;
}
.tier-detail strong {
  font-size: 34px;
  letter-spacing: -0.04em;
}
.quote-cta {
  background: var(--ink);
  color: #fff;
  border-radius: 30px;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 16px;
}
.quote-cta .eyebrow {
  color: #b9df78;
}
.quote-cta h2 {
  margin-bottom: 10px;
}
.quote-cta p {
  color: #b9c1ba;
  max-width: 620px;
}
.quote-cta .button {
  background: #fff;
  color: var(--ink);
  flex: none;
}
.tab-page {
  padding: 50px 0 130px;
}
.page-title {
  margin-bottom: 30px;
}
.page-title p:last-child {
  color: var(--muted);
  font-size: 18px;
}
.explore-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: 18px;
  padding: 0 16px;
  max-width: 600px;
  margin-bottom: 30px;
}
.explore-search input {
  border: 0;
  padding-left: 0;
}
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ideas-grid .idea-card {
  height: 360px;
}
.quotes-list {
  display: grid;
  gap: 12px;
}
.quote-item {
  background: var(--surface);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.quote-item p {
  color: var(--muted);
  margin: 4px 0 0;
}
.quote-status {
  background: var(--green-soft);
  color: var(--green-dark);
  height: max-content;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}
.account-prompt {
  background: var(--surface);
  border-radius: 28px;
  padding: 40px;
  max-width: 720px;
}
.profile-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}
.profile-row h2 {
  margin: 0;
}
.profile-row p {
  margin: 3px 0 0;
  color: var(--muted);
}
.settings-list {
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
}
.settings-list button,
.usage-row {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.settings-list button:hover {
  background: #fafbf8;
}
.settings-list small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.settings-list em {
  font-size: 26px;
  color: #9aa19a;
}
.bottom-nav {
  position: fixed;
  z-index: 35;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  height: 64px;
  padding: 6px;
  display: flex;
  gap: 2px;
  background: rgba(19, 25, 20, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}
.bottom-nav button {
  min-width: 92px;
  border: 0;
  background: transparent;
  color: #aeb6af;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}
.bottom-nav button.active {
  background: #fff;
  color: var(--ink);
}
.bottom-nav b {
  font-size: 13px;
}
.sheet-dialog {
  border: 0;
  padding: 0;
  border-radius: 28px;
  width: min(560px, calc(100% - 24px));
  max-height: 90vh;
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.25);
}
.sheet-dialog::backdrop {
  background: rgba(9, 12, 10, 0.48);
  backdrop-filter: blur(6px);
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 23px;
  cursor: pointer;
}
.dialog-content {
  padding: 38px;
}
.dialog-brand {
  text-align: center;
  margin-bottom: 22px;
}
.dialog-brand img {
  width: 48px;
}
.dialog-content h2 {
  font-size: 34px;
  letter-spacing: -0.05em;
}
.dialog-content > p {
  color: var(--muted);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-2);
  padding: 5px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.auth-tabs button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 11px;
  font-weight: 760;
}
.auth-tabs button.active {
  background: #fff;
}
.form-stack {
  display: grid;
  gap: 14px;
}
.form-stack label {
  font-weight: 700;
}
.form-stack input {
  margin-top: 6px;
}
.plan-picker,
.paywall-plans {
  display: grid;
  gap: 10px;
}
.plan-option,
.paywall-plan {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.plan-option.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.plan-option strong,
.paywall-plan strong {
  display: block;
  font-size: 18px;
}
.plan-option small,
.paywall-plan small {
  color: var(--muted);
}
.team-member {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.team-member small {
  display: block;
  color: var(--muted);
}
.inline-message {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--success);
  margin-top: 12px;
}
.inline-message.error {
  background: #fff0ef;
  color: var(--danger);
}
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 13px 18px;
  box-shadow: var(--shadow);
}
.global-loader {
  position: fixed;
  z-index: 120;
  inset: 0;
  background: rgba(247, 248, 245, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
}
.loader-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}
.loader-card i,
.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #dce3d5;
  border-top-color: var(--green);
  animation: spin 0.8s linear infinite;
}
.mini-loader {
  display: inline-block;
}
.bottom-nav[hidden],
.global-loader[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy {
    padding: 56px 36px;
  }
  .hero-visual {
    min-height: 420px;
  }
  .hero-visual:after {
    background: linear-gradient(
      180deg,
      rgba(239, 244, 232, 0.55),
      transparent 40%
    );
  }
  .ideas-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ideas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quote-cta {
    align-items: flex-start;
    flex-direction: column;
  }
  .review-card {
    grid-template-columns: 1fr;
  }
  .review-image {
    min-height: 260px;
  }
}
@media (max-width: 640px) {
  :root {
    --header: 62px;
    --nav: 68px;
  }
  .app-header {
    padding: 0 14px;
  }
  .brand-button span {
    font-size: 18px;
  }
  .usage-button {
    display: none !important;
  }
  .button {
    min-height: 48px;
  }
  .home-hero {
    width: 100%;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column-reverse;
  }
  .hero-copy {
    padding: 30px 20px 38px;
  }
  .hero-copy h1 {
    font-size: 44px;
    line-height: 0.98;
    margin-bottom: 16px;
  }
  .hero-subtitle {
    font-size: 17px;
  }
  .hero-copy .button {
    width: 100%;
  }
  .hero-proof {
    gap: 9px 14px;
    margin-top: 18px;
  }
  .hero-visual {
    min-height: 300px;
    background-image: url("assets/hero-landscape-mobile.webp");
  }
  .hero-badge {
    right: 14px;
    bottom: 14px;
  }
  .page-shell {
    width: calc(100% - 28px);
  }
  .home-sections {
    padding: 42px 0 100px;
  }
  .content-section {
    margin-bottom: 48px;
  }
  .section-head {
    align-items: center;
  }
  .section-head h2,
  .page-title h1 {
    font-size: 32px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .ideas-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-right: -14px;
    padding-right: 14px;
    scrollbar-width: none;
  }
  .ideas-strip::-webkit-scrollbar {
    display: none;
  }
  .idea-card {
    min-width: 76vw;
    height: 260px;
    scroll-snap-align: start;
  }
  .builder-header {
    width: calc(100% - 24px);
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    margin-top: 12px;
  }
  .builder-header h1 {
    font-size: 24px;
  }
  .builder-header .text-button {
    font-size: 13px;
  }
  .conversation-shell {
    width: calc(100% - 28px);
    margin: 24px auto 110px;
  }
  .assistant-message div {
    padding: 12px 14px;
  }
  .upload-panel {
    min-height: 250px;
  }
  .quick-photo-actions {
    gap: 8px;
  }
  .quick-photo-actions button {
    min-height: 74px;
  }
  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .conversation-input textarea {
    font-size: 16px;
    min-height: 160px;
  }
  .budget-control {
    padding: 20px;
  }
  .budget-control strong {
    font-size: 30px;
  }
  .builder-actions {
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    border-radius: 20px;
  }
  .builder-actions .button {
    flex: 1;
  }
  .bottom-nav {
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    height: 62px;
    justify-content: space-around;
  }
  .bottom-nav button {
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 1px;
  }
  .bottom-nav span {
    font-size: 18px;
  }
  .bottom-nav b {
    font-size: 10px;
  }
  .screen[data-screen="create"].active ~ .bottom-nav,
  .screen[data-screen="processing"].active ~ .bottom-nav,
  .screen[data-screen="result"].active ~ .bottom-nav {
    display: none;
  }
  .result-shell {
    padding-top: 12px;
  }
  .result-header {
    width: calc(100% - 24px);
    grid-template-columns: 44px 1fr;
  }
  .result-header .button {
    display: none;
  }
  .result-header h1 {
    font-size: 24px;
  }
  .result-hero {
    width: 100%;
  }
  .result-hero img {
    border-radius: 0;
    min-height: 360px;
  }
  .result-price {
    left: 14px;
    bottom: 14px;
  }
  .result-content {
    width: calc(100% - 28px);
    padding-top: 32px;
  }
  .scope-list {
    grid-template-columns: 1fr;
  }
  .tier-tabs {
    width: 100%;
    overflow-x: auto;
  }
  .tier-tabs button {
    flex: 1;
  }
  .quote-cta {
    border-radius: 24px;
    padding: 28px 22px;
  }
  .quote-cta .button {
    width: 100%;
  }
  .tab-page {
    padding: 32px 0 100px;
  }
  .ideas-grid {
    grid-template-columns: 1fr;
  }
  .ideas-grid .idea-card {
    height: 330px;
    min-width: 0;
  }
  .profile-row {
    grid-template-columns: 54px 1fr;
  }
  .profile-row .button {
    grid-column: 1/-1;
  }
  .sheet-dialog {
    width: 100%;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 28px 28px 0 0;
  }
  .dialog-content {
    padding: 32px 20px calc(24px + env(safe-area-inset-bottom));
  }
  .dialog-content h2 {
    font-size: 30px;
  }
  .review-details {
    grid-template-columns: 90px 1fr;
    padding: 22px;
  }
  .toast {
    bottom: calc(86px + env(safe-area-inset-bottom));
    max-width: calc(100% - 28px);
    text-align: center;
  }
  .keyboard-open .bottom-nav {
    display: none;
  }
  .keyboard-open .builder-actions {
    bottom: calc(8px + var(--keyboard-height, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Launch-quality interaction and accessibility layer */
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #5b8f24;
  outline-offset: 3px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.button,
.chip,
.idea-card,
.bottom-nav button,
.settings-list button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.button:active,
.chip:active,
.idea-card:active {
  transform: scale(0.98);
}
.project-card {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
}
.hero-badge small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.01em;
}
.is-offline .usage-dot {
  background: #d98521;
}
.is-offline #nextStepButton {
  box-shadow: inset 0 0 0 1px rgba(217, 133, 33, 0.45);
}
.consent-row {
  display: grid !important;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.consent-row input {
  width: 20px !important;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
}
.consent-row a,
.legal-footer a {
  color: inherit;
  text-underline-offset: 3px;
}
.settings-list .danger-row b {
  color: #9f2929;
}
.button-danger {
  background: #a52b2b;
  color: #fff;
  border-color: #a52b2b;
}
.button-danger:hover {
  background: #862020;
}
.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px calc(110px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 12px;
}
.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
@media (prefers-contrast: more) {
  :root {
    --muted: #3e463f;
    --line: #667066;
  }
  .button-primary {
    outline: 2px solid currentColor;
  }
  .eyebrow {
    color: #254d17;
  }
}
@media (max-width: 640px) {
  .legal-footer {
    flex-direction: column;
    padding-inline: 20px;
  }
  body[data-screen="create"] .bottom-nav,
  body[data-screen="processing"] .bottom-nav,
  body[data-screen="result"] .bottom-nav {
    display: none;
  }
  .button,
  .chip,
  .quick-photo-actions button,
  .bottom-nav button,
  .icon-button,
  .text-button {
    min-height: 48px;
  }
  .location-results button {
    min-height: 52px;
  }
  .form-stack input,
  .conversation-input textarea,
  .field input {
    font-size: 16px;
  }
  .hero-proof {
    font-size: 14px;
  }
  .builder-actions {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}
