:root {
  color-scheme: dark;
  --background: #0c110e;
  --surface: #12251c;
  --text: #f2f2e9;
  --muted: #b2bcb3;
  --accent: #aed9b8;
  --gold: #d6bc83;
  --line: #29352d;
  --panel-line: #354c3c;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 4px;
}
::selection { background: var(--accent); color: var(--background); }
p, h1, h2, h3 { margin: 0; }
.container { width: min(var(--max-width), calc(100% - 80px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--background);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Shared navigation. Without JavaScript, every navigation link remains visible. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 17, 14, .97);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #728b70;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: -2px;
  padding-right: 2px;
}
.brand-mark > span { position: absolute; right: -3px; bottom: -3px; width: 6px; height: 6px; background: var(--gold); }
.brand-name { display: block; font-size: 11px; line-height: 1.6; letter-spacing: .16em; font-weight: 700; }
.brand-name > span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .31em; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav > a { position: relative; padding: 16px 0; color: var(--muted); font-size: 13px; font-weight: 550; }
.main-nav > a::after { content: ""; position: absolute; bottom: 6px; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.main-nav > a:hover, .main-nav > a[aria-current="location"] { color: var(--text); }
.main-nav > a:hover::after, .main-nav > a[aria-current="location"]::after { transform: scaleX(1); }
.nav-toggle { display: none; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; }
.menu-icon { display: grid; gap: 5px; width: 16px; }
.menu-icon > span { display: block; height: 1px; background: currentColor; transition: transform .18s ease; }
.nav-toggle[aria-expanded="true"] .menu-icon > span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .menu-icon > span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Section 01: an editorial introduction, with no wheel or roulette demo. */
.channel-section { padding-top: 70px; }
.section-label { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 10px; line-height: 1.6; letter-spacing: .2em; font-weight: 650; }
.section-index { display: inline-block; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.section-index::after { content: "/"; margin-left: 15px; color: #718273; font-weight: 400; }
.channel-grid { display: grid; grid-template-columns: 1.3fr 1fr; column-gap: 85px; align-items: center; margin-top: 26px; }
h1 { font-weight: 500; font-size: clamp(58px, 6.5vw, 92px); line-height: 1.07; letter-spacing: -.055em; }
h1 em { font-family: Georgia, "Times New Roman", serif; color: var(--accent); font-weight: 400; letter-spacing: -.055em; }
.heading-caption { display: flex; align-items: center; gap: 11px; color: var(--muted); margin-top: 26px; font-size: 12px; letter-spacing: .035em; }
.heading-caption > span { display: block; width: 25px; height: 1px; background: var(--gold); }
.channel-copy { padding-top: 12px; }
.channel-copy .lead { font-size: 22px; line-height: 1.45; font-weight: 450; letter-spacing: -.02em; color: var(--text); margin-bottom: 16px; }
.channel-copy > p:not(.lead) { font-size: 15px; color: var(--muted); line-height: 1.85; max-width: 420px; }
.channel-actions { display: flex; align-items: center; gap: 16px 26px; flex-wrap: wrap; margin-top: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 17px; min-height: 38px; color: var(--accent); font-size: 13px; font-weight: 600; }
.text-link > span { font-size: 20px; font-weight: 400; transition: transform .18s ease; }
.text-link:hover > span { transform: translateY(2px); }
.text-link:hover { color: var(--text); }
.section-divider { display: flex; align-items: center; height: 1px; background: var(--line); margin-top: 62px; }
.section-divider > span { width: 48px; height: 2px; background: var(--gold); }

/* Section 02: product information and the two existing Payhip destinations. */
.tool-section { padding-top: 46px; }
.tool-panel { display: grid; grid-template-columns: 1.45fr 1fr; gap: 46px; padding: 42px 44px; background: var(--surface); border: 1px solid var(--panel-line); border-radius: 16px; }
.tool-copy h2 { margin-top: 24px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.17; font-weight: 500; letter-spacing: -.045em; }
.tool-description { max-width: 555px; margin-top: 19px; color: #c1cbc1; font-size: 15px; line-height: 1.85; }
.feature-list { display: flex; flex-wrap: wrap; gap: 11px 24px; list-style: none; padding: 0; margin: 26px 0 0; }
.feature-list > li { display: flex; align-items: center; gap: 8px; color: #bfd5c2; font-size: 11px; }
.feature-list > li::before { content: ""; width: 4px; height: 4px; background: var(--gold); flex-shrink: 0; }
.tool-actions { border-left: 1px solid var(--panel-line); padding-left: 42px; }
.platform-label { display: flex; align-items: center; gap: 9px; color: #c0d0c1; font-size: 9px; letter-spacing: .13em; font-weight: 600; }
.desktop-icon { position: relative; display: inline-block; width: 15px; height: 10px; margin-bottom: 4px; border: 1px solid currentColor; border-radius: 1px; }
.desktop-icon::after { content: ""; position: absolute; width: 7px; height: 3px; left: 3px; bottom: -4px; border-bottom: 1px solid currentColor; }
.tool-actions h3 { margin-top: 16px; font-size: 22px; font-weight: 500; letter-spacing: -.025em; }
.tool-actions > p:not(.platform-label):not(.checkout-note) { margin: 7px 0 21px; color: #bac8bc; font-size: 13px; line-height: 1.8; }
.button { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 11px 18px; border: 1px solid transparent; border-radius: 5px; font-size: 13px; font-weight: 650; transition: background .18s ease, border-color .18s ease; }
.button > span { font-size: 19px; line-height: 1; font-weight: 400; }
.button-primary { color: #14251b; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: #c6e9cd; border-color: #c6e9cd; }
.button-secondary { margin-top: 10px; color: var(--text); border-color: #607b64; background: transparent; }
.button-secondary:hover { border-color: var(--accent); background: #1e3426; }
.tool-actions .checkout-note { margin-top: 14px; color: #aebbaf; font-size: 10px; text-align: center; }

/* Section 03: short project background. */
.about-section { display: grid; grid-template-columns: 1fr 1.18fr; gap: 90px; padding-block: 76px 74px; }
.about-heading h2 { margin-top: 21px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 4.4vw, 56px); font-weight: 400; line-height: 1.1; letter-spacing: -.04em; }
.about-copy { padding-top: 4px; }
.about-copy .about-intro { color: var(--text); font-size: 20px; letter-spacing: -.025em; margin-bottom: 12px; }
.about-copy > p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.about-copy > p + p { margin-top: 12px; }
.about-copy .project-note { margin-top: 22px; font-size: 11px; color: #aab6ac; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #a4afa6; font-size: 11px; }
.footer-links { display: flex; align-items: center; gap: 28px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.footer-links a:hover { color: var(--text); }

/* The existing legal notice remains separate from the three home sections. */
.legal-main { min-height: calc(100vh - 178px); padding-block: 58px 76px; }
.back-link { margin-bottom: 30px; }
.legal-main h1 { font-size: clamp(38px, 5vw, 62px); margin-block: 12px 28px; }
.legal-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: start; }
.legal-note { border: 1px solid #766849; color: #e1cea7; background: #272317; padding: 19px 22px; font-size: 13px; line-height: 1.8; border-radius: 6px; }
.legal-note strong { color: #eedbb5; }
.legal-content { border-top: 1px solid var(--line); padding-top: 25px; }
.legal-content h2 { font-size: 18px; font-weight: 550; margin: 30px 0 10px; letter-spacing: -.025em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.legal-content strong { color: var(--text); font-weight: 500; }
.error-main { min-height: calc(100vh - 176px); padding-block: 80px; }
.error-main h1 { font-size: clamp(42px, 6vw, 72px); margin-block: 20px; }
.error-main > p:not(.section-label) { color: var(--muted); max-width: 520px; }
.error-main .button { display: inline-flex; margin-top: 28px; }

@media (min-width: 1600px) {
  .channel-section { padding-top: 88px; }
  .channel-grid { margin-top: 36px; }
  .section-divider { margin-top: 80px; }
}
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .channel-grid { column-gap: 48px; }
  .main-nav { gap: 23px; }
  .tool-panel { gap: 30px; padding: 34px; grid-template-columns: 1.25fr 1fr; }
  .tool-actions { padding-left: 28px; }
  .about-section { gap: 52px; }
}
@media (max-width: 780px) {
  html { scroll-padding-top: 98px; }
  .container { width: calc(100% - 40px); }
  .nav-wrap { min-height: 80px; flex-wrap: wrap; gap: 0; padding-block: 16px; }
  .brand-mark { width: 39px; height: 39px; }
  .nav-toggle { display: inline-flex; }
  .main-nav { width: 100%; padding-top: 16px; margin-top: 14px; border-top: 1px solid var(--line); gap: 2px; flex-direction: column; align-items: stretch; }
  .main-nav > a { padding: 12px 0; font-size: 14px; }
  .main-nav > a::after { display: none; }
  .main-nav > a[aria-current="location"] { color: var(--accent); }
  [data-menu-ready] .main-nav { display: none; }
  [data-menu-ready] .main-nav.is-open { display: flex; }
  .channel-section { padding-top: 44px; }
  .channel-grid { grid-template-columns: 1fr; gap: 34px; margin-top: 27px; }
  h1 { font-size: clamp(58px, 11vw, 82px); }
  .channel-copy { padding-top: 0; max-width: 560px; }
  .channel-copy .lead { font-size: 22px; }
  .channel-copy > p:not(.lead) { max-width: 560px; }
  .heading-caption { margin-top: 22px; }
  .channel-actions { margin-top: 18px; }
  .section-divider { margin-top: 38px; }
  .tool-section { padding-top: 32px; }
  .tool-panel { grid-template-columns: 1fr; gap: 30px; padding: 30px; }
  .tool-copy h2 { font-size: clamp(33px, 6vw, 44px); margin-top: 20px; }
  .tool-description { max-width: none; }
  .tool-actions { padding: 27px 0 0; border-left: 0; border-top: 1px solid var(--panel-line); }
  .tool-actions .button { min-height: 50px; }
  .feature-list { margin-top: 22px; }
  .about-section { grid-template-columns: 1fr; gap: 26px; padding-block: 50px; }
  .about-heading h2 { font-size: 46px; margin-top: 19px; }
  .about-copy { max-width: 570px; }
  .footer-inner { padding-block: 19px; min-height: 88px; flex-wrap: wrap; gap: 4px 20px; }
  .footer-links { gap: 24px; }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; }
  .legal-main { padding-block: 38px 50px; }
}
@media (max-width: 400px) {
  .container { width: calc(100% - 32px); }
  .brand { gap: 10px; }
  .brand-name { font-size: 9px; }
  .brand-name > span { font-size: 9px; }
  .nav-toggle { padding-inline: 10px; gap: 9px; }
  .channel-copy .lead { font-size: 20px; }
  .tool-panel { padding: 26px 22px; }
  .tool-copy h2 { font-size: 34px; }
  .section-label { font-size: 9px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  :root { --background: white; --text: black; --muted: #333; --accent: #24472a; --gold: #555; --line: #aaa; }
  .site-header { position: static; background: white; }
  .main-nav, .nav-toggle, .skip-link, .channel-actions, .tool-actions, .footer-links { display: none !important; }
  .container { width: 100%; }
  .channel-section, .about-section { padding-block: 25px; }
  .tool-panel { display: block; background: white; border-color: #aaa; }
  .tool-description, .feature-list > li, .about-copy .project-note { color: #333; }
  .tool-section { padding-top: 24px; }
  .section-divider { margin-top: 24px; }
}
