/* American Touge — americantougeofficial.com. A canyon run read top to bottom: the road keeps moving (video loops, lane line, ticker) and a buy button is never more than a thumb away. Page words come from the original site. */
:root {
  --asphalt: #0b0b0c;
  --tarmac: #161616;
  --line: #2b2b29;
  --lime: #b2d000;
  --lime-hi: #c3e300;
  --lime-ink: #101400;
  --cream: #f3ecd8;
  --text: #ecebe6;
  --muted: #a3a29a;
  --sign: #f2c230;
  --display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--asphalt); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--asphalt); }
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(56px, 8vw, 104px); }
.band--tarmac { background: var(--tarmac); }

h1, h2, h3 { font-family: var(--display); color: var(--cream); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.02; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.8vw, 56px); }
h3 { font-size: 22px; letter-spacing: 0.02em; }
p { margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }
.lede { color: var(--muted); max-width: 62ch; font-size: 17px; }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 780px; }
.fine { font-size: 12.5px; color: var(--muted); }


/* Top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(11, 11, 12, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; color: var(--cream); text-transform: uppercase; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--text); }
@media (max-width: 820px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; border-radius: 999px; padding: 14px 26px; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn--buy { background: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 0 rgba(178,208,0,.5); }
.btn--buy:hover { transform: translateY(-2px); background: var(--lime-hi); box-shadow: 0 10px 30px -8px rgba(178,208,0,.6); }
.btn--ghost { border-color: rgba(243,236,216,.35); color: var(--cream); background: rgba(0,0,0,.25); }
.btn--ghost:hover { border-color: var(--cream); }
.btn--sm { padding: 9px 18px; font-size: 15px; }
.pulse { animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(178,208,0,.55); } 70% { box-shadow: 0 0 0 16px rgba(178,208,0,0); } 100% { box-shadow: 0 0 0 0 rgba(178,208,0,0); } }

/* Hero with moving aerial loop */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,11,12,.94) 0%, rgba(11,11,12,.78) 46%, rgba(11,11,12,.35) 100%), linear-gradient(0deg, var(--asphalt) 0%, rgba(11,11,12,0) 35%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero::before { background: linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.88) 40%, var(--asphalt) 100%); } }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero h1 { font-size: clamp(56px, 9vw, 112px); line-height: 0.9; }
.hero h1 small { display: block; font-size: 0.3em; letter-spacing: 0.1em; color: var(--muted); margin-top: 14px; line-height: 1.2; }
.pitch { font-size: clamp(17px, 1.7vw, 20px); max-width: 46ch; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.stars { color: var(--sign); letter-spacing: 2px; font-size: 18px; }
.rating strong { color: var(--text); }
.buybox { background: rgba(22,22,22,.86); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 12px; max-width: 520px; }
.fmt-label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fmt-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fmt-btn { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px 18px; border-radius: 12px; background: var(--lime); color: var(--lime-ink); text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.fmt-btn:hover { transform: translateY(-2px); background: var(--lime-hi); }
.fmt-name { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; }
.fmt-price { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.ku { display: flex; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--lime); color: var(--lime); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; }
.ku:hover { background: rgba(178, 208, 0, 0.1); }
.sample-link { font-size: 14px; color: var(--muted); text-underline-offset: 3px; }
.sample-link:hover { color: var(--text); }
.amz { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--sign); }

.hero-art { position: relative; min-width: 0; justify-self: center; width: min(100%, 520px); }
.hero-art a { display: block; }
.hero-art img.cover { border-radius: 14px; box-shadow: 0 40px 90px rgba(0,0,0,.7); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; width: 100%; max-height: 72vh; animation: float 6s ease-in-out infinite; }
@media (max-width: 900px) { .hero-art { width: min(100%, 360px); } }
.hero-art .emblem { position: absolute; width: clamp(84px, 13vw, 140px); right: -14px; bottom: -34px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.7)); animation: float 6s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-.4deg); } }

