/* ==========================================================
   EstoTex — Fixed-fee landing pages
   ========================================================== */

:root {
  --navy: #0f172a;
  --navy-800: #1e293b;
  --ink: #0b1220;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --accent-soft: #ecfeff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.container.narrow { max-width: 780px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.8rem;
}
.lead { font-size: 1.15rem; color: var(--text); max-width: 56ch; }
.sub { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3); }
.btn-primary:hover { background: #22d3ee; }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.9rem; background: var(--accent); color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none !important; }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  display: grid; place-items: center;
  font-size: 1.1rem;
}
.logo-text { font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: -0.02em; }
.logo-text span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: #cbd5e1; font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav .btn { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 6px;
  flex-direction: column; gap: 5px; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(6, 182, 212, 0.25), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(99, 102, 241, 0.18), transparent 60%),
    var(--navy);
  color: #cbd5e1;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: #cbd5e1; }
.hero .eyebrow { color: var(--accent); }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.8rem 0 1.6rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; font-size: 0.95rem; }
.hero-points li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.hero-visual { position: relative; }
.mock-browser {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: rotate(-2deg);
}
.mock-bar { background: #f1f5f9; padding: 10px 14px; display: flex; gap: 6px; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock-bar span:first-child { background: #fb7185; }
.mock-bar span:nth-child(2) { background: #fbbf24; }
.mock-bar span:nth-child(3) { background: #34d399; }
.mock-body { padding: 28px; }
.mock-line { height: 14px; border-radius: 7px; background: var(--navy); margin-bottom: 12px; }
.mock-line.light { background: #e2e8f0; height: 10px; }
.w60 { width: 60%; } .w75 { width: 75%; } .w90 { width: 90%; }
.mock-btn { width: 130px; height: 36px; border-radius: 999px; background: var(--accent); margin: 20px 0 24px; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-grid div { height: 70px; border-radius: 10px; background: #f1f5f9; border: 1px solid #e2e8f0; }

.price-tag {
  position: absolute;
  right: -10px; bottom: -22px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 0.8rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transform: rotate(3deg);
}
.price-tag-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.price-tag-value { font-size: 1.5rem; font-weight: 800; color: var(--accent-dark); }

/* ---------- Strip ---------- */
.strip { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; padding: 1.6rem 0;
}
.strip-inner div { display: flex; flex-direction: column; }
.strip-inner strong { color: var(--ink); font-size: 1rem; }
.strip-inner span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 3rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1.1rem;
}
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- Pricing ---------- */
.pricing-grid { align-items: stretch; }
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem 1.9rem;
  display: flex; flex-direction: column;
}
.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.18);
  transform: translateY(-8px);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--ink);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.35rem; }
.plan-desc { color: var(--muted); font-size: 0.95rem; min-height: 3em; }
.plan-price { font-size: 2.6rem; font-weight: 800; color: var(--ink); margin: 0.4rem 0 1.4rem; letter-spacing: -0.02em; }
.plan-features { list-style: none; margin-bottom: 2rem; flex: 1; }
.plan-features li { padding: 0.5rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.plan-features li::before { content: "✓"; color: var(--accent-dark); font-weight: 700; margin-right: 0.6rem; }
.pricing-note { text-align: center; margin-top: 2.5rem; color: var(--muted); }

/* ---------- Process ---------- */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  counter-reset: step;
}
.step { position: relative; padding-top: 0.5rem; }
.step-num {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--accent);
  font-weight: 800; font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.step p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.8rem; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 1.4rem;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 0; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--accent-dark); line-height: 1; transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #cbd5e1; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact h2 { color: #fff; }
.contact .sub { color: #cbd5e1; }
.contact .eyebrow { color: var(--accent); }
.contact-details { list-style: none; margin-top: 2rem; display: grid; gap: 0.8rem; }
.contact-details strong { display: block; color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-details a { color: var(--accent); }

.contact-form {
  background: #fff; color: var(--text);
  border-radius: 18px; padding: 2rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  display: grid; gap: 1.1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.field input, .field select, .field textarea {
  font: inherit; width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-alt); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2); background: #fff;
}
.field input.invalid, .field textarea.invalid { border-color: #ef4444; }
.form-status { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--accent-dark); min-height: 1.2em; }
.form-status.error { color: #dc2626; }
.form-hint { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #94a3b8; padding: 3.5rem 0 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-brand p { margin-top: 1rem; max-width: 32ch; font-size: 0.95rem; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-col p { font-size: 0.95rem; line-height: 1.9; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-top: 1.5rem; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 1rem auto 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .site-nav .btn { margin-top: 0.8rem; border-bottom: 0; }

  .hero { padding: 3.5rem 0 4rem; }
  .hero-visual { margin-top: 2rem; }
  .price-tag { right: 0; }
  .section { padding: 4rem 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .plan-featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
}

@media (max-width: 420px) {
  .strip-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .faq-item summary::after { transition: none; }
}
