/* Blog article pages. Self-contained (the home page's styles.css isn't loaded):
   same tokens, menu bar and window frame as the desktop, laid out for long reading. */

:root {
  --ink: #111614;
  --text: #1F2622;
  --muted: #4D5A54;
  --accent: #1F6B52;
  --primary: #0F3D2E;
  --mint: #B6E3C8;
  --mist: #D5E2DB;
  --line: #E3E8E5;
  --white: #FFFFFF;
  --black: #0B1A14;
  --font-display: "Fira Sans Condensed", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: 56px; }
body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, #D3E2DA 0%, #F2F3F1 420px) no-repeat;
  background-color: #F2F3F1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  translate: 0 -150%;
}
.skip-link:focus { translate: 0 0; }
main:focus { outline: none; }

/* ---------- Menu bar (same as the desktop) ---------- */
.menubar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 80px;
  background: var(--black);
  color: var(--white);
}
.menubar__left { display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-size: 17px; line-height: 1; letter-spacing: -0.01em; text-decoration: none; }
.logo__web { font-weight: 800; }
.logo__bros { font-weight: 400; color: var(--mint); }
.menubar a:not(.logo) {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgb(255 255 255 / .85);
  white-space: nowrap;
}
.menubar a:not(.logo):hover { background: rgb(255 255 255 / .14); color: var(--white); }
.menubar a:focus-visible { outline-color: var(--mint); }

/* ---------- Article window ---------- */
.page { padding: 40px 16px 72px; }
.window {
  max-width: 820px;
  margin: 0 auto;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 30px 80px rgb(11 26 20 / 0.14), 0 0 0 1px rgb(11 26 20 / 0.06);
  overflow: hidden;
}
.window__bar {
  height: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  background: #FDFEFD;
  border-bottom: 1px solid #E2E5E3;
}
.window__lights { display: flex; gap: 8px; }
.window__lights span { width: 12px; height: 12px; border-radius: 50%; }
.window__lights span:nth-child(1) { background: #FF5F57; }
.window__lights span:nth-child(2) { background: var(--primary); }
.window__lights span:nth-child(3) { background: var(--accent); }
.window__title { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.window__x {
  justify-self: end;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #F0F2F1;
  color: #3A3F3C;
  font: 12px/1 system-ui, sans-serif;
  text-decoration: none;
}
.window__x:hover { background: #E3E7E5; }

.article { padding: 48px 72px 56px; }

/* header */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #A3ADA8; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.eyebrow { margin: 20px 0 0; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
h1 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.6vw, 56px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
}
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.byline strong { font-weight: 600; color: var(--ink); }
.hero { margin: 32px -24px 0; }
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }

/* body copy */
.prose { margin-top: 36px; font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
/* Only the bottom margin: the top one comes from the rule above, so paragraphs keep their gap. */
.prose p { margin-bottom: 0; }
.prose > p:first-child { margin-top: 0; }
.prose h2 {
  margin: 2.2em 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
}
.prose h3 { margin: 1.8em 0 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--primary); }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--accent); }
.prose ol li::marker { color: var(--accent); font-weight: 700; }
.lede { font-size: 20px; line-height: 1.6; color: var(--ink); }
.answer {
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: #EEF5F1;
  color: var(--ink);
}
.takeaways {
  padding: 20px 24px;
  border-radius: 10px;
  background: #F2F5F3;
  box-shadow: inset 0 0 0 1px var(--line);
}
.takeaways__title { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.takeaways ul { margin: 10px 0 0; padding-left: 1.2em; font-size: 16px; line-height: 1.6; }
.takeaways li + li { margin-top: .35em; }
.takeaways li::marker { color: var(--accent); }
.tip {
  padding: 16px 20px;
  border-left: 4px solid var(--mint);
  border-radius: 0 10px 10px 0;
  background: #F7FAF8;
  font-size: 16px;
  line-height: 1.6;
}
.tip p { margin: 0; }
.prose ul.checklist { padding-left: 0; list-style: none; }
.prose ul.checklist li { position: relative; padding-left: 32px; }
.prose ul.checklist li::before {
  content: "";
  position: absolute;
  top: .3em;
  left: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 4px;
}
.answer p { margin: 0; }
.answer p + p { margin-top: .8em; }
.note { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* tables (scroll sideways on small screens) */
.table { overflow-x: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.table caption { padding: 12px 16px; text-align: left; font-size: 13px; color: var(--muted); caption-side: bottom; border-top: 1px solid var(--line); }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; }
.table thead th { background: #F2F5F3; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.table tbody tr + tr td, .table tbody tr + tr th { border-top: 1px solid var(--line); }
.table tbody th { font-weight: 600; color: var(--ink); }
.table td.num { white-space: nowrap; font-weight: 600; color: var(--primary); }

/* cost tiers graphic: four rising steps, real text */
.tiers { margin-top: 1.6em; }
.tiers ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tiers--3 ol { grid-template-columns: repeat(3, 1fr); }
.tiers--2 ol { grid-template-columns: repeat(2, 1fr); }
.tiers li { display: flex; flex-direction: column; justify-content: flex-start; margin: 0; padding: 16px 14px; border-radius: 10px 10px 4px 4px; color: var(--white); }
.tiers li:nth-child(1) { min-height: 150px; background: #7FA593; }
.tiers li:nth-child(2) { min-height: 190px; background: #3F8468; }
.tiers li:nth-child(3) { min-height: 230px; background: var(--accent); }
.tiers li:nth-child(4) { min-height: 270px; background: var(--primary); }
.tiers svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.tiers b { display: block; margin-top: 10px; font-family: var(--font-display); font-size: 18px; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.tiers span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: rgb(255 255 255 / .9); }
.tiers figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

figure { margin: 0; }
.photo img { width: 100%; border-radius: 10px; }
.photo figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* call to action */
.cta {
  margin-top: 2.4em;
  padding: 28px;
  border-radius: 12px;
  background: var(--primary);
  color: #E3EEE8;
}
.cta p { margin: 0; }
.cta .cta__title { font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1.05; text-transform: uppercase; color: var(--white); }
.cta .cta__text { margin-top: 8px; font-size: 16px; line-height: 1.6; }
.cta .cta__text a { color: var(--mint); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cta .btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 26px;
  border-radius: 23px;
  background: var(--white);
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.cta .btn:hover { background: var(--mint); }
.cta .btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); }
.cta .btn--ghost:hover { background: rgb(255 255 255 / .12); }
.cta a:focus-visible { outline-color: var(--mint); }

/* FAQ */
.faq { margin-top: .8em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-size: 22px; line-height: 1; color: var(--accent); transition: rotate .25s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 18px; font-size: 16px; line-height: 1.65; color: var(--muted); }

.back { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.back a { color: var(--accent); font-weight: 600; text-decoration: none; }
.back a:hover { text-decoration: underline; }

/* ---------- Tablet / phone ---------- */
@media (max-width: 1100px) {
  .menubar { padding: 0 16px; }
}
@media (max-width: 760px) {
  .page { padding: 16px 0 40px; }
  .window { border-radius: 0; box-shadow: none; }
  .article { padding: 28px 20px 40px; }
  .hero { margin: 24px 0 0; }
  .prose { font-size: 17px; }
  .lede { font-size: 18px; }
  .tiers ol { grid-template-columns: repeat(2, 1fr); }
  .tiers li { min-height: 0 !important; }
  .cta { padding: 22px; }
}
@media (max-width: 480px) {
  .menubar a.menubar__hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
