/* ============================================================
   STYLE.CSS — Clear Built Pools Component Styles
   ============================================================ */

/* ── Fonts ── */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=satoshi@400,500,600,700&display=swap');

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-6);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: none;
  border-radius: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav a {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--duration) var(--ease);
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--teal-light); border-bottom-color: var(--teal-light); }

.header-cta { display: flex; align-items: center; gap: var(--space-3); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  background: var(--navy-dark);
  padding: var(--space-4) var(--space-6) var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--duration) var(--ease);
}
.mobile-nav a:hover { color: var(--teal-light); }
.mobile-nav .btn { width: 100%; margin-top: var(--space-3); }

@media (max-width: 900px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1a4060 100%);
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(43,191,173,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 30%, rgba(43,191,173,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(43,191,173,0.15);
  border: 1px solid rgba(43,191,173,0.4);
  border-radius: 99px;
  padding: var(--space-2) var(--space-4);
  color: var(--teal-light);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.hero h1 {
  font-size: var(--text-hero);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

.hero h1 span { color: var(--teal-light); }

.hero p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: var(--space-8);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
}

.hero-wave svg { width: 100%; height: 100%; }

/* ── Trust Bar ── */
.trust-bar {
  background: var(--teal);
  padding: var(--space-4) 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.trust-item svg { flex-shrink: 0; }

.trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.35);
}

@media (max-width: 640px) {
  .trust-divider { display: none; }
  .trust-bar-inner { gap: var(--space-4); }
}

/* ── Section Headers ── */
.section-label {
  display: inline-block;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-3xl);
  color: var(--navy);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.section-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

.section-header { margin-bottom: var(--space-12); }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── CONFIGURATOR ── */
.configurator-section {
  background: var(--off-white);
}

.configurator-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 860px) {
  .configurator-wrap {
    grid-template-columns: 1fr;
  }
}

/* Pool Canvas */
.pool-canvas-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow);
  position: sticky;
  top: 84px;
}

@media (max-width: 860px) {
  .pool-canvas-wrap {
    position: static;
    padding: var(--space-4);
  }
}

.pool-canvas-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  gap: var(--space-3);
  flex-wrap: wrap;
}

.pool-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--navy);
  font-weight: 700;
}

.pool-dims {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 600;
  background: var(--gray-100);
  padding: var(--space-1) var(--space-3);
  border-radius: 99px;
}

#pool-svg-container {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #e8f4f8 0%, #d0ecf5 100%);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-5);
}

#pool-svg-container svg {
  width: 100%;
  height: 100%;
}

/* Water color swatches */
.swatch-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.swatch-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-display);
  min-width: 80px;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
  position: relative;
}

.swatch:hover { transform: scale(1.15); }
.swatch[aria-pressed="true"] {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--navy);
}

/* ── Options Panel ── */
.options-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Size Selector */
.size-selector {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.option-group-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.option-group-title svg { color: var(--teal); }

.size-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.size-card {
  background: var(--gray-50);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.size-card:hover {
  border-color: var(--teal);
  background: rgba(43,191,173,0.05);
}

.size-card.selected {
  border-color: var(--teal);
  background: rgba(43,191,173,0.08);
  box-shadow: var(--shadow-teal);
}

.size-card .size-dim {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.size-card .size-price {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal-dark);
}

.size-card .size-sqft {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Upgrades */
.upgrades-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.upgrade-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.upgrade-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--gray-50);
  transition: all var(--duration) var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.upgrade-item:hover {
  border-color: var(--teal);
  background: rgba(43,191,173,0.04);
}

.upgrade-item.selected {
  border-color: var(--teal);
  background: rgba(43,191,173,0.08);
}

.upgrade-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
  background: var(--white);
}

.upgrade-item.selected .upgrade-check {
  background: var(--teal);
  border-color: var(--teal);
}

.upgrade-check svg {
  display: none;
  color: white;
}
.upgrade-item.selected .upgrade-check svg { display: block; }

.upgrade-info { flex: 1; min-width: 0; }
.upgrade-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--navy);
  line-height: 1.2;
}
.upgrade-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.upgrade-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--teal-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Sub-option for seat side */
.seat-sub-options {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}

.upgrade-item.selected.has-sub .seat-sub-options { display: flex; }

.seat-sub-options label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--gray-50);
  transition: all var(--duration) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.seat-sub-options input[type="radio"] { display: none; }

.seat-sub-options label:has(input:checked) {
  border-color: var(--teal);
  background: rgba(43,191,173,0.1);
  color: var(--teal-dark);
}

/* Pricing Card */
.pricing-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.pricing-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: var(--text-sm);
}

.pricing-line:last-of-type { border-bottom: none; }

.pricing-line .label { color: rgba(255,255,255,0.65); }
.pricing-line .val {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
}

.pricing-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 2px solid rgba(255,255,255,0.2);
}

.pricing-total .label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-total .amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.pricing-total .dollars {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--teal-light);
  line-height: 1;
}

.pricing-total .per-mo {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
}

.pricing-card-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.pricing-card-cta .btn { width: 100%; }

/* ── How It Works ── */
.how-it-works { background: var(--surface); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 700px) {
  .steps-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

.step-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  width: 52px;
  height: 52px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 auto var(--space-5);
  box-shadow: var(--shadow-teal);
}

.step-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--navy);
}

.step-card p { font-size: var(--text-base); color: var(--text-muted); }

