/* GlassCast's page: the campaign's look. Dark in every theme, like the ads:
   each picture sits over a blur of itself, the way the app's player does. */

:root {
  --ground: #0e0d11;
  --card: #17151c;
  --rim: rgba(255, 255, 255, 0.09);
  --ink: #f6f4fa;
  --ink-2: rgba(246, 244, 250, 0.74);
  --ink-3: rgba(246, 244, 250, 0.5);
  --accent: #d9a7f3;
  --accent-fill: #af52de;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.ko {
  font-family: "Pretendard Variable", "Pretendard", system-ui, -apple-system, sans-serif;
  word-break: keep-all;
  line-height: 1.65;
}
.latin { font-family: "Figtree", system-ui, sans-serif; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }

/* The blur behind a picture: the picture itself, softened. */
.glow {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  object-fit: cover;
  filter: blur(90px) saturate(1.8) brightness(0.9);
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}

.phone { display: block; width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.5)); }

/* ---- top bar ---- */
.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rim);
  background: rgba(255, 255, 255, 0.04);
}
.top nav a:hover { color: var(--ink); text-decoration: none; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero .glow { z-index: -1; opacity: 0.55; }
/* The hero settles into the page instead of stopping at a line: the cover's
   blur and the phone both fade into the ground. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(14, 13, 17, 0), var(--ground));
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 40px;
  padding: 40px 0 0;
}
.hero h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.ko .hero h1 { line-height: 1.14; letter-spacing: -0.04em; font-size: clamp(42px, 5.6vw, 76px); }
.hero .lede { margin: 26px 0 0; font-size: clamp(19px, 2vw, 23px); color: var(--ink-2); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  border: 1px solid var(--rim);
  background: rgba(255, 255, 255, 0.06);
}
.button:hover { text-decoration: none; filter: brightness(1.1); }
.button.primary { background: var(--accent-fill); border-color: transparent; color: #fff; }
.button svg { width: 20px; height: 20px; }
.hero-phone { position: relative; height: 640px; }
/* The words and buttons sit above the fade; only the phone goes under it. */
.hero-copy { position: relative; z-index: 1; }
.hero-phone .phone { width: min(400px, 100%); margin: 20px auto 0; }

/* ---- feature cards ---- */
.section { padding: 96px 0 0; }
.section h2, .free h2, .install h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.ko .section h2, .ko .free h2, .ko .install h2 { line-height: 1.2; letter-spacing: -0.035em; }
.section .intro, .install .intro { margin: 0 0 36px; color: var(--ink-2); max-width: 36em; font-size: 19px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 600px;
  border-radius: 32px;
  background: var(--card);
  border: 1px solid var(--rim);
}
.card .glow { z-index: -1; opacity: 0.5; }
.card .text { position: relative; padding: 30px 30px 0; }
.card h3 { margin: 0 0 8px; font-size: 28px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.ko .card h3 { line-height: 1.28; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card .phone { position: absolute; left: 50%; top: 210px; width: 74%; transform: translateX(-50%); }

/* ---- free, no ads, no account ---- */
.free {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 96px;
  border-radius: 40px;
  border: 1px solid var(--rim);
  background: var(--card);
  padding: clamp(32px, 6vw, 72px);
}
.free .glow { z-index: -1; opacity: 0.45; }
.free h2 { margin-bottom: 28px; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.columns h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.ko .columns h3 { letter-spacing: 0.02em; font-size: 15px; }
.columns p { margin: 0; color: var(--ink-2); }

/* ---- install ---- */
.install { text-align: center; padding: 96px 0 0; }
.install .intro { margin-left: auto; margin-right: auto; }
.install .actions { justify-content: center; }
.store-badge { display: inline-block; margin-top: 20px; border-radius: 10px; }
.store-badge img { display: block; width: 161px; height: 48px; }
.store-badge:hover { filter: brightness(1.15); }
.also { margin-top: 18px; color: var(--ink-3); font-size: 15px; }

footer {
  padding: 72px 0 120px;
  text-align: center;
  color: var(--ink-3);
  font-size: 15px;
}
footer a { color: var(--ink-2); font-weight: 600; }
footer .dot { margin: 0 8px; }

/* ---- the mini player: a card at rest, a bubble while you scroll down ----
   Pale, as the app's card is over a dark page. mini.js moves it. */
.mini {
  --mini-surface: #3c244c;
  --mini-button: #d7b5ee;
  --mini-ink: #16141a;
  position: fixed;
  z-index: 40;
  right: max(20px, calc(50% - 580px));
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  width: min(400px, calc(100% - 40px));
  height: 68px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mini.ready { opacity: 1; }
.mini-bg, .mini-shadow, .mini-art, .mini-ring {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}
.mini-bg {
  width: 100%;
  height: 68px;
  border-radius: 30px;
  background: var(--mini-button);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
}
.mini-shadow {
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  opacity: 0;
}
.mini-card {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  color: var(--mini-ink);
  pointer-events: auto;
}
.mini-card:hover { text-decoration: none; }
.mini-card:focus-visible { outline: 2px solid var(--mini-button); outline-offset: 4px; }
.mini-row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 0 72px;
}
.mini-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mini-title, .mini-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-title { font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.mini-sub { font-size: 13px; line-height: 1.3; opacity: 0.7; }
.mini-wave {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 5px;
  overflow: visible;
  color: var(--mini-surface);
}
.mini-wave .played, .mini-wave .rest { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.mini-wave .rest { opacity: 0.32; }
.mini-wave .dot { fill: currentColor; opacity: 0.55; }
.mini-button {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--mini-surface);
  color: var(--mini-button);
  transition: border-radius 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mini-card:hover .mini-button { border-radius: 15px; }
.mini-button svg { width: 24px; height: 24px; }
.mini-art { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.mini-ring { display: none; overflow: visible; }
.mini-ring path { fill: none; stroke-width: 3.5; }
.mini-ring .track { stroke: var(--mini-surface); }
.mini-ring .arc { stroke: var(--mini-button); stroke-linecap: round; }
.mini-bubble {
  position: absolute;
  right: 0;
  top: 22px;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}
.mini-bubble[hidden] { display: none; }
.mini-bubble:focus-visible { outline: 2px solid var(--mini-button); outline-offset: 4px; }
@media print { .mini { display: none; } }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 24px; }
  .hero-phone { height: 460px; }
  .top nav .wide-only { display: none; }
  .hero-phone .phone { width: min(320px, 82%); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { height: 560px; }
  .columns { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .section, .install { padding-top: 72px; }
  .free { margin-top: 72px; border-radius: 28px; }
}
