/* Self-hosted fonts (variable, latin) — no third-party render-blocking request.
   font-display: swap keeps text visible during load (Core Web Vitals). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/oswald-latin.woff2") format("woff2");
}

/* 80/20 Endurance brand (Brand Guidelines PDF, 2026):
   black #000000 · orange #fc6109 · white #ffffff
   supplementary: light orange #ff9137 · lime #e7ff54 */
:root {
  --black: #000000;
  --orange: #fc6109;
  --orange-2: #ff9137;
  --lime: #e7ff54;
  --white: #ffffff;
  --grey-bg: #f5f5f4;
  --grey-text: #555;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .kicker {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

a { color: var(--orange); }

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 3px solid var(--black);
}
.site-header .logo { height: 26px; width: auto; display: block; }
.brand-lockup { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.mom-home-link {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--black) !important;
  text-decoration: none;
  padding-left: 0.7rem;
  border-left: 2px solid var(--orange);
  white-space: nowrap;
}
.mom-home-link:hover { color: var(--orange) !important; }
.site-header nav { display: flex; align-items: center; gap: 1rem; }
.site-header nav a {
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.site-header nav a:hover { color: var(--orange); }
.nav-muted { color: var(--grey-text) !important; font-weight: 500 !important; }
/* mobile hamburger (signed-in nav) — hidden on desktop */
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { position: absolute; left: -9999px; }
.nav-burger { display: none; }

/* buttons */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.btn:hover { background: var(--black); color: var(--white); }
.btn-small { padding: 0.4rem 1rem; font-size: 0.85rem; color: var(--white) !important; }
.btn-full { width: 100%; }
.btn-invert { background: var(--black); }
.btn-invert:hover { background: var(--white); color: var(--black); }
.btn-outline {
  background: transparent;
  color: var(--black) !important;
  box-shadow: inset 0 0 0 2px var(--black);
}
.btn-outline:hover { color: var(--orange) !important; box-shadow: inset 0 0 0 2px var(--orange); background: transparent; }

/* flash */
.flash-wrap { max-width: 1080px; margin: 1rem auto 0; padding: 0 1.25rem; }
.flash {
  background: var(--lime);
  border-left: 5px solid var(--black);
  padding: 0.75rem 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* hero — conversion-first: one message, one primary action */
.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}
.hero .lead { margin-left: auto; margin-right: auto; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 1.75rem 0 0.5rem;
}
.btn-big { font-size: 1.2rem; padding: 1rem 2.5rem; }
.btn-ghost {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-ghost:hover { color: var(--orange); }
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2.5rem auto 0;
  max-width: 720px;
}
.stat-strip div { border-top: 4px solid var(--orange); padding-top: 0.5rem; }
.stat-strip dt {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.stat-strip dd { font-size: 0.9rem; color: var(--grey-text); font-weight: 500; }
.kicker {
  color: var(--orange);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 4.75rem); font-weight: 700; }
.hero h1 .phrase { white-space: nowrap; }
.hero h1 .accent { color: var(--orange); }
.lead { font-size: 1.15rem; margin: 1.25rem 0; max-width: 34em; }

/* plans — the conversion section */
.plans { max-width: 1180px; margin: 0 auto; padding: 3rem 1.25rem; }
.plans-sub { max-width: 44em; margin-bottom: 2rem; }
.plan-grid { display: grid; gap: 1.25rem; }
.plan-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--black);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  position: relative;
}
.plan-card.featured { border-color: var(--orange); border-width: 3px; box-shadow: 0 8px 24px rgba(252, 97, 9, 0.18); }
.plan-card.muted { border-color: #ccc; }
.badge {
  position: absolute;
  top: -0.85rem;
  left: 1.25rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
}
.badge-dark { background: var(--black); }
.plan-card h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.price { font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.price span { font-size: 1.1rem; font-weight: 600; color: var(--grey-text); }
.price-note { font-size: 0.85rem; color: var(--grey-text); margin-bottom: 1rem; }
.feature-list { list-style: none; margin: 0 0 1.5rem; flex-grow: 1; }
.feature-list li {
  padding: 0.4rem 0 0.4rem 1.7rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid #eee;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}
.feature-list li.mom {
  font-weight: 700;
  background: var(--lime);
  border-radius: 4px;
  padding-left: 2rem;
  border-bottom: none;
  margin-bottom: 0.2rem;
}
.feature-list li.mom::before { content: "★"; left: 0.5rem; color: var(--black); }
.feature-list li.no { color: var(--grey-text); }
.feature-list li.no::before { content: "✕"; color: #bbb; }
.plans-fine { margin-top: 1.5rem; }

/* The MoM Mark — AI-provenance sparkle (brand guidelines p.5).
   Orange on light grounds; white on Brand Black. Quiet, never a callout. */
.mom-mark {
  color: var(--orange);
  display: inline-block;
  vertical-align: -0.15em;
  /* brand min height 14px; scale with text above that */
  width: max(1em, 14px);
  height: max(1em, 14px);
  flex-shrink: 0;
}
.mom-mark--on-dark { color: var(--white); }

/* long-form doc pages (how-it-works) */
.doc { max-width: 720px; margin: 0 auto; padding: 3.5rem 1.25rem; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-bottom: 1rem; }
.doc .lead { font-size: 1.15rem; margin-bottom: 2rem; }
.doc h2 { font-size: 1.4rem; margin: 2rem 0 0.6rem; }
.doc p { margin-bottom: 1rem; }
.doc-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2.5rem; }

/* FAQ accordion (native <details>) */
.faq { max-width: 780px; margin: 0 auto; padding: 3rem 1.25rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq details {
  border: 2px solid var(--black);
  border-radius: 8px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--orange);
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 2px solid var(--black); }
.faq details p { padding: 1rem 1.25rem; margin: 0; }

/* sign-in section (secondary to joining) */
.signin-section { max-width: 640px; margin: 0 auto; padding: 3rem 1.25rem; }

/* sign-in card */
.signin-card {
  background: var(--black);
  color: var(--white);
  padding: 2rem 1.75rem;
  border-radius: 10px;
  border-top: 8px solid var(--orange);
  align-self: start;
}
.signin-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.signin-card p { font-size: 0.95rem; color: #ccc; margin-bottom: 1.25rem; }
.signin-card label { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 0.35rem; }
.signin-card input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid var(--white);
  border-radius: 6px;
  margin-bottom: 1rem;
}
.signin-card input[type="email"]:focus { outline: 3px solid var(--orange-2); }
.check { display: flex; align-items: center; gap: 0.5rem; font-weight: 500 !important; margin-bottom: 1.25rem; }
.signin-card .fine { margin-top: 1rem; margin-bottom: 0; }
.signin-card .fine a { color: var(--lime); }

/* sections */
.section-title { font-size: 2rem; margin-bottom: 1.5rem; }
.features, .about-matt { max-width: 1080px; margin: 0 auto; padding: 3rem 1.25rem; }
.cards { display: grid; gap: 1.25rem; }
.card {
  background: var(--grey-bg);
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  padding: 1.5rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* worked examples: chat conversation + weekly email, side by side */
.example { max-width: 1080px; margin: 0 auto; padding: 3rem 1.25rem; }
.example-grid { display: grid; gap: 2rem; align-items: stretch; }
.example-col { display: flex; flex-direction: column; }
.example-col .chat-example, .example-col .email-example { flex-grow: 1; }
.email-example {
  background: var(--grey-bg);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.email-card {
  background: var(--white);
  border-top: 6px solid var(--orange);
  border-radius: 8px;
  padding: 1.25rem;
  flex-grow: 1;
}
.email-meta { font-size: 0.78rem; color: var(--grey-text); margin-bottom: 0.2rem; }
.email-subject {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.email-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.email-stats div { border-top: 3px solid var(--orange); padding-top: 0.3rem; }
.email-stats dt { font-family: var(--display); font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.email-stats dd { font-size: 0.78rem; color: var(--grey-text); }
.email-body { font-size: 0.95rem; margin: 0; }
.chat-example {
  background: var(--grey-bg);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--grey-text);
}
.bubble { max-width: 85%; border-radius: 12px; padding: 0.9rem 1.1rem; }
.bubble p { margin: 0; font-size: 0.98rem; }
.bubble-who {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.bubble.you {
  align-self: flex-end;
  background: var(--black);
  color: var(--white);
  border-bottom-right-radius: 2px;
}
.bubble.you .bubble-who { color: var(--orange-2); }
.bubble.mom {
  align-self: flex-start;
  background: var(--white);
  border-left: 4px solid var(--orange);
  border-bottom-left-radius: 2px;
}
.bubble.mom .bubble-who { color: var(--orange); }

.about-matt { display: grid; gap: 2rem; align-items: center; }
.matt-photo { width: 100%; height: auto; max-width: 320px; border-radius: 10px; border-bottom: 8px solid var(--orange); justify-self: center; }

.join-strip {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.25rem;
}
.join-strip h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.join-strip p { max-width: 44em; margin: 0 auto 1.5rem; font-weight: 500; }
.join-strip.inset { border-radius: 10px; margin: 1.5rem 0; padding: 2rem 1.5rem; text-align: left; }
.join-strip.inset p { margin-left: 0; }

/* narrow utility pages */
.narrow { max-width: 640px; margin: 0 auto; padding: 3rem 1.25rem; }
.narrow h1 { font-size: 2.2rem; margin-bottom: 1rem; }
.narrow p { margin-bottom: 1rem; }
.narrow .btn { margin-top: 0.5rem; }

/* account */
.account .section-title { margin-top: 2.5rem; }
.action-card { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 1.5rem; }
.prefs-form { border-left-color: var(--black); }
.beta-chip {
  display: inline-block;
  background: var(--lime);
  color: var(--black);
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.4rem;
}
.withdraw-card { border-left-color: #bbb; margin-top: 1.5rem; }
.withdraw-card h3 { font-size: 1.05rem; }
.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}
.pref-row:last-of-type { border-bottom: none; }
.pref-row select { padding: 0.5rem; font-size: 1rem; border: 2px solid var(--black); border-radius: 6px; background: var(--white); }
.prefs-form .btn { margin-top: 1rem; }
.readonly { opacity: 0.75; }

/* toggle switch */
.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0;
  background: #bbb;
  border-radius: 30px;
  transition: 0.2s;
}
.slider::before {
  content: "";
  position: absolute;
  height: 24px; width: 24px;
  left: 3px; bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: 0.2s;
}
.switch input:checked + .slider { background: var(--orange); }
.switch input:checked + .slider::before { transform: translateX(22px); }

/* fine print + footer */
.fine { font-size: 0.85rem; color: var(--grey-text); }
.site-footer {
  background: var(--black);
  color: #ccc;
  padding: 2.5rem 1.25rem;
  text-align: center;
  margin-top: 3rem;
}
.site-footer .logo { height: 24px; width: auto; margin-bottom: 1rem; }
.site-footer a { color: var(--orange-2); }
.site-footer .fine { color: #888; margin-top: 0.75rem; }

/* small screens: keep the header to logo + one action */
@media (max-width: 520px) {
  .site-header { position: relative; }
  .site-header .nav-hide-mobile { display: none; }
  .site-header .logo { height: 20px; }
  .btn-small { white-space: nowrap; padding: 0.4rem 0.7rem; font-size: 0.8rem; }
  /* Tight header: "Mind of Matt" (home) is the mobile brand; the 80/20
     wordmark is desktop-only here but stays in the footer on all screens. */
  .brand-lockup .logo-link { display: none; }
  .mom-home-link { border-left: none; padding-left: 0; font-size: 1.05rem; }

  /* Signed-in nav collapses behind a hamburger instead of cramming inline. */
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 34px; height: 34px; padding: 5px; cursor: pointer; box-sizing: border-box;
  }
  .nav-burger span { display: block; height: 3px; width: 100%; background: var(--black); border-radius: 2px; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-top: 2px solid var(--black);
    border-bottom: 4px solid var(--orange);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14); z-index: 60; padding: 0.25rem 0;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: 0.9rem 1.25rem; font-size: 1rem; }
  .nav-links a + a { border-top: 1px solid #eee; }
  .nav-links .nav-muted { display: block; }
}

/* larger screens */
@media (min-width: 780px) {
  .site-header { padding: 1rem 2.5rem; }
  .site-header .logo { height: 32px; }
  .hero { padding: 5rem 1.25rem 3.5rem; }
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .example-grid { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .about-matt { grid-template-columns: 320px 1fr; }
}

/* widest screens: all four plans in one row (must follow the 780px rules) */
@media (min-width: 1120px) {
  .plan-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Sample weekly report pop-up (Engine hand-off 2026-08-01) */
.sample-cta { margin: 14px 0 0; text-align: center; }
#sample-dialog {
  width: min(680px, 94vw); height: 88vh; padding: 0; border: none;
  margin: auto; border-radius: 10px; overflow: hidden;
  flex-direction: column;
}
/* display MUST stay keyed to [open]: a bare `display:flex` here outranks the UA
   sheet's dialog:not([open]){display:none} and leaves a ghost after close. */
#sample-dialog[open] { display: flex; }
#sample-dialog:not([open]) { display: none; }
#sample-dialog::backdrop { background: rgba(0, 0, 0, .55); }
#sample-dialog .sample-bar {
  display: flex; align-items: center; gap: 12px; background: #000;
  color: #fff; padding: 10px 14px; border-bottom: 3px solid var(--orange);
}
#sample-dialog .sample-bar p { margin: 0; font-size: 13px; line-height: 1.4; }
#sample-dialog .sample-bar strong { color: var(--orange); }
#sample-dialog .sample-close {
  margin-left: auto; background: none; border: none; color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px;
}
#sample-dialog .sample-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; background: #f2f2f2;
}
#sample-dialog .sample-scale { position: relative; }
#sample-dialog iframe {
  display: block; width: 100%; border: 0;
  background: #f2f2f2; transform-origin: 0 0;
}
