/* Peekhand website — felt, gold and ivory, mirroring Peekhand/DesignSystem/Premium.swift.
   System fonts only, no third-party requests. */
:root {
  --felt: #176B4A;            /* Asset "Felt" (0.09, 0.42, 0.29) */
  --felt-deep: #0F4630;       /* felt mixed 35% with black */
  --felt-night: #071F15;
  --gold-hi: #FFEDB3;         /* Premium.gold top */
  --gold: #E3B04A;            /* Premium.gold middle */
  --gold-lo: #9E6E1F;         /* Premium.gold bottom */
  --ivory: #F5EBD6;           /* Premium.ivory */
  --ivory-dim: rgba(245, 235, 214, 0.68);
  --burgundy: #730F1F;        /* Premium.burgundy */
  --card-red: #CC1F29;
  --lacquer: rgba(26, 18, 15, 0.82); /* Premium.panelFill */
  --hairline: rgba(245, 212, 120, 0.38);
  --gold-grad: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 52%, var(--gold-lo) 100%);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ivory);
  background-color: var(--felt-night);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(46, 150, 104, 0.55), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 30%, var(--felt) 0%, var(--felt-deep) 45%, var(--felt-night) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* Fine felt grain, drawn inline (no request) */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: #2a1a05; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 12px; }

/* ---------- Language switching (EN/DE) ---------- */
html:not([data-ui="de"]) .de { display: none !important; }
html[data-ui="de"] .en { display: none !important; }

/* ---------- Navigation (frosted glass) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 31, 21, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(227, 176, 74, 0.18);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: .2px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; }
.nav-links a { color: var(--ivory-dim); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--ivory); }

.lang-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid var(--hairline); }
.lang-toggle button {
  font: 600 13px var(--sans); letter-spacing: .4px; color: var(--ivory-dim);
  background: transparent; border: 0; border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--gold-grad); color: #3d2104; }

/* ---------- Type ---------- */
h1, h2, h3, .display { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -.2px; }
.gold-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold);
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--hairline); background: rgba(0,0,0,.28);
}
.eyebrow::before { content: "\2660"; color: var(--gold-hi); font-size: 12px; }

.section { padding: 84px 0; }
.section-title { font-size: clamp(30px, 4.2vw, 46px); margin: 0 0 14px; text-align: center; }
.section-sub { max-width: 680px; margin: 0 auto 44px; text-align: center; color: var(--ivory-dim); font-size: 18px; }
.rule { width: 120px; height: 2px; margin: 0 auto 22px; background: linear-gradient(90deg, transparent, var(--gold), transparent); border: 0; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .container { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero .container { grid-template-columns: 0.9fr 1.1fr; } }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); margin: 20px 0 18px; }
.hero h1 .line2 { display: block; }
.lead { font-size: 19px; color: var(--ivory-dim); max-width: 560px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.price-note { color: var(--ivory-dim); font-size: 15px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 26px 0 0; }
.trust li { font-size: 13px; color: var(--ivory); padding: 5px 12px; border-radius: 999px; background: rgba(115, 15, 31, .55); border: 1px solid rgba(227, 176, 74, .28); }

/* App Store badge placeholder (no Apple logo until the official badge is used) */
.appstore-badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 56px; padding: 8px 22px; border-radius: 14px; text-decoration: none;
  background: #0b0b0b; color: #fff; border: 1.5px solid rgba(255,255,255,.55);
  line-height: 1.15;
}
.appstore-badge small { font-size: 11px; letter-spacing: .3px; opacity: .85; }
.appstore-badge strong { font-size: 21px; font-weight: 600; letter-spacing: -.2px; }
.appstore-badge[data-appstore-pending] { cursor: not-allowed; opacity: .92; position: relative; }
.appstore-badge[data-appstore-pending]::after {
  content: attr(data-pending-label);
  position: absolute; top: -10px; right: -10px;
  font: 700 10px var(--sans); letter-spacing: .8px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--gold-grad); color: #3d2104;
}

/* Duo device frame */
.duo {
  position: relative; border-radius: 34px; padding: 14px;
  background: linear-gradient(145deg, #2b2b2e, #0d0d0f 60%, #1d1d20);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 60px rgba(227,176,74,.12);
  transform: perspective(1800px) rotateY(-7deg) rotateX(3deg);
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.duo:hover { transform: perspective(1800px) rotateY(-2deg) rotateX(1deg); }
@media (prefers-reduced-motion: reduce) { .duo, .duo:hover { transform: none; transition: none; } }
.duo img { border-radius: 22px; width: 100%; }
.duo::after { /* the hinge crease of the inner display */
  content: ""; position: absolute; top: 14px; bottom: 14px; left: 50%; width: 2px; transform: translateX(-1px);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.10) 20%, rgba(0,0,0,.25) 50%, rgba(255,255,255,.10) 80%, transparent);
  pointer-events: none;
}
.mockup-caption { text-align: center; font-size: 13px; color: var(--ivory-dim); margin: 18px 0 0; }

