/* =============================================
   Web Forge Studio - Landing Page Styles
   Palette: Cream hero + Dark navy sections + Orange accents
   ============================================= */

:root {
  --navy:    #1b2a4a;
  --navy-2:  #111d33;
  --navy-3:  #243556;
  --cream:   #f6f6f5;
  --cream-2: #eeeeec;
  --cream-3: #e2e2e0;
  --orange:  #c47a2b;
  --orange-h:#a8661f;
  --orange-deep: #8a5219; /* button hover - kept dark enough for feedback after --orange-h became the resting bg */
  --white:   #ffffff;
  --text:    #1b2a4a;
  --muted:   #6b7280;
  --border:  #e2e2e0;

  /* cream-family alpha tokens (rgba, no solid hex equivalent) */
  --cream-hover-tint:     rgba(244,237,224,0.4);  /* row-hover bg on cream/white surfaces */
  --cream-on-navy-subtle: rgba(244,237,224,0.45); /* low-emphasis icons/links on navy */
  --cream-on-navy-body:   rgba(244,237,224,0.6);  /* secondary body copy on navy, AA-checked */
  --cream-on-navy-label:  rgba(244,237,224,0.7);  /* small caps labels on navy */
  --cream-on-navy-strong: rgba(244,237,224,0.9);  /* high-emphasis text on navy */

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1120px;
  --radius: 10px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---- UTILS ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 14px;
  text-align: center;
}
.section-title--light { color: var(--cream); }
.section-title--left  { text-align: left; }

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 52px;
  text-align: center;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.93rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--orange  { background: var(--orange-h); color: var(--white); } /* was --orange (3.4:1, fails WCAG AA); --orange-h passes 4.58:1 */
.btn--orange:hover { background: var(--orange-deep); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn--outline:hover { border-color: var(--navy); }
.btn--sm  { padding: 9px 18px; font-size: 0.86rem; min-height: 44px; display: inline-flex; align-items: center; }
.btn--lg  { padding: 17px 38px; font-size: 1.05rem; }
.btn--full { display: block; text-align: center; width: 100%; }
.btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  --logo-ink: var(--navy);
}
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--logo-ink);
  white-space: nowrap;
}
/* Legacy raster logo - still used on privacy/tos/unsubscribe pages and the outreach email template */
.logo__img {
  height: 26px;
  width: auto;
}
.logo__img--footer {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer__brand .logo {
  --logo-ink: var(--cream);
}
.nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
}
.nav__links a:not(.btn) {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:not(.btn):hover { color: var(--orange); }
.nav__links a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- HERO ---- */
.hero {
  background: var(--cream);
  padding: 100px 0 80px;
  text-align: center;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 22px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.hero__headline em {
  font-style: normal;
  color: var(--orange);
  font-weight: 800;
}
.hero__sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- TRUST BAR ---- */
.trust {
  background: var(--cream-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}
.trust__icon {
  color: var(--orange);
  font-size: 1rem;
  font-weight: 700;
}

/* ---- HOW IT WORKS ---- */
.how {
  background: var(--navy);
  padding: 88px 0;
  text-align: center;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 52px;
  text-align: left;
}
.step {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: border-color 0.3s, transform 0.3s;
}
.step:hover {
  border-color: rgba(200,135,42,0.4);
  transform: translateY(-4px);
}
.step__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--orange);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 10px;
}
.step p {
  font-size: 0.9rem;
  color: var(--cream-on-navy-body);
  line-height: 1.7;
}

/* ---- PORTFOLIO ---- */
.portfolio {
  background: var(--cream);
  padding: 88px 0;
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.portfolio__item:only-child {
  max-width: 420px;
  margin: 0 auto;
}
.portfolio__item {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.portfolio__name { font-weight: 600; font-size: 0.95rem; padding: 16px 20px; }

/* Before/After mockup */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 260px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(28,35,51,0.12);
  border: 1px solid var(--border);
}
.ba__side { position: relative; overflow: hidden; height: 100%; }
.ba__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  border-radius: 3px;
}
.ba__badge--before { background: rgba(13,13,13,0.8); }
.ba__badge--after  { background: rgba(34,197,94,0.8); }
.ba__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.ba__img-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--cream-2);
  color: var(--muted);
  font-size: 1.8rem;
}

/* ---- ABOUT ---- */
.about {
  background: var(--navy);
  padding: 88px 0;
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.about__photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.about__photo-fallback {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream-on-navy-subtle);
}
.about__photo-fallback span:first-child { font-size: 3rem; margin-bottom: 8px; }
.about__photo-fallback span:last-child { font-size: 0.87rem; font-weight: 600; }

.about__content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 22px;
  max-width: 460px;
  text-wrap: balance;
}
.about__content h2 em {
  font-style: normal;
  color: var(--orange);
  font-weight: 700;
}
.about__content p {
  font-size: 0.93rem;
  color: var(--cream-on-navy-body);
  margin-bottom: 14px;
  line-height: 1.75;
}
.about__sig {
  font-size: 0.88rem !important;
  font-weight: 600;
  color: var(--orange) !important;
  margin-top: 20px !important;
}

