@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --bg: #f5f7f3;
  --surface: #ffffff;
  --surface-2: #e9efe7;
  --text: #172019;
  --muted: #5f6d62;
  --line: #d6dfd5;
  --primary: #2e7d4a;
  --primary-dark: #1d5f35;
  --primary-soft: #dff2e4;
  --discord: #5865f2;
  --shadow: 0 18px 50px rgba(27, 49, 32, .11);
  --radius: 22px;
  --radius-small: 13px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-150%);
  padding: .8rem 1rem;
  background: #fff;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 36px), 760px); margin-inline: auto; }
.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 243, .9);
  border-bottom: 1px solid rgba(214, 223, 213, .8);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; }
.brand small { color: var(--muted); font-size: .73rem; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 25px; }
.main-nav > a:not(.button) { text-decoration: none; font-weight: 600; font-size: .92rem; }
.main-nav > a:not(.button):hover { color: var(--primary); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: .72rem 1.1rem;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(88, 101, 242, .35);
  outline-offset: 3px;
}
.button-primary { color: white; background: var(--primary); box-shadow: 0 8px 20px rgba(46,125,74,.2); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: var(--text); background: var(--surface); border: 1px solid var(--line); }
.button-discord { color: white; background: var(--discord); }
.button-small { min-height: 40px; padding: .55rem .9rem; font-size: .9rem; }
.button-large { min-height: 54px; padding: .9rem 1.3rem; }