/* ---------- Panels & cards (Premium panel look) ---------- */
.panel {
  background: var(--lacquer);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255, 237, 179, .08);
}
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { padding: 26px 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(227,176,74,.7); box-shadow: 0 22px 44px -18px rgba(0,0,0,.7), 0 0 28px rgba(227,176,74,.16); }
.card h3 { font-size: 22px; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--ivory-dim); font-size: 16px; }
.icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(160deg, #8c1426, var(--burgundy) 60%, #3e0610);
  border: 1px solid rgba(227,176,74,.5); color: var(--gold-hi);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Duo screens */
.screens { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .screens { grid-template-columns: 1.35fr 1fr 1fr; } }
.screen-card { padding: 28px 26px; }
.screen-card .tag { font: 700 12px var(--sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
.screen-card h3 { font-size: 25px; margin: 8px 0 10px; }
.screen-card p { color: var(--ivory-dim); margin: 0; }
.screen-card.featured { background: linear-gradient(160deg, rgba(115,15,31,.75), rgba(26,18,15,.88) 70%); }

/* ---------- The 11 games as playing cards ---------- */
.games { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.games > .game { flex: 0 0 calc((100% - 3 * 16px) / 4); }
@media (max-width: 900px) { .games > .game { flex-basis: calc((100% - 2 * 16px) / 3); } }
.game {
  position: relative; aspect-ratio: 5 / 5.4; padding: 18px 16px 16px; border-radius: 16px;
  background: linear-gradient(180deg, #FFFCF2, #F1E7D3);
  color: #2a1d12; box-shadow: 0 14px 30px -12px rgba(0,0,0,.65), 0 0 0 1px rgba(158,110,31,.35) inset;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.game:hover { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 24px 40px -14px rgba(0,0,0,.7), 0 0 0 1px rgba(158,110,31,.6) inset; }
@media (prefers-reduced-motion: reduce) { .game, .game:hover, .card:hover { transform: none; } }
.game .pip { position: absolute; top: 12px; left: 14px; font: 700 22px/1 var(--serif); text-align: center; }
.game .pip span { display: block; font-size: 20px; }
.game .big { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -62%); font-size: 64px; line-height: 1; opacity: .9; }
.game.red { color: #2a1d12; }
.game.red .pip, .game.red .big { color: var(--card-red); }
.game.black .pip, .game.black .big { color: #17151a; }
.game.bav .pip, .game.bav .big { color: #2f7a2a; }
.game h3 { font: 700 19px/1.2 var(--serif); margin: 0 0 4px; color: #2a1d12; }
.game p { margin: 0; font-size: 13.5px; line-height: 1.4; color: #5b4a39; }
.games-note { text-align: center; color: var(--ivory-dim); max-width: 760px; margin: 34px auto 0; }

/* ---------- Showcase rows ---------- */
.showcase { display: grid; gap: 34px; align-items: center; grid-template-columns: 1fr; margin-bottom: 84px; }
.showcase:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .showcase { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .showcase.flip .media { order: 2; }
  .showcase.portrait { grid-template-columns: .7fr 1.3fr; }
  .showcase.portrait.flip { grid-template-columns: 1.3fr .7fr; }
}
.media { position: relative; }
.media img {
  width: 100%; border-radius: 20px; border: 1px solid rgba(227,176,74,.45);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.8), 0 0 40px rgba(227,176,74,.08);
}
.media.portrait-img img { max-width: 380px; margin: 0 auto; }
.media.stack { display: grid; gap: 16px; }
.showcase .kicker { font: 700 12px var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.showcase h3 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 14px; }
.showcase p { color: var(--ivory-dim); margin: 0 0 12px; }
.showcase ul { margin: 14px 0 0; padding: 0; list-style: none; }
.showcase li { padding-left: 24px; position: relative; margin-bottom: 8px; color: var(--ivory); }
.showcase li::before { content: "\2666"; position: absolute; left: 2px; color: var(--gold); font-size: 13px; top: 2px; }
.credit { font-size: 13px; color: var(--ivory-dim); margin-top: 12px; }

/* Card designs swatches */
.designs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.designs span { font: 600 13px var(--sans); padding: 6px 12px; border-radius: 10px; border: 1px solid var(--hairline); background: rgba(0,0,0,.3); }

/* Secret card */
.secret {
  display: grid; gap: 28px; align-items: center; padding: 36px; grid-template-columns: 1fr;
  background: radial-gradient(ellipse at 20% 30%, rgba(115,15,31,.9), rgba(26,18,15,.92) 70%);
}
@media (min-width: 760px) { .secret { grid-template-columns: auto 1fr; } }
.card-back {
  width: 150px; aspect-ratio: 5 / 7; border-radius: 14px; margin: 0 auto;
  background:
    radial-gradient(circle at 50% 50%, transparent 26%, rgba(227,176,74,.0) 27%),
    repeating-linear-gradient(45deg, rgba(227,176,74,.22) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(-45deg, rgba(227,176,74,.22) 0 2px, transparent 2px 12px),
    linear-gradient(160deg, #a3182c, var(--burgundy));
  border: 6px solid #FFF8EA; box-shadow: 0 20px 40px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(158,110,31,.6);
  display: grid; place-items: center; transform: rotate(-6deg);
  animation: float 6s ease-in-out infinite;
}
.card-back span { font: 700 54px var(--serif); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes float { 0%,100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .card-back { animation: none; } }
.secret h3 { font-size: 30px; margin: 0 0 10px; }
.secret p { margin: 0; color: var(--ivory-dim); }

/* Languages */
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.langs li { font-family: var(--serif); font-size: 18px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--hairline); background: rgba(0,0,0,.28); }

/* Privacy callout */
.privacy-callout { padding: 44px 30px; text-align: center; }
.privacy-callout p { max-width: 700px; margin: 0 auto 24px; color: var(--ivory-dim); }
.pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 0; }
.pills li { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #3d2104; background: var(--gold-grad); }

/* Download */
.download { text-align: center; }
.download .hero-cta { justify-content: center; margin-top: 26px; }
.note { color: var(--ivory-dim); font-size: 14px; text-align: center; margin-top: 18px; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; text-decoration: none; font-weight: 700;
  background: var(--gold-grad); color: #3d2104; box-shadow: 0 8px 22px -8px rgba(227,176,74,.55);
}
.btn:hover { color: #2a1602; filter: brightness(1.06); }

/* ---------- Content pages (privacy, impressum, support) ---------- */
.content { padding: 56px 0 80px; }
.content .container { max-width: 820px; }
.content h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 8px; }
.content h1 .h1-sub { display: block; font-size: .5em; color: var(--ivory-dim); font-weight: 600; margin-top: 6px; }
.content h2 { font-size: 26px; margin: 40px 0 10px; color: var(--gold-hi); }
.content h3 { font-size: 19px; margin: 24px 0 6px; font-family: var(--sans); font-weight: 700; }
.content p, .content li { color: rgba(245,235,214,.86); }
.content address { font-style: normal; color: var(--ivory); line-height: 1.7; }
.content .lang-toggle { margin: 18px 0 8px; }
.meta { font-size: 14px; color: var(--ivory-dim); }
.contact-card { padding: 30px 28px; margin: 26px 0 10px; }
details { border: 1px solid var(--hairline); border-radius: 16px; background: rgba(26,18,15,.6); margin: 12px 0; padding: 0 20px; }
details[open] { background: rgba(26,18,15,.82); }
summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 22px; color: var(--gold); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 16px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid rgba(227,176,74,.2); padding: 32px 0 40px; background: rgba(4, 18, 12, .55); font-size: 14px; color: var(--ivory-dim); }
footer .container { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
footer a { color: var(--ivory-dim); text-decoration: none; }
footer a:hover { color: var(--gold-hi); }
.footer-note { flex-basis: 100%; font-size: 12.5px; opacity: .85; margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 40px; }
  .nav-links { gap: 12px; }
  .nav-links .hide-sm { display: none; }
  .games { gap: 12px; }
  .games > .game { flex-basis: calc((100% - 12px) / 2); aspect-ratio: 5 / 6.4; }
  .game { padding: 14px 12px 12px; }
  .game .big { font-size: 46px; }
  .game h3 { font-size: 16px; }
  .game p { font-size: 12px; }
  .secret { padding: 28px 22px; }
  .duo { padding: 8px; border-radius: 24px; transform: none; }
  .duo img { border-radius: 16px; }
}
