/* LP3 Exteriors — customer app */
:root {
  --red: #c01e2e;
  --red-dark: #9a1824;
  --red-soft: rgba(192, 30, 46, 0.16);
  --black: #101218;
  --ink: #16181f;
  --panel: #1b1d25;
  --panel-2: #22242d;
  --white: #ffffff;
  --offwhite: #f5f4f4;
  --gray: #535152;
  --gray-mid: #7a7879;
  --gray-light: #d8d6d6;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Oswald", "Inter", system-ui, sans-serif;
  --header-h: 60px;
  --tab-h: 64px;
  --max: 430px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }

body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--white);
  background: #0b0c10;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--red);
  color: var(--white);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 8px; }

/* Phone column on larger screens */
.shell {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(192, 30, 46, 0.16), transparent 55%),
    #0b0c10;
}

.app-frame {
  width: 100%;
  max-width: var(--max);
  min-height: 100dvh;
  background: var(--black);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), var(--shadow);
}

header.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, #101218 70%, rgba(16, 18, 24, 0.92));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}
.brand-link img {
  height: 48px;
  width: auto;
}
body[data-view="home"] .brand-link img {
  /* Hero already shows the full logo; keep the header mark modest on home */
  height: 40px;
}

.call-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.call-pill:hover, .call-pill:focus-visible { background: var(--red-dark); }
.call-pill svg { width: 14px; height: 14px; fill: currentColor; }

main {
  flex: 1;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px);
}

.view { display: none; padding: 20px 18px 28px; }
.view.is-active { display: block; animation: fade .28s ease; }

@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.hero {
  text-align: center;
  padding: 2px 6px 4px;
}
.hero-logo {
  width: min(236px, 76%);
  margin: 0 auto 6px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}
