/**
 * meetflow.company extras on top of host landing chrome.
 * Stack: fonts.css → mf-tokens.css → mf-components.css → styles.css → this file.
 * Do not re-skin nav/hero/sections — that lives in styles.css.
 */

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 10px;
  color: var(--text);
}

.how-grid.how-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.why-cards.cards-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 920px;
  margin-inline: auto;
}

/* Host .section-head keeps 56px for cards underneath. Copy-only
   EN blocks were leaving that gap plus 96px section padding empty. */
.section > .container > .section-head:last-child,
.why-centered .section-head:last-child {
  margin-bottom: 0;
}
.section-head:has(+ .section-copy),
.why-centered .section-head:has(+ .section-copy) {
  margin-bottom: 24px;
}
.section-head .h2:last-child {
  margin-bottom: 0;
}
.section-copy + .why-cards {
  margin-top: 56px;
}
.section-copy .lead {
  margin-bottom: 24px;
}
.section-copy .lead:last-child {
  margin-bottom: 0;
}
.problem-card > .eyebrow-acc {
  margin: 0;
}

.price-card,
.how-card,
.faq-item,
.platform,
.pull-quote,
.final-cta,
.why-cards.cards-4 > * {
  min-width: 0;
  max-width: 100%;
}

.price-card .btn,
.hero-cta .btn {
  white-space: normal;
  height: auto;
  text-align: center;
}

#pricing .price-desc {
  white-space: normal;
}

.price-hours {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.price-card.featured .price-hours {
  color: inherit;
}

.price-hours-bonus {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  line-height: 1.35;
}

.price-card.featured .price-hours-bonus {
  color: var(--on-accent-dim);
}

#pricing .price-list {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  justify-self: center;
  align-self: start;
  align-items: stretch;
  text-align: left;
}

#pricing .price-list li {
  justify-content: flex-start;
  text-align: left;
}

.pull-quote {
  margin: 0 auto 24px;
  max-width: 720px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}
.pull-quote.nested {
  margin: 12px 0;
  padding: 12px 14px;
  font-size: 14px;
}
.problem-card.featured .pull-quote {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: rgba(255, 255, 255, 0.45);
  color: inherit;
}
.problem-card.featured .eyebrow-acc {
  color: var(--on-accent);
}
.section-copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.section-copy .lead,
.section-copy .sub {
  text-align: left;
}
.section-copy .pull-quote {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 16px;
}
.section-copy .pull-quote:last-of-type {
  margin-bottom: 24px;
}

.browser-body > img {
  width: 100%;
  height: auto;
  display: block;
}

.waitlist-form {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  text-align: left;
}
.waitlist-form .field {
  margin-bottom: 0;
}
.waitlist-form .field label {
  color: var(--on-accent-soft);
}
.waitlist-form .field input {
  min-height: 48px;
  font-size: 16px;
}
.waitlist-form .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.form-status {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
  color: var(--on-accent-soft);
}
.form-status.ok { color: var(--on-accent); }
.form-status.err { color: #fecaca; }

.footer-simple .footer-grid {
  grid-template-columns: 1fr auto;
  align-items: start;
}
.footer-simple .footer-bottom {
  justify-content: space-between;
}

.legal-hero {
  padding: 120px 0 56px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--hero-tint-b), var(--bg) 80%);
}
.legal-hero .eyebrow-acc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.legal-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.legal-hero .meta {
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.legal-body { padding: 64px 0 96px; }
.legal-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: flex-start;
}
.legal-toc { position: sticky; top: 96px; }
.legal-toc-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 12px;
}
.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-toc a {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  display: block;
  line-height: 1.4;
}
.legal-toc a:hover { color: var(--accent); background: var(--accent-soft); }
.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  padding-top: 8px;
  color: var(--text);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0 0 16px;
}
.legal-content ul {
  padding: 0 0 0 20px;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-content li {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.6;
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-404 {
  padding: 140px 0 96px;
  text-align: center;
}
.page-404 .h1 { margin-bottom: 24px; }

.platforms-grid.platforms-en {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .pricing-grid-4,
  .pricing-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1000px) {
  .how-grid.how-grid-3 { grid-template-columns: 1fr; }
  .platforms-grid.platforms-en { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card.featured { transform: none; }
}

@media (max-width: 900px) {
  .browser-body { min-height: 520px; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .legal-hero { padding: 100px 0 40px; }
  .footer-simple .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section-head:has(+ .section-copy),
  .why-centered .section-head:has(+ .section-copy) {
    margin-bottom: 16px;
  }
  .section-copy + .why-cards {
    margin-top: 40px;
  }
}

@media (max-width: 720px) {
  .why-cards.cards-4 { grid-template-columns: 1fr; }
  .platforms-grid.platforms-en { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card .btn,
  .hero-cta .btn {
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .section-copy + .why-cards {
    margin-top: 32px;
  }
}

@media (max-width: 640px) {
  .pricing-grid-4,
  .pricing-grid-5 {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Center the layout on every width. Host .nav is over-constrained
   (left + right + width), so extra space sticks to the right from
   ~1100px through desktop. width:100% + max-width also fails to
   center once the column is narrower than the viewport. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

main,
.hero,
.section,
.hero-marquee,
.marquee,
.footer-simple,
footer {
  width: 100%;
  margin-inline: auto;
}

.nav,
.drawer {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  margin-inline: 0;
}

.container {
  width: min(100%, var(--layout-max));
  margin-inline: auto;
}

.hero-inner {
  width: min(100%, 1180px);
  max-width: min(1180px, 100%);
  margin-inline: auto;
}

.mockup-wrap,
.browser {
  width: 100%;
  margin-inline: auto;
}

.section-head,
.section-copy,
.why-centered .section-head {
  margin-inline: auto;
}

.drawer-cta + .drawer-cta {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .nav-right > a.btn-secondary {
    display: none;
  }
}
