:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-tile: #f5f5f7;
  --border: #d2d2d7;
  --border-soft: #e8e8ed;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --link: #0066cc;
  --link-hover: #004499;
  --amazon: #ff9900;
  --amazon-text: #111111;
  --ok: #008009;
  --ok-bg: #f0faf0;
  --danger: #b30000;
  --danger-bg: #fff5f5;
  --warn: #b35c00;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --header-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.47059;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -.022em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--text); color: #fff; padding: .5rem 1rem; z-index: 1000;
  border-radius: 8px;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Affiliate strip — light */
.affiliate-banner {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  padding: .55rem 0;
  text-align: center;
  letter-spacing: -.01em;
}
.affiliate-banner strong { color: var(--text); font-weight: 600; }

/* Header — thin Apple-like */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 0; min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; flex-shrink: 0;
  line-height: 1;
}
.brand:hover { text-decoration: none; color: var(--text); opacity: .92; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-alt); color: var(--link);
  font-weight: 600; font-size: 12px; letter-spacing: -.04em;
  flex-shrink: 0; line-height: 1;
}
.brand-name {
  font-weight: 500; letter-spacing: -.02em; font-size: 18px;
  color: var(--text);
}
.brand-accent { color: var(--link); font-weight: 500; }
.brand-tag { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: .85rem; line-height: 1;
  color: var(--text); text-decoration: none;
}
.footer-brand:hover { text-decoration: none; color: var(--text); opacity: .92; }
.footer-brand .brand-mark { width: 28px; height: 28px; font-size: 11px; }
.footer-brand .brand-name { font-size: 16px; }


.nav {
  display: flex; align-items: center; gap: .1rem 1.35rem; flex-wrap: wrap;
}
.nav > a {
  color: var(--text); font-size: 12px; font-weight: 400; padding: .35rem 0;
  opacity: .88; letter-spacing: -.01em;
}
.nav > a:hover { color: var(--text); text-decoration: none; opacity: 1; }

.search-form {
  display: flex; align-items: center; gap: .25rem;
  background: var(--bg-alt); border: 0;
  border-radius: 999px; padding: .18rem .22rem .18rem .85rem;
}
.search-form:focus-within { background: #ebebed; }
.search-form input {
  background: transparent; border: 0; color: var(--text); outline: none;
  width: min(160px, 22vw); font-size: 12px;
}
.search-form input::placeholder { color: var(--muted-2); }
.search-form button {
  border: 0; border-radius: 999px; background: var(--text); color: #fff;
  padding: .35rem .75rem; cursor: pointer; font-weight: 500; font-size: 12px;
}
.search-form button:hover { background: #000; }

.menu-toggle {
  display: none; border: 0; background: transparent;
  color: var(--text); border-radius: 8px; padding: .4rem .55rem;
  cursor: pointer; font-weight: 500; font-size: 12px;
}

/* Buttons — Apple restraint */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border-radius: 980px; padding: .7rem 1.35rem; font-weight: 500; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; font-size: 14px; line-height: 1.2;
  letter-spacing: -.01em;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--link); color: #fff;
}
.btn-primary:hover { background: var(--link-hover); color: #fff; }
.btn-secondary {
  background: transparent; border-color: var(--link); color: var(--link);
}
.btn-secondary:hover { background: rgba(0, 102, 204, 0.06); color: var(--link-hover); border-color: var(--link-hover); }
.btn-amazon {
  background: var(--amazon); color: var(--amazon-text); font-weight: 600;
}
.btn-amazon:hover { filter: brightness(1.04); color: var(--amazon-text); }
.btn-sm { padding: .45rem .9rem; font-size: 12px; }

/* Hero — thematic light Apple background + soft white wash for readability */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(105deg, rgba(245,245,247,.94) 0%, rgba(245,245,247,.88) 42%, rgba(245,245,247,.55) 68%, rgba(245,245,247,.35) 100%),
    url("/images/hero-bg.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-soft);
}
.hero > .container { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(245,245,247,.96) 0%, rgba(245,245,247,.9) 55%, rgba(245,245,247,.72) 100%),
      url("/images/hero-bg.jpg");
    background-position: center center;
  }
}