.kicker {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gray-light);
  margin: 0 0 8px;
}
.slogan {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.42rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.lede {
  margin: 0 auto;
  max-width: 34em;
  color: #d6d4d4;
  font-size: 0.98rem;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 2px;
}
.chip {
  font-size: 12px;
  color: var(--gray-light);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
}

.reward-card {
  display: grid;
  grid-template-columns: auto 1fr 16px;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  text-decoration: none;
  background: linear-gradient(180deg, #d12636 0%, var(--red) 100%);
  border-radius: var(--radius);
  padding: 14px 14px 14px 16px;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(192, 30, 46, 0.28);
}
.reward-card:hover, .reward-card:focus-visible {
  background: var(--red-dark);
}
.reward-amount {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.15rem;
  line-height: 1.1;
  white-space: nowrap;
  background: rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 10px 10px;
  text-align: center;
}
.reward-copy strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.reward-copy p {
  margin: 3px 0 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: rgba(255,255,255,0.92);
}
.reward-card .chev { color: rgba(255,255,255,0.85); font-size: 1.25rem; }
.reward-fine {
  margin: 8px 2px 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #9c9a9a;
}
.reward-callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  margin: 0 0 16px;
}
.reward-callout .reward-amount {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  margin: 0 0 8px;
  padding: 6px 10px;
  font-size: 0.95rem;
}
.reward-lead {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.4;
}
.reward-callout .reward-fine {
  margin: 0;
}

.section-title {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 16px;
  min-height: 96px;
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
}
.action:hover, .action:focus-visible {
  border-color: var(--line-strong);
  background: var(--panel-2);
}
.action.primary {
  background: linear-gradient(180deg, #d12636 0%, var(--red) 100%);
  border-color: transparent;
  grid-column: 1 / -1;
  min-height: 86px;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.action.primary:hover, .action.primary:focus-visible { background: var(--red-dark); }
.action .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: #ffd5d8;
  flex-shrink: 0;
}
.action.primary .icon { background: rgba(255,255,255,0.14); color: var(--white); }
.action .icon svg { width: 20px; height: 20px; fill: currentColor; }
.action strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.action span {
  display: block;
  color: #c9c7c7;
  font-size: 0.8rem;
  line-height: 1.35;
  margin-top: 2px;
}
.action.primary span { color: rgba(255,255,255,0.9); }

.products {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-link {
  display: grid;
  grid-template-columns: 44px 1fr 16px;
  gap: 12px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
}
.product-link:hover, .product-link:focus-visible { background: var(--panel-2); }
.product-link .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: #ffd5d8;
}
.product-link .icon svg { width: 22px; height: 22px; fill: currentColor; }
.product-link strong {
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.product-link p {
  margin: 2px 0 0;
  color: #c9c7c7;
  font-size: 0.82rem;
}
.chev { color: var(--gray-mid); font-size: 1.1rem; }

.financing-card, .note, .install-card, .info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 14px;
}
.financing-card h2, .info-card h2 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  margin: 0 0 8px;
}
.financing-card ul, .prose ul {
  margin: 8px 0 0;
  padding: 0 0 0 1.1em;
}
.financing-card li, .prose li { margin: 0 0 6px; color: #d6d4d4; }
.btn-row { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  width: 100%;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover, .btn-red:focus-visible { background: var(--red-dark); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--panel-2); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.page-head { margin-bottom: 16px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #d6d4d4;
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.back:hover { color: var(--white); }
h1.page-title {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.55rem;
  line-height: 1.15;
  margin: 0 0 8px;
}
.sub { color: #d6d4d4; margin: 0; }

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0;
  padding: 14px;
  background: var(--panel);
}
.form legend {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  padding: 0 6px;
  color: var(--gray-light);
}
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-light);
  margin: 8px 0 4px;
}
.form fieldset label:first-of-type { margin-top: 0; }
input, select, textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 12px;
  color: var(--white);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
textarea { min-height: 96px; resize: vertical; }
.req { color: #ff8b93; }
.hint {
  font-size: 0.8rem;
  color: var(--gray-mid);
  margin: 4px 0 0;
}
.form-status {
  display: none;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(40, 140, 70, 0.18); color: #d7f5e0; }
.form-status.err { background: rgba(192, 30, 46, 0.2); color: #ffd5d8; }

.prose h2 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.02rem;
  margin: 22px 0 8px;
}
.prose p { color: #d6d4d4; margin: 0 0 10px; }
.option {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin: 0 0 8px;
  text-decoration: none;
  color: inherit;
}
a.option:hover, a.option:focus-visible {
  border-color: var(--line-strong);
  background: var(--panel-2);
}
.option h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  margin: 0 0 6px;
}
.option p { margin: 0; color: #d6d4d4; font-size: 0.9rem; }
.option-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
a.option:hover .option-pdf, a.option:focus-visible .option-pdf {
  border-color: var(--red);
  background: var(--red-soft);
}

.footer-bits {
  margin-top: 22px;
  text-align: center;
  color: #b3b1b1;
  font-size: 0.82rem;
}
.footer-bits a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.footer-bits p { margin: 0 0 6px; }

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max);
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: #12141b;
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #b3b1b1;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 4px;
  border-radius: 10px;
  min-height: 48px;
}
.tab svg { width: 20px; height: 20px; fill: currentColor; }
.tab.is-current, .tab:hover, .tab:focus-visible { color: var(--white); background: rgba(255,255,255,0.05); }
.tab.is-current { color: #ffd5d8; }

.install-banner { display: none !important; }
.install-banner p { margin: 0; font-size: 0.82rem; color: #e8e7e7; }
.install-banner button {
  background: var(--red);
  border: 0;
  color: white;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}


/* See our work gallery */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.filter {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  color: #d6d4d4;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
}
.filter.is-on, .filter:hover, .filter:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.gallery-item {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: #1a1c24;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: #12141b;
}
.gallery-caption {
  display: block;
  padding: 8px 9px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e8e7e7;
}
.gallery-item.is-hidden { display: none; }
.gallery-item:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6,7,10,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px 72px;
}
.lightbox[hidden] { display: none !important; }
.lightbox-figure {
  margin: 0;
  max-width: min(100%, 900px);
  text-align: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100dvh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-caption {
  margin: 10px 0 0;
  color: #e8e7e7;
  font-size: 0.9rem;
  font-weight: 600;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
}
.lightbox-close {
  top: calc(10px + env(safe-area-inset-top));
  right: 12px;
  width: 44px;
  height: 44px;
}
.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
}
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover,
.lightbox-close:focus-visible, .lightbox-prev:focus-visible, .lightbox-next:focus-visible {
  background: var(--red);
}

@media (min-width: 800px) {
  .app-frame {
    margin: 24px 0;
    min-height: calc(100dvh - 48px);
    border-radius: 24px;
    overflow: hidden;
  }
  .tabbar { max-width: var(--max); border-radius: 0 0 24px 24px; }
}
