:root {
  --white: #ffffff;
  --sand: #dbad7d;
  --sand-soft: #f6ece1;
  --ink: #2b2a28;
  --ink-soft: #4a4844;
  --muted: #8a857e;
  --line: #ece7e0;
  --surface: #faf7f3;
  --display: "League Spartan", "Avenir Next", system-ui, sans-serif;
  --body: "Montserrat", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1; letter-spacing: -.02em; margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Navigáció ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; position: sticky; top: 0; z-index: 20; }
.nav::before { content: ""; position: absolute; inset: 0 -50vw; background: rgba(255,255,255,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: -1; border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled::before { border-bottom-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.4rem; padding-top: 3px; }
.logo img { border-radius: 8px; margin-top: -4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 999px; padding: 14px 24px; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { box-shadow: 0 10px 24px -10px rgba(43,42,40,.6); transform: translateY(-1px); }
.btn-line { border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 56px 0 90px; min-height: min(88vh, 820px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 4px var(--sand-soft); }
h1 { font-size: clamp(3rem, 8.2vw, 6.4rem); font-weight: 700; }
h1 .roll-word { display: inline-block; color: var(--sand); }
.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-soft); max-width: 34ch; margin: 24px 0 32px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.try { display: inline-block; margin-top: 22px; font-weight: 600; font-size: .9rem; color: var(--ink-soft); text-decoration: none; border-bottom: 1.5px solid var(--sand); padding-bottom: 2px; }
.try:hover { color: var(--ink); }

.hero-phone { position: relative; display: flex; justify-content: center; }
.phone {
  --w: 300px;
  position: relative; z-index: 2;
  width: var(--w); aspect-ratio: 390 / 844; border-radius: 46px; padding: 10px;
  background: var(--ink);
  box-shadow: 0 50px 100px -40px rgba(43,42,40,.55), 0 0 0 1px rgba(0,0,0,.05);
  animation: float 7s ease-in-out infinite;
}
.phone iframe {
  width: 390px; height: 844px; border: 0; border-radius: 40px; background: var(--white);
  transform: scale(calc((var(--w) - 20px) / 390px)); transform-origin: 0 0;
  pointer-events: none;
}
.phone { overflow: hidden; }

/* lebegő, magukban guruló kockák */
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 1; perspective: 800px; }
.fdie { position: absolute; width: var(--d, 70px); height: var(--d, 70px); transform-style: preserve-3d; animation: drift var(--t, 9s) ease-in-out infinite alternate; }
.fdie .cube { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.4s cubic-bezier(.2,.75,.25,1); }
.fdie .face {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 10%;
  background: var(--white); border: 1px solid var(--line); border-radius: 22%;
  font-family: var(--display); font-weight: 600; font-size: calc(var(--d, 70px) * .16); line-height: 1.05;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.fdie.sand .face { background: var(--sand); border-color: var(--sand); }
.fdie.ink .face { background: var(--ink); border-color: var(--ink); color: var(--white); }
.fdie .face:nth-child(1) { transform: translateZ(calc(var(--d, 70px) / 2)); }
.fdie .face:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--d, 70px) / 2)); }
.fdie .face:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--d, 70px) / 2)); }
.fdie .face:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--d, 70px) / 2)); }
.fdie .face:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--d, 70px) / 2)); }
.fdie .face:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--d, 70px) / 2)); }

/* ---------- Szekciók ---------- */
section h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: 36px; }
.steps { padding: 40px 0 90px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--surface); border-radius: 28px; padding: 32px 28px; position: relative; overflow: hidden; transition: transform .3s; }
.steps li:hover { transform: translateY(-4px); }
.steps .num { font-family: var(--display); font-weight: 700; font-size: 4.5rem; line-height: 1; color: var(--sand); display: block; margin-bottom: 18px; }
.steps h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.sets { padding: 20px 0 90px; }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.set { border: 1px solid var(--line); border-radius: 28px; padding: 32px 28px; }
.set.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.set h3 { font-size: 2rem; font-weight: 700; }
.set > p { color: var(--muted); margin: 10px 0 24px; font-size: .95rem; }
.set.dark > p { color: #b7b1a8; }
.set ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.set li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--surface); }
.set.dark li { background: rgba(255,255,255,.06); }
.set li .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--muted); }
.set li .val { font-family: var(--display); font-weight: 600; font-size: 1.1rem; display: inline-block; min-width: 1ch; text-align: right; }
.set li .val.flip { animation: flip .5s cubic-bezier(.2,.8,.2,1); }