/* ---- PRICING ---- */
.pricing {
  background: var(--cream);
  padding: 88px 0;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}
.plan {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28,35,51,0.09); }
.plan__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.plan__price {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 28px;
}
.plan__currency { font-size: 1.5rem; margin-top: 6px; }
.plan__period {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.plan__features {
  list-style: none;
  margin-bottom: 28px;
}
.plan__features li {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.plan__features li:last-child { border-bottom: none; }
.plan__fine {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 14px;
  font-style: italic;
}
.plan__note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: auto;
  padding-top: 14px;
}

/* Comparison table */
.comparison {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow-x: auto;
}
.comparison h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
}
.comparison__wrap { overflow-x: auto; }
.comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 560px;
}
.comparison thead tr { background: var(--navy); }
.comparison th {
  text-align: left;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--cream-on-navy-label);
  letter-spacing: 0.04em;
}
.comparison th.col--us { color: var(--orange); }
.comparison td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.comparison tr:last-child td { border-bottom: none; }
.comparison tr:hover td { background: var(--cream-hover-tint); }
.comparison td.row-label { font-weight: 600; color: var(--text); }
.comparison td.col--us { font-weight: 600; color: var(--text); }
.comparison td.highlight { color: var(--orange); font-weight: 700; }
.comparison__note {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 20px;
  font-style: italic;
}

/* ---- GUARANTEES ---- */
.guarantees {
  background: var(--cream-2);
  padding: 88px 0;
}
.guarantee__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 48px;
}
.guarantee {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.guarantee:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(28,35,51,0.08); }
.guarantee__text {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}
.guarantee__label strong {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 3px;
}
.guarantee__label span {
  font-size: 0.8rem;
  color: var(--muted);
}
.guarantee__badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.guarantee__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.guarantee__badge span { font-size: 1rem; }

/* ---- CTA ---- */
.cta {
  background: var(--navy-3);
  padding: 96px 0;
  text-align: center;
}
.cta__inner { max-width: 620px; margin: 0 auto; }
.cta__accent {
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin: 0 auto 32px;
  border-radius: 2px;
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
}
.cta p {
  font-size: 1rem;
  color: rgba(255,255,255,0.62);
  margin-bottom: 36px;
  line-height: 1.7;
}
.cta__fine {
  margin-top: 14px !important;
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.55) !important;
  margin-bottom: 0 !important;
}
.cta__success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(34,197,94,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* ---- CTA FORM ---- */
.cta__form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta__input {
  flex: 1 1 220px;
  max-width: 280px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.93rem;
}
.cta__input::placeholder { color: rgba(255,255,255,0.4); }
.cta__input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-color: var(--orange);
}
.cta__error {
  color: #fca5a5;
  font-size: 0.82rem;
  margin-top: 10px !important;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cta__error svg { flex-shrink: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- FOOTER ---- */
.footer { background: var(--navy-2); }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer__brand .logo { margin-bottom: 12px; }
.footer__brand p {
  font-size: 0.87rem;
  color: var(--cream-on-navy-body);
  max-width: 260px;
  line-height: 1.6;
}
.footer__nav {
  display: flex;
  gap: 48px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.footer__col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cream-on-navy-strong);
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 0.87rem;
  color: var(--cream-on-navy-body);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--orange); }
.footer__col a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 18px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p, .footer__bottom a {
  font-size: 0.8rem;
  color: var(--cream-on-navy-body);
}
.footer__bottom a:hover { color: var(--orange); }
.footer__bottom a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- ANIMATIONS ---- */
/* Visible by default. JS adds .fade-in-armed only once IntersectionObserver
   is confirmed working, so content never depends on JS/scroll to appear. */
.fade-in-armed {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in-armed.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 820px) {
  .nav__links a:not(.btn) { display: none; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { flex-direction: column; gap: 32px; }
}
@media (max-width: 620px) {
  .comparison__wrap { overflow: visible; }
  .comparison table { min-width: 0; width: 100%; }
  .comparison thead { display: none; }
  .comparison tbody, .comparison tr, .comparison td { display: block; width: 100%; }
  .comparison tr {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin-bottom: 12px;
  }
  .comparison tr:last-child { margin-bottom: 0; }
  .comparison td { border-bottom: none !important; padding: 6px 0; }
  .comparison td.row-label {
    font-family: var(--font-display);
    font-weight: 700;
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border) !important;
  }
  .comparison td:not(.row-label) {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .comparison td:not(.row-label)::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 600;
    font-size: 0.82rem;
  }
}
@media (max-width: 560px) {
  .trust__inner { gap: 20px; }
  .footer__nav { flex-direction: column; gap: 24px; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding: 72px 0 56px; }
  .comparison { padding: 24px 16px; }
  .plan { padding: 28px 20px; }
}
