/* ============================================================
   HomeBase HQ — marketing site styles
   Palette + type per DESIGN.md
   ============================================================ */

:root {
  --cream: #f6f3ed;
  --cream-2: #efeae0;
  --ink: #17201b;
  --forest: #1e3328;
  --forest-2: #2a4635;
  --lime: #c8f04f;
  --lime-soft: #e4f7a8;
  --stone: #6e7370;
  --hairline: rgba(23, 32, 27, 0.08);
  --mist: rgba(255, 255, 255, 0.1);
  --mist-2: rgba(255, 255, 255, 0.16);
  --radius-card: 22px;
  --radius-tile: 18px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 550; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.9rem, 6.4vw, 5rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
h3 { font-size: 1.25rem; line-height: 1.3; }

.accent-word {
  font-style: italic;
  color: inherit;
  background: linear-gradient(var(--lime), var(--lime)) no-repeat left 96% / 100% 0.14em;
  padding-bottom: 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--lime-soft);
  color: var(--ink);
  border-radius: 99px;
  padding: 7px 14px;
}

.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

.lede { color: var(--stone); font-size: 1.125rem; max-width: 34em; }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head .lede { margin-top: 16px; }
.section-head .eyebrow { margin-bottom: 18px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 99px;
  padding: 14px 26px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--ink); color: var(--lime); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(23, 32, 27, 0.25); }

.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { box-shadow: 0 8px 24px rgba(200, 240, 79, 0.4); }

.btn-ghost { border-color: rgba(23, 32, 27, 0.25); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: rgba(23, 32, 27, 0.05); }

.btn-glass { background: var(--mist-2); color: #fff; backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 237, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark .mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--forest);
  display: grid;
  place-items: center;
}

.wordmark .mark svg { width: 16px; height: 16px; }

.nav-links { display: flex; gap: 32px; }

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.nav-links a:hover { opacity: 1; }

.nav .btn { padding: 10px 20px; }

/* ---------- hero ---------- */

.hero { padding: 88px 0 110px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lede { margin-bottom: 36px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-note { font-size: 0.85rem; color: var(--stone); display: flex; align-items: center; gap: 8px; }
.hero-note .stars { color: var(--ink); letter-spacing: 2px; }

/* hero visual: phone + floating tiles */

.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  width: 300px;
  border-radius: 42px;
  background: var(--forest);
  border: 6px solid var(--ink);
  box-shadow: 0 40px 80px rgba(23, 32, 27, 0.35);
  padding: 22px 18px;
  color: #fff;
  position: relative;
  background-image:
    radial-gradient(120% 80% at 80% -10%, rgba(200, 240, 79, 0.16), transparent 55%),
    linear-gradient(165deg, #24402f 0%, #1e3328 55%, #17281f 100%);
}

.phone-notch {
  width: 90px; height: 22px;
  background: var(--ink);
  border-radius: 99px;
  margin: 0 auto 18px;
}

.phone-greeting { font-size: 0.8rem; opacity: 0.7; }
.phone-title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; margin: 4px 0 16px; }
.phone-title em { font-style: italic; color: var(--lime); }

.room-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

.room-tab {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--mist);
  color: rgba(255, 255, 255, 0.75);
}

.room-tab.active { background: var(--lime); color: var(--ink); }

.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.tile {
  background: var(--mist);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-tile);
  padding: 14px;
  backdrop-filter: blur(6px);
}

.tile .t-label { font-size: 0.68rem; opacity: 0.7; margin-bottom: 2px; }
.tile .t-value { font-size: 1.25rem; font-weight: 650; }
.tile .t-value small { font-size: 0.7rem; font-weight: 500; opacity: 0.7; }
.tile .t-sub { font-size: 0.62rem; opacity: 0.55; margin-top: 2px; }

.tile.lit { background: rgba(200, 240, 79, 0.14); border-color: rgba(200, 240, 79, 0.3); }
.tile.lit .t-value { color: var(--lime); }

.meter { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.15); margin-top: 10px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 99px; background: var(--lime); }

.phone-cta {
  margin-top: 14px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.8rem;
  text-align: center;
  border-radius: 99px;
  padding: 11px;
}

/* floating glass stat tiles */

.float-tile {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(23, 32, 27, 0.07);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 16px 40px rgba(23, 32, 27, 0.12);
  animation: floaty 5.5s ease-in-out infinite;
}

.float-tile .f-label { font-size: 0.68rem; color: var(--stone); }
.float-tile .f-value { font-weight: 700; font-size: 1.05rem; }
.float-tile .f-value .up { color: #3d7a3f; font-size: 0.75rem; }

.float-a { top: -3%; left: -2%; animation-delay: 0s; }
.float-b { bottom: 14%; right: -6%; animation-delay: 1.6s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- trust strip ---------- */

.trust { padding: 0 0 40px; }

.trust-inner {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 34px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.trust-label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  max-width: 180px;
}

.trust-stats { display: flex; gap: 56px; justify-content: flex-end; flex-wrap: wrap; }

.stat .s-value { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.stat .s-label { font-size: 0.82rem; color: var(--stone); }

/* ---------- features ---------- */

.features { background: var(--cream); }

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

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

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(23, 32, 27, 0.1);
}

.icon-chip {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--forest);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.icon-chip svg { width: 22px; height: 22px; }

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; color: var(--stone); }

/* ---------- how it works ---------- */

.how { background: var(--cream-2); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }

.step {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--ink);
  opacity: 0.55;
  margin-bottom: 18px;
}