.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
  padding: 4.5rem 0 4.75rem;
}
.hero-copy h1 {
  font-size: clamp(40px, 5.5vw, 56px);
  line-height: 1.07143; margin: 0 0 1rem; letter-spacing: -.015em;
  color: var(--text); font-weight: 600;
}
.hero-copy .lead {
  color: var(--muted); margin: 0 0 1.75rem; font-size: 21px;
  line-height: 1.381; font-weight: 400; max-width: 34rem; letter-spacing: .011em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.hero-search {
  display: flex; width: 100%; max-width: 420px;
  background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.hero-search input {
  flex: 1; border: 0; padding: .9rem 1.05rem; font-size: 15px; outline: none;
  background: transparent; color: var(--text);
}
.hero-search button {
  border: 0; background: var(--link); color: #fff;
  padding: 0 1.2rem; font-weight: 500; cursor: pointer; font-size: 14px;
}
.hero-search button:hover { background: var(--link-hover); }

.hero-visual {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.hero-visual img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.hero-visual-badge {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft); border-radius: 14px;
  padding: .75rem 1rem; box-shadow: var(--shadow-sm);
  display: flex; gap: 1.25rem; justify-content: space-around;
}
.hero-visual-badge .stat-item { display: flex; flex-direction: column; gap: .1rem; align-items: center; text-align: center; }
.hero-visual-badge .stat-item span { font-size: 11px; color: var(--muted); font-weight: 400; }
.hero-visual-badge .stat-item strong { font-size: 15px; color: var(--text); font-weight: 600; }

/* Trust strip */
.trust-strip {
  background: var(--bg); border-bottom: 1px solid var(--border-soft);
  padding: 1.15rem 0;
}
.trust-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.25rem;
  list-style: none; margin: 0; padding: 0;
}
.trust-list li {
  display: flex; align-items: center; gap: .5rem;
  font-size: 13px; color: var(--muted); font-weight: 400;
}
.trust-list .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--link); flex-shrink: 0;
}

/* Sections */
.section { padding: 4rem 0; background: var(--bg); }
.section-alt { background: var(--bg-alt); border-block: 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
  margin-bottom: 2rem; text-align: center; flex-direction: column; align-items: center;
}
.section-head h2 {
  margin: 0; font-size: 40px; line-height: 1.1; letter-spacing: -.015em; font-weight: 600;
}
.section-head p { margin: .55rem 0 0; color: var(--muted); font-size: 19px; font-weight: 400; }
.section-link { font-size: 17px; font-weight: 400; }

/* Category tiles — Apple Store style: light tile, contain image, title BELOW */
.cats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.cat-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--bg-tile);
  color: var(--text); text-decoration: none;
  overflow: hidden;
  transition: transform .2s ease, background .2s ease;
  border: 0;
  box-shadow: none;
  aspect-ratio: auto;
}
.cat-card:hover {
  transform: scale(1.02); text-decoration: none; color: var(--text);
  background: #ebebed;
}
.cat-card-media {
  aspect-ratio: 1 / 1;
  background: var(--bg-tile);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}
.cat-card-media img,
.cat-card img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.cat-card:hover .cat-card-media img,
.cat-card:hover img { transform: scale(1.03); }
.cat-card-body {
  padding: 0 1.15rem 1.35rem;
  text-align: center;
}
.cat-card h3 {
  margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em;
  color: var(--text);
}
.cat-card p {
  margin: .35rem 0 0; font-size: 13px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.35;
}
/* Legacy class kept light — NEVER dark gradient */
.cat-card-overlay {
  position: static;
  background: transparent;
  display: block;
  padding: 0 1.15rem 1.35rem;
  text-align: center;
  color: var(--text);
}

