:root {
  --paper: #f5f6f2;
  --paper-deep: #ecefe9;
  --surface: #ffffff;
  --surface-soft: #fafbf8;
  --ink: #141915;
  --ink-soft: #4e5751;
  --ink-mute: #747d76;
  --green: #176047;
  --green-dark: #103e30;
  --green-header: #103e30;
  --green-soft: #e4eee8;
  --line: #dce1dc;
  --line-strong: #c7cec8;
  --serif: "Newsreader", "Iowan Old Style", "Baskerville", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gh-font-heading: var(--serif);
  --gh-font-body: var(--sans);
  --shadow-sm: 0 1px 2px rgba(20, 25, 21, 0.04), 0 8px 24px rgba(20, 25, 21, 0.04);
  --shadow-lg: 0 24px 70px rgba(20, 25, 21, 0.1);
  --radius: 12px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--green);
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--green-dark);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h1,
h2 {
  font-family: var(--serif);
}

h1 {
  font-size: clamp(3.25rem, 7.5vw, 6.75rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.18rem;
  font-weight: 650;
}

p {
  margin: 0 0 1em;
}

.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;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 50;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.muted {
  color: var(--ink-soft);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kicker::before {
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.lede {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.chip {
  display: inline-flex;
  align-items: center;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link::after {
  content: "↗";
  color: var(--green);
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translate(2px, -2px);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(199, 206, 200, 0.75);
  background: rgba(250, 251, 248, 0.94);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.site-footer__grid,
.site-footer__copy,
.hero,
.features,
.guides,
.faq,
.app-cta,
.page-main,
.article-shell {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 5.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(16, 62, 48, 0.12);
}

.brand__wordmark {
  display: block;
  width: auto;
  height: 3.35rem;
  object-fit: contain;
}

.site-header .brand__wordmark {
  mix-blend-mode: screen;
}

.brand--wordmark {
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.brand__tag {
  margin-top: 0.22rem;
  color: var(--ink-mute);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav {
  display: none;
  gap: 1.6rem;
  margin-left: auto;
}

.nav__link {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.nav__link.is-active,
.nav__link:hover {
  color: var(--green);
}

.header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.header-cta:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.header-cta--block {
  display: inline-flex;
  margin: 0.75rem 0 0;
}

.nav-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--green);
  content: "";
  transition: transform 160ms ease;
}

.nav-toggle__bar::before {
  transform: translateY(-5px);
}

.nav-toggle__bar::after {
  transform: translateY(3.5px);
}

.nav-toggle.is-open .nav-toggle__bar {
  background: transparent;
}

.nav-toggle.is-open .nav-toggle__bar::before {
  transform: translateY(1px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bar::after {
  transform: translateY(-0.5px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.25rem 1.4rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a:not(.header-cta) {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 860px) {
  .nav,
  .header-cta {
    display: inline-flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Home */

.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 4.75rem);
  padding: 5rem 0;
}

.hero__copy h1 {
  max-width: 10ch;
  margin-bottom: 0.28em;
}

.hero__copy h1 em {
  color: var(--green);
  font-weight: inherit;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  isolation: isolate;
}

.app-showcase__phones {
  position: relative;
  width: 100%;
  min-height: clamp(480px, 55vw, 620px);
}

.app-showcase__notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 26rem;
}

.app-showcase__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -2;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 96, 71, 0.2), rgba(228, 238, 232, 0.55) 42%, transparent 70%);
  filter: blur(12px);
  transform: translate(-50%, -50%);
}

.app-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(195px, 20.5vw, 275px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 13% / 6%;
  background: #07180f;
  box-shadow: 0 28px 60px rgba(16, 62, 48, 0.2), 0 5px 15px rgba(20, 25, 21, 0.1);
  transform-origin: center bottom;
}

.app-screen img,
.app-screen video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.app-screen__video {
  object-fit: cover;
  object-position: top center;
}

.app-screen--center {
  z-index: 3;
  transform: translate(-50%, -50%) rotate(-1deg);
}

.app-screen--left {
  z-index: 1;
  width: clamp(162px, 17vw, 225px);
  filter: saturate(0.88);
  transform: translate(-115%, -44%) rotate(-9deg);
}

.app-screen--right {
  z-index: 2;
  width: clamp(167px, 17.5vw, 235px);
  filter: saturate(0.9);
  transform: translate(15%, -45%) rotate(9deg);
}

.app-showcase__note {
  display: flex;
  flex: 1 1 11rem;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(220, 225, 220, 0.9);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-mute);
  font-size: 0.62rem;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.app-showcase__note strong {
  display: block;
  color: var(--ink);
  font-size: 0.72rem;
}

.app-showcase__note-icon {
  display: grid;
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.app-showcase__note-dot {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  border: 3px solid var(--green-soft);
  border-radius: 50%;
  background: var(--green);
  box-sizing: content-box;
}

.section-head {
  margin-bottom: 2.2rem;
}

.section-head h2 {
  max-width: 13ch;
}

.section-head--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.features,
.guides,
.faq {
  padding: 6.5rem 0;
}

.features {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  border-top: 1px solid var(--line);
}

.features .section-head {
  margin-bottom: 1.75rem;
}

.features .section-head h2 {
  max-width: 22ch;
  font-size: clamp(2.1rem, 3.5vw, 3.1rem);
}

.feature-grid,
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature {
  position: relative;
  min-height: 0;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease;
}

.feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.feature__number {
  margin: 0 0 2.25rem;
  color: var(--green);
  font-family: var(--serif);
  font-size: 1rem;
}

.feature__label {
  margin: 0 0 0.55rem;
  color: var(--green);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.guides {
  width: 100%;
  max-width: none;
  padding-inline: max(1.25rem, calc((100% - var(--max)) / 2));
  background: var(--surface);
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.post-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 9px;
  background: var(--paper-deep);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform 300ms ease, filter 300ms ease;
}

.post-card:hover .post-card__media img {
  filter: saturate(1);
  transform: scale(1.025);
}

.post-card__media--plain {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, transparent 48%, rgba(23, 96, 71, 0.08) 49%, rgba(23, 96, 71, 0.08) 51%, transparent 52%),
    var(--green-soft);
  color: var(--green);
  font-family: var(--serif);
  font-size: 3rem;
  text-decoration: none;
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 0 1.4rem;
}

.post-card__title {
  margin: 0.5rem 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 550;
  line-height: 1.15;
}

.post-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--green);
}

.post-card__excerpt {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.post-card__meta {
  margin: auto 0 0;
  color: var(--ink-mute);
  font-size: 0.72rem;
}

.faq {
  display: grid;
  gap: 2rem;
}

.faq .section-head {
  margin-bottom: 0;
}

.faq .section-head h2 {
  max-width: 14ch;
}

.faq-intro {
  max-width: 32ch;
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.faq-list {
  display: grid;
}

.faq-list details {
  border-top: 1px solid var(--line);
  transition: background 180ms ease;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list details[open] {
  background: var(--surface);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.35rem 1.15rem 0;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
  transition: color 180ms ease;
}

.faq-list summary:hover {
  color: var(--green);
}

.faq-list summary:focus {
  outline: none;
}

.faq-list summary:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  flex-shrink: 0;
  width: 1.5rem;
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 42rem;
  margin: 0;
  padding: 0 2.5rem 1.25rem 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.app-cta {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: end;
  overflow: hidden;
  margin-bottom: 6rem;
  padding: clamp(2rem, 6vw, 4rem);
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
}

.app-cta::after {
  position: absolute;
  top: -7rem;
  right: -5rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255, 255, 255, 0.025), 0 0 0 6rem rgba(255, 255, 255, 0.02);
  content: "";
}

.app-cta h2 {
  position: relative;
  z-index: 1;
  max-width: 16ch;
  margin-bottom: 0.35rem;
  color: #fff;
}

.app-cta__logo {
  position: relative;
  z-index: 1;
  width: auto;
  height: 2.5rem;
  margin-bottom: 1.25rem;
  object-fit: contain;
  mix-blend-mode: screen;
}

.app-cta .kicker {
  color: #76ba9e;
}

.app-cta .muted {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
}

.store-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  transition: transform 160ms ease;
}

.store-badge__img {
  display: block;
  width: 128px;
  height: auto;
}

.store-badge:hover {
  transform: translateY(-2px);
}

/* Editorial pages */

.page-main {
  padding: 5rem 0 7rem;
}

.page-hero {
  max-width: 54rem;
  margin-bottom: 4rem;
}

.page-hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
}

.article__header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.page-hero .gh-content {
  max-width: none;
}

.article-shell {
  padding: 5rem 0 7rem;
}

.article {
  max-width: none;
}

.article__header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.article__header .lede {
  max-width: none;
}

.article__header .chip {
  margin-bottom: 1.2rem;
}

.article__meta {
  color: var(--ink-mute);
  font-size: 0.76rem;
}

.article__hero {
  width: 100%;
  margin: 0 0 3rem;
}

.article__hero img {
  width: 100%;
  border-radius: 10px;
}

.article__hero figcaption {
  margin-top: 0.6rem;
  color: var(--ink-mute);
  font-size: 0.75rem;
}

.gh-content {
  color: #2c332e;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2vw, 1.2rem);
  line-height: 1.78;
}

.gh-content h2,
.gh-content h3 {
  margin-top: 2.2em;
  color: var(--ink);
}

.gh-content h2 {
  font-size: 2.2rem;
}

.gh-content h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
}

.gh-content a {
  color: var(--green);
}

.gh-content ul,
.gh-content ol {
  padding-left: 1.35rem;
}

.gh-content li {
  margin-bottom: 0.45rem;
}

.gh-content blockquote {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 2px solid var(--green);
  color: var(--ink-soft);
  font-size: 1.25rem;
  font-style: italic;
}

.gh-content code {
  padding: 0.1em 0.3em;
  border-radius: 4px;
  background: var(--paper-deep);
  font-size: 0.85em;
}

/* Article tables */

.gh-content .gh-table {
  margin: 2.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.gh-content table:not(.strategy-table) {
  width: 100%;
  margin: 2.5rem 0;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  font-family: var(--sans);
  font-size: 0.92em;
  line-height: 1.55;
  table-layout: auto;
}

.gh-content .gh-table table:not(.strategy-table) {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.gh-content table:not(.strategy-table) th,
.gh-content table:not(.strategy-table) td {
  padding: 0.9rem 1.2rem;
  vertical-align: top;
  text-align: left;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  border-bottom: 1px solid var(--line);
}

.gh-content table:not(.strategy-table) th {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom-color: var(--line-strong);
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gh-content table:not(.strategy-table) tbody th {
  background: var(--paper-deep);
  color: var(--ink);
  font-size: inherit;
  font-weight: 650;
  letter-spacing: normal;
  text-transform: none;
}

.gh-content table:not(.strategy-table) tbody tr:last-child :is(th, td) {
  border-bottom: none;
}

.gh-content table:not(.strategy-table) tbody tr:nth-child(even) :is(th, td) {
  background-color: var(--surface-soft);
}

.gh-content table:not(.strategy-table) tbody tr:nth-child(even) th {
  background-color: var(--paper-deep);
}

.gh-content .gh-table table:not(.strategy-table) th:first-child,
.gh-content .gh-table table:not(.strategy-table) td:first-child {
  padding-left: 1.35rem;
}

.gh-content .gh-table table:not(.strategy-table) th:last-child,
.gh-content .gh-table table:not(.strategy-table) td:last-child {
  padding-right: 1.35rem;
}

.gh-content :not(.kg-card):not(table):not([id]) + :is(.gh-table, table:not(.strategy-table)) {
  margin-top: 2.5rem;
}

.gh-content :is(.gh-table, table:not(.strategy-table)) + :not(.kg-card):not(table):not([id]) {
  margin-top: 2.5rem;
}

.related {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid var(--line);
}

.related > h2 {
  margin-bottom: 1.5rem;
  font-size: 2.4rem;
}

.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  color: var(--ink-mute);
  font-size: 0.82rem;
}

/* Interactive strategy chart */

.strategy-page {
  padding-top: 3rem;
}

.strategy-hero,
.strategy-lab,
.strategy-notes {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.strategy-hero {
  display: grid;
  gap: 1.25rem;
  align-items: end;
  padding-bottom: 2rem;
}

.strategy-hero h1 {
  max-width: none;
  margin-bottom: 0.22em;
  font-size: clamp(2.8rem, 4.4vw, 4rem);
  text-wrap: balance;
}

.strategy-hero .kicker {
  margin-bottom: 0.7rem;
  font-size: 0.62rem;
}

.strategy-hero .lede {
  max-width: 33rem;
  margin-bottom: 0.35rem;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.55;
}

.strategy-lab {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 0, rgba(228, 192, 106, 0.1), transparent 28rem),
    radial-gradient(circle at 0 100%, rgba(57, 139, 106, 0.14), transparent 24rem),
    #0b261d;
  color: #f8f5ea;
  box-shadow: 0 35px 90px rgba(16, 62, 48, 0.19);
}

.strategy-controls {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.strategy-control {
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}

.strategy-control__label {
  display: block;
  margin: 0 0 0.55rem 0.25rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.strategy-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.strategy-segmented button,
.strategy-tabs button {
  border: 0;
  font-family: var(--sans);
  cursor: pointer;
}

.strategy-segmented button {
  min-height: 2.2rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.66rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.strategy-segmented button.is-active {
  background: #f4d383;
  color: #231b08;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.strategy-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.16);
}

.strategy-tabs button {
  flex: 1;
  min-height: 2.7rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 750;
}

.strategy-tabs button.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: #f4d383;
}

.strategy-board {
  min-width: 0;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(4, 17, 12, 0.42);
}

.strategy-board__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.strategy-board__eyebrow,
.strategy-inspector__eyebrow {
  color: #d6b36b;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.strategy-board__topline p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
}

.strategy-board__topline p strong {
  color: inherit;
  font-weight: 750;
}

.strategy-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.62rem;
}

.strategy-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.strategy-legend i {
  display: grid;
  width: 1.3rem;
  height: 1.3rem;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
}

.strategy-table-scroll {
  overflow-x: auto;
  border-radius: 9px;
  outline: none;
  scrollbar-color: rgba(244, 211, 131, 0.35) transparent;
}

.strategy-table-scroll:focus-visible {
  box-shadow: 0 0 0 2px #f4d383;
}

.strategy-table {
  width: 100%;
  min-width: 650px;
  border-spacing: 3px;
  border-collapse: separate;
  table-layout: fixed;
}

.strategy-table th {
  height: 3rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.67rem;
  font-weight: 800;
  text-align: center;
}

.strategy-table thead th:first-child,
.strategy-table tbody th {
  width: 6.2rem;
}

.strategy-table__corner span,
.strategy-table__corner strong {
  display: block;
  white-space: nowrap;
}

.strategy-table__corner span {
  margin-bottom: 0.2rem;
  color: var(--green);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
}

.strategy-table__corner strong {
  font-size: 0.62rem;
}

.strategy-table__corner b {
  font-weight: 800;
}

.strategy-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  border-radius: 6px;
  background: #17382c;
  box-shadow: 6px 0 10px rgba(7, 27, 20, 0.3);
}

.strategy-table td {
  padding: 0;
}

.strategy-cell {
  position: relative;
  width: 100%;
  height: 2.65rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 850;
  cursor: pointer;
  transition: filter 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.strategy-cell:hover {
  z-index: 1;
  filter: brightness(1.16);
  transform: translateY(-2px) scale(1.04);
}

.strategy-cell:focus-visible,
.strategy-cell.is-selected {
  z-index: 1;
  outline: none;
  box-shadow: 0 0 0 2px #f8f5ea, 0 0 0 4px #d6b36b;
}

.action-hit {
  background: #1f9d68;
}

.action-stand {
  background: #d95a4e;
}

.action-double {
  background: #7b4fc4;
}

.action-split {
  background: #d4a017;
}

.action-surrender {
  background: #d8791c;
}

.strategy-inspector {
  position: relative;
  display: none;
  grid-template-columns: minmax(9rem, 0.65fr) minmax(11rem, 0.9fr) minmax(13rem, 1.45fr);
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1.2rem 3.2rem 1.2rem 1.2rem;
  border: 1px solid rgba(244, 211, 131, 0.17);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.strategy-inspector.is-open {
  display: grid;
  animation: strategy-reveal 220ms ease-out both;
}

@keyframes strategy-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.strategy-inspector__close {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.strategy-inspector__scenario strong {
  display: block;
  margin-top: 0.35rem;
  color: #fff;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1;
}

.strategy-inspector__scenario strong small {
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.strategy-inspector__decision {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.strategy-action-badge {
  display: grid;
  flex: 0 0 auto;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
}

.strategy-inspector__decision small {
  display: block;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.strategy-inspector__decision h2 {
  margin: 0.15rem 0 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.strategy-inspector > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  line-height: 1.65;
}

.strategy-ev {
  grid-column: 1 / -1;
  padding: 1rem;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.18);
}

.strategy-ev__head,
.strategy-ev__row {
  display: grid;
  grid-template-columns: 5rem 6.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
}

.strategy-ev__head {
  margin-bottom: 0.7rem;
  color: #d6b36b;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.strategy-ev__head small {
  grid-column: 2 / -1;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: none;
}

.strategy-ev__row {
  margin: 0.4rem 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
}

.strategy-ev__row strong {
  color: #fff;
  font-size: 0.7rem;
  text-align: right;
}

.strategy-ev__row i {
  position: relative;
  display: block;
  overflow: hidden;
  height: 0.35rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.strategy-ev__row i::after {
  display: block;
  width: min(var(--ev-width), 100%);
  height: 100%;
  border-radius: inherit;
  background: #5bc89a;
  content: "";
}

.strategy-ev__row:nth-of-type(3) i::after {
  background: #f4d383;
}

.strategy-ev > p {
  margin: 0.75rem 0 0.35rem;
  color: #f4d383;
  font-size: 0.7rem;
  font-weight: 700;
}

.strategy-ev > small {
  display: block;
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.6rem;
}

.strategy-inspector > .strategy-inspector__note {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.66rem;
}

/* Light, minimal chart surface */

.strategy-lab {
  border-color: #dfe4df;
  background: #f8faf7;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(20, 40, 30, 0.09);
}

.strategy-control {
  border-color: #e1e6e1;
  background: #fff;
}

.strategy-control__label {
  color: #69736c;
}

.strategy-segmented {
  background: #f0f3ef;
}

.strategy-segmented button {
  color: #737c76;
}

.strategy-segmented button.is-active {
  border: 1px solid #dce2dc;
  background: #fff;
  color: var(--green);
  box-shadow: 0 2px 8px rgba(20, 40, 30, 0.07);
}

.strategy-tabs {
  border-color: #e1e6e1;
  background: #eef2ee;
}

.strategy-tabs button {
  color: #717a74;
}

.strategy-tabs button.is-active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 2px 8px rgba(20, 40, 30, 0.06);
}

.strategy-board {
  border-color: #e0e5e0;
  background: #fff;
}

.strategy-board__eyebrow,
.strategy-inspector__eyebrow {
  color: var(--green);
}

.strategy-board__topline p,
.strategy-legend {
  color: #7a837d;
}

.strategy-legend i {
  color: currentColor;
}

.strategy-table-scroll {
  scrollbar-color: #c6cec8 transparent;
}

.strategy-table-scroll:focus-visible {
  box-shadow: 0 0 0 2px var(--green);
}

.strategy-table th {
  color: #566159;
}

.strategy-table tbody th {
  background: #eef2ee;
  color: #344139;
  box-shadow: 6px 0 12px rgba(255, 255, 255, 0.9);
}

.strategy-cell {
  border-color: rgba(20, 40, 30, 0.05);
  color: currentColor;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.strategy-cell:hover {
  filter: brightness(0.98) saturate(1.08);
}

.strategy-cell:focus-visible,
.strategy-cell.is-selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--green);
}

.strategy-lab .action-hit {
  background: #dcefe6;
  color: #176047;
}

.strategy-lab .action-stand {
  background: #f2dfdc;
  color: #8d4037;
}

.strategy-lab .action-double {
  background: #e8e2f3;
  color: #5e438a;
}

.strategy-lab .action-split {
  background: #f2e9ce;
  color: #7c641a;
}

.strategy-lab .action-surrender {
  background: #f2e2d3;
  color: #98551f;
}

.strategy-inspector {
  border-color: #dfe5df;
  background: #fff;
}

.strategy-inspector__close {
  border-color: #e0e5e0;
  background: #f2f4f1;
  color: #677169;
}

.strategy-inspector__scenario strong,
.strategy-inspector__decision h2 {
  color: var(--ink);
}

.strategy-inspector__scenario strong small,
.strategy-inspector__decision small {
  color: #7b847e;
}

.strategy-inspector > p {
  color: #5f6962;
}

.strategy-ev {
  border: 1px solid #e4e8e4;
  background: #f6f8f5;
}

.strategy-ev__head {
  color: var(--green);
}

.strategy-ev__head small,
.strategy-ev__row {
  color: #737d76;
}

.strategy-ev__row strong {
  color: #344139;
}

.strategy-ev__row i {
  background: #e3e8e3;
}

.strategy-ev__row i::after {
  background: #5bad87;
}

.strategy-ev__row:nth-of-type(3) i::after {
  background: #bda15e;
}

.strategy-ev > p {
  color: #79631d;
}

.strategy-ev > small,
.strategy-inspector > .strategy-inspector__note {
  color: #838b85;
}

.strategy-notes {
  display: grid;
  gap: 1px;
  margin-top: 5rem;
  margin-bottom: 6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.strategy-notes article {
  padding: 2rem;
  background: var(--paper);
}

.strategy-notes article > span {
  color: var(--green);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.strategy-notes h2 {
  margin: 2.6rem 0 0.6rem;
  font-size: 1.8rem;
}

.strategy-notes p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

/* Footer */

.site-footer {
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

.site-footer__intro {
  max-width: 25rem;
}

.site-footer__intro .brand {
  margin-bottom: 1rem;
}

.site-footer__intro .muted {
  font-size: 0.83rem;
}

.site-footer a:not(.brand) {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green);
}

.footer-label {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer__copy {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 0.7rem;
}

/* Ghost cards */

.kg-card {
  margin: 2rem 0;
}

.kg-width-wide {
  max-width: 60rem;
}

.kg-width-full {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  transform: translateX(-50%);
}

.kg-image {
  border-radius: 9px;
}

.kg-bookmark-card a.kg-bookmark-container {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: inherit;
  font-family: var(--sans);
  text-decoration: none;
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.82fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .feature-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 5rem;
  }

  .app-cta {
    grid-template-columns: 1fr auto;
  }

  .strategy-hero {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.85fr);
  }

  .strategy-controls,
  .strategy-notes {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}

@media (min-width: 1020px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (max-width: 719px) {
  h1 {
    font-size: clamp(3.1rem, 16vw, 4.8rem);
  }

  .hero {
    padding-top: 3.75rem;
  }

  .app-showcase__phones {
    min-height: 460px;
  }

  .app-showcase__notes {
    max-width: none;
  }

  .section-head--row {
    align-items: flex-start;
    flex-direction: column;
  }

  .features,
  .guides,
  .faq {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .strategy-page {
    padding-top: 2rem;
  }

  .strategy-hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 10.5vw, 3rem);
  }

  .strategy-lab {
    width: calc(100% - 1rem);
    padding: 0.75rem;
    border-radius: 14px;
  }

  .strategy-inspector {
    grid-template-columns: 1fr 1fr;
  }

  .strategy-inspector > p,
  .strategy-ev,
  .strategy-inspector > .strategy-inspector__note {
    grid-column: 1 / -1;
  }

  .gh-content table:not(.strategy-table) th,
  .gh-content table:not(.strategy-table) td {
    padding: 0.75rem 0.95rem;
  }

  .gh-content .gh-table table:not(.strategy-table) th:first-child,
  .gh-content .gh-table table:not(.strategy-table) td:first-child {
    padding-left: 1rem;
  }

  .gh-content .gh-table table:not(.strategy-table) th:last-child,
  .gh-content .gh-table table:not(.strategy-table) td:last-child {
    padding-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .store-badge,
  .feature,
  .post-card__media img,
  .text-link::after,
  .strategy-cell,
  .strategy-segmented button {
    transition: none;
  }

  .strategy-inspector.is-open {
    animation: none;
  }
}