.hero {
  overflow: hidden;
  padding: 82px 0 72px;
  background:
    radial-gradient(circle at 90% 10%, rgba(96, 178, 109, .2), transparent 30%),
    radial-gradient(circle at 5% 70%, rgba(88, 101, 242, .10), transparent 25%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 64px;
}
.eyebrow {
  margin: 0 0 .6rem;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.08;
  letter-spacing: -.025em;
}
h1 { margin: 0; font-size: clamp(2.65rem, 5.5vw, 5rem); }
h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.75rem); }
h3 { margin: 0; font-size: 1.18rem; }
.hero-text {
  max-width: 640px;
  margin: 1.35rem 0 1.6rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.search-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  max-width: 660px;
  padding: 7px 7px 7px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(25, 40, 28, .08);
}
.search-box span { color: var(--muted); font-size: 1.4rem; }
.search-box input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-box button { min-height: 42px; padding: 0 1rem; color: white; background: var(--primary); border: 0; border-radius: 10px; font-weight: 700; cursor: pointer; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.preview-window {
  position: relative;
  padding: 16px;
  background: #172019;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 27px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.preview-window img { display: block; width: 100%; height: auto; border-radius: 18px; }
.preview-topbar { height: 27px; display: flex; gap: 7px; padding-left: 3px; }
.preview-topbar span { width: 8px; height: 8px; border-radius: 50%; background: #758077; }
.preview-chip {
  position: absolute;
  right: 28px;
  bottom: 29px;
  padding: .55rem .8rem;
  color: white;
  background: rgba(23,32,25,.84);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.trust-strip { background: #111813; color: white; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-grid > div { display: grid; padding: 25px 30px; border-right: 1px solid rgba(255,255,255,.11); }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid strong { font-size: .95rem; }
.trust-grid span { color: #aeb9b0; font-size: .83rem; }

.section { padding: 86px 0; }
.section-muted { background: var(--surface-2); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.section-heading.compact { margin-bottom: 25px; }
.results-status { margin: 0; color: var(--muted); font-size: .9rem; }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.resource-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 25px rgba(27,49,32,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.resource-card-image { overflow: hidden; border-radius: 22px; background: #172019; height: clamp(210px, 28vw, 280px); }
.resource-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.resource-card-body { padding: 22px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.tag {
  display: inline-flex;
  padding: .28rem .55rem;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}
.resource-card h3 { margin-bottom: 9px; }
.resource-card p { min-height: 52px; margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.resource-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.resource-card-footer span { color: var(--muted); font-size: .8rem; }

.empty-state {
  padding: 55px 25px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed #b7c5b7;
  border-radius: var(--radius);
}
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 15px; background: var(--surface-2); border-radius: 50%; font-weight: 800; }
.empty-state p { color: var(--muted); }

.split-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 43px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
}
.split-card p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: var(--muted); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps-grid li { padding: 27px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps-grid li > span { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 18px; color: white; background: var(--primary); border-radius: 10px; font-weight: 800; }
.steps-grid p { margin-bottom: 0; color: var(--muted); }

.site-footer { padding: 55px 0 24px; color: #d5ded7; background: #111813; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .6fr 1.3fr; gap: 50px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid a { color: #d5ded7; text-decoration: none; }
.footer-grid p { max-width: 470px; margin: 0; color: #9dac9f; font-size: .88rem; }
.footer-brand { color: white; margin-bottom: 6px; }
.legal-note { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 21px; color: #8e9b91; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }
.simple-footer { padding-top: 12px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 34px; color: var(--muted); font-size: .84rem; }
.breadcrumb a { text-decoration: none; }
.resource-hero { padding: 54px 0 75px; }
.resource-hero-grid { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 60px; }
.resource-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.resource-summary { max-width: 690px; color: var(--muted); font-size: 1.05rem; }
.resource-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 27px 0; }
.resource-meta div { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.resource-meta dt { color: var(--muted); font-size: .71rem; font-weight: 700; text-transform: uppercase; }
.resource-meta dd { margin: 2px 0 0; font-weight: 700; font-size: .88rem; }
.download-panel { display: flex; align-items: center; gap: 17px; flex-wrap: wrap; }
.download-panel p { max-width: 410px; margin: 0; color: var(--muted); font-size: .78rem; }
.resource-cover { padding: 14px; background: #172019; border-radius: 25px; box-shadow: var(--shadow); }
.resource-cover img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: 15px; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 27px; }
.article-card { padding: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.article-card section { padding: 0 0 42px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.article-card section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.article-card h2 { font-size: 2rem; margin-bottom: 20px; }
.article-card p { color: var(--muted); }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.comparison figure { position: relative; margin: 0; overflow: hidden; border-radius: 15px; }
.comparison img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center center; }
.comparison figcaption { position: absolute; left: 12px; bottom: 12px; padding: .36rem .65rem; color: white; background: rgba(17,24,19,.82); border-radius: 8px; font-size: .75rem; font-weight: 800; }
.image-disclaimer { font-size: .75rem; }
.instruction-list { display: grid; gap: 16px; padding-left: 22px; }
.instruction-list li { padding-left: 7px; }
.check-list, .mini-checklist { padding: 0; list-style: none; }
.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding: 14px 14px 14px 45px; background: var(--bg); border-radius: 12px; }
.check-list li::before { content: "✓"; position: absolute; left: 16px; color: var(--primary); font-weight: 900; }
.changelog-entry { display: grid; grid-template-columns: 95px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.changelog-entry:first-child { border-top: 0; }
.changelog-entry strong { color: var(--primary); }
.changelog-entry p { margin: 0; }

.sidebar { position: sticky; top: 100px; display: grid; gap: 18px; }
.sidebar-card, .ad-placeholder { padding: 23px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; }
.sidebar-card h2 { font-size: 1.2rem; }
.sidebar-card p { color: var(--muted); font-size: .87rem; }
.sidebar-card .button { width: 100%; }
.mini-checklist { display: grid; gap: 8px; margin-bottom: 0; }
.mini-checklist li { color: var(--muted); font-size: .84rem; }
.mini-checklist li::before { content: "□"; margin-right: 8px; color: var(--primary); }
.ad-placeholder { text-align: center; border-style: dashed; }
.ad-placeholder span { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ad-placeholder p { margin-bottom: 0; color: var(--muted); font-size: .74rem; }

.page-hero { padding: 80px 0 55px; background: var(--surface-2); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.page-hero p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.prose h2 { margin: 2.2rem 0 .6rem; font-size: 1.7rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }

.center-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; }
.not-found { max-width: 530px; text-align: center; }
.not-found img { margin: 0 auto 20px; }
.not-found p:not(.eyebrow) { color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .resource-hero-grid, .content-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 55px; }
  .hero-preview { max-width: 680px; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-meta { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .ad-placeholder { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-note { grid-column: 1 / -1; padding: 20px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
}

@media (max-width: 650px) {
  .container, .narrow { width: min(calc(100% - 24px), var(--container)); }
  .header-inner { min-height: 67px; }
  .brand small { display: none; }
  .main-nav { gap: 12px; }
  .main-nav > a:not(.button) { display: none; }
  h1 { font-size: 2.55rem; }
  .hero { padding: 45px 0 52px; }
  .hero-grid { gap: 38px; }
  .search-box { grid-template-columns: auto 1fr; padding: 11px 14px; }
  .search-box button { grid-column: 1 / -1; width: 100%; }
  .hero-actions .button { width: 100%; }
  .trust-grid, .resource-grid, .steps-grid, .footer-grid, .comparison, .sidebar { grid-template-columns: 1fr; }
  .trust-grid > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.11); }
  .trust-grid > div:last-child { border-bottom: 0; }
  .section { padding: 62px 0; }
  .section-heading, .split-card { align-items: flex-start; flex-direction: column; }
  .split-card { padding: 28px; }
  .resource-card p { min-height: auto; }
  .footer-grid { gap: 30px; }
  .legal-note { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .resource-meta { grid-template-columns: 1fr 1fr; }
  .article-card { padding: 23px; }
  .content-layout { gap: 20px; }
  .changelog-entry { grid-template-columns: 1fr; gap: 4px; }
}


.preview-window img,
.resource-cover img,
.comparison img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center center; }

.comparison figure {
  background: #eff4ee;
}


.android-help {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.android-help summary {
  cursor: pointer;
  font-weight: 800;
}
.android-help div {
  padding-top: 10px;
}
.android-help p,
.android-help li {
  color: var(--muted);
  font-size: .88rem;
}
.android-help ol {
  padding-left: 20px;
}


.resource-card-image--contain {
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(73, 139, 54, .20), transparent 38%),
    linear-gradient(135deg, #101812 0%, #172019 55%, #0f1711 100%);
}
.resource-card-image--contain img {
  width: min(72%, 240px);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.25));
}
.resource-cover--contain {
  display: grid;
  place-items: center;
  min-height: 320px;
  background:
    radial-gradient(circle at 20% 20%, rgba(73, 139, 54, .20), transparent 38%),
    linear-gradient(135deg, #101812 0%, #172019 55%, #0f1711 100%);
}
.resource-cover--contain img {
  width: min(62%, 340px);
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 20px rgba(0,0,0,.28));
}
.comparison--treechopper-single {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 650px) {
  .resource-card-image--contain { padding: 16px; }
  .resource-card-image--contain img { width: min(68%, 210px); }
  .resource-cover--contain { min-height: 240px; }
  .resource-cover--contain img { width: min(68%, 260px); }
}
