/* Premium presentation layer. Loaded after styles.css, tutorials.css and legal.css.
   Only restyles; layout rules for the Loot Valley demo (incl. the wide-screen game-scene fix) stay in styles.css. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --fg: #f5f5f7;
  --fg-2: #d2d2d7;
  --muted: #a1a1a6;
  --subtle: #8e8e93;
  --border: rgba(255, 255, 255, .1);
  --hairline: rgba(255, 255, 255, .07);
  --card-bg: #151517;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --surface-hover: #202024;
  --glass: rgba(10, 10, 12, .72);
  --accent: #c38bf3;
  --accent-hover: #d6adf8;
  --accent-ink: #c38bf3;
  --accent-soft: rgba(195, 139, 243, .1);
  --accent-line: rgba(195, 139, 243, .38);
  --on-accent: #2b0355;
  --glow: rgba(195, 139, 243, .09);
  --glow-2: rgba(120, 160, 255, .07);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06);
  --discord: #c3c9ff;
  --discord-bg: rgba(88, 101, 242, .12);
  --discord-line: rgba(88, 101, 242, .45);
  --warn: #f1c788;
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #fbfbfd;
    --fg: #1d1d1f;
    --fg-2: #3a3a3c;
    --muted: #57575c;
    --subtle: #6a6a70;
    --border: rgba(0, 0, 0, .1);
    --hairline: rgba(0, 0, 0, .07);
    --card-bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f5f5f7;
    --surface-hover: #f0f0f3;
    --glass: rgba(251, 251, 253, .75);
    --accent-ink: #8324cb;
    --accent-soft: rgba(131, 36, 203, .1);
    --accent-line: rgba(131, 36, 203, .35);
    --glow: rgba(195, 139, 243, .16);
    --glow-2: rgba(110, 150, 255, .1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
    --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, .18);
    --shadow-lg: 0 40px 90px -30px rgba(25, 12, 40, .35), 0 0 0 1px rgba(0, 0, 0, .06);
    --discord: #3c46b8;
    --discord-bg: rgba(88, 101, 242, .08);
    --discord-line: rgba(88, 101, 242, .35);
    --warn: #8a5300;
  }
}

/* The product visuals (demo app window, tutorial video) always stay in the app's dark look. */
.demo-shell,
.tutorial-video-frame {
  color-scheme: dark;
  --bg: #0c0d0f;
  --fg: #e7e9ed;
  --muted: #959ca6;
  --subtle: #959ca6;
  --border: #2b3036;
  --card-bg: #141619;
  --accent-ink: #c38bf3;
  --radius: 8px;
  color: var(--fg);
}

/* ---------- Base ---------- */
html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.011em;
  color: var(--fg);
  background:
    radial-gradient(1100px 620px at 78% -120px, var(--glow), transparent 70%),
    radial-gradient(900px 520px at 8% 4%, var(--glow-2), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--fg); }
