/* ============================================
   MemoryWise — shared stylesheet
   Owned by Damon Moore / Memorywise Limited.
   Colour palette carried over from the previous
   site design (Damon said he likes it) — everything
   else is open for us to rework together.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root{
  --background: oklch(15% .014 150);
  --foreground: oklch(98% .005 140);
  --primary: oklch(90% .16 111);
  --primary-foreground: oklch(18% .02 150);
  --secondary: oklch(83% .14 165);
  --muted: oklch(27% .024 145);
  --muted-foreground: oklch(74% .015 145);
  --accent: oklch(83% .14 165);
  --border: oklch(31% .022 148);
  --surface-2: oklch(27% .024 145);
  --card: oklch(21% .018 148);
  --radius: 1.25rem;
  --shadow-soft: 0 20px 50px -30px oklch(0% 0 0 / .85);
  --max: 1152px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--background);
  color:var(--foreground);
  font-family:'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.wrap{ max-width:var(--max); margin:0 auto; padding:0 1.5rem; }
section{ padding:5rem 0; }
h1,h2,h3{ font-weight:700; letter-spacing:-0.01em; margin:0; }
.eyebrow{
  display:inline-flex; align-items:center; gap:.5rem;
  border:1px solid var(--border); background:oklch(from var(--surface-2) l c h / .6);
  padding:.3rem .9rem; border-radius:999px;
  font-size:.72rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  color:var(--primary);
}
.gradient-text{
  background:linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.center{ text-align:center; }
.lede{ color:var(--muted-foreground); font-size:1.05rem; max-width:640px; }
.center .lede{ margin:1.1rem auto 0; }

/* buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  border-radius:999px; padding:.85rem 1.6rem; font-weight:600; font-size:.95rem;
  border:1px solid transparent; cursor:pointer; transition:filter .15s ease, transform .15s ease;
}
.btn:hover{ filter:brightness(1.08); }
.btn-primary{ background:var(--primary); color:var(--primary-foreground); }
.btn-outline{ background:transparent; border-color:var(--border); color:var(--foreground); }
.store-btn{
  display:inline-flex; align-items:center; gap:.65rem; border-radius:.9rem;
  border:1px solid var(--border); background:var(--foreground); color:var(--background);
  padding:.65rem 1.1rem;
}
.store-btn svg{ width:1.5rem; height:1.5rem; fill:currentColor; flex:none; }
.store-btn .lines{ display:flex; flex-direction:column; line-height:1.1; }
.store-btn .lines small{ font-size:.62rem; opacity:.75; letter-spacing:.03em; }
.store-btn .lines strong{ font-size:.85rem; font-weight:600; }
.store-row{ display:flex; flex-wrap:wrap; gap:.75rem; }

/* header */
header{
  position:sticky; top:0; z-index:40;
  background:oklch(from var(--background) l c h / .85); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
header .bar{ display:flex; align-items:center; justify-content:space-between; padding:1rem 1.5rem; }
.brand{ display:flex; align-items:center; gap:.5rem; font-weight:700; font-size:1.1rem; }
.brand img{ height:1.9rem; width:auto; }
nav.primary-nav{ display:flex; gap:1.75rem; }
nav.primary-nav a{ font-size:.9rem; color:var(--muted-foreground); }
nav.primary-nav a:hover{ color:var(--foreground); }
.menu-btn{
  display:none; width:2.75rem; height:2.75rem; border-radius:999px; border:1px solid var(--border);
  background:transparent; color:var(--foreground); align-items:center; justify-content:center; cursor:pointer;
}
#nav-toggle{ display:none; }
.mobile-panel{ display:none; flex-direction:column; gap:1rem; padding:0 1.5rem 1.5rem; }

@media (max-width: 860px){
  nav.primary-nav{ display:none; }
  .menu-btn{ display:inline-flex; }
  #nav-toggle:checked ~ .mobile-panel{ display:flex; }
}

/* hero */
.hero{ padding:5rem 0 4rem; }
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:3rem; align-items:center; }
.hero-copy{ text-align:center; }
.hero h1{ font-size:clamp(2.1rem, 5.4vw, 3.6rem); line-height:1.08; margin-top:1.4rem; }
.hero .lede{ font-size:1.1rem; margin-left:auto; margin-right:auto; }
.hero .actions{ display:flex; flex-wrap:wrap; gap:.9rem; justify-content:center; margin-top:2rem; }
.hero .store-row{ justify-content:center; margin-top:1.75rem; }
.hero-media{ display:flex; justify-content:center; }
.hero-float{
  width:min(260px, 80%);
  border-radius:1.8rem;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
  animation:hero-bob 5s ease-in-out infinite;
}
.hero-float img{ display:block; width:100%; height:auto; }
@keyframes hero-bob{
  0%,100%{ transform:translateY(0) rotate(0deg); }
  50%{ transform:translateY(-14px) rotate(-1deg); }
}
@media (prefers-reduced-motion: reduce){ .hero-float{ animation:none; } }
@media (max-width:860px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-media{ order:-1; }
}

