/* ============================================================
   RestoIQ — light theme, gold accents
   ============================================================ */
:root {
  --gold: #D4AF37;
  --gold-dark: #B8962E;
  --gold-light: #F5ECCF;
  --ink: #141414;
  --ink-2: #3a3a3a;
  --gray: #6b6b6b;
  --gray-light: #f4f2ec;
  --line: #e5e2d8;
  --white: #ffffff;
  --danger: #b3261e;
  --ok: #2e7d32;
  --shadow: 0 2px 12px rgba(20,20,20,0.06);
  --shadow-lg: 0 12px 40px rgba(20,20,20,0.10);
  --radius: 14px;
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink-2); }
::selection { background: var(--gold-light); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold-dark); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; max-width: 680px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent; transition: all .18s ease;
  text-align: center;
}
.btn-primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--ink); }
.btn-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn-whatsapp:hover { background: #1ebe5d; border-color: #1ebe5d; transform: translateY(-1px); }
.btn-sm { padding: 11px 22px; font-size: .92rem; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo svg { flex: 0 0 auto; }
.logo .logo-text span { color: var(--gold-dark); }
nav.desktop-nav { display: flex; align-items: center; gap: 26px; }
nav.desktop-nav a { font-size: .95rem; font-weight: 600; color: var(--ink-2); position: relative; }
nav.desktop-nav a:hover { color: var(--ink); }
nav.desktop-nav a.active { color: var(--ink); }
nav.desktop-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 2px; background: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }
.mobile-nav { display: none; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 24px; font-weight: 600; border-bottom: 1px solid var(--line); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink); color: #e8e4d9; padding: 64px 0 32px; }
footer .footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
footer a { color: #bdb7a7; font-size: .93rem; display: block; margin-bottom: 9px; }
footer a:hover { color: var(--gold); }
footer .footer-brand p { color: #8d8879; font-size: .92rem; margin-top: 12px; max-width: 320px; }
.footer-bottom { border-top: 1px solid #2a2a2a; margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #8d8879; }
.footer-contact { margin-top: 14px; font-size: .9rem; color: #bdb7a7; }
.footer-contact a { display: inline; color: var(--gold); font-weight: 600; margin-right: 16px; }

/* ---------- Cards & utilities ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card:hover { border-color: var(--gold); }
.gold-line { width: 56px; height: 4px; border-radius: 2px; background: var(--gold); margin: 16px 0 20px; }
.center .gold-line { margin: 16px auto 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--gray-light); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-bar .bar-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 36px; padding: 16px 24px; }
.trust-bar .bar-item { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--ink); }
.trust-bar .bar-item svg { flex: 0 0 auto; color: var(--gold-dark); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 84px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 .accent { color: var(--danger); }
.hero .lead { font-size: 1.22rem; margin-top: 18px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-proof { margin-top: 34px; display: flex; align-items: center; gap: 14px; color: var(--gray); font-size: .9rem; }
.hero-media { position: relative; }
.hero-media .media-frame {
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); background: var(--gray-light);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
}
.hero-media .play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  cursor: pointer; border: none;
}
.hero-media .play-btn svg { margin-left: 4px; }
.stats-strip { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.stat { border-left: 3px solid var(--gold); padding-left: 14px; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 800; }
.stat span { font-size: .85rem; color: var(--gray); }

/* ---------- Leak breakdown ---------- */
.leak-section { background: var(--gray-light); }
.leak-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.leak-card { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); text-align: center; }
.leak-card .amount { font-size: 1.7rem; font-weight: 800; color: var(--danger); }
.leak-card h3 { margin: 8px 0 6px; }
.leak-card p { font-size: .92rem; }

/* ---------- Features ---------- */
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--gold-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-icon svg { color: var(--gold-dark); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; }
.step .num {
  font-size: .85rem; font-weight: 800; color: var(--gold-dark);
  letter-spacing: .1em; margin-bottom: 10px;
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.plan.featured { border: 2px solid var(--gold); box-shadow: var(--shadow-lg); }
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink); font-size: .75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; padding: 5px 16px; border-radius: 999px;
}
.plan h3 { font-size: 1.15rem; }
.plan .price { margin: 16px 0 6px; }
.plan .price strong { font-size: 2.6rem; font-weight: 800; }
.plan .price span { color: var(--gray); font-size: .95rem; }
.plan ul { list-style: none; margin: 18px 0 26px; flex: 1; }
.plan li { font-size: .93rem; color: var(--ink-2); padding: 6px 0; display: flex; gap: 8px; }
.plan li svg { flex: 0 0 auto; margin-top: 4px; color: var(--ok); }

/* ---------- ROI calculator ---------- */
.calc { background: var(--gray-light); border: 1px solid var(--line); border-radius: 18px; padding: 40px; margin-top: 56px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.calc label { font-weight: 700; font-size: .95rem; display: block; margin-bottom: 10px; }
.calc input[type="range"] { width: 100%; accent-color: var(--gold); }
.calc .range-value { font-size: 1.8rem; font-weight: 800; margin-bottom: 18px; }
.calc-results .result-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.calc-results .result-row.total { font-weight: 800; font-size: 1.2rem; border-bottom: none; color: var(--ok); }

/* ---------- Comparison tables ---------- */
table.compare { width: 100%; border-collapse: collapse; margin-top: 28px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.compare th, table.compare td { padding: 15px 18px; text-align: left; font-size: .95rem; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--ink); color: #fff; font-size: .9rem; }
table.compare th.rq, table.compare td.rq { background: var(--gold-light); }
table.compare th.rq { color: var(--ink); }
table.compare td:first-child { font-weight: 600; }
table.compare .check { color: var(--ok); font-weight: 800; }
table.compare .cross { color: var(--danger); font-weight: 800; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 38px; box-shadow: var(--shadow-lg); max-width: 560px; margin: 0 auto; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: #fff; transition: border-color .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); }
.form-success { color: var(--ok); font-weight: 700; padding: 22px; background: #e8f5e9; border-radius: 12px; }
.form-error { color: var(--danger); font-weight: 700; padding: 22px; background: #fdecea; border-radius: 12px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 20px 24px; font-size: 1.02rem; font-weight: 700; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: inherit; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 24px; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 20px; }

/* ---------- Blog ---------- */
.blog-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .18s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.blog-card .blog-img { aspect-ratio: 16/9; background: var(--gray-light); }
.blog-card .blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .blog-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card h3 { margin-bottom: 8px; font-size: 1.12rem; }
.blog-card p { font-size: .92rem; flex: 1; }
.blog-card .read-more { margin-top: 14px; font-weight: 700; color: var(--gold-dark); font-size: .92rem; }

/* ---------- Article body ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.article .meta { color: var(--gray); font-size: .9rem; margin: 14px 0 28px; }
.article h2 { margin: 40px 0 14px; font-size: 1.5rem; }
.article p { margin-bottom: 18px; }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { margin-bottom: 8px; }
.article blockquote { border-left: 4px solid var(--gold); background: var(--gray-light); padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 26px 0; color: var(--ink); }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: 64px 0 56px; }
.page-hero .lead { margin-top: 14px; }
.breadcrumb { font-size: .85rem; color: var(--gray); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold-dark); }

/* ---------- Misc ---------- */
.badge-inline { display: inline-block; background: var(--gold-light); color: var(--gold-dark); font-weight: 700; font-size: .78rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.highlight-box { background: var(--gray-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 26px; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #000; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; }
footer .site-logo-footer svg { margin-bottom: 12px; }

/* ---------- Signup banner (2-field, name + email) ---------- */
.signup-banner {
  background: linear-gradient(135deg, var(--ink) 0%, #26221c 100%);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.signup-banner .sb-inner {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 26px 0;
}
.signup-banner h3 { color: var(--gold); margin: 0 0 4px; font-size: 1.2rem; }
.signup-banner p { margin: 0; color: #bdb7a7; font-size: .95rem; }
.signup-banner .sb-text { flex: 1 1 320px; }
.signup-banner form {
  display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap;
}
.signup-banner input {
  padding: 11px 14px; border: 1px solid rgba(212,175,55,.45);
  background: #fff; color: #141414; border-radius: 8px;
  font-size: .95rem; min-width: 180px; font-family: inherit;
}
.signup-banner input:focus { outline: none; border-color: var(--gold); }
.signup-banner .form-success { color: #7fde96; margin: 0 }
.signup-banner .form-error   { color: #e08a7a; margin: 0 }
.signup-banner .btn-primary { border-radius: 999px; white-space: nowrap; }
@media (max-width: 760px) {
  .signup-banner form { width: 100% }
  .signup-banner input { min-width: 0; flex: 1 }
}

/* ============================================================
   RestoIQ upgrade — scroll animations & counters
   Lightweight CSS-first reveals; respects reduced motion
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .08s }
.reveal[data-delay="2"] { transition-delay: .16s }
.reveal[data-delay="3"] { transition-delay: .24s }
.reveal[data-delay="4"] { transition-delay: .32s }
.reveal[data-delay="5"] { transition-delay: .40s }

/* Card hover lift */
.card, .leak-card, .step, .plan {
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover, .leak-card:hover, .step:hover, .plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(20,20,16,.12);
}

/* Hero entrance cascade */
.hero h1, .hero .eyebrow, .hero .lead, .hero-ctas, .hero-proof, .hero .media-frame {
  opacity: 0;
  transform: translateY(20px);
  animation: rqRise .8s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero .eyebrow            { animation-delay: .05s }
.hero h1                  { animation-delay: .15s }
.hero .lead               { animation-delay: .25s }
.hero-ctas                { animation-delay: .35s }
.hero-proof               { animation-delay: .45s }
.hero .media-frame        { animation-delay: .3s }
@keyframes rqRise {
  to { opacity: 1; transform: translateY(0) }
}

/* WhatsApp/contact button micro pulse */
.btn-whatsapp { position: relative; }
.btn-whatsapp::after {
  content: "";
  position: absolute; inset: -4px;
  border: 1px solid rgba(37,211,102,.45);
  border-radius: inherit;
  animation: rqPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes rqPulse {
  0%   { transform: scale(.96); opacity: 1 }
  100% { transform: scale(1.08); opacity: 0 }
}

/* Reduced motion — disable everything above */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; animation: none }
  .reveal.visible { opacity: 1; transform: none }
  .hero h1, .hero .eyebrow, .hero .lead, .hero-ctas, .hero-proof, .hero .media-frame { animation: none; opacity: 1; transform: none }
  .btn-whatsapp::after { animation: none }
  .card, .leak-card, .step, .plan { transition: none }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .leak-grid, .steps, .pricing-grid, .calc-grid { grid-template-columns: 1fr; }
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.desktop-nav { display: none; }
  .nav-cta .btn { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  footer .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .calc { padding: 26px; }
  table.compare { font-size: .82rem; }
  table.compare th, table.compare td { padding: 10px 10px; }
}

/* Hero waitlist form */
.hero-signup { margin-top:22px; max-width:460px; }
.hero-signup form { display:flex; gap:8px; }
.hero-signup input { flex:1; padding:10px 14px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:.95rem; font-family:inherit; }
.hero-signup input:focus { outline:2px solid var(--gold); border-color:var(--gold); }
.hero-signup .sb-note { display:block; margin-top:8px; font-size:.82rem; color:var(--ink-3); }
@media (max-width:640px) {
  .hero-signup form { flex-direction:column; }
  .hero-signup .sb-note { font-size:.78rem; }
}
