/* === Meta Ads Cleaner — landing styles ===
   Light theme close to Meta's design language.
   Primary CTA: Ko-fi orange. Accent: Meta blue.
*/

:root {
  --meta-blue: #1877F2;
  --meta-blue-hover: #166FE5;
  --kofi-orange: #FF5722;
  --kofi-orange-hover: #FF7B3A;
  --bg: #FFFFFF;
  --bg-soft: #F0F2F5;
  --bg-card: #FFFFFF;
  --text: #1C1E21;
  --text-muted: #65676B;
  --border: #DADDE1;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--meta-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* === Top nav === */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1100px; margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--text); }
.nav-brand-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, var(--kofi-orange) 0%, var(--kofi-orange-hover) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 14px;
}
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--text); font-size: 14px; }
.nav-cta {
  background: var(--kofi-orange);
  color: white !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px;
  transition: background 0.15s ease, transform 0.08s ease;
}
.nav-cta:hover { background: var(--kofi-orange-hover); text-decoration: none; transform: translateY(-1px); }

@media (max-width: 700px) { .nav-links a:not(.nav-cta) { display: none; } }

/* === Hero === */
.hero {
  padding: 80px 0 70px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FA 100%);
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--kofi-orange);
  letter-spacing: 1.2px; text-transform: uppercase;
  background: #FFF1EC;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 52px; font-weight: 800;
  margin: 0 0 18px; letter-spacing: -1.2px; line-height: 1.1;
}
.hero h1 .accent { color: var(--kofi-orange); }
.hero-sub {
  font-size: 19px; color: var(--text-muted);
  max-width: 640px; margin: 0 auto 32px; line-height: 1.55;
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px;
  border: none; cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--kofi-orange) 0%, var(--kofi-orange-hover) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 87, 34, 0.45);
  text-decoration: none;
}
.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--bg-soft); transform: translateY(-1px); text-decoration: none; }

.hero-mock {
  max-width: 720px; margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
}
.hero-mock-bar {
  background: var(--bg-soft);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 6px;
}
.hero-mock-dot { width: 12px; height: 12px; border-radius: 50%; background: #DADDE1; }
.hero-mock-dot.red { background: #FF5F57; }
.hero-mock-dot.yellow { background: #FEBC2E; }
.hero-mock-dot.green { background: #28C840; }
.hero-mock-body {
  padding: 32px 24px;
  text-align: left;
  background: linear-gradient(180deg, #FAFBFC 0%, #FFFFFF 100%);
  min-height: 280px;
  display: flex; flex-direction: column; gap: 14px;
}
.mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.mock-toggle {
  width: 36px; height: 20px; border-radius: 999px;
  background: #BCC0C4; position: relative;
}
.mock-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: white;
  transition: left 0.3s ease;
}
.mock-toggle.on { background: var(--kofi-orange); }
.mock-toggle.on::after { left: 18px; }

/* === Section === */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-soft); }
.section h2 {
  font-size: 36px; font-weight: 800;
  letter-spacing: -0.6px;
  text-align: center; margin: 0 0 14px;
}
.section-sub {
  text-align: center; color: var(--text-muted);
  max-width: 640px; margin: 0 auto 56px; font-size: 17px;
}

/* === Features grid === */
.features {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFE2D3 0%, #FFD4BD 100%);
  color: var(--kofi-orange);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.feature p { color: var(--text-muted); font-size: 14.5px; margin: 0; line-height: 1.55; }

/* === How it works === */
.steps {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
}
.step {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute; top: -16px; left: 22px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--kofi-orange);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.4);
}
.step h3 { font-size: 17px; font-weight: 700; margin: 8px 0 8px; }
.step p { color: var(--text-muted); font-size: 14.5px; margin: 0; line-height: 1.55; }

/* === FAQ === */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
}
.faq-q::after {
  content: '+';
  font-size: 24px; font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 15px; line-height: 1.6;
}

/* === Math (savings calculator) === */
.math-h3 {
  font-size: 19px; font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.2px;
}