/* Product cards — square contain */
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.product-card {
  background: var(--bg); border: 0;
  border-radius: var(--radius);
  box-shadow: none;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease;
}
.product-card:hover { transform: scale(1.015); }
.product-card .media {
  aspect-ratio: 1 / 1;
  background: var(--bg-tile);
  border-radius: var(--radius);
  border: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; overflow: hidden;
}
.product-card .media img {
  width: 100%; height: 100%; object-fit: contain;
}
.product-card .media .media-fallback {
  font-size: 14px; color: var(--muted-2); font-weight: 500;
  text-align: center; padding: 1rem;
}
.product-card .body {
  padding: 1rem .25rem .5rem; display: flex; flex-direction: column; gap: .35rem; flex: 1;
}
.product-card .meta {
  color: var(--muted); font-size: 12px; font-weight: 400;
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
}
.product-card .meta .stars { color: var(--warn); letter-spacing: .02em; }
.product-card h3 {
  margin: 0; font-size: 17px; line-height: 1.235; font-weight: 600; letter-spacing: -.01em;
}
.product-card h3 a { color: var(--text); }
.product-card h3 a:hover { color: var(--link); text-decoration: none; }
.product-card .desc {
  color: var(--muted); font-size: 13px; flex: 1; margin: 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .foot {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin-top: .65rem; padding-top: .75rem; border-top: 1px solid var(--border-soft);
}
.price { font-weight: 600; color: var(--text); font-size: 17px; letter-spacing: -.01em; }
.price-note { font-size: 12px; color: var(--muted); font-weight: 400; }
.rating { color: var(--warn); font-size: 14px; font-weight: 500; }

/* Editorial — light text band, no dark image */
.editorial {
  display: block; max-width: 720px; margin: 0 auto; text-align: center;
}
.editorial-copy h2 {
  margin: 0 0 .85rem; font-size: 40px; letter-spacing: -.015em; font-weight: 600; line-height: 1.1;
}
.editorial-copy > p { margin: 0 auto 1.75rem; color: var(--muted); font-size: 19px; max-width: 36rem; line-height: 1.4; }
.editorial-points {
  list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; text-align: left;
}
.editorial-points li {
  display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start;
  padding: 1.15rem 1.25rem; background: var(--bg); border: 0;
  border-radius: var(--radius-sm);
}
.editorial-points .num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-alt); color: var(--text);
  display: grid; place-items: center; font-weight: 600; font-size: 13px;
}
.editorial-points strong { display: block; font-size: 17px; margin-bottom: .2rem; font-weight: 600; }
.editorial-points span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.editorial-visual { display: none; }

/* Page hero — light, no dark banners */
.page-hero {
  background: var(--bg-alt); border-bottom: 0;
  padding: 2.75rem 0 2.25rem;
}
.page-hero h1 {
  margin: 0 0 .5rem; font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.015em; font-weight: 600; line-height: 1.1;
}
.page-hero p { margin: 0; color: var(--muted); max-width: 40rem; font-size: 19px; }
.breadcrumb {
  font-size: 12px; color: var(--muted); margin-bottom: .75rem;
  display: flex; flex-wrap: wrap; gap: .35rem; align-items: center;
}
.breadcrumb a { color: var(--link); }
.breadcrumb a:hover { color: var(--link-hover); }
.breadcrumb .sep { color: var(--muted-2); }

/* Category light header (replaces dark banner) */
.cat-page-header {
  display: flex; align-items: center; gap: 1.75rem;
  margin-top: 1rem;
}
.cat-page-thumb {
  width: 120px; height: 120px; flex-shrink: 0;
  background: var(--bg); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.cat-page-thumb img {
  width: 100%; height: 100%; object-fit: contain;
}
.cat-page-header h1 { margin: 0 0 .35rem; }
.cat-page-header p { margin: 0; font-size: 17px; }

/* Legacy cat-banner — neutralized to light (no dark overlay) */
.cat-banner {
  display: none;
}
.cat-banner-overlay {
  background: transparent !important;
  color: var(--text) !important;
}
.cat-banner-overlay h1,
.cat-banner-overlay p { color: var(--text) !important; }

/* Product detail */
.product-layout {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: start;
  padding: 2rem 0 0;
}
.product-media {
  background: var(--bg-tile); border: 0;
  border-radius: var(--radius); box-shadow: none;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  padding: 2rem; overflow: hidden; position: sticky; top: calc(var(--header-h) + 1rem);
}
.product-media img {
  width: 100%; height: 100%; object-fit: contain;
}
.content-card {
  background: transparent; border: 0;
  border-radius: 0; box-shadow: none;
  padding: .25rem 0;
}
.content-card h1 {
  margin: .55rem 0 .35rem; font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -.015em; font-weight: 600; line-height: 1.1;
}
.content-card h2 {
  margin: 2rem 0 .55rem; font-size: 24px; letter-spacing: -.015em; font-weight: 600;
}
.content-card > p { color: var(--muted); font-size: 17px; }
.content-card ul { padding-left: 1.1rem; color: var(--muted); }
.badge {
  display: inline-block; background: var(--bg-alt); color: var(--text);
  border: 0; border-radius: 999px;
  padding: .25rem .75rem; font-size: 12px; font-weight: 500;
}
.pros-cons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0;
}
.pros, .cons {
  padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); border: 0;
}
.pros { background: var(--ok-bg); }
.cons { background: var(--danger-bg); }
.pros h3 { color: var(--ok); margin: 0 0 .5rem; font-size: 14px; font-weight: 600; }
.cons h3 { color: var(--danger); margin: 0 0 .5rem; font-size: 14px; font-weight: 600; }
.pros ul, .cons ul { margin: 0; padding-left: 1.05rem; color: var(--text); font-size: 14px; }
.affiliate-note {
  font-size: 12px; color: var(--muted); margin: 1.25rem 0 0;
  padding-top: 1rem; border-top: 1px solid var(--border-soft);
}
.product-cta-row {
  display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.25rem 0 0;
}

