/*
Theme Name: M-Powered Child
Description: M-Powered Marketing – AEO & ADA consultancy site
Template: twentytwentyfive
Version: 1.0.0
*/

/* === TOKENS === */
:root {
  --lime:      #C6F432;
  --lime-dark: #A8CF1A;
  --ink:       #0A0E1A;
  --off-white: #FAFAF7;
  --mid:       #4A5568;
  --border:    #E2E8F0;
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --max-w:     1200px;
  --gap:       clamp(1.25rem, 4vw, 2rem);
  --section:   clamp(3rem, 6vw, 5rem);
  --radius:    8px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--lime-dark); }

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--lime);
  color: var(--ink);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}
.screen-reader-text:focus {
  clip: auto;
  height: auto;
  width: auto;
  overflow: visible;
}

/* === CONTAINER === */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* === TYPE === */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); margin-bottom: .5rem; }
p  { margin-bottom: 1rem; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all .15s;
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary  { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn--primary:hover  { background: var(--lime-dark); border-color: var(--lime-dark); color: var(--ink); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--off-white); }
.btn--ghost { background: transparent; color: var(--mid); border-color: var(--border); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn--nav {
  background: var(--lime);
  color: var(--ink);
  padding: .4rem .9rem;
  font-size: .85rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid var(--lime);
  transition: all .15s;
}
.btn--nav:hover { background: var(--lime-dark); border-color: var(--lime-dark); color: var(--ink); }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-top: 2rem;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,26,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}
.site-logo {
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--off-white);
  letter-spacing: -.03em;
  white-space: nowrap;
}
.logo-mark { color: var(--lime); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
}
.site-nav ul a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s;
}
.site-nav ul a:hover { color: var(--off-white); }

/* === SECTIONS === */
.section { padding-block: var(--section); }
.section--alt { background: white; }
.section--answer { background: var(--ink); padding-block: 1.75rem; }
.section--hero {
  background: var(--ink);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.section--cta {
  background: var(--ink);
  text-align: center;
}
.section--cta h2 { color: var(--off-white); }
.section--cta .cta-group { justify-content: center; }

/* === DIRECT ANSWER === */
.direct-answer {
  font-size: .9rem;
  color: rgba(250,250,247,.55);
  font-style: italic;
  line-height: 1.75;
  max-width: 80ch;
  margin: 0;
}

/* === HERO === */
.hero__headline {
  color: var(--off-white);
  max-width: 20ch;
  margin-bottom: 1.25rem;
}
.hero__subhead {
  color: rgba(250,250,247,.72);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 55ch;
  line-height: 1.6;
}

/* === FEATURE GRID === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-item {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

/* === THREE PATHS === */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.path-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
}
.path-card--featured {
  border-color: var(--lime);
  background: white;
}
.path-card__label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--mid);
  margin-bottom: .75rem;
}
.path-card--featured .path-card__label { color: var(--lime-dark); }
.path-card h3 { margin-bottom: .75rem; }
.path-card p  { flex: 1; font-size: .93rem; color: var(--mid); }
.path-card__cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  color: var(--ink);
  transition: color .15s;
}
.path-card__cta:hover { color: var(--lime-dark); }
.path-card--featured .path-card__cta { color: var(--lime-dark); }

/* === WHAT GETS BUILT === */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1.5rem;
}
.build-list {
  list-style: none;
  padding: 0;
}
.build-list li {
  padding: .75rem 0 .75rem 1.75rem;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  position: relative;
}
.build-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--lime-dark);
  font-weight: 700;
}

/* === TESTIMONIALS === */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.testimonial {
  padding: 2rem;
  background: white;
  border-left: 4px solid var(--lime);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.testimonial p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--mid);
}

/* === FOOTER === */
.site-footer {
  background: var(--ink);
  color: rgba(250,250,247,.7);
  padding-block: 3rem;
  font-size: .9rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer__brand .site-logo {
  color: var(--off-white);
  display: block;
  margin-bottom: .75rem;
  font-size: .95rem;
}
.site-footer__brand p {
  font-size: .875rem;
  color: rgba(250,250,247,.55);
  margin-bottom: .2rem;
}
.footer-tagline { font-size: .8rem !important; color: rgba(250,250,247,.55) !important; }
.site-footer nav ul,
.footer-external ul {
  list-style: none;
  padding: 0;
}
.site-footer nav a,
.footer-external a {
  color: rgba(250,250,247,.6);
  text-decoration: none;
  font-size: .875rem;
  line-height: 2.2;
  transition: color .15s;
  display: block;
}
.site-footer nav a:hover,
.footer-external a:hover { color: var(--off-white); }
.site-footer__bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.affiliate-disclosure,
.copyright {
  font-size: .78rem;
  color: rgba(250,250,247,.55);
  max-width: none;
}

/* === TL;DR LIST === */
.tldr-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}
.tldr-list li {
  padding: .6rem 0 .6rem 1.75rem;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  position: relative;
}
.tldr-list li:last-child { border-bottom: none; }
.tldr-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--lime-dark);
  font-weight: 700;
}

/* === FAQ === */
.faq-list { margin-top: 1.5rem; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-list dt {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .5rem;
  cursor: default;
  color: var(--ink);
}
.faq-list dd {
  margin: 0;
  color: var(--mid);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 72ch;
}

/* === DEFINITION LIST (AEO + accessibility page) === */
.definition-list { margin-top: 1.5rem; }
.definition-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: .5rem 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.definition-item:first-child { border-top: 1px solid var(--border); }
.definition-list dt { font-size: .95rem; padding-top: .1rem; }
.definition-list dd { margin: 0; color: var(--mid); font-size: .95rem; line-height: 1.7; }
code {
  font-family: var(--mono);
  font-size: .85em;
  background: rgba(10,14,26,.06);
  padding: .1em .35em;
  border-radius: 3px;
}

/* === PRICING TABLE === */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: .95rem;
}
.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.pricing-table thead th {
  background: var(--ink);
  color: var(--off-white);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover td { background: rgba(198,244,50,.06); }

/* === PRICING CARD === */
.pricing-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  background: white;
}
.pricing-card h3 { margin-bottom: .75rem; }
.pricing-card ul {
  margin: .75rem 0 1rem;
}
.pricing-card li { font-size: .95rem; }

/* === PROCESS LIST === */
.process-list {
  padding-left: 1.5rem;
  margin-top: 1rem;
}
.process-list li {
  padding: .75rem 0 .75rem .5rem;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  line-height: 1.65;
}
.process-list li:last-child { border-bottom: none; }

/* === CONTACT GRID === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.contact-item {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.contact-item h2 { font-size: 1.2rem; margin-bottom: 0; }
.contact-item p { flex: 1; font-size: .95rem; color: var(--mid); margin: 0; }

/* === CONTACT SPLIT === */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* === ABOUT LINKS === */
.about-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.about-links li { margin: 0; }
.about-links a {
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--lime);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.about-links a:hover { color: var(--lime-dark); border-color: var(--lime-dark); }

/* === FORM EMBED === */
.form-embed {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.form-embed iframe {
  display: block;
  width: 100%;
}

/* === FEATURE ITEM LINK === */
.feature-item .path-card__cta { margin-top: 1rem; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .site-nav ul { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .definition-item { grid-template-columns: 1fr; gap: .25rem; }
  .contact-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feature-grid,
  .paths-grid,
  .testimonials,
  .two-col,
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cta-group { flex-direction: column; align-items: flex-start; }
  .section--cta .cta-group { align-items: center; }
  .pricing-table { font-size: .85rem; }
  .pricing-table th, .pricing-table td { padding: .6rem .75rem; }
}