.math-breakdown {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 28px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.math-steps {
  list-style: none; padding: 0; margin: 0 0 18px;
  border-top: 1px solid var(--border);
}
.math-steps li {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr) auto;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  align-items: center;
}
.math-action { font-weight: 600; color: var(--text); }
.math-detail { color: var(--text-muted); font-size: 13.5px; }
.math-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--kofi-orange);
  white-space: nowrap;
  font-size: 13.5px;
}
.math-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  margin-top: 14px;
  background: #FFF1EC;
  border: 1px solid #FFD4BD;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
}
.math-total span:last-child { font-weight: 500; color: var(--text-muted); }
.math-total span:last-child strong { color: var(--kofi-orange); font-weight: 800; font-size: 16px; }
.math-total-good {
  background: #E7F5E9;
  border-color: #B8DCC0;
}
.math-total-good span:last-child strong { color: #1F8C3D; }

.math-calc {
  background: linear-gradient(135deg, #1C1E21 0%, #2D2F34 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 36px 32px 30px;
  box-shadow: var(--shadow-md);
}
.math-calc .math-h3 { color: white; }
.math-calc-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
  margin: 0 0 24px;
  line-height: 1.55;
}

.math-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
}
.math-input label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}
.math-input-row {
  display: flex; align-items: center; gap: 14px;
}
.math-input input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.math-input input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  background: var(--kofi-orange);
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.5);
  transition: transform 0.1s ease;
}
.math-input input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.math-input input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--kofi-orange);
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.5);
}
.math-input output {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px;
  min-width: 60px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.math-results {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.math-result {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.math-result-label {
  font-size: 12px; font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.math-result-big {
  font-size: 32px; font-weight: 800;
  color: white;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin: 6px 0 2px;
}
.math-result-money .math-result-big { color: var(--kofi-orange-hover); }
.math-result-year .math-result-big { color: #FFB37A; font-size: 36px; }
.math-result-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.math-quip {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--kofi-orange);
  padding: 16px 18px;
  margin: 0 0 24px;
  font-size: 14.5px; line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.math-cta { text-align: center; }

@media (max-width: 700px) {
  .math-steps li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
  .math-detail { font-size: 13px; }
  .math-time { justify-self: start; }
  .math-inputs { grid-template-columns: 1fr; }
  .math-results { grid-template-columns: 1fr; }
}

/* === Testimonials === */
.testimonials {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px 22px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial::before {
  content: '"';
  position: absolute;
  top: 6px; left: 18px;
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: var(--kofi-orange);
  opacity: 0.15;
  pointer-events: none;
}
.testimonial blockquote {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
  position: relative;
  z-index: 1;
}
.testimonial blockquote strong { color: var(--kofi-orange); font-weight: 700; }
.testimonial blockquote em { font-style: italic; color: var(--text-muted); }
.testimonial figcaption {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.t-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.t-avatar-pink { background: linear-gradient(135deg, #FF6B9D 0%, #C2185B 100%); }
.t-avatar-orange { background: linear-gradient(135deg, #FF8A4C 0%, #FF5722 100%); }
.t-avatar-blue { background: linear-gradient(135deg, #5DADE2 0%, #1877F2 100%); }
.t-avatar-purple { background: linear-gradient(135deg, #AB7DF6 0%, #6A1B9A 100%); }
.t-avatar-green { background: linear-gradient(135deg, #66BB6A 0%, #2E7D32 100%); }
.t-avatar-teal { background: linear-gradient(135deg, #4DD0E1 0%, #00838F 100%); }
.t-name {
  display: block;
  font-weight: 700; font-size: 14px;
  color: var(--text);
  line-height: 1.3;
}
.t-role {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.testimonial.t-featured {
  background: linear-gradient(135deg, #FFF6F1 0%, #FFFFFF 100%);
  border: 2px solid #FFD4BD;
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.12);
}
.testimonial.t-featured::before { opacity: 0.25; }

.testimonial.t-short blockquote {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.3px;
}

/* === CTA banner === */
.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, #1C1E21 0%, #2D2F34 100%);
  color: white;
  padding: 60px 24px;
  border-radius: var(--radius-lg);
  margin: 40px auto;
  max-width: 900px;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: white; font-size: 32px; margin: 0 0 14px; }
.cta-banner p { color: rgba(255, 255, 255, 0.75); font-size: 17px; margin: 0 0 28px; }

/* === Footer === */
.footer {
  background: #1C1E21;
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 24px 30px;
  font-size: 14px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 40px;
  grid-template-columns: 2fr 1fr 1fr;
}
.footer h4 { color: white; font-size: 14px; font-weight: 700; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer a { color: rgba(255, 255, 255, 0.7); }
.footer a:hover { color: white; }
.footer-brand-block p { line-height: 1.6; margin: 0 0 14px; max-width: 360px; }
.footer-bottom {
  max-width: 1100px; margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  color: rgba(255, 255, 255, 0.5); font-size: 13px;
}

@media (max-width: 700px) {
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .section h2 { font-size: 28px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* === Article (privacy / terms) === */
.article {
  max-width: 760px; margin: 0 auto;
  padding: 60px 24px 80px;
}
.article h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 8px; }
.article .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.article h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.article h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.article p, .article li { color: var(--text); font-size: 15px; line-height: 1.65; }
.article ul, .article ol { padding-left: 22px; }
.article ul li, .article ol li { margin-bottom: 6px; }
.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-soft);
  padding: 2px 6px; border-radius: 4px;
  font-size: 13px;
}
