/* SecondRing AI — Missed-Call Rescue landing page
   Plain CSS, no frameworks. Mobile-first. Color system:
   --navy: deep navy (text/footer) · --teal: deep teal (brand)
   --accent: warm amber (CTAs) · --paper: warm off-white backgrounds */

:root {
  --navy: #102a3c;
  --navy-deep: #0b1f2d;
  --teal: #0e4f5c;
  --teal-dark: #0a3d47;
  --accent: #f5a524;
  --accent-dark: #d98a0b;
  --paper: #fbf8f2;
  --card: #ffffff;
  --ink: #1c2b36;
  --muted: #55636e;
  --line: #e4ddd0;
  --radius: 12px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap-narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--navy-deep);
  padding: .6rem 1rem;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 0; }

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

.kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: .5rem;
}
.kicker-light { color: var(--accent); }

.lede { font-size: 1.15rem; color: var(--ink); }
.section-intro { font-size: 1.1rem; color: var(--muted); max-width: 46rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  font-family: inherit;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.btn-accent { background: var(--accent); color: var(--navy-deep); box-shadow: 0 4px 14px rgba(245,165,36,.35); }
.btn-accent:hover { background: var(--accent-dark); }

.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }

.btn-small { padding: .5rem 1.1rem; font-size: .9rem; }
.btn-large { padding: .95rem 1.9rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: .7rem;
  padding-bottom: .7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-weight: 800; font-size: 1.15rem; color: var(--navy); letter-spacing: -0.01em; }
.brand-ai { color: var(--teal); }
nav[aria-label="Primary"] ul.nav-list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav[aria-label="Primary"] a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
nav[aria-label="Primary"] a:hover { color: var(--teal); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--teal-dark) 70%, var(--teal) 100%);
  color: #eef4f6;
  padding: 4.5rem 0 4rem;
}
.hero h1 { color: #fff; }
.hero .lede { color: #d7e5e9; }
.hero .lede strong { color: var(--accent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 1.2rem; }
.trust-line {
  font-size: .9rem;
  color: #a9c3cc;
  margin: 0;
}
.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
}

/* Phone mockup (pure CSS, decorative) */
.phone-card {
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  padding: 1.4rem 1.1rem 1.1rem;
  max-width: 330px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  position: relative;
}
.phone-notch {
  width: 110px; height: 8px; border-radius: 99px;
  background: #d7dee2; margin: 0 auto 1rem;
}
.msg {
  font-size: .86rem;
  line-height: 1.45;
  padding: .6rem .85rem;
  border-radius: 14px;
  margin-bottom: .55rem;
  max-width: 92%;
}
.msg-in { background: #eef1f3; border-bottom-left-radius: 4px; }
.msg-out {
  background: var(--teal);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.phone-caption {
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  margin: .9rem 0 0;
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--paper); }

.stat-grid {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 1.5rem;
}
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.section-alt .stat-card { background: #fff; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal);
  margin: 0 0 .4rem;
  letter-spacing: -0.02em;
}
.stat-card p { font-size: .95rem; margin: 0; }
.stat-note { color: var(--muted); font-size: .85rem; }
.audit-teaser { font-size: 1.05rem; }
.audit-teaser a { color: var(--teal); font-weight: 700; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 2rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: .8rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }
.timeline {
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  text-align: center;
  font-size: 1.05rem;
  margin: 0;
}
.timeline strong { color: var(--accent); }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 1.5rem;
}
@media (min-width: 760px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature-card p { margin: 0; font-size: .97rem; color: var(--muted); }
.feature-card h3 { margin-bottom: .5rem; }
.guardrail-note {
  background: #eef6f4;
  border: 1px solid #cfe3dd;
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  font-size: .95rem;
  margin: 0;
}
.guardrail-note strong { color: var(--teal); }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 1.5rem;
  align-items: stretch;
}
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.price-card h3 { font-size: 1.35rem; }
.price-founding {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 32px rgba(245,165,36,.18);
  position: relative;
}
.price-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .35rem .8rem;
  border-radius: 999px;
  margin: 0 0 1rem;
  align-self: flex-start;
}
.price { margin: 0; }
.price-amount { font-size: 2.6rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.price-per { color: var(--muted); font-size: .95rem; }
.price-sub { color: var(--muted); margin: .2rem 0 1.2rem; }
.price-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.price-list li {
  padding: .45rem 0 .45rem 1.7rem;
  position: relative;
  font-size: .97rem;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}
.price-card .btn { margin-top: auto; }
.price-note {
  font-size: .88rem;
  color: var(--muted);
  background: #fdf6e7;
  border-radius: 8px;
  padding: .7rem 1rem;
  margin: 0 0 1.25rem;
}
.price-guarantee {
  text-align: center;
  font-size: 1.05rem;
  color: var(--teal);
  font-weight: 600;
  margin: 0;
}

/* ---------- Audit section ---------- */
.audit-section {
  background: linear-gradient(135deg, var(--navy-deep), var(--teal-dark));
  color: #eef4f6;
}
.audit-section h2 { color: #fff; }
.audit-section p, .audit-section li { color: #d7e5e9; }
.audit-inner {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) { .audit-inner { grid-template-columns: 1fr 1fr; } }
.audit-points { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.audit-points li {
  padding: .5rem 0 .5rem 1.8rem;
  position: relative;
  font-size: 1.02rem;
}
.audit-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.audit-form-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: .35rem;
  color: var(--navy);
}
.field input {
  width: 100%;
  padding: .75rem .9rem;
  border: 1.5px solid #c9d2d8;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.field input:focus {
  outline: 3px solid rgba(14,79,92,.25);
  border-color: var(--teal);
}
.hidden { position: absolute; left: -9999px; visibility: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; font-size: .95rem; margin: .9rem 0 0; }
.form-status.success { color: #1a7a4a; }
.form-status.error { color: #b3261e; }
.form-privacy { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; }
.form-privacy a { color: var(--teal); }
#audit-form .form-privacy { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 1.75rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .8rem;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  color: var(--navy);
  position: relative;
  padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 1rem;
  font-size: 1.4rem;
  color: var(--accent-dark);
  font-weight: 800;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.faq-item p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #b9cdd6;
  padding: 3rem 0 0;
}
.site-footer .brand-name { color: #fff; }
.tagline { color: var(--accent); font-weight: 600; margin: 0; }
.footer-inner {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr 1.4fr; } }
.footer-contact a { color: var(--accent); font-weight: 700; }
.placeholder-note { font-size: .8rem; color: #7d94a1; }
.footer-privacy h3 { color: #fff; font-size: 1rem; }
.footer-privacy p { font-size: .88rem; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.1rem 1.25rem 1.4rem;
}
.footer-bottom p { margin: 0; font-size: .85rem; color: #7d94a1; }

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
  nav[aria-label="Primary"] { display: none; }
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .price-amount { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
