:root {
  --ink: #112824;
  --ink-soft: #415450;
  --paper: #ffffff;
  --mist: #edf7f4;
  --mint: #c7eadf;
  --mint-strong: #9ed8c6;
  --forest: #143a35;
  --forest-2: #1d5149;
  --peach: #f4aa73;
  --peach-soft: #fee5d4;
  --blue: #276998;
  --line: #d8e6e1;
  --shadow: 0 22px 60px rgba(17, 40, 36, 0.12);
  --shadow-sm: 0 10px 30px rgba(17, 40, 36, 0.09);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.7 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

p { margin: 0; }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--soft { background: var(--mist); }
.section--ink { background: var(--forest); color: white; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--forest-2);
  font: 700 0.78rem/1 "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-title { max-width: 760px; font-size: clamp(2rem, 4vw, 3.65rem); }
.section-lead { max-width: 680px; margin-top: 20px; color: var(--ink-soft); font-size: 1.12rem; }
.skip-link { position: fixed; z-index: 9999; left: 12px; top: -80px; padding: 12px 18px; color: white; background: var(--forest); border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 76px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(216,230,225,.8);
  backdrop-filter: blur(16px);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 148px; height: auto; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 3vw, 38px); }
.nav-links a, .nav-action {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.nav-links a:hover, .nav-action:hover { color: var(--forest-2); }
.nav-lang { padding: 9px 13px; border: 1px solid var(--line) !important; border-radius: 999px; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 50%; color: white; background: var(--forest); cursor: pointer; }
.menu-toggle svg { width: 22px; }

.hero { overflow: hidden; padding: 34px 0 72px; }
.hero-card {
  position: relative;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  overflow: hidden;
  padding: clamp(38px, 7vw, 86px);
  border-radius: 0 0 84px 84px;
  background: linear-gradient(135deg, #f5fbf9 0%, #dff3ed 100%);
}
.hero-card::before, .hero-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 56px solid rgba(20,58,53,.055);
}
.hero-card::before { width: 330px; height: 330px; right: 11%; top: -120px; }
.hero-card::after { width: 480px; height: 480px; right: -170px; bottom: -240px; }
.hero-copy { position: relative; z-index: 4; max-width: 680px; }
.expert-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; font-weight: 700; color: var(--forest-2); }
.expert-badge span { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--forest-2); border-radius: 50%; }
.hero h1 { max-width: 680px; font-size: clamp(2.8rem, 6.2vw, 5.8rem); letter-spacing: -.06em; }
.hero h1 em { color: var(--forest-2); font-style: normal; }
.hero-copy > p { max-width: 640px; margin-top: 24px; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { position: relative; z-index: 5; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  color: white;
  background: var(--forest);
  box-shadow: 0 10px 24px rgba(20,58,53,.18);
  text-decoration: none;
  font: 700 .92rem/1 "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: .035em;
}
.button:hover { transform: translateY(-2px); background: var(--forest-2); }
.button--light { color: var(--forest); background: rgba(255,255,255,.82); box-shadow: none; }
.button--peach { color: var(--ink); background: var(--peach); border-color: var(--ink); }
.hero-art { position: relative; z-index: 2; display: grid; place-items: center; min-height: 400px; }
.hero-art::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.6); }
.hero-art img { position: relative; width: min(100%, 310px); max-height: 430px; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(20,58,53,.18)); transform: rotate(3deg); }
.hero-mark { position: absolute; z-index: 2; right: 4%; bottom: 4%; color: rgba(20,58,53,.13); font: 800 clamp(5rem, 12vw, 12rem)/1 "Avenir Next", sans-serif; letter-spacing: -.09em; }