.download { padding: 20px 0 100px; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl-card { background: var(--sand-soft); border-radius: 28px; padding: 36px 32px; display: flex; flex-direction: column; align-items: flex-start; }
.dl-card h3 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.dl-card p { color: var(--ink-soft); margin: 0 0 24px; }
.dl-card .small { font-size: .8rem; color: var(--muted); margin: 18px 0 0; }
.ios { margin: 0 0 24px; padding-left: 20px; color: var(--ink-soft); display: grid; gap: 6px; }
.share-ico { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--white); vertical-align: middle; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .82rem; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 60ch; }

/* ---------- Instrukciók ---------- */
.prompts { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 40px 0 110px; }
.prompts h2 { margin-bottom: 20px; }
.prompts-text > p:not(.eyebrow) { color: var(--ink-soft); max-width: 40ch; margin: 0 0 28px; }
.aud-pills { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; }
.aud-pills button { font: inherit; border: 0; background: transparent; border-radius: 999px; padding: 9px 22px; font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.aud-pills button[aria-selected="true"] { background: var(--sand); color: var(--ink); }
.lp-deck { position: relative; height: 340px; max-width: 440px; width: 100%; justify-self: center; }
.lp-card { position: absolute; inset: 0; border-radius: 32px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(43,42,40,.4); }
.lp-card.b1 { transform: translateY(12px) rotate(-4deg) scale(.97); background: var(--sand-soft); border-color: var(--sand-soft); }
.lp-card.b2 { transform: translateY(22px) rotate(5deg) scale(.94); background: var(--sand); border-color: var(--sand); opacity: .6; }
.lp-card.front { display: flex; flex-direction: column; justify-content: center; padding: 64px 36px 40px; overflow: hidden; }
.lp-card.front::after { content: "„"; position: absolute; right: 24px; top: -26px; font-family: var(--display); font-weight: 700; font-size: 11rem; line-height: 1; color: var(--sand); opacity: .3; }
.lp-card .cat { position: absolute; top: 26px; left: 32px; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #a87a4b; background: var(--sand-soft); padding: 6px 12px; border-radius: 999px; }
.lp-card .quote { position: relative; margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; letter-spacing: -.01em; }
.lp-card .quote .w { display: inline-block; }
.lp-card .quote .q { color: var(--sand); }
.lp-card.typed .w { animation: word .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.35s + var(--i) * 45ms); }
@keyframes word { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Beúszás görgetéskor ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes drift { from { translate: 0 0; } to { translate: var(--dx, 10px) var(--dy, -20px); } }
@keyframes flip { 0% { opacity: 0; transform: translateY(-60%) rotateX(80deg); } 100% { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 28px 0 60px; gap: 48px; min-height: 0; text-align: left; }
  .phone { --w: 250px; }
  .steps ol, .set-grid, .dl-grid, .prompts { grid-template-columns: 1fr; }
  .prompts { gap: 40px; }
  .lp-deck { height: 300px; }
  .fdie.hide-sm { display: none; }
  .floaters { inset: 0 10%; }
  .fdie { --d: 58px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .fdie, .lp-card.typed .w { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.apk-help{margin-top:.6rem;text-align:left}
.apk-help summary{cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.apk-help ul{margin:.4rem 0 .4rem 1.1rem;padding:0}
.apk-help li{margin:.25rem 0}
.apk-help p{margin:.4rem 0}
