:root {
  --bg: #F8F5EF;
  --bg-alt: #F1ECE1;
  --dark: #1E1A17;
  --text: #2B2622;
  --text-soft: #4A4238;
  --text-muted: #8A8172;
  --accent: #FF7A59;
  --accent-dark: #1E1A17;
  --border: rgba(43, 38, 34, 0.08);
  --border-strong: rgba(43, 38, 34, 0.35);
  --green-bg: #E8F3EC;
  --green-text: #3E7E56;
  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 64px);
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow.on-dark { color: rgba(248, 245, 239, 0.5); }

h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: 0; }

h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
}

p { margin: 0; }

.section { padding: clamp(64px, 10vw, 120px) 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--dark); }

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: center; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- buttons ---------- */
.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
  will-change: transform;
}
.btn-primary { background: var(--accent); color: #1E1A17; }
.btn-primary:hover { color: #1E1A17; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 122, 89, 0.35); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(255, 122, 89, 0.3); }

.btn-outline { background: transparent; border: 1.5px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { color: var(--text); border-color: var(--text); transform: translateY(-2px); background: rgba(43, 38, 34, 0.04); }
.btn-outline:active { transform: translateY(0); }

.btn-sm { height: 44px; padding: 0 22px; font-size: 15px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 239, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 64px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px rgba(43, 38, 34, 0.06);
  padding-top: 10px;
  padding-bottom: 10px;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 27px;
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  transition: right 0.2s ease;
}
.nav-links a:hover::after { right: 0; }
.nav-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 8vw, 96px);
  background:
    linear-gradient(125deg, rgba(255,255,255,0.85) 2%, rgba(255,241,227,0.5) 18%, rgba(255,214,178,0.24) 32%, rgba(255,122,89,0.08) 44%, transparent 56%),
    linear-gradient(125deg, transparent 58%, rgba(255,255,255,0.16) 66%, transparent 74%),
    radial-gradient(circle at 16% 14%, rgba(255,255,255,0.7), transparent 36%),
    radial-gradient(circle at 28% 10%, rgba(154,91,255,0.07), transparent 40%),
    var(--bg);
}
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-bottom: clamp(48px, 8vw, 80px);
}
.hero-copy { flex: 1 1 460px; }
.hero-copy h1 {
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 28px;
  max-width: 680px;
}
.hero-copy p.lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 0 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-subtext { font-size: 15px; color: var(--text-muted); }
.hero-subtext a { font-weight: 600; }

.hero-media {
  flex: 1 1 380px;
  width: 100%;
  height: clamp(320px, 45vw, 480px);
  min-width: 0;
  animation: float 6s ease-in-out infinite;
}