.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.94rem; color: var(--stone); }

.step .tag {
  position: absolute;
  top: 28px; right: 24px;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--lime-soft);
  padding: 5px 10px;
  border-radius: 99px;
}

/* ---------- app showcase (dark) ---------- */

.showcase {
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(200, 240, 79, 0.1), transparent 55%),
    var(--forest);
  color: #fff;
}

.showcase .eyebrow { background: rgba(200, 240, 79, 0.16); color: var(--lime); }
.showcase .eyebrow .dot { background: var(--lime); }
.showcase .lede { color: rgba(255, 255, 255, 0.65); }

.showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.showcase-points { list-style: none; margin-top: 34px; display: grid; gap: 18px; }

.showcase-points li { display: flex; gap: 14px; align-items: flex-start; }

.check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 2px;
}

.showcase-points b { display: block; font-size: 0.98rem; }
.showcase-points span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }

/* dashboard mockup */

.dash {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  padding: 26px;
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
}

.dash-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.dash-head .d-hi { font-family: var(--font-display); font-size: 1.3rem; }
.dash-head .d-env { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.dash .tile { padding: 16px; }
.dash .tile .t-value { font-size: 1.5rem; }

.dash .tile.wide { grid-column: span 2; }

.chat-bubble {
  grid-column: span 3;
  background: var(--mist);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-tile);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.chat-avatar {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.75rem;
}

.chat-bubble .c-name { font-size: 0.7rem; color: var(--lime); font-weight: 650; margin-bottom: 2px; }
.chat-bubble .c-msg { font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); }

/* ---------- testimonials ---------- */

.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.quote-card {
  background: var(--cream-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.quote-card blockquote { font-size: 0.98rem; line-height: 1.65; }

.quote-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }

.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.quote-who .q-name { font-weight: 650; font-size: 0.9rem; }
.quote-who .q-meta { font-size: 0.78rem; color: var(--stone); }

/* ---------- pricing ---------- */

.pricing { background: var(--cream-2); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }

.price-card {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}

.price-card.hot {
  background: var(--forest);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 30px 70px rgba(30, 51, 40, 0.35);
  position: relative;
}

.hot-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.price-name { font-weight: 650; font-size: 1.02rem; margin-bottom: 4px; }
.price-desc { font-size: 0.84rem; color: var(--stone); margin-bottom: 22px; }
.price-card.hot .price-desc { color: rgba(255, 255, 255, 0.6); }

.price-value { font-family: var(--font-display); font-size: 2.7rem; font-weight: 600; }
.price-value small { font-family: var(--font-ui); font-size: 0.85rem; font-weight: 500; color: var(--stone); }
.price-card.hot .price-value small { color: rgba(255, 255, 255, 0.6); }

.price-list { list-style: none; margin: 24px 0 30px; display: grid; gap: 11px; }

.price-list li { font-size: 0.88rem; display: flex; gap: 10px; align-items: baseline; }
.price-list li::before { content: "✓"; font-weight: 800; color: var(--forest); }
.price-card.hot .price-list li::before { color: var(--lime); }

.price-card .btn { margin-top: auto; justify-content: center; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; }

.faq-item { border-bottom: 1px solid var(--hairline); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  padding: 24px 44px 24px 0;
  cursor: pointer;
  position: relative;
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p { color: var(--stone); font-size: 0.95rem; padding: 0 0 24px; max-width: 60ch; }

/* ---------- final CTA ---------- */

.cta-panel {
  background:
    radial-gradient(80% 90% at 15% 10%, rgba(200, 240, 79, 0.14), transparent 55%),
    var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: 80px 56px;
  text-align: center;
}

.cta-panel h2 { margin-bottom: 18px; }
.cta-panel .lede { color: rgba(255, 255, 255, 0.65); margin: 0 auto 36px; }

.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 22px;
  text-decoration: none;
  text-align: left;
  transition: transform 0.15s ease;
}

.store-btn:hover { transform: translateY(-2px); }

.store-btn .s-small { display: block; font-size: 0.62rem; opacity: 0.65; }
.store-btn .s-big { display: block; font-size: 0.95rem; font-weight: 700; line-height: 1.1; }

/* ---------- footer ---------- */

.footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 36px;
  margin-top: 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer .wordmark { color: #fff; margin-bottom: 14px; }
.footer .wordmark .mark { background: var(--lime); }

.footer-tag { font-size: 0.9rem; max-width: 26ch; }

.footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.footer ul { list-style: none; display: grid; gap: 10px; }

.footer ul a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.9rem; }
.footer ul a:hover { color: var(--lime); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-tile { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  section { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero { padding-bottom: 80px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .trust-inner { grid-template-columns: 1fr; gap: 24px; }
  .trust-stats { justify-content: flex-start; gap: 36px; }
  .float-a { left: 0; }
  .float-b { right: 0; }
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash .tile.wide { grid-column: span 2; }
  .chat-bubble { grid-column: span 2; }
  .cta-panel { padding: 56px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
