/* Pages with no app navigation: sign-in, errors, and the homeowner's estimate. */

.bare { background: var(--canvas); }

/* ---------- Sign in ---------- */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: var(--sp-5) var(--sp-4);
}
.auth-card {
  width: 100%; max-width: 392px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5); box-shadow: var(--shadow-lg);
}
.auth-brand { text-align: center; margin-bottom: var(--sp-6); }
.auth-brand .star { color: var(--gold); font-size: 26px; display: block; line-height: 1; }
.auth-brand .name {
  font-family: var(--wordmark); font-weight: 500; font-size: 23px;
  letter-spacing: .13em; text-transform: uppercase; margin-top: var(--sp-3);
}
.auth-brand .caps { margin-top: 5px; }

/* ---------- Error pages ---------- */
.error-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: var(--sp-5); text-align: center;
}
.error-wrap .inner { max-width: 460px; }
.error-wrap .code {
  font-family: var(--display); font-weight: 700; font-size: 64px;
  color: var(--gold); line-height: 1; letter-spacing: -.02em;
}
.error-wrap h1 { margin: var(--sp-3) 0 var(--sp-3); }
.error-wrap .ref {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-3);
  margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line);
}

/* ---------- The homeowner's proposal ----------
   Night palette regardless of device preference: this is the brand's own
   material world, and the product is warm light against a dark sky. */
.proposal {
  --canvas: #0B111A; --surface: #141C28; --surface-2: #1B2431;
  --line: #2A3542; --line-strong: #3B4857;
  --ink: #F3F0E9; --ink-2: #B6BFCB; --ink-3: #8B95A3;
  --gold: #BF964E; --gold-hover: #D8AE66;
  --gold-soft: rgba(191, 150, 78, .14); --gold-line: rgba(191, 150, 78, .34);
  background: var(--canvas); color: var(--ink); min-height: 100vh;
}
.proposal .wrap { max-width: 1120px; margin: 0 auto; padding: var(--sp-6) var(--sp-4) var(--sp-7); }
@media (max-width: 700px) { .proposal .wrap { padding: var(--sp-5) var(--sp-3) var(--sp-7); } }

.proposal-head { text-align: center; padding-bottom: var(--sp-6); border-bottom: 1px solid var(--line); }
.proposal-head .star { color: var(--gold); font-size: 22px; line-height: 1; }
.proposal-head .wordmark {
  font-family: var(--wordmark); font-weight: 500; font-size: 26px;
  letter-spacing: .14em; text-transform: uppercase; margin-top: 10px;
}
.proposal-head .tagline { color: var(--gold); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; margin-top: 7px; }
.proposal-head h1 { font-size: 30px; margin-top: var(--sp-5); }
.proposal-head .for { color: var(--ink-2); margin-top: var(--sp-2); font-size: 15.5px; }
.proposal-head .meta { color: var(--ink-3); font-family: var(--mono); font-size: 12.5px; margin-top: var(--sp-3); }

.proposal .intro {
  max-width: 62ch; margin: var(--sp-6) auto 0; text-align: center;
  color: var(--ink-2); font-size: 16px; line-height: 1.6;
}

.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-6); }
@media (max-width: 900px) { .options { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

.option {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5); display: flex; flex-direction: column;
}
.option.recommended { border: 1px solid var(--gold); box-shadow: 0 0 0 1px var(--gold-soft), 0 18px 48px rgba(0, 0, 0, .35); }
.option .ribbon {
  align-self: flex-start; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-line); background: var(--gold-soft);
  padding: 3px 10px; border-radius: 99px; margin-bottom: var(--sp-3); font-weight: 500;
}
.option .tier { color: var(--gold); font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; font-weight: 500; }
.option h2 { font-size: 21px; margin-top: 7px; line-height: 1.25; }
.option .price {
  font-family: var(--display); font-weight: 600; font-size: 38px;
  letter-spacing: -.02em; margin-top: var(--sp-4); line-height: 1;
}
.option .feet { color: var(--ink-3); font-family: var(--mono); font-size: 12.5px; margin-top: 7px; }
.option .warranty { color: var(--ink-2); font-size: 13.5px; margin-top: var(--sp-2); }
.option h3 {
  font-family: var(--body); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500; margin: var(--sp-5) 0 var(--sp-2);
}
.option ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.option ul li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.option ul li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 6px; height: 6px;
  background: var(--gold); border-radius: 1px; transform: rotate(45deg);
}
.option ul.plain li::before { background: var(--ink-3); opacity: .6; }
.option .choose { margin-top: auto; padding-top: var(--sp-5); }

.decision {
  max-width: 560px; margin: var(--sp-6) auto 0; background: var(--surface);
  border: 1px solid var(--gold-line); border-radius: var(--r-lg); padding: var(--sp-5);
}
.decision h2 { font-size: 19px; }
.decision p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

.verdict {
  max-width: 620px; margin: var(--sp-6) auto 0; text-align: center;
  background: var(--surface); border: 1px solid var(--gold); border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-5);
}
.verdict .star { color: var(--gold); font-size: 26px; }
.verdict h2 { margin: var(--sp-3) 0 var(--sp-3); font-size: 24px; }
.verdict p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

.proposal .terms {
  max-width: 68ch; margin: var(--sp-7) auto 0; padding-top: var(--sp-5);
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; line-height: 1.65;
}
.proposal .terms h3 { font-family: var(--body); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: var(--sp-2); }

.proposal-foot {
  text-align: center; margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px;
}
.proposal-foot a { color: var(--gold); }
.proposal-foot .towns { margin-top: var(--sp-3); font-size: 12.5px; line-height: 1.7; }

@media print {
  .proposal { background: #fff; color: #14120F; }
  .proposal .option { border-color: #ccc; break-inside: avoid; }
  .no-print { display: none !important; }
}

/* ---------- The drawing on the homeowner's proposal ---------- */
.design-show { margin-top: var(--sp-7); }
.design-show-head { font-size: 24px; text-align: center; }
.design-show-sub {
  max-width: 56ch; margin: var(--sp-2) auto var(--sp-5);
  text-align: center; color: var(--ink-2); font-size: 15px; line-height: 1.6;
}

.ba-wrap {
  position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: #0B111A; line-height: 0;
}
.ba-wrap > img { display: block; width: 100%; height: auto; }
/* The lit version sits on top and is revealed by the slider. */
.ba-wrap .after {
  position: absolute; inset: 0; overflow: hidden; will-change: width;
}
.ba-wrap .after-inner { position: relative; height: 100%; }
.ba-wrap .after-inner img { display: block; height: 100%; width: auto; max-width: none; }
.ba-wrap .after-inner svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold);
  pointer-events: none; opacity: .85;
}

.ba-controls {
  display: flex; align-items: center; gap: var(--sp-3);
  max-width: 520px; margin: var(--sp-3) auto 0;
}
.ba-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

.design-zones {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  justify-content: center; margin-top: var(--sp-4);
}
.design-zone {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--ink-2);
}
.design-zone .swatch { width: 11px; height: 11px; border-radius: 3px; }
.design-zone .mono { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.design-zone.total { color: var(--gold); }

.design-note {
  max-width: 62ch; margin: var(--sp-4) auto 0; text-align: center;
  font-size: 12.5px; line-height: 1.6; color: var(--ink-3);
}

@media print {
  .ba-controls { display: none; }
  .ba-wrap .after { width: 100% !important; }
}
