:root {
  color-scheme: dark;
  --forest-950: #061b17;
  --forest-900: #09271f;
  --forest-800: #0f3d2e;
  --forest-700: #15573a;
  --cream: #fff6db;
  --cream-soft: #e9e2c7;
  --sage: #b8c9b7;
  --gold: #e1bd68;
  --gold-bright: #f1d38b;
  --red: #b62c37;
  --line: rgba(225, 189, 104, .25);
  --panel: rgba(255, 255, 255, .055);
  --panel-strong: rgba(4, 24, 19, .72);
  --shadow: 0 28px 80px rgba(0, 0, 0, .32);
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(255,255,255,.018) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(315deg, rgba(255,255,255,.012) 25%, transparent 25%) 0 0 / 24px 24px,
    radial-gradient(circle at 50% -20%, #1d7147 0, var(--forest-900) 40%, var(--forest-950) 100%);
  font-family: var(--sans);
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 20%, transparent 0 30%, rgba(0,0,0,.24) 100%);
  z-index: -1;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-bright); text-underline-offset: .24em; }
a:hover { color: #ffe6a9; }
a:focus-visible, button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
p { margin: 0; }
.skip-link { position: fixed; top: .75rem; left: .75rem; transform: translateY(-180%); z-index: 20; padding: .7rem 1rem; border-radius: 999px; background: var(--cream); color: var(--forest-950); }
.skip-link:focus { transform: none; }
.wrap { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(225,189,104,.14);
  background: rgba(6, 27, 23, .78);
  backdrop-filter: blur(18px) saturate(130%);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--cream); text-decoration: none; font: 500 1.4rem var(--serif); }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 1.15rem; flex-wrap: wrap; }
.nav-links a { color: var(--cream-soft); font-size: .9rem; font-weight: 650; text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--gold-bright); }
.language { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .72rem; }

