/* ===== TOKENS ===== */
:root {
  --bg: #F9F6EF;
  --fg: #1B3A2D;
  --accent: #C9A84C;
  --accent-light: rgba(201, 168, 76, 0.12);
  --muted: #6B7A6E;
  --surface: #FFFFFF;
  --border: rgba(27, 58, 45, 0.12);
  --hero-green: #1B3A2D;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 246, 239, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--hero-green);
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 80px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
}

.plot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  width: 320px;
  height: 280px;
  transform: rotate(-3deg);
}

.plot {
  background: var(--hero-green);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.plot::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: rgba(255,255,255,0.08);
  border-radius: 0 0 4px 4px;
}

.plot-1 { transform: scale(1); }
.plot-2 { transform: scale(1.05) translateY(-8px); background: #254d3c; }
.plot-3 { transform: scale(1.02) translateX(4px); background: #1a3c2d; }
.plot-4 { transform: scale(1.08) translate(-6px, 4px); }
.plot-5 { grid-column: 1 / -1; transform: scale(1.1); background: #2a5c46; }

.pulse-ring {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.25);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1); opacity: 1; }
}

/* ===== MANIFESTO ===== */
.manifesto {
  background: var(--fg);
  color: var(--bg);
  padding: 100px 40px;
}

.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 60px;
  align-items: start;
}

.manifesto-mark {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
}

.mark-line {
  width: 2px;
  height: 40px;
  background: var(--accent);
  opacity: 0.6;
}

.mark-line.short { height: 20px; }

.manifesto-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.35;
  margin-bottom: 28px;
  font-style: italic;
  font-weight: 400;
}

.manifesto-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(249, 246, 239, 0.72);
  margin-bottom: 16px;
}

.manifesto-text p:last-child { margin-bottom: 0; }

/* ===== FEATURES ===== */
.features {
  padding: 100px 40px;
  background: var(--bg);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 36px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27, 58, 45, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--fg);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== BLUEPRINT ===== */
.blueprint {
  background: #EDE9E0;
  padding: 100px 40px;
}

.blueprint-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.blueprint-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--fg);
}

.blueprint-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.blueprint-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bp-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(27, 58, 45, 0.1);
}

.bp-step:first-child { border-top: 1px solid rgba(27, 58, 45, 0.1); }

.bp-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
  line-height: 1.2;
}

.bp-step strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.bp-step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Growth chart */
.growth-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(27, 58, 45, 0.06);
}

.chart-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
}

.bar {
  flex: 1;
  height: var(--h);
  background: var(--fg);
  border-radius: 2px 2px 0 0;
  opacity: 0.2;
  position: relative;
}

.bar.active {
  opacity: 1;
  background: linear-gradient(to top, var(--fg), var(--hero-green));
}

.bar-tooltip {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--fg);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ===== CLOSING ===== */
.closing {
  background: var(--hero-green);
  padding: 120px 40px;
  text-align: center;
}

.closing-inner {
  max-width: 680px;
  margin: 0 auto;
}

.closing-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--bg);
  line-height: 1.25;
  margin-bottom: 40px;
}

.closing-divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 40px;
}

.closing-sub {
  font-size: 1rem;
  color: rgba(249, 246, 239, 0.65);
  line-height: 1.75;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 40px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
  max-width: 260px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
}

.footer-links {
  display: flex;
  gap: 48px;
}

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

.footer-col-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-col a,
.footer-col span {
  font-size: 0.88rem;
  color: var(--fg);
  text-decoration: none;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    gap: 48px;
  }

  .hero-visual { height: 260px; }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blueprint-inner {
    grid-template-columns: 1fr;
  }

  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .manifesto-mark { display: none; }

  .site-header { padding: 0 24px; }
  .nav-tagline { display: none; }
}

/* ===== QUOTE PAGE ===== */
.quote-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

.quote-hero {
  margin-bottom: 56px;
}

.quote-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 12px;
}

.quote-hero p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.quote-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

/* Form panel */
.quote-form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px;
}

.form-section {
  margin-bottom: 32px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

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

.form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

.address-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.address-input-row input {
  flex: 1;
}

.size-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.size-toggle button {
  flex: 1;
  padding: 8px 16px;
  background: var(--bg);
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.size-toggle button.active {
  background: var(--fg);
  color: var(--bg);
}

.size-toggle button:hover:not(.active) {
  background: rgba(27, 58, 45, 0.06);
}

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

.service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.service-card:hover {
  border-color: var(--accent);
  background: rgba(201, 168, 76, 0.04);
}

.service-card.selected {
  border-color: var(--fg);
  background: rgba(27, 58, 45, 0.04);
}

.service-card input[type="radio"] {
  display: none;
}

.service-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

.service-card.selected .service-radio {
  border-color: var(--fg);
}

.service-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.service-card.selected .service-radio::after {
  opacity: 1;
}

.service-card-body {
  flex: 1;
}

.service-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
}

.service-card-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.service-card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.generate-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--fg);
  border: none;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  letter-spacing: 0.02em;
}

.generate-btn:hover {
  background: #d4b356;
  transform: translateY(-1px);
}

.generate-btn:active {
  transform: translateY(0);
}

/* Quote output panel */
.quote-output-panel {
  position: sticky;
  top: 80px;
}

.quote-card {
  background: var(--surface);
  border: 1.5px solid var(--fg);
  border-radius: 4px;
  overflow: hidden;
}

.quote-card-header {
  background: var(--fg);
  color: var(--bg);
  padding: 20px 24px;
}

.quote-card-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.quote-card-header p {
  font-size: 0.78rem;
  color: rgba(249, 246, 239, 0.6);
}

.quote-card-body {
  padding: 24px;
}

.quote-property {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.quote-property-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.quote-property-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.quote-line-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.quote-line-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: baseline;
}

.quote-line-item .li-name {
  font-size: 0.88rem;
  color: var(--fg);
}

.quote-line-item .li-amount {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
}

.quote-subtotal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

.quote-subtotal-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-subtotal-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
}

.quote-note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
  padding: 10px 14px;
  background: rgba(27, 58, 45, 0.04);
  border-radius: 3px;
  margin-bottom: 20px;
}

.quote-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quote-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  text-align: center;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-copy {
  background: var(--fg);
  color: var(--bg);
}

.btn-copy:hover {
  background: var(--hero-green);
}

.btn-copy.copied {
  background: #2a7a52;
}

.btn-export {
  background: var(--surface);
  color: var(--fg);
  border: 1.5px solid var(--border);
}

.btn-export:hover {
  border-color: var(--fg);
}

/* Empty state */
.quote-empty {
  text-align: center;
  padding: 48px 24px;
}

.quote-empty-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.quote-empty h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.quote-empty p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Notification toast */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--fg);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 800px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .quote-output-panel {
    position: static;
  }

  .quote-page {
    padding: 40px 24px 80px;
  }

  .address-input-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .quote-form-panel {
    padding: 24px;
  }
}