/* generic grids */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; margin-top:3rem; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; margin-top:3rem; }
.grid-6{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; margin-top:3rem; }
@media (max-width:860px){ .grid-3,.grid-4,.grid-6{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .grid-3,.grid-4,.grid-6{ grid-template-columns:1fr; } }

.card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:1.75rem; box-shadow:var(--shadow-soft);
}
.card .tag{ font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; color:var(--secondary); font-weight:700; }
.card h3{ font-size:1.15rem; margin-top:.6rem; }
.card p{ color:var(--muted-foreground); font-size:.92rem; margin-top:.6rem; }

.step{ display:flex; gap:1rem; }
.step .num{
  flex:none; width:2.75rem; height:2.75rem; border-radius:999px; background:var(--surface-2);
  border:1px solid var(--border); color:var(--primary); font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.step h3{ font-size:1.02rem; }
.step p{ color:var(--muted-foreground); font-size:.9rem; margin-top:.35rem; }

/* comparison table */
.compare{ margin-top:3rem; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.compare table{ width:100%; border-collapse:collapse; }
.compare th,.compare td{ padding:1rem 1.25rem; text-align:left; font-size:.92rem; border-bottom:1px solid var(--border); }
.compare th{ background:var(--surface-2); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted-foreground); }
.compare td:first-child{ color:var(--muted-foreground); width:26%; }
.compare tr:last-child td{ border-bottom:none; }
.compare td.old{ color:var(--muted-foreground); }
.compare td.new{ color:var(--foreground); font-weight:500; }

/* screenshot gallery */
.gallery{ display:flex; gap:1.25rem; overflow-x:auto; padding:2.5rem .25rem 1rem; scroll-snap-type:x mandatory; }
.gallery::-webkit-scrollbar{ height:8px; }
.gallery::-webkit-scrollbar-thumb{ background:var(--border); border-radius:999px; }
.shot{ flex:none; width:230px; scroll-snap-align:start; }
.shot img{ border-radius:1.6rem; border:1px solid var(--border); background:var(--surface-2); box-shadow:var(--shadow-soft); }
.shot .cap{ margin-top:.75rem; font-size:.85rem; }
.shot .cap b{ display:block; font-size:.9rem; }
.shot .cap span{ color:var(--muted-foreground); font-size:.8rem; }
.shot.wide{ width:340px; }
.shot.missing{
  width:230px; aspect-ratio:9/16.5; border-radius:1.6rem; border:1px dashed var(--border);
  display:flex; align-items:center; justify-content:center; text-align:center; padding:1rem;
  color:var(--muted-foreground); font-size:.82rem; background:var(--surface-2);
}

/* split feature (image + text) */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; margin-top:3rem; }
.split .shot-frame{ justify-self:center; width:240px; }
.split .shot-frame img{ border-radius:1.6rem; border:1px solid var(--border); background:var(--surface-2); box-shadow:var(--shadow-soft); }
.split ul.check{ list-style:none; padding:0; margin:1.25rem 0 0; display:flex; flex-direction:column; gap:.6rem; }
.split ul.check li{ font-size:.9rem; color:var(--muted-foreground); padding-left:1.4rem; position:relative; }
.split ul.check li::before{ content:"✓"; position:absolute; left:0; color:var(--secondary); font-weight:700; }
@media (max-width:860px){ .split{ grid-template-columns:1fr; } .split .shot-frame{ order:-1; } }