.hero { min-height: calc(100svh - 72px); display: grid; align-items: center; padding: clamp(3rem, 7vw, 7rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr); align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.eyebrow { color: var(--gold); font-size: .77rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { font-size: clamp(5rem, 13vw, 10.5rem); letter-spacing: -.055em; margin: .12em 0 .08em; }
.hero-tagline { color: var(--cream-soft); font: 400 clamp(1.75rem, 4vw, 3.25rem)/1.1 var(--serif); max-width: 13ch; }
.hero-copy { color: var(--sage); max-width: 56ch; font-size: clamp(1rem, 1.6vw, 1.18rem); margin-top: 1.7rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: .8rem 1.15rem; border: 1px solid var(--gold); border-radius: 999px; font-weight: 800; text-decoration: none; }
.button-primary { color: var(--forest-950); background: linear-gradient(135deg, #f4d98e, #d8b35c); box-shadow: 0 12px 35px rgba(225,189,104,.18); }
.button-secondary { color: var(--cream); background: rgba(255,255,255,.045); }
.availability { display: flex; align-items: center; gap: .65rem; margin-top: 1.35rem; color: var(--sage); font-size: .88rem; }
.availability::before { content: ""; width: .62rem; height: .62rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(225,189,104,.12); }

.hero-art { position: relative; min-height: 620px; display: grid; place-items: center; }
.app-icon { position: absolute; z-index: 2; left: 0; top: 7%; width: clamp(92px, 12vw, 132px); border-radius: 27%; box-shadow: 0 22px 60px rgba(0,0,0,.38); transform: rotate(-5deg); }
.phone { position: relative; width: min(278px, 64vw); padding: 8px; border-radius: 45px; background: linear-gradient(145deg, #dbc47f, #6a5a32 55%, #f4dc96); box-shadow: var(--shadow); transform: rotate(2.2deg); }
.phone::before { content: ""; position: absolute; top: 17px; left: 50%; width: 86px; height: 19px; border-radius: 999px; background: #03110e; transform: translateX(-50%); z-index: 2; }
.phone img { width: 100%; height: auto; aspect-ratio: 720 / 1565; object-fit: contain; border-radius: 37px; }
.suit-orbit { position: absolute; right: -5%; bottom: 12%; display: grid; grid-template-columns: repeat(2, 48px); gap: .7rem; transform: rotate(5deg); }
.suit-orbit span { display: grid; place-items: center; width: 48px; height: 58px; border-radius: 9px; color: #17231e; background: var(--cream); font-size: 1.45rem; box-shadow: 0 9px 22px rgba(0,0,0,.23); }
.suit-orbit .red { color: var(--red); }

.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-rule { border-top: 1px solid rgba(225,189,104,.12); }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.section-heading h2 { font-size: clamp(2.5rem, 6vw, 5.2rem); }
.section-heading p { color: var(--sage); max-width: 57ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat { padding: 1.3rem; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.stat strong { display: block; color: var(--gold-bright); font: 500 2.3rem var(--serif); }
.stat span { color: var(--sage); }

.hands-grid { display: grid; grid-template-columns: repeat(13, minmax(94px, 1fr)); gap: .8rem; overflow-x: auto; padding: .6rem .2rem 1.1rem; scrollbar-color: var(--gold) transparent; }
.hand-card { min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; padding: 1rem; border-radius: 16px; color: #15251e; background: linear-gradient(150deg, #fffaf0, #e8dfc8); box-shadow: 0 15px 35px rgba(0,0,0,.2); }
.hand-card:nth-child(3n+1) { transform: translateY(8px) rotate(-.5deg); }
.hand-card:nth-child(3n) { transform: translateY(3px) rotate(.5deg); }
.hand-card small { color: #6d624e; font-weight: 800; letter-spacing: .08em; }
.hand-card b { font: 500 1.12rem/1.06 var(--serif); }
.hand-card .emblem { color: #9f2430; font-size: 1.4rem; font-weight: 800; }
.hand-card.positive .emblem { color: #1d6540; }

.showcase { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.showcase-copy h2 { font-size: clamp(2.7rem, 6vw, 5.3rem); }
.showcase-copy p { color: var(--sage); margin-top: 1.2rem; }
.feature-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.feature-list li { display: grid; grid-template-columns: 34px 1fr; gap: .85rem; align-items: start; }
.feature-list li::before { content: "✓"; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: var(--forest-950); background: var(--gold); font-weight: 900; }
.devices { display: grid; grid-template-columns: .56fr 1fr; align-items: end; gap: 1rem; }
.device-shot { padding: 7px; border-radius: 27px; background: #111b18; box-shadow: var(--shadow); }
.device-shot img { width: 100%; height: auto; object-fit: contain; border-radius: 21px; }
.device-shot:not(.ipad) img { aspect-ratio: 720 / 1566; }
.device-shot.ipad img { aspect-ratio: 1100 / 1467; }
.device-shot.ipad { border-radius: 21px; }
.device-shot.ipad img { border-radius: 15px; }

.accessibility { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.panel { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 28px; background: var(--panel); }
.panel h3 { color: var(--gold-bright); font: 500 1.65rem var(--serif); }
.panel p { color: var(--sage); margin-top: .8rem; }
.quote { font: 400 clamp(1.6rem, 3.4vw, 2.7rem)/1.25 var(--serif); color: var(--cream); }

.cta { text-align: center; padding: clamp(3rem, 7vw, 6rem); border: 1px solid var(--line); border-radius: 36px; background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025)); box-shadow: var(--shadow); }
.cta img { width: 96px; margin: 0 auto 1.5rem; border-radius: 24px; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.7rem); }
.cta p { color: var(--sage); max-width: 56ch; margin: 1rem auto 0; }

.site-footer { margin-top: 5rem; border-top: 1px solid var(--line); padding: 2.2rem 0 3.5rem; color: var(--sage); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.document-hero { padding: clamp(3rem, 7vw, 6rem) 0 2.5rem; text-align: center; }
.document-hero h1 { font-size: clamp(3.2rem, 8vw, 7rem); }
.document-hero p { color: var(--sage); max-width: 65ch; margin: 1rem auto 0; }
.document-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: center; gap: 3rem; align-items: start; }
.toc { position: sticky; top: 100px; padding: 1.2rem; border: 1px solid var(--line); border-radius: 20px; background: var(--panel-strong); }
.toc strong { color: var(--gold); display: block; margin-bottom: .65rem; }
.toc a { display: block; padding: .35rem 0; color: var(--sage); text-decoration: none; font-size: .9rem; }
.prose { min-width: 0; }
.prose section { scroll-margin-top: 100px; padding: 1.6rem 0 2.2rem; border-top: 1px solid var(--line); }
.prose section:first-child { border-top: 0; }
.prose h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .9rem; }
.prose h3 { color: var(--gold-bright); font-size: 1.15rem; margin: 1.35rem 0 .45rem; }
.prose p, .prose li { color: var(--cream-soft); }
.prose p + p { margin-top: .9rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .55rem; }
.notice { padding: 1.25rem 1.4rem; border-left: 4px solid var(--gold); border-radius: 0 18px 18px 0; background: rgba(225,189,104,.1); }
.score-table { width: 100%; border-collapse: collapse; margin-top: 1rem; overflow: hidden; border-radius: 16px; }
.score-table th, .score-table td { padding: .82rem .75rem; border-bottom: 1px solid rgba(225,189,104,.17); text-align: left; vertical-align: top; }
.score-table th { color: var(--gold-bright); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.score-table td:last-child { white-space: nowrap; color: var(--gold-bright); font-weight: 750; }
.source-list a { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .hero-grid, .showcase, .section-heading, .accessibility { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero-tagline, .hero-copy { margin-inline: auto; }
  .actions, .availability { justify-content: center; }
  .hero-art { min-height: 560px; }
  .section-heading { align-items: start; }
  .document-layout { grid-template-columns: minmax(0, 760px); }
  .toc { position: static; }
  .toc nav { columns: 2; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 1.2rem, 1160px); }
  .nav { min-height: 64px; }
  .brand span { display: none; }
  .nav-links { gap: .65rem; }
  .nav-links a:not(.language) { font-size: .79rem; }
  .hero { min-height: auto; padding-top: 3.4rem; }
  .hero-grid { gap: 1.5rem; }
  .hero h1 { font-size: clamp(4.3rem, 26vw, 7rem); }
  .hero-art { min-height: 530px; }
  .app-icon { left: 2%; top: 9%; width: 84px; }
  .suit-orbit { right: 1%; }
  .stats { grid-template-columns: 1fr; }
  .devices { grid-template-columns: .62fr 1fr; gap: .55rem; }
  .panel { border-radius: 22px; }
  .toc nav { columns: 1; }
  .score-table { font-size: .86rem; }
  .score-table th, .score-table td { padding: .65rem .48rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .phone { animation: settle .8s cubic-bezier(.2,.75,.2,1) both; }
  .app-icon { animation: settle-icon .85s .12s cubic-bezier(.2,.75,.2,1) both; }
  @keyframes settle { from { opacity: 0; transform: translateY(24px) rotate(0); } }
  @keyframes settle-icon { from { opacity: 0; transform: translate(-12px, 18px) rotate(-10deg); } }
}

@media print {
  body { background: #fff; color: #111; }
  body::before, .site-header, .site-footer, .toc { display: none; }
  .document-layout { display: block; }
  .prose p, .prose li { color: #222; }
  .prose h2, .prose h3, a { color: #111; }
}
