/* HomeMaxxing — shared stylesheet (landing + guides)
   Minimal black & white, Apple-like system design. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --line: #e8e8ed;
  --card: #ffffff;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { opacity: 0.7; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
}
.site-nav a:hover { color: var(--ink); opacity: 1; }
.lang-switch {
  font-size: 0.82rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  border: 1px solid var(--line); border-radius: 99px;
  padding: 6px 14px; white-space: nowrap;
}
.lang-switch:hover { border-color: var(--ink-soft); color: var(--ink); opacity: 1; }
.header-cta {
  background: var(--ink); color: #fff !important;
  text-decoration: none; font-weight: 500; font-size: 0.88rem;
  padding: 9px 18px; border-radius: 99px; white-space: nowrap;
  transition: opacity 0.15s ease;
}
.header-cta:hover { opacity: 0.8 !important; }
@media (max-width: 860px) { .site-nav { display: none; } }

/* ---------- Buttons ---------- */

.badge-appstore { display: inline-block; line-height: 0; transition: transform 0.15s ease, opacity 0.15s ease; }
.badge-appstore:hover { transform: translateY(-2px); opacity: 0.85; }
.badge-appstore img { height: 56px; width: auto; }

.btn-ghost {
  display: inline-block; font-weight: 500; font-size: 0.95rem;
  color: var(--ink); text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 99px;
  padding: 13px 28px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { background: var(--ink); color: #fff; opacity: 1; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 88px 0 56px; }
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
  background: var(--bg-alt); border-radius: 99px;
  padding: 7px 16px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal; color: #fff;
  background: var(--ink);
  padding: 0.03em 0.18em; border-radius: 0.16em;
  display: inline-block; transform: rotate(-4deg);
}
.hero-sub {
  font-size: 1.15rem; color: var(--ink-soft);
  max-width: 34em; margin-bottom: 32px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-proof { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-proof li {
  list-style: none; font-size: 0.85rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.hero-proof li::before { content: "✓"; color: var(--ink); font-weight: 700; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img {
  width: min(290px, 70%);
  border-radius: 30px;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.35);
}
.hero-chip {
  position: absolute; z-index: 2; background: #fff; border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.18);
  padding: 10px 16px; font-size: 0.82rem; font-weight: 600;
}
.hero-chip .sub { display: block; font-weight: 400; font-size: 0.73rem; color: var(--ink-soft); }
.hero-chip-1 { top: 12%; left: 2%; }
.hero-chip-2 { bottom: 10%; right: 0; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
}

/* ---------- Sections ---------- */

section { padding: 88px 0; }
.section-tinted { background: var(--bg-alt); }
.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head .eyebrow {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Screenshots gallery (2 rows of 3) ---------- */

.shots {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  max-width: 920px; margin: 0 auto;
}
.shots figure { position: relative; }
.shots img {
  border-radius: 24px;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease;
}
.shots figure:hover img { transform: translateY(-8px); }
.shots figcaption {
  font-size: 0.85rem; color: var(--ink-soft);
  text-align: center; margin-top: 14px; font-weight: 500;
}
@media (max-width: 560px) {
  .shots { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
}

/* ---------- How it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--bg-alt);
  border-radius: var(--radius); padding: 36px 30px;
  position: relative;
}
.section-tinted .step { background: #fff; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--ink-soft);
  display: block; margin-bottom: 18px;
}
.step h3 { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Feature band ---------- */

.band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.band-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.band-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.band-item p { font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 860px) { .band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .band { grid-template-columns: 1fr; } }

/* ---------- Guides grid ---------- */

.guides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guide-card {
  background: var(--bg-alt);
  border-radius: var(--radius); padding: 28px 24px;
  text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.section-tinted .guide-card { background: #fff; }
.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.2);
  opacity: 1;
}
.guide-card .tag {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.guide-card h3 { font-weight: 600; font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; }
.guide-card p { font-size: 0.87rem; color: var(--ink-soft); flex: 1; }
.guide-card .more { font-size: 0.85rem; font-weight: 600; }
@media (max-width: 1000px) { .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guides-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq-list summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em;
  padding: 17px 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400;
  color: var(--ink-soft); flex: none;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 0 20px; color: var(--ink-soft); max-width: 60em; }
.faq-list .answer a { font-weight: 600; color: var(--ink); }

/* ---------- CTA panel ---------- */

.cta-panel {
  background: var(--ink); color: #fff;
  border-radius: 28px; padding: 64px 48px;
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-panel h2 {
  font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1;
  margin-bottom: 14px;
}
.cta-panel p { opacity: 0.75; margin-bottom: 28px; }
.cta-panel .badge-appstore { position: relative; z-index: 1; }
.cta-panel img { width: min(230px, 68%); margin: 0 auto; border-radius: 26px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
@media (max-width: 860px) { .cta-panel { grid-template-columns: 1fr; padding: 44px 28px; } }

/* ---------- Contact ---------- */

.contact-box { text-align: center; max-width: 580px; margin: 0 auto; }
.contact-box .eyebrow {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px;
}
.contact-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.contact-box p { color: var(--ink-soft); margin-bottom: 26px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 40px; background: var(--bg-alt);
  font-size: 0.88rem; color: var(--ink-soft);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-grid h4 { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); opacity: 1; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Guide article layout ---------- */

.article-hero { padding: 72px 0 24px; }
.breadcrumbs { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 24px; }
.breadcrumbs a { color: var(--ink-soft); }
.article-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.025em;
  max-width: 20em; margin-bottom: 18px;
}
.article-hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 38em; }

.article { max-width: 720px; padding-bottom: 40px; }
.article h2 {
  font-weight: 700; letter-spacing: -0.015em;
  font-size: 1.5rem; line-height: 1.2;
  margin: 46px 0 16px;
}
.article h3 { font-size: 1.08rem; font-weight: 600; margin: 28px 0 10px; }
.article p { margin-bottom: 16px; color: #424245; }
.article ul, .article ol { margin: 0 0 18px 22px; color: #424245; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--ink); }
.article code { background: var(--bg-alt); border-radius: 5px; padding: 2px 6px; font-size: 0.9em; }

.tip {
  background: var(--bg-alt); border-left: 3px solid var(--ink);
  border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 24px 0;
  font-size: 0.94rem;
}

.steps-inline { counter-reset: si; list-style: none; margin: 22px 0 !important; }
.steps-inline li { counter-increment: si; position: relative; padding-left: 46px; margin-bottom: 16px !important; }
.steps-inline li::before {
  content: counter(si); position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 0.88rem;
  display: flex; align-items: center; justify-content: center;
}

.cta-box {
  background: var(--bg-alt);
  border-radius: var(--radius); padding: 32px 28px; margin: 44px 0;
}
.cta-box h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.cta-box p { margin-bottom: 20px; }

.related { padding: 40px 0 80px; }
.related h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- Entrance animation (CSS only, hero) ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .wrap > div:first-child > * { animation: rise 0.6s ease both; }
.hero .wrap > div:first-child > *:nth-child(2) { animation-delay: 0.08s; }
.hero .wrap > div:first-child > *:nth-child(3) { animation-delay: 0.16s; }
.hero .wrap > div:first-child > *:nth-child(4) { animation-delay: 0.24s; }
.hero .wrap > div:first-child > *:nth-child(5) { animation-delay: 0.32s; }
.hero-visual { animation: rise 0.7s ease 0.15s both; }
@media (prefers-reduced-motion: reduce) {
  .hero .wrap > div:first-child > *, .hero-visual { animation: none; }
  html { scroll-behavior: auto; }
}
