:root {
  color-scheme: light;
  --ink: #142019;
  --muted: #647069;
  --paper: #f4efe4;
  --paper-deep: #e8dfcf;
  --surface: #fffcf6;
  --surface-strong: #ffffff;
  --line: #d8d0c1;
  --line-dark: #bbb29f;
  --green: #176844;
  --green-bg: #dff1e6;
  --amber: #885900;
  --amber-bg: #fbe9b9;
  --red: #963a31;
  --red-bg: #f7dfda;
  --neutral: #4b5d65;
  --neutral-bg: #e4ebed;
  --accent: #174f3d;
  --accent-bright: #d7ef9b;
  --shadow: 0 1.1rem 3.2rem rgba(43, 36, 25, 0.09);
  --shadow-soft: 0 0.55rem 1.5rem rgba(43, 36, 25, 0.07);
  --max: 76rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 7% 4%, rgba(215, 239, 155, 0.23), transparent 23rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--ink); background: var(--accent-bright); }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.12em; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(187, 178, 159, 0.7);
  background: rgba(244, 239, 228, 0.88);
  backdrop-filter: blur(1rem);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -0.035em;
}
.brand-mark {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 0.58rem;
  color: #f9f6ec;
  background: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-links a {
  padding: 0.45rem 0.7rem;
  border-radius: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.55); }

