
/* ==========================================================================
   a9mdesign.com — Mobile-first, SEO-friendly promo site
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f9ff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.12);
  --primary: #0ea5e9;
  --primary-2: #22c55e;
  --card: #ffffff;

  --radius: 18px;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.10);

  --container: 1120px;
  --pad: clamp(18px, 4vw, 36px);

  --h1: clamp(2.0rem, 4.6vw, 3.1rem);
  --h2: clamp(1.5rem, 3.2vw, 2.1rem);
  --h3: clamp(1.15rem, 2.2vw, 1.4rem);
  --p: 1.02rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.container {
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--text);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img { width: 180px; height: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--text);
}

.nav-toggle span {
  display: inline-block;
  width: 18px;
  height: 12px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.nav-toggle span::before { top: 1px; }
.nav-toggle span::after { bottom: 1px; }

.nav {
  display: none;
  position: absolute;
  right: var(--pad);
  top: 64px;
  width: min(320px, calc(100% - (var(--pad) * 2)));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
}

.nav.open { display: block; }

.nav a {
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 650;
}

.nav a:hover {
  background: rgba(14, 165, 233, 0.10);
  text-decoration: none;
}

.nav a.active {
  background: rgba(34, 197, 94, 0.12);
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }

  .nav {
    display: flex;
    position: static;
    width: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 6px;
  }

  .nav a { padding: 10px 12px; }
}

main { display: block; }

.section {
  padding: clamp(44px, 6vw, 86px) 0;
}

.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
}

h1 { font-size: var(--h1); line-height: 1.12; margin: 14px 0 12px; letter-spacing: -0.02em; }
h2 { font-size: var(--h2); line-height: 1.18; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: var(--h3); line-height: 1.25; margin: 20px 0 10px; }
h4 { font-size: 1.06rem; margin: 0 0 8px; }

p { font-size: var(--p); color: var(--muted); margin: 0 0 14px; max-width: 72ch; }

.lead { font-size: 1.12rem; color: var(--text); opacity: 0.92; max-width: 70ch; }

.hero {
  padding: clamp(48px, 7vw, 100px) 0 clamp(30px, 5vw, 70px);
  background:
    radial-gradient(900px 420px at 20% 20%, rgba(14, 165, 233, 0.14), transparent 60%),
    radial-gradient(900px 420px at 80% 80%, rgba(34, 197, 94, 0.12), transparent 60%);
}

.hero-grid {
  display: grid;
  gap: 26px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.hero-bullets li {
  padding-left: 18px;
  position: relative;
  color: var(--muted);
  max-width: 72ch;
}

.hero-bullets li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary-2);
  position: absolute;
  left: 0;
  top: 10px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10);
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-color: transparent;
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  border-color: transparent;
}

.btn.ghost {
  background: #fff;
  color: var(--text);
}

.cards {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.card h3, .card h4 { margin-top: 10px; }

.card p { margin-bottom: 10px; }

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.two-col {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
  max-width: 72ch;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: rgba(15, 23, 42, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.steps li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.steps.compact li { padding: 14px; }

.steps h3, .steps h4 { margin: 0 0 8px; }

.callout {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(14, 165, 233, 0.20);
  background: rgba(14, 165, 233, 0.08);
}

.callout h3 { margin-top: 0; }

.feature-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

@media (min-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.cta-banner {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
}

.cta-banner h3 { margin: 0 0 8px; color: #fff; }

.cta-banner p { color: rgba(255, 255, 255, 0.85); }

.cta-banner .btn { margin-top: 6px; }

.media-row {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  align-items: center;
}

@media (min-width: 820px) {
  .media-row { grid-template-columns: 160px 1fr; }
}

.page-hero {
  padding: clamp(42px, 6vw, 74px) 0 clamp(22px, 4vw, 44px);
  background:
    radial-gradient(800px 360px at 25% 20%, rgba(14, 165, 233, 0.14), transparent 55%),
    radial-gradient(800px 360px at 75% 80%, rgba(34, 197, 94, 0.10), transparent 55%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.pricing-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

@media (min-width: 960px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.price-card.featured {
  border-color: rgba(14, 165, 233, 0.30);
  box-shadow: 0 18px 30px rgba(14, 165, 233, 0.12);
}

.price-note {
  display: inline-block;
  margin: 6px 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
}

.price-card ul {
  padding-left: 18px;
  margin: 0 0 12px;
  color: var(--muted);
}

.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fff;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

.faq p { margin-top: 10px; }

.contact-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

@media (min-width: 980px) {
  .contact-grid { grid-template-columns: 1.2fr 0.8fr; }
}

.contact-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  max-width: 680px;
}

.field-row label {
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
}

.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 1rem;
  background: #fff;
}

.field-row textarea { resize: vertical; }

.form-note {
  font-size: 0.94rem;
  color: var(--muted);
  margin-top: 8px;
}

.contact-aside {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.contact-card {
  border: 1px dashed rgba(15, 23, 42, 0.20);
  border-radius: 16px;
  padding: 12px;
  margin-top: 10px;
}

.aside-image { margin-top: 14px; border-radius: 16px; border: 1px solid var(--border); }

.site-footer {
  padding: 46px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.footer-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 880px) {
  .footer-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover { text-decoration: underline; }

.small {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 12px 0 0;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.55);
  outline-offset: 3px;
  border-radius: 10px;
}

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

/* Print */
@media print {
  .site-header, .nav-toggle, .cta-row, .cta-banner { display: none !important; }
  .section { padding: 18px 0; }
}
