/* LearnSimply — granite theme, matching the app's Granit palette and icon
   (Words/Design/Brand.swift): dark stone, silver glows, gold serif type. */
:root {
  color-scheme: dark;
  --stone-top: #4a4a4f;
  --stone-mid: #29292b;
  --stone-bottom: #0d0d0f;
  --card: rgba(255, 255, 255, .055);
  --card-strong: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .12);
  --text: #f4f3f1;
  --muted: #c4c3c8;
  --soft: #9d9ca3;
  --gold-hi: #ffe08c;
  --gold: #f7cc66;
  --gold-deep: #d99933;
  --gold-grad: linear-gradient(120deg, #ffe08c 0%, #f7cc66 35%, #d99933 60%, #ffe08c 100%);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", "Geeza Pro", "Sakkal Majalla", "Noto Naskh Arabic", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 17px/1.6 var(--sans);
  background-color: var(--stone-bottom);
  background-image: linear-gradient(180deg, var(--stone-top) 0%, var(--stone-mid) 38%, var(--stone-bottom) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Granite speckle: fine noise over the whole page, like the app icon. */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Slow silver glows drifting behind everything (Granit glows in the app). */
.glows { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glows span {
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .28;
  will-change: transform;
}
.glows span:nth-child(1) { background: radial-gradient(circle, #94949e, transparent 65%); top: -25vmax; left: -15vmax; animation: drift1 26s ease-in-out infinite alternate; }
.glows span:nth-child(2) { background: radial-gradient(circle, #66666f, transparent 65%); top: 30vh; right: -25vmax; animation: drift2 32s ease-in-out infinite alternate; }
.glows span:nth-child(3) { background: radial-gradient(circle, rgba(247, 204, 102, .55), transparent 60%); bottom: -35vmax; left: 15vw; opacity: .14; animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(12vw, 10vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-14vw, -8vh) scale(.92); } }

/* Gold sparkles (filled in by main.js). */
.sparkles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sparkles i {
  position: absolute;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 6px 1px rgba(255, 224, 140, .7);
  opacity: 0;
  animation: twinkle var(--d, 5s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .9; transform: scale(1); } }

main, header, footer { position: relative; z-index: 1; }

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.gold-text {
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* Top bar */
.topbar { padding: 16px 0; position: relative; z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap.narrow { max-width: 760px; }
.topbar .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 600 1.15rem var(--serif); letter-spacing: .02em; }
.topbar .brand:hover { color: var(--gold-hi); }
.topbar .brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(247, 204, 102, .35); }

/* Drop-down menus (language and the three-line menu) */
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 20, 22, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text); font-weight: 600; font-size: .92rem;
  transition: border-color .2s ease, background .2s ease;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { border-color: rgba(247, 204, 102, .5); background: rgba(40, 40, 44, .7); }
.menu summary:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.menu svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu .chev { width: 14px; height: 14px; stroke: var(--soft); stroke-width: 2.2; transition: transform .25s ease; }
.menu[open] .chev { transform: rotate(180deg); }
.menu ul {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  min-width: 210px;
  margin: 0; padding: 6px; list-style: none;
  background: rgba(32, 32, 35, .97);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  animation: menu-in .2s ease both;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.menu li a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-size: .96rem;
}
.menu li a:hover { background: rgba(255, 255, 255, .07); color: var(--gold-hi); }
.menu li a[aria-current] { color: var(--gold); background: rgba(247, 204, 102, .09); }
.menu .code {
  flex: none; min-width: 28px; padding: 2px 0; text-align: center;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  border-radius: 6px; border: 1px solid rgba(247, 204, 102, .35); color: var(--gold);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
  min-height: min(88vh, 820px);
  padding: 32px 0 48px;
}
.hero-icon {
  width: 96px; height: 96px; border-radius: 22px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(247, 204, 102, .4);
  animation: icon-in 1s cubic-bezier(.2, .9, .3, 1.2) both, glow 4s ease-in-out 1s infinite;
}
@keyframes icon-in { from { opacity: 0; transform: translateY(-18px) scale(.8) rotate(-6deg); } }
@keyframes glow {
  0%, 100% { box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(247, 204, 102, .4); }
  50% { box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(247, 204, 102, .7), 0 0 36px rgba(247, 204, 102, .35); }
}
.hero h1 {
  font: 600 clamp(2.8rem, 7vw, 4.6rem)/1.02 var(--serif);
  letter-spacing: -.01em;
  margin: 26px 0 0;
}
.rule {
  display: block;
  width: 140px; height: 4px;
  margin: 22px 0 22px;
  border-radius: 4px;
  background: var(--gold-grad);
  transform-origin: left;
  animation: rule-in 1.1s .5s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rule-in { from { transform: scaleX(0); } }
.tagline { font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.45; color: var(--muted); margin: 0 0 32px; max-width: 26ch; }
.tagline em { font: italic 600 1.08em var(--serif); color: var(--gold); }

.rise { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.rise.d1 { animation-delay: .15s; }
.rise.d2 { animation-delay: .3s; }
.rise.d3 { animation-delay: .45s; }
.rise.d4 { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

.store-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe08c, #f7cc66 45%, #d99933);
  color: #1d1a12;
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(247, 204, 102, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.store-btn::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-20deg);
  animation: sweep 4.5s ease-in-out 1.5s infinite;
}
@keyframes sweep { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.store-btn:hover { color: #1d1a12; transform: translateY(-2px); box-shadow: 0 12px 34px rgba(247, 204, 102, .42), inset 0 1px 0 rgba(255, 255, 255, .5); }
.store-btn:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 4px; }
.store-btn svg { width: 20px; height: 20px; }
.store-note { display: block; margin-top: 14px; font-size: .9rem; color: var(--soft); }

/* Phone mock-up with a live lock-screen widget */
.phone-wrap { display: flex; justify-content: center; perspective: 1200px; }
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 48px;
  padding: 12px;
  background: linear-gradient(145deg, #3b3b40, #151517);
  box-shadow:
    0 0 0 1.5px rgba(247, 204, 102, .55),
    0 40px 80px rgba(0, 0, 0, .6),
    inset 0 0 0 2px rgba(255, 255, 255, .06);
  animation: float 7s ease-in-out infinite, phone-in 1.2s .2s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotateX(18deg); } }
.screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, #5a5a61 0%, #2a2a2d 45%, #0d0d0f 100%);
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 16px;
}
.screen::before { /* stone speckle on the wallpaper */
  content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay;
  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='1.2' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.island { width: 34%; height: 26px; border-radius: 20px; background: #000; position: relative; z-index: 1; }
.lock-date { margin-top: 26px; font-size: .9rem; color: rgba(255, 255, 255, .8); font-weight: 500; position: relative; }
.lock-time { font-size: 4.2rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: #fff; position: relative; font-variant-numeric: tabular-nums; }
.widget {
  position: relative;
  margin-top: 22px;
  width: 100%;
  padding: 12px 14px 12px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .1);
  min-height: 86px;
}
.widget::before {
  content: ""; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
  background: linear-gradient(#ffe08c, #d99933);
}
.widget-body { transition: opacity .45s ease, transform .45s ease, filter .45s ease; }
.widget-body.out { opacity: 0; transform: translateY(8px); filter: blur(4px); }
.w-word { font-weight: 700; font-size: 1.2rem; color: #fff; line-height: 1.2; }
.w-meaning { font-size: .98rem; color: rgba(255, 255, 255, .85); }
.w-phon { font-size: .82rem; color: rgba(255, 255, 255, .6); }
.example {
  position: relative;
  margin-top: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .07);
  font-size: .82rem; line-height: 1.45;
  color: rgba(255, 255, 255, .85);
}
.example b { color: var(--gold); font-weight: 600; }
.example .tr { color: rgba(255, 255, 255, .6); display: block; margin-top: 4px; }
.lock-bottom { margin-top: auto; width: 100%; display: flex; justify-content: space-between; padding: 0 10px; position: relative; }
.lock-bottom span { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; position: relative; }
.dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .3); transition: width .4s ease, background .4s ease; }
.dots i.on { width: 18px; background: var(--gold); }

/* Sections */
section { padding: 72px 0; }
.eyebrow { display: block; text-align: center; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.section-title { text-align: center; font: 600 clamp(1.9rem, 4.4vw, 2.7rem)/1.15 var(--serif); margin: 0 0 14px; }
.section-lead { text-align: center; color: var(--muted); max-width: 46ch; margin: 0 auto 44px; }

/* Screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.shots figure { margin: 0; }
.shots figure:nth-child(2) { margin-top: 48px; }
.shot {
  position: relative;
  border-radius: 30px;
  padding: 7px;
  background: linear-gradient(145deg, rgba(247, 204, 102, .55), rgba(255, 255, 255, .06) 40%, rgba(247, 204, 102, .25));
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
}
.shot img { display: block; width: 100%; height: auto; border-radius: 24px; }
.shots figure:hover .shot { transform: translateY(-10px) rotate(-1deg); box-shadow: 0 34px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(247, 204, 102, .15); }
.shots figcaption { text-align: center; margin-top: 16px; font: 600 1.1rem var(--serif); color: var(--text); }
.shots figcaption small { display: block; font: 400 .9rem var(--sans); color: var(--soft); margin-top: 2px; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.feature {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.feature::before { /* gold light that follows the pointer (main.js sets --x/--y) */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, -40%), rgba(247, 204, 102, .14), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(247, 204, 102, .4); background: var(--card-strong); }
.feature:hover::before { opacity: 1; }
.feature .ico {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(255, 224, 140, .2), rgba(217, 153, 51, .08));
  border: 1px solid rgba(247, 204, 102, .35);
  margin-bottom: 16px;
}
.feature .ico svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font: 600 1.2rem/1.3 var(--serif); margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Closing call to action */
.cta-card {
  position: relative;
  text-align: center;
  padding: 56px 24px;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid rgba(247, 204, 102, .3);
  overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; left: 50%; top: -120px; width: 420px; height: 240px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(247, 204, 102, .25), transparent);
  pointer-events: none;
}
.cta-card img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 0 0 1px rgba(247, 204, 102, .4), 0 12px 30px rgba(0, 0, 0, .5); position: relative; }
.cta-card h2 { font: 600 clamp(1.8rem, 4vw, 2.5rem)/1.2 var(--serif); margin: 20px 0 10px; position: relative; }
.cta-card p { color: var(--muted); margin: 0 0 28px; position: relative; }

/* Scroll reveal (main.js adds .in) */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  font-size: .95rem;
  color: var(--soft);
  text-align: center;
}
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-bottom: 10px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 8px 16px 56px; animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.legal h1 { font: 600 clamp(2rem, 5vw, 2.6rem)/1.15 var(--serif); margin: .5em 0 .3em; }
.legal h1 .muted { font-family: var(--sans); font-weight: 400; }
.legal h2 { font: 600 1.25rem/1.3 var(--serif); margin: 1.8em 0 .4em; color: var(--text); }
.legal p, .legal li { color: #e3e2e6; }
.legal .muted { color: var(--soft); font-size: .92rem; }
.legal ul { padding-left: 0; padding-inline-start: 1.2em; }
.legal ul li::marker { color: var(--gold); }
nav.lang { display: flex; gap: 8px; margin: 18px 0 8px; }
nav.lang a {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: border-color .2s ease, color .2s ease;
}
nav.lang a:hover { border-color: rgba(247, 204, 102, .5); color: var(--gold); }
section.lang-block {
  padding: 6px 24px 18px; margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
section.lang-block h2:first-child { color: var(--gold); }

/* Support page */
.support-form { display: grid; gap: 8px; margin-top: 6px; }
.support-form label { font-weight: 600; font-size: .95rem; margin-top: 8px; }
.support-form input[type="email"],
.support-form select,
.support-form textarea {
  width: 100%;
  font: inherit; font-size: 16px; /* 16px stops iOS from zooming in */
  color: var(--text);
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.support-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7cc66' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.support-form select option { background: #29292b; color: var(--text); }
.support-form textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.support-form textarea::placeholder { color: var(--soft); }
.support-form input[type="email"]::placeholder { color: var(--soft); }
.support-form .store-btn[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-status { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; font-size: .95rem; }
.form-status[hidden] { display: none; }
.form-status.is-ok { background: rgba(120, 200, 140, .12); border: 1px solid rgba(120, 200, 140, .45); color: #bfe9c9; }
.form-status.is-error { background: rgba(240, 120, 110, .1); border: 1px solid rgba(240, 120, 110, .45); color: #f5c3bd; }
.form-status a { color: var(--gold-hi); font-weight: 600; }
.support-form input[type="email"]:focus,
.support-form select:focus,
.support-form textarea:focus { outline: none; border-color: rgba(247, 204, 102, .6); box-shadow: 0 0 0 3px rgba(247, 204, 102, .15); }
.support-form .store-btn { justify-self: start; margin-top: 14px; border: 0; cursor: pointer; font-family: inherit; }
.form-note { margin: 4px 0 0; }
.direct { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.direct a { font-weight: 600; font-size: 1.05rem; }
.copy-btn {
  font: 600 .85rem var(--sans); color: var(--text); cursor: pointer;
  padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .2s ease, color .2s ease;
}
.copy-btn:hover { border-color: rgba(247, 204, 102, .5); color: var(--gold); }

.faq details { border-top: 1px solid var(--line); }
.faq details:first-of-type { border-top: 0; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(247, 204, 102, .4); color: var(--gold);
  font-weight: 400; font-size: 1.1rem; line-height: 1;
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-hi); }
.faq details p { margin: 0 0 12px; color: var(--muted); }
.faq details[open] p { animation: rise .45s ease both; }

/* Launch date and "coming soon" store buttons */
.launch {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin: -12px 0 22px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(247, 204, 102, .35);
  background: rgba(247, 204, 102, .07);
  font-size: .95rem; color: var(--muted);
}
[dir="rtl"] .launch { padding: 8px 16px 8px 8px; }
.launch strong { color: var(--gold-hi); font-weight: 700; }
.countdown {
  padding: 3px 11px; border-radius: 999px;
  background: linear-gradient(135deg, #ffe08c, #d99933);
  color: #1d1a12; font-weight: 700; font-size: .85rem;
  font-variant-numeric: tabular-nums;
}
.countdown[hidden] { display: none; }
.store-btn.is-soon { cursor: default; }
.store-btn.is-soon:hover { transform: none; }
@media (max-width: 860px) { .launch { justify-content: center; } }

/* Store buttons: App Store, Google Play under it */
.store-buttons { display: inline-flex; flex-direction: column; align-items: stretch; gap: 10px; }
.store-buttons .store-btn { justify-content: center; }
/* Google Play: the same gold button, its shine passing just after the App Store one. */
.store-btn.alt::after { animation-delay: 2.2s; }
@media (max-width: 860px) { .store-buttons { align-items: center; } }

/* Numbers band */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: 0 auto 32px; max-width: 860px;
  border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(247, 204, 102, .3);
  background: rgba(247, 204, 102, .2);
}
.stat { background: rgba(28, 28, 31, .92); padding: 22px 12px; text-align: center; }
.stat strong { display: block; font: 600 clamp(1.7rem, 4vw, 2.4rem)/1.1 var(--serif); color: var(--gold); }
.stat span { display: block; margin-top: 4px; font-size: .9rem; color: var(--muted); }

/* Categories */
#categories, #games { scroll-margin-top: 16px; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.cat-group {
  padding: 20px 18px 10px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
}
.cat-group h3 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
:lang(ar) .cat-group h3 { letter-spacing: 0; font-size: .95rem; }
.cat-group ul { list-style: none; margin: 0; padding: 0; }
.cat { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cat:first-child { border-top: 0; }
.cat .ico {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(255, 224, 140, .18), rgba(217, 153, 51, .06));
  border: 1px solid rgba(247, 204, 102, .3);
}
.cat .ico svg, .game .ico svg { width: 21px; height: 21px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat div { flex: 1; min-width: 0; }
.cat strong { display: block; font-weight: 600; }
.cat small { display: block; color: var(--soft); font-size: .84rem; line-height: 1.4; }
.cat .count { flex: none; text-align: end; font: 600 1.05rem var(--serif); color: var(--gold-hi); white-space: nowrap; }
.cat .count em { display: block; font: 400 .72rem var(--sans); color: var(--soft); }
.cat.is-new .ico { border-color: rgba(247, 204, 102, .75); box-shadow: 0 0 18px rgba(247, 204, 102, .25); }

/* Games */
.games { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.game {
  position: relative;
  padding: 22px 18px 20px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .35s ease, border-color .35s ease;
}
.game:hover { transform: translateY(-4px); border-color: rgba(247, 204, 102, .4); }
.game-no { position: absolute; top: 14px; inset-inline-end: 16px; font: 600 .85rem var(--serif); color: rgba(247, 204, 102, .55); }
.game .ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(145deg, rgba(255, 224, 140, .2), rgba(217, 153, 51, .08));
  border: 1px solid rgba(247, 204, 102, .35);
}
.game h3 { font: 600 1.08rem/1.3 var(--serif); margin: 0 0 6px; }
:lang(ar) .game h3 { font-family: var(--sans); font-weight: 700; }
.game p { margin: 0; color: var(--muted); font-size: .92rem; }

@media (max-width: 980px) {
  .games { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .games { grid-template-columns: 1fr; }
}

/* Three-line menu */
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.nav-menu summary { width: 40px; height: 40px; padding: 0; justify-content: center; }
.burger { position: relative; width: 18px; height: 14px; display: block; }
.burger i {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: var(--gold);
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; }
.burger i:nth-child(3) { top: 12px; }
.nav-menu[open] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-menu[open] .burger i:nth-child(2) { opacity: 0; }
.nav-menu[open] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nav-menu ul { min-width: 240px; }
.nav-menu li a svg { width: 18px; height: 18px; flex: none; }
.nav-menu li a[aria-current] svg { stroke: var(--gold-hi); }
.nav-menu li.sep { height: 1px; margin: 6px 8px; background: var(--line); }
#features { scroll-margin-top: 16px; }
@media (max-width: 400px) {
  .lang-menu summary > span { display: none; } /* globe only on small phones */
  .topbar .brand { font-size: 1.05rem; }
}

/* Right-to-left (Arabic) */
[dir="rtl"] .rule { transform-origin: right; }
[dir="rtl"] .support-form select { background-position: left 14px center; padding-right: 14px; padding-left: 42px; }
:lang(ar) .eyebrow { letter-spacing: 0; }
:lang(ar) .tagline em { font-style: normal; }
:lang(ar) .section-title, :lang(ar) .feature h3, :lang(ar) .legal h2, :lang(ar) .cta-card h2 { font-family: var(--sans); font-weight: 700; }
.phone .example .en, .phone .example .tr { display: block; }
.phone .example .tr { margin-top: 4px; }

/* Tablets and phones */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; min-height: 0; padding-top: 16px; }
  .hero .rule { margin-left: auto; margin-right: auto; transform-origin: center; }
  .tagline { margin-left: auto; margin-right: auto; }
  section { padding: 56px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-icon { width: 80px; height: 80px; border-radius: 19px; }
  .phone { border-radius: 42px; padding: 10px; }
  .screen { border-radius: 33px; }
  .lock-time { font-size: 3.6rem; }
  .shots {
    grid-template-columns: repeat(3, 74%);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -16px;
    padding: 8px 16px 24px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots figure { scroll-snap-align: center; }
  .shots figure:nth-child(2) { margin-top: 0; }
  .shot { border-radius: 26px; padding: 6px; }
  .shot img { border-radius: 21px; }
  .cta-card { padding: 44px 20px; border-radius: 26px; }
  section.lang-block { padding: 4px 18px 14px; }
}

/* Respect "reduce motion": no movement, everything visible. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .sparkles, .glows span { display: none; }
}
