@import url("menu.css");

:root {
  --bg: #0b0b0c;
  --surface: #18181a;
  --surface-2: #242427;
  --line: rgba(255, 255, 255, .1);
  --text: #f4f4f5;
  --muted: #9b9ba4;
  --accent: #ff7a1a;
  --accent-2: #ff9a3c;
  --accent-deep: #e05a00;
  --accent-ink: #160b02;
  --font: "Lexend", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { background: #060607; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { position: relative; max-width: 520px; margin: 0 auto; padding-bottom: calc(24px + env(safe-area-inset-bottom)); background: var(--bg); color: var(--text); font: 400 15px/1.45 var(--font); overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
img, video { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
#top5, #how { scroll-margin-top: 20px; }

/* A transparent header over the image, as in the supplied composition. */
.top { position: absolute; inset: 0 0 auto; z-index: 20; height: 56px; padding: 0 4px 0 16px; display: flex; align-items: center; gap: 8px; }
.brand { margin-right: auto; font-size: 21px; font-weight: 700; letter-spacing: -.8px; text-shadow: 0 2px 12px #0006; }
.brand b { color: var(--accent); font-weight: inherit; text-shadow: 0 0 14px #ff7a1a66; }
.top5 { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 15px; border: 1px solid #ffffff4d; border-radius: 99px; background: #ffffff1f; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 12px; font-weight: 500; }
.burger { display: block; appearance: none; -webkit-appearance: none; }
.burger span { display: block; }
.menu-open .top { position: fixed; left: 50%; right: auto; width: 100%; max-width: 520px; transform: translateX(-50%); background: var(--bg); }
.menu-in { max-width: 520px; margin: auto; }
.menu .btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border-radius: 16px; font-size: 17px; font-weight: 600; color: var(--accent-ink); background: linear-gradient(100deg, var(--accent-2), var(--accent) 60%, var(--accent-deep)); box-shadow: 0 10px 26px -8px #ff7a1ad9, inset 0 1px 0 #ffffff66; }
.menu .btn svg { width: 18px; height: 18px; stroke-width: 2.5; }

/* At 390 × 664, the image is 412px tall and the main button starts near 502px. */
.hero { position: relative; height: clamp(330px, calc(100svh - 252px), 520px); overflow: hidden; background: var(--surface); }
.hero-media { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.hero::before { top: 0; height: 110px; background: linear-gradient(#0b0b0c85, transparent); }
.hero::after { bottom: 0; height: 72%; background: linear-gradient(transparent, #0b0b0c80 40%, #0b0b0cf5); }
.hero-copy { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 54px; }
.tested { display: flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; height: 32px; margin-bottom: 12px; padding: 0 12px 0 8px; border-radius: 99px; background: #fff2e6; color: #291a10; box-shadow: 0 6px 24px #0003; font-size: 11px; font-weight: 500; }
.tested svg { width: 18px; height: 18px; fill: var(--accent); stroke: #fff2e6; }
.rating { display: flex; align-items: center; gap: 8px; color: #eee5dd; font-size: 11px; white-space: nowrap; }
.rating b { color: var(--text); font-size: 18px; font-weight: 700; }
.stars, .mini-stars { display: flex; gap: 2px; color: var(--accent-2); }
.stars svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
h1 { margin-top: 7px; color: #fff; font-size: clamp(29px, 8vw, 34px); font-weight: 700; line-height: 1.06; letter-spacing: -1px; text-wrap: balance; text-shadow: 0 2px 18px #0004; }
h1 em { color: #ffac68; font-style: normal; }

/* The existing editorial introduction takes the place of the template testimonial. */
.quote { position: relative; z-index: 3; margin: -40px 16px 0; padding: 15px 16px 14px 52px; border: 1px solid #ffb47724; border-radius: 22px; background: linear-gradient(130deg, #24201c, #171718 75%); box-shadow: 0 18px 40px -16px #000b, inset 0 1px 0 #ffffff06; }
.quote-mark { position: absolute; left: 15px; top: 18px; width: 26px; height: 26px; fill: var(--accent); stroke: none; }
blockquote { color: #f4eee8; font-size: 18px; line-height: 1.3; font-weight: 500; font-style: italic; letter-spacing: -.4px; text-wrap: balance; }
figcaption { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--muted); font-size: 10px; }
.editor-avatar { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid #ff9a3c33; border-radius: 50%; background: #ff7a1a1a; color: var(--accent-2); font-size: 12px; font-weight: 700; }
figcaption b { color: #e7dfd8; font-size: 11px; font-weight: 500; }
.quote-source::before { content: "·"; margin-right: 7px; }
.mini-stars { gap: 1px; margin-left: auto; }
.mini-stars svg { width: 11px; height: 11px; fill: currentColor; stroke: none; }

.action { padding: 16px 16px 0; }
.cta { display: flex; align-items: center; justify-content: center; gap: 11px; height: 56px; border-radius: 99px; background: linear-gradient(110deg, #ffa24d, var(--accent) 65%, #f26a0d); color: var(--accent-ink); font-size: 18px; font-weight: 700; letter-spacing: -.4px; box-shadow: 0 12px 28px -12px #ff7a1acc, inset 0 -3px 0 #bc4d09, inset 0 1px 0 #ffffff66; }
.cta svg { width: 20px; height: 20px; stroke-width: 2.5; }
.cta:active { background: var(--accent); }
.micro { margin-top: 8px; color: var(--muted); text-align: center; font-size: 12px; }

/* Four existing criteria replace the template's placeholder publication logos. */
.criteria { padding: 16px 16px 0; text-align: center; }
.criteria > a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; }
.criteria > a svg { width: 13px; height: 13px; }
.criteria-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; color: #c1afa1; font-size: 12px; font-weight: 500; white-space: nowrap; }
.criteria-labels span:nth-child(2) { font-weight: 300; }
.criteria-labels span:nth-child(3) { color: #dec4ae; }
.more { display: grid; gap: 8px; padding: 22px 16px 0; }
.review-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.review-row img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.row-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 3px; }
.row-copy b { overflow: hidden; color: #efe9e3; font-size: 14px; font-weight: 500; letter-spacing: -.3px; text-overflow: ellipsis; white-space: nowrap; }
.row-copy > span { color: var(--muted); font-size: 11px; font-style: italic; }
.review-row em { color: #e5ba97; font-size: 15px; font-weight: 600; font-style: normal; font-variant-numeric: tabular-nums; }
.review-row > svg { width: 16px; height: 16px; color: #8c8178; }

@media (max-width: 374px) {
  .rating { gap: 7px; font-size: 10px; }
  .criteria-labels { font-size: 11px; }
}
@media (min-width: 521px) {
  .menu { clip-path: circle(0 at calc(50% + 234px) 27px); }
  .menu-open .menu { clip-path: circle(150vmax at calc(50% + 234px) 27px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* A continuous editorial section: typography and spacing carry the content. */
.editorial-section { margin: 34px 18px 0; padding-top: 25px; border-top: 1px solid #ffffff12; scroll-margin-top: 70px; }
.method-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: #c1936e; font-size: 8px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }
.method-eyebrow::before { content: ""; width: 22px; height: 1px; background: #ff9a3c; }
.editorial-title { max-width: 390px; color: #f0ebe5; font-size: clamp(27px, 7.2vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -1.1px; text-wrap: balance; }
.editorial-title em { color: #ffac68; font-style: normal; }
.method-editorial-list { margin-top: 27px; }
.method-entry { position: relative; padding: 24px 0 25px; border-top: 1px solid #ffffff12; }
.method-entry::before { content: ""; position: absolute; top: -1px; left: 0; width: 27px; height: 1px; background: #d78c5466; }
.method-entry-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px; }
.method-number { color: #bd875e; font-size: 33px; font-weight: 300; line-height: 1; letter-spacing: -1.8px; font-variant-numeric: tabular-nums; }
.method-entry h3 { max-width: 310px; color: #eee9e3; font-size: 20px; font-weight: 500; line-height: 1.22; letter-spacing: -.65px; text-wrap: balance; }
.method-entry p { margin-top: 14px; color: #a8a39e; font-size: 12px; font-weight: 400; line-height: 1.8; }
.method-entry strong { color: #d6c4b4; font-weight: 500; }
.method-signature { display: flex; align-items: center; gap: 15px; padding: 20px 0; border-top: 1px solid #ffffff12; border-bottom: 1px solid #ffffff0a; }
.method-wordmark { color: #dcd6cf; font-size: 18px; font-weight: 600; letter-spacing: -.9px; }
.method-wordmark b { color: #ff9a3c; font-weight: inherit; }
.method-signature > div { padding-left: 14px; border-left: 1px solid #ffffff12; }
.method-signature p { color: #a8a19a; font-size: 9px; line-height: 1.5; }
.method-signature small { display: block; margin-top: 3px; color: #706d6a; font-size: 8px; }
.editorial-legal { margin-top: 15px; color: #77716d; font-size: 9px; line-height: 1.8; }
@media (max-width: 359px) { .method-entry-heading { grid-template-columns: 36px minmax(0, 1fr); gap: 9px; } .method-number { font-size: 30px; } .method-entry h3 { font-size: 18px; } .method-entry p { font-size: 11px; } .method-signature { gap: 11px; } .method-signature > div { padding-left: 11px; } }