/* ── Why Us ── */
.why-us { background: var(--navy); }
.why-us .section-label { color: var(--teal-light); }
.why-us .section-title { color: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
}

.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.why-icon {
  width: 44px;
  height: 44px;
  background: rgba(43,191,173,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal-light);
}

.why-card h4 {
  color: var(--white);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.why-card p { color: rgba(255,255,255,0.6); font-size: var(--text-sm); }

/* ── Testimonials ── */
.testimonials { background: var(--off-white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.stars { color: #F59E0B; font-size: var(--text-xl); letter-spacing: 2px; }

.testimonial-text {
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.author-name { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: var(--text-sm); }
.author-loc { font-size: var(--text-xs); color: var(--text-muted); }

/* ── FAQ ── */
.faq { background: var(--white); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: background var(--duration) var(--ease);
  min-height: 48px;
}

.faq-q:hover { background: var(--gray-50); }
.faq-q.open { background: var(--gray-50); color: var(--teal-dark); }

.faq-arrow {
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
  color: var(--teal);
}
.faq-q.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  background: var(--gray-50);
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.faq-a.open { display: block; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, #40d4c0 100%);
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.cta-banner h2 {
  font-size: var(--text-3xl);
  color: var(--white);
  margin-bottom: var(--space-4);
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  position: relative;
}

.cta-banner .hero-actions { justify-content: center; position: relative; }

/* ── Quote Form ── */
.quote-section { background: var(--off-white); }

.quote-wrap {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 900px) {
  .quote-wrap { grid-template-columns: 1fr; }
}

.quote-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-group label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--duration) var(--ease);
  min-height: 48px;
  width: 100%;
}

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

.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-12) var(--space-6);
}
.form-success.show { display: block; }
.form-success-icon {
  width: 64px;
  height: 64px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: white;
}
.form-success h3 { font-size: var(--text-2xl); color: var(--navy); margin-bottom: var(--space-3); }
.form-success p { color: var(--text-muted); }

.quote-info h3 {
  font-size: var(--text-2xl);
  color: var(--navy);
  margin-bottom: var(--space-4);
}

.quote-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.quote-point {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.quote-point-icon {
  width: 36px;
  height: 36px;
  background: rgba(43,191,173,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  flex-shrink: 0;
}

.quote-point h4 { font-size: var(--text-base); color: var(--navy); margin-bottom: 2px; }
.quote-point p { font-size: var(--text-sm); color: var(--text-muted); }

/* ── Footer ── */
.footer {
  background: var(--navy-dark);
  padding: var(--space-12) 0 var(--space-8);
  color: rgba(255,255,255,0.6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-8); }
}

.footer-brand .logo-img { height: 48px; margin-bottom: var(--space-4); filter: none; border-radius: 6px; background: white; padding: 4px; }
.footer-brand p { font-size: var(--text-sm); line-height: 1.7; max-width: 320px; }

.footer-col h5 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col ul a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--duration) var(--ease);
}
.footer-col ul a:hover { color: var(--teal-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
}

.footer-lic {
  background: rgba(43,191,173,0.1);
  border: 1px solid rgba(43,191,173,0.25);
  border-radius: 99px;
  padding: var(--space-1) var(--space-4);
  color: var(--teal-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.5s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ── Page Visibility ── */
.page { display: none; }
.page.active { display: block; }

/* ── Diamond Brite Finish Photo Tiles ───────────────────────────────────── */
.finish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
}

.finish-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none;
}

.finish-tile img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  pointer-events: none;
}

.finish-tile-label {
  font-size: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  max-width: 68px;
  pointer-events: none;
}

.finish-tile:hover {
  border-color: var(--teal);
  background: rgba(43,191,173,0.06);
}

.finish-tile:hover .finish-tile-label {
  color: var(--teal-dark);
}

.finish-tile.selected {
  border-color: var(--navy);
  background: rgba(27,46,94,0.07);
  box-shadow: 0 0 0 1px var(--navy);
}

.finish-tile.selected .finish-tile-label {
  color: var(--navy);
  font-weight: 700;
}

/* 5 size cards: 3 on first row, 2 on second — use auto-fill */
.size-cards {
  grid-template-columns: repeat(3, 1fr);
}

/* Custom card gets a subtle dashed border to stand out */
.size-card--custom {
  border-style: dashed;
  border-color: var(--teal);
  background: rgba(43,191,173,0.03);
}

.size-card--custom .size-dim {
  color: var(--teal-dark);
}

.size-card--custom.selected {
  background: rgba(43,191,173,0.1);
  border-style: solid;
}

@media (max-width: 860px) {
  .size-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .size-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Diamond Brite Finish Lightbox ─────────────────────────────────────────── */
.finish-lb {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  backdrop-filter: blur(4px);
  animation: lb-fade-in 0.18s ease;
}

@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.finish-lb-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 340px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  animation: lb-pop-in 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

@keyframes lb-pop-in {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.finish-lb-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.finish-lb-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.finish-lb-close:hover {
  background: #f0f0f0;
  color: var(--navy);
}

.finish-lb-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}

.finish-lb-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  text-align: center;
}

.finish-lb-badge--standard {
  background: rgba(43,191,173,0.12);
  color: var(--teal-dark);
}

.finish-lb-badge--upgrade {
  background: rgba(184,137,58,0.12);
  color: #8a6020;
}

/* Mobile tweak */
@media (max-width: 480px) {
  .finish-lb-card {
    padding: 18px;
    max-width: 300px;
  }
  .finish-lb-card img {
    height: 160px;
  }
}