h2 { font-size: clamp(34px, 3vw + 12px, 56px); font-weight: 650; letter-spacing: -.035em; line-height: 1.07; }
h3 { font-weight: 600; letter-spacing: -.02em; }
::selection { background: rgba(195, 139, 243, .35); color: inherit; }
.container { width: min(1280px, 100% - 64px); }
.section { padding-block: 128px; }
.eyebrow { color: var(--accent-ink); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.micro-label { color: var(--subtle); font-size: 11px; letter-spacing: .1em; }
.accent-text {
  color: var(--accent-ink);
  background: linear-gradient(100deg, #c38bf3 10%, #dd8bfb 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: light) {
  .accent-text { background-image: linear-gradient(100deg, #8324cb 10%, #a32cc4 90%); }
}
@media (forced-colors: active) {
  .accent-text { -webkit-text-fill-color: currentColor; background: none; }
}

/* Focus: clear and consistent in both themes. */
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.free-download-card a:focus-visible, .free-download-card button:focus-visible, .premium-download a:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.button:focus-visible { outline-offset: 3px; border-radius: 999px; }

/* ---------- Buttons and links ---------- */
.button {
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 22px -10px rgba(131, 36, 203, .55);
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.button:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 28px -10px rgba(131, 36, 203, .6); }
.button:active { transform: translateY(0) scale(.98); }
.button span[aria-hidden] { font-size: 1em; }
.button-small { padding: 8px 15px; font-size: 13px; gap: 8px; }
.button-secondary, .button.button-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  box-shadow: none;
}
.button-secondary:hover, .button.button-secondary:hover { background: var(--surface-2); border-color: var(--subtle); box-shadow: none; }
.text-link, .inline-link { color: var(--accent-ink); font-weight: 500; transition: opacity .2s; }
.text-link { font-size: 15px; gap: 6px; }
.inline-link { font-size: inherit; }
.text-link:hover, .inline-link:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }
.text-link span[aria-hidden] { transition: transform .25s var(--ease); }
.text-link:hover span[aria-hidden] { transform: translateX(3px); }
.skip-link { background: var(--accent); color: var(--on-accent); border-radius: 999px; font-weight: 600; }

/* ---------- Discord licence offer ---------- */
.discord-offer { background: linear-gradient(90deg, var(--discord-bg), var(--accent-soft)), var(--bg); border-bottom: 1px solid var(--discord-line); }
.discord-offer-row { display: flex; align-items: center; justify-content: center; gap: 8px 24px; padding: 10px 0; }
.discord-offer-copy { margin: 0; min-width: 0; font-size: 12px; line-height: 1.4; color: var(--fg-2); }
.discord-offer-copy strong { display: block; font-size: 15px; font-weight: 700; color: var(--fg); }
.discord-offer-terms { display: block; margin-top: 2px; }
.discord-offer-terms a { color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.discord-offer-join { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #4752c4; color: #fff; font-size: 13px; font-weight: 650; white-space: nowrap; transition: background .2s; }
.discord-offer-join:hover { background: #3c45a5; color: #fff; }
.discord-offer a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
@media (max-width: 720px) {
  .discord-offer-row { flex-direction: column; align-items: flex-start; }
  .discord-offer-copy strong { font-size: 14px; }
}
.site-header {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav { height: 60px; }
.brand { font-family: var(--font-display); font-size: 18px; font-weight: 650; letter-spacing: -.02em; color: var(--fg); }
.brand img { width: 28px; height: 28px; border-radius: 50%; }
.site-header .brand img { width: 36px; height: 36px; }
.nav-links { gap: 28px; font-size: 13px; color: var(--muted); }
.nav-links > a { transition: color .2s; }
.nav-links > a:hover { color: var(--fg); }
.nav-links > .button { margin-left: 4px; padding: 7px 14px; font-size: 13px; color: var(--on-accent); }
.nav-links > .button:hover { color: var(--on-accent); }
.nav-discord, .nav-discord-mobile {
  border-radius: 999px !important;
  border: 1px solid var(--discord-line) !important;
  background: var(--discord-bg) !important;
  color: var(--discord) !important;
  transition: background .2s, border-color .2s;
}
.nav-links > .nav-discord { padding: 6px 13px; }
.nav-links > .nav-discord:hover, .nav-discord-mobile:hover { background: rgba(88, 101, 242, .2) !important; border-color: #5865f2 !important; color: var(--discord) !important; }
.menu-toggle { color: var(--fg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { align-items: center; padding-block: 88px 104px; gap: 56px; }
.hero-copy { padding-top: 0; }
.hero-platform {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 22px; font-size: 14px; font-weight: 500; color: var(--muted);
}
.hero-platform::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 {
  font-size: clamp(44px, 3.4vw + 16px, 70px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.045em;
}
.hero-description { margin-top: 24px; max-width: 30ch; font-size: clamp(18px, .5vw + 14px, 21px); line-height: 1.45; color: var(--muted); letter-spacing: -.015em; }
.hero-actions { margin-top: 34px; gap: 26px; }
.hero-actions > .button { padding: 14px 26px; font-size: 16px; }
.hero-price { margin-top: 22px; font-size: 13px; color: var(--subtle); letter-spacing: 0; }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 6% 4% 10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent);
  filter: blur(40px);
}
.hero-visual .demo-shell, .demo-shell {
  border-radius: 18px;
  border: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual .demo-disclaimer { margin: 18px 4px 0; font-size: 12px; line-height: 1.6; color: var(--subtle); text-align: center; }
@media (min-width: 1200px) {
  .hero.container { width: min(1280px, 100% - 64px); grid-template-columns: minmax(380px, 1fr) minmax(0, 1.85fr); gap: 48px; }
}

/* ---------- Essentials ---------- */
.essentials { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-block: 24px 128px; border-bottom: 0; }
.essentials article {
  padding: 32px 30px 34px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.essentials article:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border); }
.essentials article::before {
  content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; margin-bottom: 26px;
  background: linear-gradient(90deg, var(--accent), #dd8bfb);
}
.essentials h2 { font-size: 22px; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; margin-bottom: 10px; }
.essentials article p { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: none; }
.input-note { margin-top: 12px; font-size: 14px; color: var(--subtle); text-align: center; }
.input-note a { font-size: inherit; margin-left: 6px; }

/* ---------- Guides ---------- */
.tutorial-section { border-top: 1px solid var(--hairline); }
.tutorial-heading { align-items: flex-end; gap: 32px; margin-bottom: 18px; }
.tutorial-heading h2 { font-size: clamp(34px, 3vw + 12px, 56px); font-weight: 650; }
.tutorial-heading > p { font-size: 19px; color: var(--muted); max-width: 34ch; text-align: right; }
.tutorial-heading .micro-label { color: var(--accent-ink); font-size: 12px; letter-spacing: .08em; }
.tutorial-version { font-size: 13px; color: var(--accent-ink); margin-bottom: 36px; }
.tutorial-version > span:last-child { color: var(--subtle); }
.tutorial-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.tutorial-video-frame { border: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); background: #090a0c; }
.tutorial-details { padding: 28px 2px 0; }
.tutorial-details .eyebrow { color: var(--accent-ink); font-size: 12px; }
.tutorial-details h3 { font-size: 28px; letter-spacing: -.03em; }
.tutorial-details section > p:not(.eyebrow) { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 62ch; }
.tutorial-links { font-size: 15px; }
.tutorial-links .text-link { color: var(--fg-2); }
.tutorial-transcript { border-color: var(--hairline); font-size: 15px; }
.tutorial-transcript summary { color: var(--fg); font-weight: 600; }
.tutorial-transcript strong { color: var(--fg-2); font-size: 11px; }
.tutorial-transcript li > span { color: var(--accent-ink); }
.tutorial-playlist { gap: 8px; }
.tutorial-playlist > .micro-label { margin-bottom: 8px; color: var(--muted); }
.tutorial-choice {
  gap: 14px; padding: 14px 14px; border-radius: 14px;
  border: 1px solid var(--hairline); background: var(--surface);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.tutorial-choice:hover { background: var(--surface-hover); border-color: var(--border); transform: translateX(2px); }
.tutorial-choice[aria-current=true] { background: var(--accent-soft); border-color: var(--accent-line); box-shadow: none; }
.tutorial-choice strong { font-size: 15px; color: var(--fg); }
.tutorial-choice small { font-size: 13px; color: var(--muted); }
.tutorial-symbol { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
.tutorial-play { color: var(--subtle); }
.tutorial-choice[aria-current=true] .tutorial-play { color: var(--accent-ink); }
.tutorial-playlist-note { font-size: 13px; color: var(--subtle); }
.tutorial-notes { margin-top: 28px; }
.tutorial-notes summary { color: var(--fg-2); font-size: 15px; cursor: pointer; }
.tutorial-note { font-size: 15px; color: var(--muted); line-height: 1.65; }
.tutorial-note code, .install-notes code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--hairline); }
.tutorial-error { color: var(--warn); font-size: 15px; padding: 16px 2px; }
#chrome-workflow .tutorial-video-frame { min-height: 0; }
#chrome-workflow ol.tutorial-note { margin: 0; padding: 26px 26px 26px 46px; border-radius: 20px; background: var(--surface); border: 1px solid var(--hairline); display: grid; gap: 10px; }

/* ---------- Free download ---------- */
.free-download-section {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  margin-block: 40px;
  padding: 72px 64px;
  border: 1px solid var(--hairline);
  border-radius: 32px;
  background:
    radial-gradient(700px 360px at 0% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-md);
}
.free-download-section h2 { font-size: clamp(34px, 3vw + 12px, 56px); margin-bottom: 18px; }
.free-download-section p { max-width: 40ch; font-size: 17px; color: var(--muted); line-height: 1.55; }
.free-download-section .download-version { margin-top: 18px; font-size: 14px; color: var(--subtle); }
.download-disclosure { font-size: 14px; color: var(--subtle); line-height: 1.6; }
.free-download-card .button { padding: 14px 26px; font-size: 16px; }
.download-status { color: var(--fg); font-size: 17px; }
.download-facts { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.download-facts dt { color: var(--subtle); }
.download-facts dd { color: var(--fg); }
.install-notes { max-width: none; }
.install-notes summary { color: var(--fg-2); font-size: 15px; }
.install-notes p, .first-use-steps { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* ---------- Pricing ---------- */
.pricing-section { border: 0; padding-block: 112px 64px; }
.pricing-section .section-heading { text-align: center; }
.pricing-section .section-heading h2 { max-width: 18ch; margin-inline: auto; }
.section-heading p { margin: 18px auto 0; max-width: 60ch; font-size: 17px; line-height: 1.55; color: var(--muted); }
.beta-note { color: var(--fg-2); }
.beta-note strong { color: var(--accent-ink); }
.premium-status {
  margin: 28px auto 0 !important; text-align: left; font-size: 15px;
  background: var(--surface); color: var(--fg); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: 14px;
}
.pricing-grid { max-width: 920px; margin: 56px auto 0; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-card, .price-card + .price-card {
  padding: 40px 36px 36px;
  border: 1px solid var(--hairline);
  border-radius: 26px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border); }
.price-card h3 { font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.price { margin-top: 18px; }
.price-card .price > .price-amount { font-family: var(--font-display); font-size: 56px; font-weight: 650; letter-spacing: -.04em; line-height: 1.05; color: var(--fg); }
.price-badge { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-line); font-size: 11px; padding: 3px 10px; }
.price-card .price-period { font-size: 14px; color: var(--subtle); }
.plan-details { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: none; padding-right: 0; margin-top: 22px; }
.plan-button { margin-top: 28px; }
.checkout-availability { max-width: 760px; margin: 14px auto 0; font-size: 13px; line-height: 1.6; color: var(--subtle); text-align: center; }
.pricing-grid + .checkout-availability { margin-top: 40px; }
.premium-download { margin: 32px auto 0; background: var(--surface); border-color: var(--border); border-radius: 20px; }
#manage-billing { display: flex; justify-content: center; margin-top: 20px; }
nav.consumer-links, .consumer-links { justify-content: center; padding-block: 8px 24px; }
nav.consumer-links a, .consumer-links a { color: var(--muted); font-size: 13px; }
nav.consumer-links a:hover { color: var(--fg); }

/* ---------- FAQ ---------- */
.faq-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 80px; border-top: 1px solid var(--hairline); }
.faq-section .section-heading h2 { font-size: clamp(34px, 2.4vw + 12px, 48px); line-height: 1.08; position: sticky; top: 100px; }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list details:first-child { border-top: 1px solid var(--hairline); }
.faq-list summary { padding: 22px 0; font-size: 18px; font-weight: 500; color: var(--fg); letter-spacing: -.015em; transition: color .2s; }
.faq-list summary:hover { color: var(--accent-ink); }
.faq-list summary::after { color: var(--subtle); transition: transform .3s var(--ease); }
.faq-list details p { font-size: 16px; line-height: 1.65; color: var(--muted); padding: 0 40px 24px 0; }

.site-links { border-bottom: 1px solid var(--hairline); }
.site-links-row { display: flex; align-items: center; gap: 2px 24px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 13px; color: var(--muted); }
.site-links-row::-webkit-scrollbar { display: none; }
.site-links-row > a { flex: none; padding-block: 11px; transition: color .2s; }
.site-links-row > a:hover, .site-links-row > a[aria-current="page"] { color: var(--fg); }
.site-links-row > a:focus-visible { outline-offset: -3px; }

/* ---------- Footer and dialog ---------- */
.site-footer { padding-block: 36px 44px; border-top: 1px solid var(--hairline); font-size: 13px; }
.site-footer .brand { font-size: 15px; }
.footer-links { gap: 10px 24px; font-size: 13px; color: var(--muted); }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--fg); }
.footer-copyright { font-size: 12px; color: var(--subtle); }
.checkout-dialog { background: var(--surface); color: var(--fg); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); }
.checkout-dialog::backdrop { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.checkout-dialog p { color: var(--muted); font-size: 15px; }
.dialog-close { color: var(--fg); }

/* ---------- Legal and return pages ---------- */
.legal-page { padding-block: 72px 96px; }
.legal-page h1 { font-size: clamp(36px, 4vw + 10px, 56px); letter-spacing: -.04em; font-weight: 700; }
.legal-page h2 { font-size: 22px; letter-spacing: -.02em; }
.legal-page p, .legal-page ul, .legal-page ol, .legal-page dl, .legal-page dd { color: var(--fg-2); line-height: 1.65; }
.legal-page > a:first-child { color: var(--accent-ink); font-size: 15px; }
.legal-nav a, .legal-page .consumer-links a { color: var(--accent-ink); }
.launch-preview { border-radius: 14px; }
.consumer-form fieldset, .consumer-receipt { border-color: var(--border); border-radius: 16px; background: var(--surface); }
.return-note { background: var(--surface); color: var(--fg) !important; border-color: var(--border); border-left-color: var(--accent); border-radius: 14px; }
.legal-page input, .legal-page select, .legal-page textarea { background: var(--surface); color: var(--fg); border: 1px solid var(--border); border-radius: 10px; }

/* ---------- Scroll reveal (motion.js adds .reveal only when motion is allowed) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: aa-rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-visual { animation: aa-fade 1.1s .15s var(--ease) both; }
}
@keyframes aa-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes aa-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tutorial-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .free-download-section { padding: 56px 44px; gap: 40px; }
}
@media (max-width: 1000px) {
  .hero { padding-block: 56px 80px; gap: 48px; }
  .hero-description { max-width: 34ch; }
  .hero-visual { max-width: 720px; }
  .essentials { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-bottom: 96px; }
  .essentials article { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; padding: 26px 24px; }
  .essentials article::before { grid-row: 1 / 3; width: 4px; height: 100%; margin: 0; }
  .input-note { text-align: left; }
  .faq-section { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq-section .section-heading h2 { position: static; }
  .tutorial-heading { display: block; }
  .tutorial-heading > p { text-align: left; margin-top: 12px; }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 40px); }
  .section { padding-block: 88px; }
  .nav { height: 56px; }
  .nav-links.is-open {
    background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-md); padding: 8px;
  }
  .nav-links.is-open > a { color: var(--fg); border-radius: 10px; }
  .nav-discord-mobile { margin-right: 10px; padding: 5px 12px; font-size: 13px; }
  .tutorial-layout { grid-template-columns: minmax(0, 1fr); }
  .tutorial-playlist { grid-template-columns: 1fr 1fr; gap: 8px; }
  .free-download-section { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 44px 28px; border-radius: 26px; margin-block: 24px; }
  .free-download-section h2 { font-size: 38px; }
  .pricing-section { padding-block: 88px 48px; }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .faq-list summary { font-size: 17px; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand img { width: 30px; height: 30px; }
  .hero { padding-block: 40px 64px; }
  .hero h1 { font-size: 46px; }
  .hero-description { font-size: 18px; }
  .hero-actions { gap: 20px; }
  .hero-actions > .button { padding: 13px 22px; }
  .section { padding-block: 72px; }
  h2, .tutorial-heading h2, .free-download-section h2, .faq-section .section-heading h2 { font-size: 34px; }
  .essentials article { grid-template-columns: 24px minmax(0, 1fr); column-gap: 14px; padding: 22px 20px; }
  .essentials h2 { font-size: 19px; }
  .essentials article p { font-size: 15px; }
  .tutorial-heading > p { font-size: 17px; }
  .tutorial-playlist { grid-template-columns: minmax(0, 1fr); }
  .tutorial-details h3 { font-size: 24px; }
  .free-download-section { padding: 36px 22px; margin-inline: auto; }
  .free-download-card .button { width: 100%; }
  .price-card, .price-card + .price-card { padding: 30px 24px 26px; border-radius: 22px; }
  .price-card .price { display: flex; }
  .price-card .price > .price-amount { font-size: 46px; }
  .price-card .plan-button { float: none; width: 100% !important; display: flex; justify-content: center; }
  .checkout-availability { text-align: left; }
  .pricing-section .section-heading { text-align: left; }
  .pricing-section .section-heading h2 { margin-inline: 0; }
  .section-heading p { margin-inline: 0; }
  .faq-list details p { padding-right: 8px; }
  .site-footer { gap: 18px; }
  .footer-links { gap: 10px 18px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .essentials article, .price-card, .tutorial-choice, .text-link span[aria-hidden] { transition: none; }
  .button:hover, .essentials article:hover, .price-card:hover, .tutorial-choice:hover { transform: none; }
}

/* ---------- Refinements ---------- */
.nav-discord-mobile, .menu-toggle { white-space: nowrap; line-height: 1.25; }
.hero-actions > .text-link { font-size: 16px; }
.free-download-section .download-disclosure { max-width: none; font-size: 14px; line-height: 1.6; color: var(--subtle); }
.free-download-section .download-disclosure strong { color: var(--fg-2); }
#previous-version { margin-top: 20px; overflow-wrap: anywhere; }
#previous-version summary { cursor: pointer; }
@media (max-width: 1000px) {
  .essentials article { grid-template-columns: 4px minmax(0, 1fr); column-gap: 22px; }
}
@media (max-width: 540px) {
  .essentials article { grid-template-columns: 4px minmax(0, 1fr); column-gap: 18px; }
  .nav-discord-mobile { padding: 5px 11px; margin-right: 8px; }
  .menu-toggle { padding: 5px 12px; }
  .hero-actions > .text-link { font-size: 15px; }
}
.tutorial-links a { font-size: 15px; }
.essentials { padding-bottom: 96px; }
@media (min-width: 1001px) and (max-width: 1199px) {
  .hero { align-items: start; }
  .hero-copy { padding-top: 64px; }
}

/* ---------- How it works, Actions reference, Pico (2026-11-02) ---------- */
.section-intro { max-width: 760px; margin-bottom: 48px; }
.section-intro .micro-label { color: var(--accent-ink); font-size: 12px; letter-spacing: .08em; margin-bottom: 14px; }
.section-intro > p:not(.micro-label) { margin-top: 18px; font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.how-section, .actions-section, .pico-section { border-top: 1px solid var(--hairline); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.how-steps li, .action-card, .pico-card, .how-example {
  background: var(--card-bg); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.how-steps li { padding: 28px 26px; }
.how-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink); font-weight: 650; font-size: 15px; }
.how-steps h3 { margin: 18px 0 8px; font-size: 20px; }
.how-steps p { font-size: 15px; line-height: 1.6; color: var(--muted); }
kbd { font: 600 12px/1 var(--font); padding: 3px 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); color: var(--fg); white-space: nowrap; }
.how-example { margin-top: 20px; padding: 28px 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: start; }
.how-example .micro-label { color: var(--accent-ink); font-size: 11px; }
.how-example h3 { margin: 10px 0 8px; font-size: 22px; }
.how-example p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.how-example-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--fg-2); font-size: 15px; line-height: 1.6; }
.how-example code, .action-tip code { font-size: 13px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--hairline); color: var(--fg); word-break: break-all; }

.actions-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 14px; }
.actions-tools[hidden] { display: none; }
.actions-search input { width: min(360px, 100%); min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); font: inherit; font-size: 15px; }
.actions-search { flex: 0 1 360px; }
.actions-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.actions-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.actions-filter { min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.actions-filter:hover { color: var(--fg); border-color: var(--subtle); }
.actions-filter[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); font-weight: 600; }
.actions-filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.actions-count { min-height: 1.4em; font-size: 13px; color: var(--subtle); margin-bottom: 14px; }
.actions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.action-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.action-card[hidden] { display: none; }
.action-card.is-premium { border-color: var(--accent-line); }
.action-card-head { display: flex; gap: 14px; align-items: center; }
.action-symbol { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--hairline); color: var(--accent-ink); }
.action-symbol svg { width: 22px; height: 22px; }
.action-group { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.action-card h3 { font-size: 19px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.premium-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); font: 600 10px/1.6 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.action-description { font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.action-settings { margin: 0; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.5; }
.action-settings div { display: grid; gap: 1px; }
.action-settings dt { color: var(--fg); font-weight: 600; }
.action-settings dd { margin: 0; color: var(--muted); }
.action-tip { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.action-tip strong { color: var(--accent-ink); margin-right: 4px; }
.actions-empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.actions-note { margin-top: 22px; font-size: 14px; line-height: 1.6; color: var(--subtle); max-width: 90ch; }
.actions-note .premium-badge { margin-right: 6px; }

.pico-card { padding: 40px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pico-copy .micro-label { color: var(--accent-ink); font-size: 12px; letter-spacing: .08em; margin-bottom: 14px; }
.pico-copy h2 { font-size: clamp(30px, 2vw + 14px, 44px); }
.pico-copy p:not(.micro-label) { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.pico-copy p strong { color: var(--fg); }
.pico-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pico-facts li { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--hairline); }
.pico-facts strong { font-size: 14px; color: var(--fg); }
.pico-facts span { font-size: 14px; line-height: 1.55; color: var(--muted); }

@media (max-width: 1100px) {
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .how-example, .pico-card { grid-template-columns: 1fr; gap: 20px; }
  .pico-card { padding: 28px 24px; }
}
@media (max-width: 640px) {
  .how-steps, .actions-grid { grid-template-columns: 1fr; }
  .section-intro { margin-bottom: 32px; }
  .section-intro > p:not(.micro-label) { font-size: 17px; }
  .actions-search { flex: 1 1 100%; }
  .actions-search input { width: 100%; }
  .how-example { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) { .actions-filter { transition: none; } }
@media print { .reveal { opacity: 1 !important; transform: none !important; } .actions-tools { display: none; } }
/* Long German headings (e.g. "Vertragsinformationen") hyphenate instead of breaking mid-word on phones. */
.legal-page h1 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 540px) { .legal-page h1 { font-size: clamp(30px, 8.5vw, 40px); } }

/* Discount code entry in the pricing section. */
.code-entry { max-width: 560px; margin: 0 auto 28px; text-align: left; }
.code-entry label { display: block; font-weight: 600; margin-bottom: 8px; }
.code-entry-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.code-entry input { flex: 1 1 180px; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface, transparent); color: inherit; font: inherit; text-transform: uppercase; }
.code-entry input::placeholder { text-transform: none; }
.code-entry .text-link { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-decoration: underline; }
.code-status { margin: 10px 0 0; min-height: 1.4em; font-size: 14px; }
.code-status.is-error { color: var(--danger, #c0392b); }
.code-note { margin: 0 0 12px; font-size: 15px; font-weight: 600; }

/* One product video replaces the starter guide player; it keeps the guide frame without the side playlist. */
.overview-viewer { max-width: 1080px; margin: 0 auto; border: 0; background: transparent; }
.overview-viewer .tutorial-video-frame video { aspect-ratio: 16/9; }