/* Legal / content pages */
.legal-content {
  background: var(--bg); border: 0;
  border-radius: var(--radius); box-shadow: none;
  padding: 1.5rem 0; margin-top: .5rem;
}
.legal-content h2 { font-size: 24px; margin-top: 2rem; font-weight: 600; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 17px; }

/* Footer — light */
.site-footer {
  margin-top: 0; border-top: 1px solid var(--border-soft);
  background: var(--bg-alt); padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.site-footer h3 {
  margin: 0 0 .85rem; font-size: 12px; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase; color: var(--text);
}
.site-footer p, .site-footer a { color: var(--muted); font-size: 13px; }
.site-footer a:hover { color: var(--link); }
.site-footer .footer-links { display: grid; gap: .45rem; }
.footer-bottom {
  border-top: 1px solid var(--border-soft); padding-top: 1.15rem;
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: space-between; color: var(--muted); font-size: 12px;
}
.soft-credit a { color: var(--muted); }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80;
  max-width: 560px; margin-inline: auto;
  background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: 18px; box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 1.25rem 1.35rem; display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0 0 .9rem; color: var(--muted); font-size: 13px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.empty {
  padding: 3rem 1.5rem; text-align: center; color: var(--muted);
  border: 0; border-radius: var(--radius);
  background: var(--bg-alt); font-size: 17px;
}

@media (max-width: 1024px) {
  .cats-grid, .products-grid { grid-template-columns: repeat(3, 1fr); }
  .section-head h2, .editorial-copy h2 { font-size: 32px; }
}
@media (max-width: 900px) {
  .hero-grid, .product-layout, .footer-grid, .pros-cons {
    grid-template-columns: 1fr;
  }
  .product-media { position: static; }
  .cats-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .hero-grid { padding: 3rem 0 3.25rem; gap: 2rem; }
  .cat-page-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: .1rem; padding: .5rem 0 1rem;
  }
  .nav.open { display: flex; }
  .nav > a { padding: .65rem 0; border-bottom: 1px solid var(--border-soft); font-size: 15px; }
  .header-inner { flex-wrap: wrap; min-height: 48px; }
  .search-form { width: 100%; margin-top: .35rem; }
  .search-form input { width: 100%; }
  .products-grid, .cats-grid { grid-template-columns: 1fr 1fr; gap: .85rem; }
  .hero-copy h1 { font-size: 32px; }
  .hero-copy .lead { font-size: 17px; }
  .section { padding: 2.75rem 0; }
  .section-head h2, .editorial-copy h2 { font-size: 28px; }
  .section-head p, .editorial-copy > p { font-size: 16px; }
  .container { width: min(100% - 1.75rem, var(--max)); }
}
@media (max-width: 420px) {
  .products-grid, .cats-grid { grid-template-columns: 1fr; }
}