/* Load-in for the hero (plays once; the end state is the normal page) */
.rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .32s; }
@keyframes rise { from { transform: translateY(22px); } to { transform: none; } }

/* Ticker */
.ticker { background: var(--lime); color: var(--lime-ink); overflow: hidden; border-block: 1px solid #8fa600; }
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker span { font-family: var(--display); font-weight: 700; font-size: clamp(16px, 2vw, 22px); text-transform: uppercase; letter-spacing: .06em; padding: 12px 22px; white-space: nowrap; }
.ticker span::after { content: "◆"; margin-left: 44px; font-size: .7em; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Moving lane line between sections */
.lane { height: 26px; background: var(--asphalt); display: grid; align-items: center; overflow: hidden; }
.lane::before { content: ""; height: 4px; width: 200%; background: repeating-linear-gradient(90deg, var(--sign) 0 46px, transparent 46px 92px); animation: lane 1.6s linear infinite; }
@keyframes lane { to { transform: translateX(-92px); } }


/* Behind the wheel: two live loops */
.loops { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .loops { grid-template-columns: 1fr; } }
.loop { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; min-width: 0; }
.loop video { width: 100%; aspect-ratio: 1100 / 470; object-fit: cover; }
.loop .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0)); display: grid; gap: 4px; }
.loop .cap h3 { font-size: clamp(20px, 2.4vw, 26px); }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.art-loop { position: relative; aspect-ratio: 1100 / 470; overflow: hidden; }
.art-loop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform-origin: 50% 62%; animation: kenburns 9s ease-in-out infinite alternate; }
.art-loop::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; background: repeating-linear-gradient(97deg, rgba(255,255,255,0) 0 70px, rgba(255,255,255,.16) 70px 72px, rgba(255,255,255,0) 72px 150px); background-size: 300px 100%; animation: streak .45s linear infinite; }
@keyframes kenburns { from { transform: scale(1.04) translateX(1.5%); } to { transform: scale(1.16) translateX(-2.5%); } }
@keyframes streak { to { background-position: -300px 0; } }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature { display: grid; grid-template-rows: auto 1fr; background: var(--asphalt); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; transition: transform .25s ease, border-color .25s ease; }
.feature:hover { transform: translateY(-4px); border-color: #4a4a40; }
.feature .ph { overflow: hidden; }
.feature img { aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; transition: transform 6s ease; }
.feature:hover img { transform: scale(1.08); }
.feature .body { padding: 18px 18px 22px; display: grid; gap: 10px; align-content: start; }
.feature p { color: var(--muted); font-size: 15px; }

/* Amazon band */
.amazon { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; background: var(--lime); color: var(--lime-ink); border-radius: 20px; overflow: hidden; }
@media (max-width: 860px) { .amazon { grid-template-columns: 1fr; } }
.amazon .copy { display: grid; gap: 18px; align-content: center; padding: clamp(26px, 5vw, 56px); }
.amazon h2 { color: var(--lime-ink); }
.amazon img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.btn--ink { background: var(--lime-ink); color: var(--lime); }
.btn--ink:hover { transform: translateY(-2px); }
.amazon .row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Preview with reading loop */
.preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .preview { grid-template-columns: 1fr; } }
.preview .copy { display: grid; gap: 16px; min-width: 0; }
.file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--asphalt); }
.file .ico { width: 40px; height: 48px; border-radius: 6px; background: var(--cream); color: #222; font-family: var(--mono); font-size: 11px; display: grid; place-items: center; flex: none; }
.file b { display: block; color: var(--cream); font-weight: 600; }
.preview .loop video { aspect-ratio: 1100 / 470; }

/* Author */
.author { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .author { grid-template-columns: 1fr; } }
.author .ph { border-radius: 14px; overflow: hidden; }
.author img { aspect-ratio: 1100 / 736; object-fit: cover; width: 100%; transition: transform 8s ease; }
.author .ph:hover img { transform: scale(1.06); }
.author .copy { display: grid; gap: 14px; min-width: 0; }
.author blockquote { margin: 0; display: grid; gap: 12px; }
.author .sig { font-family: var(--display); font-size: 22px; color: var(--cream); letter-spacing: .04em; text-transform: uppercase; }

/* Proof + FAQ */
.proof { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }
.score { display: grid; gap: 8px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--asphalt); }
.score .num { font-family: var(--display); font-size: 76px; color: var(--cream); line-height: 1; }
.score .stars { font-size: 24px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--asphalt); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--lime); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 18px 18px; color: var(--muted); }