/* ---------- image placeholder ---------- */
.img-slot {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: linear-gradient(135deg, #ECE4D6 0%, #F6EFE3 45%, #FBE4D6 100%);
  background-size: 220% 220%;
  animation: shimmer 7s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}
.img-slot.rect { border-radius: 0; }
.img-slot-filled { animation: none; background: none; }
.img-slot-filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.img-slot-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.img-slot-label svg { opacity: 0.6; }

/* ---------- problem list ---------- */
.problem-list { display: flex; flex-direction: column; gap: 2px; }
.problem-list div {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
  color: #3A342D;
}
.problem-list div:last-child { border-bottom: none; }

/* ---------- cards ---------- */
.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}
.card-icon {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-icon .title { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.card-icon .desc { font-size: 16px; line-height: 1.6; color: var(--text-soft); }

.card-list { padding: 32px; }
.card-list .title { font-family: var(--font-head); font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.card-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--text-soft); }

.icon-tile {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icon-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(43, 38, 34, 0.08); }
.icon-tile .label { font-size: 14px; color: #3A342D; font-weight: 600; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 56px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step .num { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--accent); }
.step .title { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--bg); }
.step .desc { font-size: 15px; line-height: 1.6; color: rgba(248, 245, 239, 0.6); }

/* ---------- pricing chart ---------- */
.chart-card { display: flex; flex-direction: column; gap: 22px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.chart-head .title { font-family: var(--font-head); font-size: 19px; font-weight: 700; }
.badge { background: var(--green-bg); color: var(--green-text); font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 20px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; }
.bar {
  width: 8%;
  height: 0;
  background: #E7DCC3;
  border-radius: 6px 6px 0 0;
  transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar.peak { background: var(--accent); }
.chart-foot { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; color: var(--text-muted); padding-top: 14px; border-top: 1px solid rgba(43, 38, 34, 0.06); }
.chart-foot b { color: var(--text); }
.chart-foot b.accent { color: var(--accent); }

/* ---------- portfolio ---------- */
.portfolio-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; flex-wrap: wrap; gap: 20px; }
.p-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.p-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(43, 38, 34, 0.1); }
.p-card .media { height: 220px; }
.p-card .body { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.p-card .name { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.p-card .meta { font-size: 15px; color: var(--text-muted); }
.p-card .desc { font-size: 15px; color: var(--text-soft); line-height: 1.5; }
.p-card .link { margin-top: 8px; font-size: 15px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s ease; }
.p-card .link:hover { gap: 10px; }

/* ---------- report card ---------- */
.report-card { padding: 36px; }
.report-card .title { font-family: var(--font-head); font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.report-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(43, 38, 34, 0.07); font-size: 15px; }
.report-row .k { color: var(--text-soft); }
.report-row .v { font-weight: 700; }
.report-row.total { border-bottom: none; padding-top: 14px; font-size: 16px; }
.report-row.total .v { font-weight: 800; color: var(--accent); font-family: var(--font-head); font-size: 19px; }

/* ---------- comparison ---------- */
.compare-card { padding: 40px; }
.compare-card .title { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-bottom: 22px; }
.compare-card.dark { background: var(--dark); border: none; }
.compare-card.dark .title { color: var(--bg); }
.compare-list { display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: #3A342D; }
.compare-card.dark .compare-list { color: rgba(248, 245, 239, 0.75); }

/* ---------- legal pages ---------- */
.legal-content { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 64px) clamp(80px, 10vw, 120px); }
.legal-content h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; }
.legal-content .updated { font-size: 14px; color: var(--text-muted); margin: 0 0 48px; }
.legal-content h2 { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin: 40px 0 16px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { font-size: 16px; line-height: 1.7; color: var(--text-soft); margin: 0 0 16px; }
.legal-content ul { margin: 0 0 16px; padding-left: 22px; }
.legal-content li { font-size: 16px; line-height: 1.7; color: var(--text-soft); margin-bottom: 8px; }
.legal-content a { font-weight: 600; }

/* ---------- about ---------- */
.about-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, rgba(255,255,255,0.6) 4%, rgba(255,241,227,0.35) 20%, rgba(255,214,178,0.16) 36%, rgba(255,122,89,0.05) 50%, transparent 62%), var(--bg);
}
.about-inner { position: relative; z-index: 2; max-width: 960px; margin: 0 auto; padding: clamp(72px, 12vw, 140px) clamp(16px, 4vw, 64px); text-align: center; }
.about-inner .eyebrow { text-align: center; }
.about-inner h2 { margin: 0 0 32px; line-height: 1.25; }
.about-inner p { font-size: 19px; line-height: 1.75; color: var(--text-soft); margin: 0 0 20px; }
.about-inner p:last-child { margin-bottom: 0; }

/* ---------- faq ---------- */
.faq-wrap { max-width: 880px; margin: 0 auto; }
.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 30px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.faq-item:hover { box-shadow: 0 6px 18px rgba(43, 38, 34, 0.06); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-q .t { font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.faq-q .sym { font-size: 22px; color: var(--text-muted); flex-shrink: 0; transition: transform 0.3s ease; }
.faq-item.open .sym { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-a > div { overflow: hidden; }
.faq-a p { font-size: 16px; line-height: 1.65; color: var(--text-soft); padding-top: 0; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a p { padding-top: 16px; }

/* ---------- estimate form ---------- */
.estimate-section { position: relative; overflow: hidden; background: linear-gradient(125deg, rgba(255,255,255,0.6) 4%, rgba(255,241,227,0.35) 20%, rgba(255,214,178,0.16) 36%, rgba(255,122,89,0.05) 50%, transparent 62%), var(--bg); }
.estimate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: clamp(32px, 6vw, 72px); }
.estimate-copy h2 { margin: 0 0 24px; }
.estimate-copy p { font-size: 19px; line-height: 1.7; color: var(--text-soft); }

.form-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: 18px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid rgba(43, 38, 34, 0.12);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.15);
}
.field textarea { resize: vertical; }
.form-disclaimer { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.form-status { font-size: 14px; font-weight: 600; color: var(--green-text); }
.form-status.error { color: #C24A3E; }

.success-card {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 18px; padding: 56px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px;
  animation: pop-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.success-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--green-bg); display: flex; align-items: center; justify-content: center; }
.success-card .title { font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.success-card .desc { font-size: 17px; color: var(--text-soft); line-height: 1.6; }

/* ---------- footer ---------- */
.footer { background: var(--dark); padding: 64px clamp(16px, 4vw, 64px) 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; padding-bottom: 56px; border-bottom: 1px solid rgba(248, 245, 239, 0.1); }
.footer-logo { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; font-size: 24px; color: var(--bg); }
.footer-tagline { font-size: 14px; color: rgba(248, 245, 239, 0.5); margin-top: 16px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .h { font-size: 13px; font-weight: 700; color: rgba(248, 245, 239, 0.4); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.footer-col a { font-size: 15px; color: rgba(248, 245, 239, 0.75); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-contact { font-size: 15px; color: rgba(248, 245, 239, 0.75); }
.footer-placeholder { color: rgba(248, 245, 239, 0.35); font-style: italic; }
.footer-social { display: flex; gap: 16px; margin-top: 4px; }
.footer-social a { font-size: 14px; color: rgba(248, 245, 239, 0.6); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 12px; }
.footer-bottom .copy { font-size: 13px; color: rgba(248, 245, 239, 0.4); }
.footer-bottom .links { display: flex; gap: 24px; }
.footer-bottom a { font-size: 13px; color: rgba(248, 245, 239, 0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { animation: stagger-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.reveal-stagger.in-view > *:nth-child(1) { animation-delay: 0.02s; }
.reveal-stagger.in-view > *:nth-child(2) { animation-delay: 0.08s; }
.reveal-stagger.in-view > *:nth-child(3) { animation-delay: 0.14s; }
.reveal-stagger.in-view > *:nth-child(4) { animation-delay: 0.2s; }
.reveal-stagger.in-view > *:nth-child(5) { animation-delay: 0.26s; }
.reveal-stagger.in-view > *:nth-child(6) { animation-delay: 0.32s; }
.reveal-stagger.in-view > *:nth-child(7) { animation-delay: 0.38s; }
.reveal-stagger.in-view > *:nth-child(8) { animation-delay: 0.44s; }
.reveal-stagger.in-view > *:nth-child(9) { animation-delay: 0.5s; }

@keyframes stagger-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > *, .hero-media, .img-slot, .success-card, .bar {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    order: 3;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
  }
}