/* not-a-game highlight strip */
.strip{
  border:1px solid var(--border); border-radius:2rem; padding:3rem 2.5rem; margin-top:3rem;
  background:linear-gradient(135deg, oklch(from var(--surface-2) l c h / .7), var(--card));
  text-align:center;
}
.strip h2{ font-size:clamp(1.6rem,3.4vw,2.3rem); }

/* timeline */
.timeline{ margin-top:3rem; display:grid; grid-template-columns:repeat(5,1fr); gap:1.25rem; }
@media (max-width:860px){ .timeline{ grid-template-columns:1fr; } }
.timeline .card .time{ color:var(--primary); font-weight:700; font-size:.85rem; }

/* pricing */
.price-card{ position:relative; }
.price-card.popular{ border-color:var(--primary); }
.badge-pop{
  position:absolute; top:-.8rem; left:50%; transform:translateX(-50%);
  background:var(--primary); color:var(--primary-foreground); font-size:.65rem; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; padding:.3rem .8rem; border-radius:999px;
}
.price-card .amount{ font-size:2.1rem; font-weight:700; margin-top:1rem; }
.price-card .amount span{ font-size:.9rem; color:var(--muted-foreground); font-weight:500; }
.price-card ul{ list-style:none; padding:0; margin:1.25rem 0 1.5rem; display:flex; flex-direction:column; gap:.55rem; }
.price-card li{ font-size:.88rem; color:var(--muted-foreground); padding-left:1.4rem; position:relative; }
.price-card li::before{ content:"✓"; position:absolute; left:0; color:var(--secondary); font-weight:700; }
.price-note{ margin-top:1.5rem; font-size:.82rem; color:var(--muted-foreground); }

/* faq */
details.faq{
  background:var(--card); border:1px solid var(--border); border-radius:1.1rem;
  padding:0 1.25rem; margin-bottom:.75rem;
}
details.faq summary{
  list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between;
  gap:1rem; padding:1.1rem 0; font-weight:500;
}
details.faq summary::-webkit-details-marker{ display:none; }
details.faq summary .chev{ transition:transform .2s ease; flex:none; color:var(--primary); }
details.faq[open] summary .chev{ transform:rotate(180deg); }
details.faq p{ color:var(--muted-foreground); font-size:.9rem; padding-bottom:1.1rem; margin:0; }

/* cta */
.cta{ text-align:center; border:1px solid var(--border); border-radius:2rem; padding:4rem 2rem; background:var(--card); }

footer{ border-top:1px solid var(--border); padding:3rem 1.5rem; }
footer .wrap{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1.5rem; font-size:.88rem; color:var(--muted-foreground); }
footer .brand-name{ color:var(--foreground); font-weight:700; }
footer nav{ display:flex; flex-wrap:wrap; gap:1.25rem 1.5rem; }
footer nav a:hover{ color:var(--foreground); }

.note{
  margin-top:1rem; font-size:.82rem; color:var(--muted-foreground);
  border-left:2px solid var(--secondary); padding-left:.75rem;
}
.legal{ max-width:720px; margin:0 auto; padding:6rem 1.5rem 5rem; }
.legal h1{ font-size:2.2rem; }
.legal .updated{ color:var(--muted-foreground); margin-top:.5rem; }
.legal h2{ font-size:1.2rem; margin-top:2.5rem; }
.legal ul{ color:var(--muted-foreground); padding-left:1.2rem; }
.legal p{ color:var(--muted-foreground); }