main { max-width: var(--max); margin: 0 auto; padding: 2.3rem 1.5rem 5rem; }
.hero { padding: 3.2rem 0 4rem; }
.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(22rem, 0.96fr);
  gap: clamp(2rem, 5vw, 5.4rem);
  align-items: center;
  min-height: 37rem;
}
.hero-compact { max-width: 54rem; padding-bottom: 2.3rem; }
.hero-copy { padding: 1.2rem 0; }
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--ink); line-height: 1.06; letter-spacing: -0.047em; text-wrap: balance; }
h1 { margin: 0 0 1.2rem; font-size: clamp(3rem, 7vw, 6.1rem); }
h2 { margin: 0; font-size: clamp(1.85rem, 3vw, 3rem); }
h3 { margin: 0 0 0.62rem; font-size: 1.3rem; }
p { text-wrap: pretty; }
.lede { max-width: 44rem; margin: 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.34rem); }
.fine-print, .meta { color: var(--muted); font-size: 0.88rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.75rem; }
.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.78rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fffdf7; background: var(--accent); box-shadow: 0 0.65rem 1.4rem rgba(23, 79, 61, 0.18); }
.button-primary:hover { background: #0f3d2f; }
.button-quiet { color: var(--ink); border-color: var(--line); background: rgba(255, 252, 246, 0.7); }
.hero-stats {
  display: flex;
  gap: clamp(1.2rem, 4vw, 2.7rem);
  margin: 2.6rem 0 0;
}
.hero-stats div { min-width: 4.6rem; }
.hero-stats dt { font-size: 1.55rem; font-weight: 850; line-height: 1; letter-spacing: -0.05em; }
.hero-stats dd { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.76rem; }
.hero-art {
  position: relative;
  overflow: hidden;
  border: 0.65rem solid rgba(255, 252, 246, 0.86);
  border-radius: 1.8rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(17, 30, 23, 0.17));
  pointer-events: none;
}
.hero-art img { display: block; width: 100%; height: auto; }
.hero-note {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.8rem;
  color: #fff;
  background: rgba(17, 40, 31, 0.84);
  box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(0.7rem);
}
.hero-note span { opacity: 0.72; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-note strong { font-size: 0.9rem; }

.catalog-intro, .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin: 1.5rem 0 1.35rem;
}
.catalog-intro > p, .section-heading > p { max-width: 30rem; margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.card, .panel {
  border: 1px solid rgba(187, 178, 159, 0.72);
  border-radius: 1.15rem;
  background: rgba(255, 252, 246, 0.88);
  box-shadow: 0 0.2rem 0.9rem rgba(43, 36, 25, 0.035);
}
.card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-dark); box-shadow: var(--shadow-soft); }
.card-visual { display: block; color: inherit; text-decoration: none; }
.product-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 22% 15%, rgba(215, 239, 155, 0.68), transparent 31%),
    linear-gradient(135deg, #e9dfce, #f8f2e8 58%, #ded4c2);
}
.product-image-card { aspect-ratio: 16 / 9.8; border-bottom: 1px solid var(--line); }
.product-photo {
  position: absolute;
  z-index: -1;
  top: 6%;
  left: 50%;
  height: 104%;
  aspect-ratio: 3 / 5;
  border-radius: 0.3rem;
  background-image: url("/assets/phone-grid.webp");
  background-repeat: no-repeat;
  background-position: var(--image-x) var(--image-y);
  background-size: 500% 200%;
  box-shadow: 0 1.1rem 2.5rem rgba(26, 31, 27, 0.22);
  transform: translateX(-50%) rotate(-1.5deg);
}
.photo-caption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.65rem;
  display: flex;
  flex-direction: column;
  min-width: 4.6rem;
  padding: 0.48rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.65rem;
  background: rgba(255, 252, 246, 0.82);
  box-shadow: 0 0.35rem 0.9rem rgba(34, 31, 25, 0.1);
  backdrop-filter: blur(0.65rem);
}
.photo-caption strong { font-size: 0.72rem; line-height: 1.2; }
.photo-caption small { color: var(--muted); font-size: 0.66rem; }
.card-body { display: flex; min-height: 17.4rem; flex-direction: column; padding: 1.15rem; }
.card-kicker { display: flex; min-height: 2rem; align-items: start; justify-content: space-between; gap: 0.5rem; }
.card-kicker > span:first-child { color: var(--muted); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.card-footer { display: flex; align-items: end; justify-content: space-between; gap: 0.8rem; margin-top: auto; padding-top: 1rem; }
.card-footer > span { display: flex; min-width: 0; flex-direction: column; }
.card-footer small { color: var(--muted); font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.07em; }
.card-footer strong { overflow: hidden; max-width: 9rem; font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.card-link { flex: 0 0 auto; font-size: 0.82rem; font-weight: 800; text-decoration: none; }
.badge {
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.52rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-align: center;
}
.badge.green { color: var(--green); background: var(--green-bg); }
.badge.amber { color: var(--amber); background: var(--amber-bg); }
.badge.red { color: var(--red); background: var(--red-bg); }
.badge.neutral { color: var(--neutral); background: var(--neutral-bg); }
.catalog-cta { margin: 1.4rem 0 0; text-align: center; }
.how-to {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 7vw, 6rem);
  margin-top: 5.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #eef6ef;
  border-color: transparent;
  background: var(--accent);
  box-shadow: var(--shadow);
}
.how-to h2 { color: #fff; }
.how-to .eyebrow { color: var(--accent-bright); }
.how-to p { margin-top: 0; color: rgba(255, 255, 255, 0.76); }
.text-link { color: #fff; font-weight: 800; text-decoration-color: var(--accent-bright); }

.catalog-nav {
  position: sticky;
  z-index: 10;
  top: 4.25rem;
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  margin-bottom: 4rem;
  padding: 0.45rem;
  border: 1px solid rgba(187, 178, 159, 0.72);
  border-radius: 0.85rem;
  background: rgba(255, 252, 246, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(0.8rem);
}
.catalog-nav span { padding: 0 0.5rem; color: var(--muted); font-size: 0.73rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; }
.catalog-nav a { padding: 0.48rem 0.7rem; border-radius: 0.58rem; color: var(--ink); font-size: 0.83rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.catalog-nav a:hover { color: #fff; background: var(--accent); }
.brand-section { margin-top: 4.5rem; scroll-margin-top: 8rem; }
.brand-section:first-of-type { margin-top: 0; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.4rem 0 2.3rem; color: var(--muted); font-size: 0.78rem; }
.breadcrumbs a { color: var(--muted); }
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(21rem, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 5rem;
}
.product-copy h1 { margin-bottom: 1.2rem; font-size: clamp(3rem, 6vw, 5.4rem); }
.product-copy h1 span { display: block; color: var(--muted); font-size: 0.42em; letter-spacing: -0.03em; }
.product-copy .meta { margin-top: 1.5rem; }
.product-media { position: relative; }
.product-image-detail { aspect-ratio: 1 / 1.05; border: 0.55rem solid rgba(255, 252, 246, 0.86); border-radius: 1.6rem; box-shadow: var(--shadow); }
.product-image-detail .product-photo { top: 2%; height: 97%; }
.product-image-detail .photo-caption { top: 1rem; right: 1rem; bottom: auto; }
.verdict-box {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.18rem 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0.85rem;
  color: #fff;
  background: rgba(18, 43, 33, 0.9);
  box-shadow: 0 0.6rem 1.7rem rgba(15, 29, 23, 0.18);
  backdrop-filter: blur(0.75rem);
}
.verdict-box strong { grid-row: span 2; align-self: center; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1; text-align: right; }
.verdict-box span { color: rgba(255, 255, 255, 0.7); font-size: 0.72rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.panel { padding: 1.3rem; }
.fact { min-height: 12rem; padding: 1.4rem; }
.fact-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.fact p { margin-bottom: 0; color: var(--muted); }
.alternatives, .sources-section { margin-top: 4.7rem; }
.alternative-links { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.2rem; }
.alternative-links a, .alternative-links span { padding: 0.58rem 0.78rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255, 252, 246, 0.75); font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.alternative-links a:hover { border-color: var(--accent); color: #fff; background: var(--accent); }
.sources { max-width: 54rem; margin-top: 1.2rem; padding: 0; list-style: none; counter-reset: source; }
.sources li {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  counter-increment: source;
  overflow-wrap: anywhere;
}
.sources li::before { color: var(--muted); font-size: 0.72rem; font-weight: 800; content: counter(source, decimal-leading-zero); }
.sources a { font-weight: 700; }
.notice { max-width: 54rem; margin-top: 2.5rem; padding: 0.85rem 1rem; border-left: 0.25rem solid var(--accent); color: var(--muted); background: rgba(255, 252, 246, 0.58); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.8rem 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-inner p { max-width: 47rem; margin: 0; }
.footer-brand { flex: 0 0 auto; }
.footer-brand .brand-mark { width: 1.75rem; }

@media (max-width: 980px) {
  .hero-home { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: 50rem; }
  .hero-art { max-width: 42rem; transform: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-hero { grid-template-columns: 1fr 0.82fr; }
}

@media (max-width: 720px) {
  .nav { padding-inline: 1rem; }
  main { padding: 1.2rem 1rem 3.5rem; }
  .hero { padding: 2.4rem 0 3rem; }
  .hero-home { gap: 2rem; }
  .hero-stats { justify-content: space-between; gap: 0.7rem; }
  .hero-art { border-width: 0.4rem; border-radius: 1.25rem; }
  .catalog-intro, .section-heading { display: block; }
  .catalog-intro > p, .section-heading > p { margin-top: 0.8rem; }
  .grid, .product-hero, .facts, .how-to { grid-template-columns: 1fr; }
  .card-body { min-height: 15.5rem; }
  .how-to { margin-top: 3.5rem; }
  .catalog-nav { top: 3.8rem; margin-bottom: 3rem; }
  .brand-section { margin-top: 3.5rem; }
  .product-hero { gap: 2rem; margin-bottom: 4rem; }
  .product-media { max-width: 31rem; }
  .sources li { grid-template-columns: 1.8rem 1fr; }
  .sources .meta { grid-column: 2; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 1rem; padding-inline: 1rem; }
}

@media (max-width: 430px) {
  .nav-links a { padding-inline: 0.38rem; font-size: 0.82rem; }
  .brand { gap: 0.45rem; }
  .brand-mark { width: 1.8rem; }
  h1 { font-size: 2.85rem; }
  .hero-stats dd { max-width: 4.8rem; }
  .card-footer { align-items: flex-start; flex-direction: column; }
  .card-footer strong { max-width: 100%; }
  .verdict-box { grid-template-columns: 1fr; }
  .verdict-box strong { grid-row: auto; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .card { transition: none; }
}