.quick-search { position: relative; z-index: 4; width: min(calc(100% - 80px), 980px); margin: -32px auto 0; }
.quick-search button { width: 100%; min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink-soft); background: white; box-shadow: var(--shadow-sm); cursor: pointer; }
.quick-search svg { width: 22px; }

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.tool-card {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.tool-card:nth-child(2) { background: #eef3ff; }
.tool-card:nth-child(3) { background: var(--peach-soft); }
.tool-card h3 { font-size: 1.8rem; }
.tool-card p { max-width: 360px; margin-top: 12px; color: var(--ink-soft); }
.tool-card img { width: 190px; height: 170px; object-fit: contain; margin: auto auto 12px; transition: transform .25s ease; }
.tool-card:hover img { transform: scale(1.05) rotate(-2deg); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--forest-2); text-decoration: none; }
.text-link::after { content: ""; width: 24px; height: 2px; background: currentColor; transition: width .2s; }
.text-link:hover::after { width: 38px; }

.feature-band { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: var(--radius-xl); background: var(--forest); color: white; }
.feature-band > div { padding: clamp(38px, 6vw, 72px); }
.feature-band h2 { font-size: clamp(2.2rem, 4.5vw, 4.5rem); }
.feature-band p { margin-top: 20px; color: rgba(255,255,255,.76); font-size: 1.12rem; }
.feature-band .feature-art { position: relative; display: grid; place-items: center; background: var(--mint); }
.feature-band .feature-art img { width: 220px; max-height: 340px; object-fit: contain; filter: drop-shadow(0 24px 28px rgba(17,40,36,.25)); }
.feature-band .feature-art::before { content: "MG"; position: absolute; color: rgba(20,58,53,.11); font: 800 10rem/1 "Avenir Next", sans-serif; }

.page-hero { padding: 54px 0 38px; }
.page-hero__inner { position: relative; min-height: 430px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 60px; overflow: hidden; padding: clamp(38px, 7vw, 80px); border-radius: var(--radius-xl); background: var(--mist); }
.page-hero__inner::after { content: ""; position: absolute; width: 430px; height: 430px; right: -80px; top: -90px; border: 64px solid rgba(20,58,53,.055); border-radius: 50%; }
.page-hero h1 { position: relative; z-index: 1; font-size: clamp(2.6rem, 5.4vw, 5.2rem); }
.page-hero p { position: relative; z-index: 1; max-width: 650px; margin-top: 22px; color: var(--ink-soft); font-size: 1.15rem; }
.page-hero__art { position: relative; z-index: 1; display: grid; place-items: center; min-height: 280px; }
.page-hero__art img { width: min(100%, 290px); max-height: 320px; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(17,40,36,.16)); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 42px; }
.fact { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.fact-number { display: block; margin-bottom: 34px; color: var(--peach); font: 800 2.4rem/1 "Avenir Next", sans-serif; }
.fact h3 { font-size: 1.3rem; }
.fact p { margin-top: 10px; color: var(--ink-soft); }
.comparison { margin-top: 46px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.compare-card { padding: 30px; border-radius: var(--radius-md); background: white; border: 1px solid var(--line); }
.compare-card--featured { color: white; background: var(--forest); border-color: var(--forest); }
.compare-label { display: inline-block; margin-bottom: 18px; padding: 7px 11px; border-radius: 999px; color: var(--forest); background: var(--mint); font-size: .8rem; font-weight: 700; }
.compare-card h3 { font-size: 1.5rem; }
.compare-card ul { padding-left: 20px; margin: 18px 0 0; }
.compare-card li + li { margin-top: 7px; }
.affiliate-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 42px; }
.affiliate-card { display: flex; flex-direction: column; min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, #fff 0%, #f4faf8 100%); box-shadow: var(--shadow-sm); }
.affiliate-kicker { display: inline-flex; align-self: flex-start; margin-bottom: 18px; padding: 7px 11px; border-radius: 999px; color: var(--forest); background: var(--mint); font-size: .78rem; font-weight: 700; }
.affiliate-card h3 { font-size: 1.45rem; }
.affiliate-card p { margin-top: 12px; color: var(--ink-soft); }
.affiliate-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; padding-top: 24px; }
.affiliate-buy { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; color: #111; background: #ffb21a; text-decoration: none; font-weight: 800; box-shadow: 0 6px 14px rgba(255,178,26,.24); }
.affiliate-buy:hover { background: #ffbe3e; transform: translateY(-1px); }
.affiliate-disclosure { margin-top: 18px; color: var(--ink-soft); font-size: .88rem; }

.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
.book-card { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.book-card__image { aspect-ratio: 3 / 4; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: var(--mist); }
.book-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.book-card:hover img { transform: scale(1.025); }
.book-card h3 { margin-top: 20px; font-size: 1.28rem; }
.book-card p { margin: 10px 0 18px; color: var(--ink-soft); }
.book-card .text-link { margin-top: auto; }

.product-layout { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.product-cover { position: sticky; top: 110px; display: grid; place-items: center; padding: 40px; border-radius: var(--radius-xl); background: var(--mist); }
.product-cover img { width: min(100%, 360px); filter: drop-shadow(0 25px 28px rgba(17,40,36,.17)); }
.product-content h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.product-content .lede { margin-top: 22px; color: var(--ink-soft); font-size: 1.18rem; }
.product-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 34px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.product-meta div { padding: 18px; background: white; }
.product-meta small { display: block; color: var(--ink-soft); }
.product-meta strong { display: block; margin-top: 4px; }
.notice { padding: 22px; border-left: 4px solid var(--peach); border-radius: 0 14px 14px 0; background: var(--peach-soft); }
.purchase-block { margin: 34px 0 8px; padding: 28px; border-radius: 18px; background: var(--mist); }
.purchase-block h2 { font-size: 1.45rem; }
.purchase-block small { display: block; margin-top: 16px; color: var(--ink-soft); }
.purchase-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; margin-top: 18px; }
.retailer-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: white;
  box-shadow: 0 6px 18px rgba(17,40,36,.06);
  text-decoration: none;
}
.retailer-button:hover { border-color: var(--forest-2); box-shadow: 0 10px 24px rgba(17,40,36,.12); transform: translateY(-2px); }
.retailer-mark { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; color: white; background: var(--forest); font: 800 1.2rem/1 "Avenir Next", sans-serif; }
.retailer-copy { min-width: 0; }
.retailer-copy small { display: block; margin: 0 0 2px; color: var(--ink-soft); font-size: .7rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .055em; }
.retailer-copy strong { display: block; line-height: 1.2; }
.retailer-amazon .retailer-mark { color: #111; background: #ffb21a; }
.retailer-apple-books .retailer-mark { background: #111; }
.retailer-google-play .retailer-mark { background: #2d6cdf; }
.retailer-kobo .retailer-mark { background: #b51f2b; }
.retailer-nook .retailer-mark { background: #34755b; }
.bullet-list { display: grid; gap: 12px; padding: 0; margin: 30px 0; list-style: none; }
.bullet-list li { display: flex; gap: 12px; }
.bullet-list li::before { content: "✓"; display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; color: white; background: var(--forest-2); font-weight: 700; }

.article { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.article h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
.article h2 { margin-top: 52px; font-size: 1.8rem; }
.article p, .article li { color: var(--ink-soft); }
.article p { margin-top: 18px; }
.article ul { padding-left: 24px; }
.article .updated { margin: 18px 0 40px; color: var(--forest-2); font-weight: 700; }
.review-score { display: inline-flex; align-items: center; gap: 12px; margin: 28px 0; padding: 12px 18px; border-radius: 999px; background: var(--mint); font-weight: 700; }
.review-score strong { font: 800 1.5rem/1 "Avenir Next", sans-serif; }

.transition-card { max-width: 850px; margin: 0 auto; padding: clamp(34px, 6vw, 68px); border-radius: var(--radius-xl); text-align: center; background: var(--mist); }
.transition-card .transition-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 24px; border-radius: 50%; color: white; background: var(--forest); font-size: 1.8rem; }
.transition-card h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.transition-card p { max-width: 620px; margin: 20px auto 0; color: var(--ink-soft); font-size: 1.1rem; }
.transition-card .button { margin-top: 30px; }

.site-footer { color: white; background: #0d2824; }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 60px; padding: 66px 0 50px; }
.footer-brand img { width: 58px; margin-bottom: 24px; }
.footer-brand p { max-width: 390px; color: rgba(255,255,255,.68); }
.footer-main h3 { margin-bottom: 18px; font-size: 1rem; letter-spacing: .04em; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: flex-start; gap: 24px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.58); font-size: .9rem; }

.search-dialog { width: min(680px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 24px; box-shadow: var(--shadow); }
.search-dialog::backdrop { background: rgba(7,24,21,.58); backdrop-filter: blur(6px); }
.search-head { display: flex; gap: 12px; padding: 22px; border-bottom: 1px solid var(--line); }
.search-head input { flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.search-close { width: 48px; border: 0; border-radius: 12px; color: white; background: var(--forest); cursor: pointer; }
.search-results { display: grid; gap: 8px; max-height: 52vh; overflow: auto; padding: 18px 22px 24px; }
.search-result { display: block; padding: 14px; border-radius: 12px; background: var(--mist); text-decoration: none; }
.search-result strong { display: block; }
.search-result small { color: var(--ink-soft); }
.empty-result { padding: 28px; text-align: center; color: var(--ink-soft); }
.noscript { max-width: 740px; margin: 10vh auto; padding: 30px; }

@media (max-width: 1000px) {
  .hero-card { grid-template-columns: 1fr .8fr; min-height: 540px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { gap: 16px; }
  .tool-card { padding: 26px; }
}

@media (max-width: 820px) {
  .site-header { height: 68px; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 76px 14px auto;
    width: auto;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    display: none;
    align-items: stretch;
    padding: 24px 20px 34px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
  }
  .nav-links.is-open { display: grid; }
  .nav-links a, .nav-action { width: 100%; padding: 12px; text-align: center; }
  .nav-lang { width: 100%; justify-self: center; }
  .hero { padding-top: 18px; }
  .hero-card, .page-hero__inner { grid-template-columns: 1fr; }
  .hero-card { padding: 46px 30px; border-radius: 0 0 52px 52px; }
  .hero-copy { z-index: 5; }
  .hero .hero-actions { margin-bottom: 34px; }
  .hero-art { z-index: 1; min-height: 300px; margin-top: 8px; }
  .hero-art img { max-height: 300px; }
  .hero-mark { display: none; }
  .tool-grid, .facts { grid-template-columns: 1fr; }
  .tool-card { min-height: 340px; }
  .feature-band { grid-template-columns: 1fr; }
  .feature-art { min-height: 390px; }
  .page-hero__inner { gap: 20px; }
  .page-hero__art { min-height: 230px; }
  .comparison { grid-template-columns: 1fr; }
  .affiliate-products { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .product-cover { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 64px 0; }
  .brand img { width: 132px; }
  .hero-card { min-height: auto; padding: 38px 22px; }
  .hero h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .hero-art { min-height: 280px; }
  .hero .hero-actions { align-items: stretch; margin-bottom: 38px; }
  .hero .hero-actions .button { width: 100%; }
  .purchase-links { grid-template-columns: 1fr; }
  .retailer-button { width: 100%; }
  .quick-search { width: calc(100% - 28px); }
  .tool-card { min-height: 320px; }
  .book-grid { grid-template-columns: 1fr; }
  .book-card { display: grid; grid-template-columns: 112px 1fr; column-gap: 18px; }
  .book-card__image { grid-row: 1 / 4; }
  .book-card h3 { margin-top: 10px; }
  .page-hero { padding-top: 26px; }
  .page-hero__inner { padding: 34px 22px; border-radius: 28px; }
  .page-hero h1 { font-size: clamp(2.4rem, 13vw, 3.7rem); }
  .product-meta { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