.footer-bottom-right { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.admin-footer-link {
  color: #6e6e73; font-size: .8rem; text-decoration: none;
  border: 1px solid #d2d2d7; border-radius: 980px; padding: .35rem .85rem;
  background: #fff;
}
.admin-footer-link:hover { color: #0066cc; border-color: #0066cc; text-decoration: none; }

/* Guides */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.guide-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.guide-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.guide-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #f5f5f7;
  padding: 1.5rem;
  overflow: hidden;
}
.guide-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.guide-card-body {
  padding: 1.35rem 1.4rem 1.5rem;
}
.guide-cover {
  margin: 1.25rem 0 1.75rem;
  aspect-ratio: 1 / 1;
  max-height: 420px;
  background: #f5f5f7;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
  overflow: hidden;
}
.guide-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.guide-card h2, .guide-card h3 {
  margin: .35rem 0 .65rem;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 600;
}
.guide-card h2 a, .guide-card h3 a {
  color: inherit;
  text-decoration: none;
}
.guide-card h2 a:hover, .guide-card h3 a:hover { opacity: .75; }
.guide-card p { margin: 0 0 1rem; color: var(--muted); font-size: 15px; line-height: 1.45; }
.guide-meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.article-layout { max-width: 760px; }
.article-body h1 { margin: .35rem 0 1rem; font-size: clamp(1.75rem, 4vw, 2.4rem); line-height: 1.15; }
.prose { font-size: 17px; line-height: 1.65; color: #1d1d1f; }
.prose h2 { margin: 2rem 0 .75rem; font-size: 1.35rem; font-weight: 600; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.prose li { margin: .35rem 0; }
.prose a { color: #0071e3; text-decoration: underline; text-underline-offset: 2px; }

/* —— Guide visual layout (Apple Store light) —— */
.prose .guide-figure,
.article-body .guide-figure {
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  background: #f5f5f7;
  border-radius: 16px;
  overflow: hidden;
  max-width: 100%;
}
.prose .guide-figure img,
.article-body .guide-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  background: #f5f5f7;
  border-radius: 0;
}
.prose .guide-figure figcaption,
.article-body .guide-figure figcaption {
  margin: 0;
  padding: .65rem 1rem .85rem;
  font-size: 14px;
  line-height: 1.4;
  color: #6e6e73;
  text-align: center;
  background: #f5f5f7;
}
/* Generic prose imgs still rounded */
.prose > img,
.prose p > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

/* TOC — jump links to H2s */
.guide-toc {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem 1.1rem;
  background: #f5f5f7;
  border-radius: 14px;
  border: 1px solid #e8e8ed;
}
.guide-toc-label {
  margin: 0 0 .55rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6e6e73;
}
.guide-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .55rem;
}
.guide-toc a {
  display: inline-block;
  padding: .35rem .7rem;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #0066cc;
  text-decoration: none;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 980px;
  transition: background .15s ease, border-color .15s ease;
}
.guide-toc a:hover {
  background: #e8f1fb;
  border-color: #0066cc;
  text-decoration: none;
  color: #004499;
}
@media (min-width: 900px) {
  .guide-toc.guide-toc-sticky {
    position: sticky;
    top: calc(var(--header-h, 52px) + 12px);
    z-index: 5;
  }
}

/* Compare — 2-column A vs B cards */
.guide-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 1.75rem;
}
@media (min-width: 640px) {
  .guide-compare {
    grid-template-columns: 1fr 1fr;
  }
}
.guide-compare-card {
  background: #f5f5f7;
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid #e8e8ed;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-width: 0;
}
.guide-compare-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}
.guide-compare-card h3 a {
  color: inherit;
  text-decoration: none;
}
.guide-compare-card h3 a:hover {
  color: #0066cc;
  text-decoration: underline;
}
.guide-compare-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: .85rem;
  min-height: 140px;
}
.guide-compare-media img {
  width: auto;
  max-width: 100%;
  max-height: 160px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 0;
}
.guide-compare-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 14px;
  line-height: 1.45;
  color: #1d1d1f;
}
.guide-compare-card li { margin: .25rem 0; }
.guide-compare-card .guide-compare-cta {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: #0066cc;
  text-decoration: none;
}
.guide-compare-card .guide-compare-cta:hover { text-decoration: underline; }