/* Finale with aerial loop */
.finale { position: relative; overflow: hidden; isolation: isolate; }
.finale video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11,11,12,.72); }
.finale .wrap { display: grid; gap: 22px; justify-items: center; text-align: center; padding-block: clamp(80px, 11vw, 140px); }
.finale h2 { font-size: clamp(36px, 6.4vw, 76px); max-width: 15ch; }
.finale .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Contact */
.card { border: 1px solid var(--line); border-radius: 16px; background: var(--asphalt); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.card .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 40px 120px; color: var(--muted); font-size: 13px; }
footer .wrap { display: grid; gap: 18px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
footer .disclaimer { max-width: 80ch; }

/* Scroll-in movement: content is always visible; entering the screen adds a short glide */
.glide.in { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }

/* Sticky buy bar */
.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(22,22,22,.96); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); transform: translateY(110%); transition: transform .3s ease; }
.stickybar.show { transform: translateY(0); }
.stickybar .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.stickybar .t { display: grid; line-height: 1.2; min-width: 0; }
.stickybar .t b { font-family: var(--display); text-transform: uppercase; color: var(--cream); letter-spacing: .04em; }
.stickybar .t span { font-size: 12px; color: var(--muted); }
.stickybar .btn { margin-left: auto; }

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

/* Small helpers (no inline styles: the CSP blocks them) */
.m0 { margin: 0; }
.eyebrow--ink { color: var(--lime-ink); }
.h2-sm { font-size: clamp(26px, 3.4vw, 38px); }
.contact { max-width: 760px; }
.mail { font-size: clamp(18px, 2.4vw, 24px); color: var(--cream); text-underline-offset: 4px; word-break: break-word; }
.mail:hover { color: var(--lime); }

/* Legal pages (Privacy Policy, Terms and Conditions) */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 8px; }
.legal h2 { font-size: clamp(20px, 2.6vw, 26px); margin-top: 32px; margin-bottom: 10px; }
.legal h3 { font-size: 17px; margin-top: 18px; margin-bottom: 6px; }
.legal p, .legal li { color: var(--text); margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin: 0 0 10px; }
.legal .updated { color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .06em; margin-bottom: 24px; }
.legal a { color: var(--lime); }

/* Cookie notice */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin-inline: auto; background: var(--tarmac); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.cookie[hidden] { display: none; }
.cookie b { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--cream); }
.cookie p { font-size: 14px; color: var(--muted); }
.cookie .btn { justify-self: start; }
.cookie-text { display: grid; gap: 6px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 18px; }

/* Small phones: keep the header on one line */
@media (max-width: 420px) {
  .brand span { font-size: 15px; white-space: nowrap; }
  .brand img { width: 34px; height: 34px; }
  .top .btn--sm { padding: 8px 14px; font-size: 14px; }
}

/* Phones: cookie notice becomes a slim bottom strip so the buy buttons stay visible */
@media (max-width: 600px) {
  .cookie { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0; border-width: 1px 0 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .cookie-text { gap: 2px; }
  .cookie b { font-size: 13px; }
  .cookie p { font-size: 11.5px; line-height: 1.35; }
  .cookie .btn { justify-self: end; }
}

/* Phones: format name above its price so neither gets cut off */
@media (max-width: 480px) {
  .fmt-btn { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; }
}
