:root{
  --bg:#F6F3EE;
  --paper:#ffffff;
  --ink:#0B0F1A;
  --muted:rgba(11,15,26,.70);
  --line:rgba(11,15,26,.10);
  --shadow:0 18px 48px rgba(11,15,26,.10);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,sans-serif;
  background:var(--bg);
  color:var(--ink);
}

.wrap{max-width:1100px;margin:0 auto;padding:0 22px}

.nav{
  position:sticky;top:0;z-index:10;
  background:rgba(246,243,238,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.nav__inner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0}
.brand img{height:34px}
.links{display:flex;gap:18px}
.links a{
  color:rgba(11,15,26,.72);
  text-decoration:none;
  font-weight:700;
  font-size:14px;
}
.links a:hover{opacity:.8}

.btn{
  border:1px solid var(--line);
  border-radius:999px;
  padding:12px 18px;
  font-weight:800;
  text-decoration:none;
  color:var(--ink);
  background:var(--paper);
  display:inline-flex;align-items:center;justify-content:center;
}
.btn--dark{background:var(--ink);color:#fff;border-color:rgba(11,15,26,.25)}
.btn--ghost{background:transparent}

.hero{padding:70px 0 24px}
.hero__grid{display:grid;grid-template-columns:1.05fr .95fr;gap:36px;align-items:center}
.hero h1{font-size:52px;line-height:1.05;letter-spacing:-.03em;margin:0 0 14px}
.hero p{font-size:18px;line-height:1.65;margin:0 0 18px;color:var(--muted);max-width:560px}
.hero__cta{display:flex;gap:12px;flex-wrap:wrap}
.hero__art img{width:100%;height:auto;display:block}

.section{padding:56px 0}
.section.alt{padding:56px 0;background:rgba(255,255,255,.28);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section__head{max-width:720px}
.section__head h2{font-size:34px;margin:0 0 10px;letter-spacing:-.02em}
.section__head p{margin:0;color:var(--muted);font-size:16px;line-height:1.6}

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}
.card{
  background:rgba(255,255,255,.82);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.card h3{margin:0 0 8px;font-size:18px}
.card p{margin:0;color:var(--muted);line-height:1.6}

.section__media{margin-top:22px}
.section__media img{width:100%;max-width:980px;display:block}

.steps{display:grid;grid-template-columns:1fr;gap:12px;margin-top:22px;max-width:760px}
.step{
  display:flex;gap:14px;align-items:flex-start;
  padding:18px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:rgba(255,255,255,.82);
  box-shadow:var(--shadow);
}
.step__num{
  width:34px;height:34px;border-radius:50%;
  background:var(--ink);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;
}
.step h3{margin:0 0 6px;font-size:18px}
.step p{margin:0;color:var(--muted);line-height:1.6}

.compare{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}
.box{
  background:rgba(255,255,255,.82);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.box--dark{background:var(--ink);color:#fff}
.box h3{margin:0 0 10px}
.box ul{margin:0;padding-left:18px;line-height:1.75}
.box--dark ul{color:rgba(255,255,255,.85)}

.faq{margin-top:18px;max-width:820px}
.faq__q{
  width:100%;
  background:rgba(255,255,255,.82);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-weight:800;
  cursor:pointer;
  box-shadow:var(--shadow);
  margin-bottom:10px;
}
.faq__a{
  display:none;
  padding:0 4px 16px 4px;
  color:var(--muted);
  line-height:1.7;
  max-width:760px;
}
.faq__q[aria-expanded="true"] + .faq__a{display:block}

.final{padding:70px 0}
.final__grid{display:grid;grid-template-columns:1.05fr .95fr;gap:30px;align-items:center}
.final h2{font-size:34px;margin:0 0 10px}
.final p{margin:0 0 18px;color:var(--muted);line-height:1.7}
.form{
  background:rgba(255,255,255,.82);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
  max-width:520px;
}
label{display:block;font-weight:800;font-size:13px;margin-bottom:10px}
input{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:600;
}
.form button{margin-top:6px;width:100%}

.foot{border-top:1px solid var(--line);padding:26px 0}
.foot__inner{display:flex;align-items:center;justify-content:space-between;gap:14px}
.foot img{height:30px}
.foot__links{display:flex;gap:14px}
.foot__links a{text-decoration:none;color:rgba(11,15,26,.70);font-weight:800;font-size:14px}

.fine{font-size:12px;color:rgba(11,15,26,.55);line-height:1.6;margin-top:10px}

@media(max-width:980px){
  .hero__grid,.final__grid{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr}
  .compare{grid-template-columns:1fr}
  .links{display:none}
}


/* =========================
   Mobile Optimization
   ========================= */
@media (max-width: 768px) {
  .hero {
    padding: 40px 0 10px;
  }

  .hero__grid,
  .final__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.15;
  }

  .hero p {
    font-size: 16px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__art img,
  .section__media img,
  .final__art img {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .section {
    padding: 42px 0;
  }

  .section__head h2 {
    font-size: 28px;
  }

  .section__head p {
    font-size: 15px;
  }

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

  .card {
    padding: 16px;
  }

  .steps {
    gap: 10px;
  }

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

  .faq__q {
    font-size: 15px;
    padding: 14px;
  }

  .final h2 {
    font-size: 30px;
  }

  .form {
    max-width: 100%;
  }

  .nav__inner {
    gap: 10px;
  }

  .brand img {
    height: 28px;
  }

  .links {
    display: none;
  }
}

@media (max-width: 420px) {
  h1, h2 {
    letter-spacing: -0.01em;
  }

  .hero h1 {
    font-size: 32px;
  }

  .btn {
    padding: 14px 16px;
    font-size: 15px;
  }
}



/* =========================
   Illustration Bug Fixes
   ========================= */
.section__media,
.hero__art,
.final__art {
  overflow: hidden;
}

.hero__art img,
.section__media img,
.final__art img {
  display: block;
  height: auto;
  max-width: 100%;
}

/* Prevent oversized SVGs from stretching mobile layouts */
@media (max-width: 768px) {
  .final__art img,
  .section__media img,
  .hero__art img {
    max-height: 360px;
    width: 100%;
    object-fit: contain;
  }
}

@media (max-width: 420px) {
  .final__art img,
  .section__media img,
  .hero__art img {
    max-height: 300px;
  }
}


/* =========================
   HERO MOBILE HARD FIX
   ========================= */
@media (max-width: 768px) {
  .hero {
    padding-bottom: 0 !important;
  }

  .hero__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .hero__copy {
    margin-bottom: 0 !important;
  }

  .hero__art {
    margin-top: -8px !important;
    padding-top: 0 !important;
  }

  .hero__art img {
    max-height: 260px !important;
    margin: 0 auto !important;
  }

  /* Pull Services section up */
  #services {
    margin-top: -24px !important;
  }
}


/* =========================
   HERO STRUCTURAL MOBILE FIX
   ========================= */

/* Hide desktop hero art on mobile */
@media (max-width: 768px) {
  .hero__art {
    display: none !important;
  }

  .hero__art--mobile {
    display: block !important;
    margin-top: 16px;
  }

  .hero__art--mobile img {
    max-width: 100%;
    max-height: 260px;
    margin: 0 auto;
    display: block;
  }
}

/* Desktop: hide mobile-inserted art */
@media (min-width: 769px) {
  .hero__art--mobile {
    display: none !important;
  }
}


/* =========================
   FINAL MOBILE CLEANUP
   ========================= */

/* On mobile, remove non-essential illustrations */
@media (max-width: 768px) {
  .section__media,
  .final__art {
    display: none !important;
  }

  /* Tighten spacing where images were removed */
  .section {
    padding-bottom: 32px !important;
  }

  .final {
    padding-top: 32px !important;
  }
}


/* =========================
   HERO CLEAN MOBILE ORDER
   ========================= */

@media (max-width: 768px) {
  .hero__grid {
    display: flex;
    flex-direction: column;
  }

  .hero__copy {
    order: 1;
  }

  .hero__art {
    order: 2;
    margin-top: 16px;
  }
}