/* Callout — tip / aviso */
.guide-callout {
  margin: 1.5rem 0 1.75rem;
  padding: 1rem 1.15rem 1.05rem 1.15rem;
  background: #f0f5fb;
  border-radius: 14px;
  border-left: 4px solid #0066cc;
}
.guide-callout-label {
  display: block;
  margin: 0 0 .35rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0066cc;
}
.guide-callout p {
  margin: 0 0 .5rem;
  font-size: 15px;
  line-height: 1.5;
  color: #1d1d1f;
}
.guide-callout p:last-child { margin-bottom: 0; }
.guide-callout.guide-callout-aviso {
  background: #fff8f0;
  border-left-color: #b35c00;
}
.guide-callout.guide-callout-aviso .guide-callout-label { color: #b35c00; }

/* Checklist — visual checks */
.guide-checklist {
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  list-style: none;
}
.guide-checklist li {
  position: relative;
  margin: 0 0 .65rem;
  padding: .85rem 1rem .85rem 2.75rem;
  background: #f5f5f7;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.45;
  list-style: none;
}
.guide-checklist li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #0066cc;
  box-shadow: inset 0 0 0 2px #0066cc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.guide-checklist li strong { font-weight: 600; }

/* Split — image left / text right */
.guide-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0 1.75rem;
  padding: 1rem;
  background: #f5f5f7;
  border-radius: 16px;
}
@media (min-width: 640px) {
  .guide-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.25rem;
    padding: 1.15rem 1.25rem;
  }
  .guide-split.guide-split-flip {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
  .guide-split.guide-split-flip .guide-split-media { order: 2; }
  .guide-split.guide-split-flip .guide-split-body { order: 1; }
}
.guide-split-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: .75rem;
  min-height: 140px;
}
.guide-split-media img {
  width: auto;
  max-width: 100%;
  max-height: 220px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 0;
}
.guide-split-body h3 {
  margin: 0 0 .4rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.guide-split-body p {
  margin: 0 0 .65rem;
  font-size: 15px;
  line-height: 1.5;
  color: #1d1d1f;
}
.guide-split-body p:last-child { margin-bottom: 0; }
.guide-split-body a {
  font-weight: 600;
  color: #0066cc;
}

/* H2 anchors for TOC */
.prose h2[id] {
  scroll-margin-top: calc(var(--header-h, 52px) + 16px);
}

.text-link { color: #0071e3; font-weight: 600; text-decoration: none; font-size: 14px; }
.text-link:hover { text-decoration: underline; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (min-width: 720px) {
  .guides-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 719px) {
  .guides-grid { grid-template-columns: 1fr; }
}


/* Contact form */
.contact-alt { color: var(--muted); font-size: 15px; margin: .35rem 0 1.25rem; }
.contact-form { margin-top: .5rem; }
.contact-form .field { margin: 0 0 1rem; }
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 .4rem;
}
.contact-form .req { color: #d70015; }
.contact-form .opt { color: var(--muted); font-weight: 500; font-size: 12px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: #fff;
  padding: .85rem 1rem;
  font: inherit;
  font-size: 16px;
  color: #1d1d1f;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.45; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .18);
}
.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #d70015;
}
.contact-form .form-note {
  margin: .25rem 0 1.1rem;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.contact-form .hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.flash {
  border-radius: 12px;
  padding: .9rem 1rem;
  margin: 0 0 1.1rem;
  font-size: 15px;
  line-height: 1.4;
}
.flash-ok {
  background: #e8f8ef;
  color: #0b6b36;
  border: 1px solid #b7ebc9;
}
.flash-error {
  background: #fff1f0;
  color: #9b1c1c;
  border: 1px solid #f5c2c0;
}


/* AdSense units — Apple-light, hidden until cookie consent */
.adsense-wrap {
  display: none;
  margin: 1.5rem auto 0;
  max-width: 100%;
  padding: .75rem .9rem 1rem;
  background: #f5f5f7;
  border-radius: 14px;
  box-sizing: border-box;
}
html.ads-consent-accepted .adsense-wrap {
  display: block;
}
.adsense-label {
  margin: 0 0 .5rem;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #86868b;
  font-weight: 500;
}
.adsense-wrap .adsbygoogle {
  display: block;
  min-height: 0;
}
