/* GlassBook's page. GlassCast's page is dark; this one is warm and light in
   every theme, like GlassBook's pictures: cream and orange, glass bubbles,
   and each phone over a soft blur of itself, the way the app's player sits
   over its cover. */

:root {
  --ground: #fbf5ee;
  --card: #ffffff;
  --rim: rgba(96, 56, 24, 0.09);
  --ink: #1f1915;
  --ink-2: rgba(44, 30, 22, 0.74);
  --ink-3: rgba(44, 30, 22, 0.5);
  --accent: #c4500f;
  --accent-fill: #e2651c;
  color-scheme: light;
}

* { 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 and lightened. */
.glow {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  object-fit: cover;
  filter: blur(90px) saturate(1.7) brightness(1.12);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

.phone { display: block; width: 100%; height: auto; filter: drop-shadow(0 36px 50px rgba(110, 50, 15, 0.22)) drop-shadow(0 8px 14px rgba(110, 50, 15, 0.1)); }

/* A glass bubble, like the ones in the pictures. Only for show. */
.bubble {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 17% 10% at 31% 20%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)),
    radial-gradient(ellipse 42% 22% at 55% 83%, rgba(255, 248, 236, 0.8), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 46% 42%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 48%, rgba(200, 130, 90, 0.16) 72%, rgba(150, 90, 60, 0.36) 89%, rgba(255, 255, 255, 1) 95.5%, rgba(255, 255, 255, 0.55) 100%);
  box-shadow: 0 0.3em 0.34em -0.22em rgba(140, 70, 30, 0.3);
  animation: bob 9s ease-in-out infinite;
}
.bubble.slow { animation-duration: 13s; animation-delay: -4s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- 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; box-shadow: 0 6px 16px rgba(226, 101, 28, 0.3); }
.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.6);
}
.top nav a:hover { color: var(--ink); text-decoration: none; }

/* ---- hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 70% at 92% 0%, rgba(255, 176, 112, 0.5), rgba(255, 176, 112, 0) 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(255, 190, 168, 0.45), rgba(255, 190, 168, 0) 70%);
}
.hero .glow { z-index: -1; opacity: 0.32; left: 30%; inset-inline-end: -30%; }
/* The hero settles into the page instead of stopping at a line. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(251, 245, 238, 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.75);
}
.button:hover { text-decoration: none; filter: brightness(1.04); }
.button.primary {
  background: var(--accent-fill);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(226, 101, 28, 0.7);
}
.button svg { width: 20px; height: 20px; }
.hero-phone { position: relative; height: 640px; }
.hero-copy { position: relative; z-index: 1; }
.hero-phone .phone { position: relative; z-index: 1; width: min(400px, 100%); margin: 20px auto 0; }
.hero-phone .bubble.one { left: -16%; top: 400px; width: 92px; height: 92px; font-size: 92px; z-index: 2; }
.hero-phone .bubble.two { right: -9%; top: 96px; width: 56px; height: 56px; font-size: 56px; z-index: 2; }

/* ---- feature cards ---- */
.section { padding: 96px 0 0; }
.section h2, .free h2, .sync h2, .install h2, .trio 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 .sync h2, .ko .install h2, .ko .trio 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);
  box-shadow: 0 24px 50px -36px rgba(110, 50, 15, 0.35);
}
.card .glow { z-index: -1; opacity: 0.3; }
.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%); }

/* ---- Listen your way: the one dark panel, the colors of the player. Three
   phones rise from its bottom edge, the player raised in the middle. ---- */
.trio {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 96px;
  border-radius: 40px;
  background: #2a1424;
  color: #fff;
  color-scheme: dark;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px) 0;
  text-align: center;
}
.trio .glow { z-index: -1; opacity: 0.75; filter: blur(100px) saturate(1.5) brightness(0.7); }
.trio p { max-width: 34em; margin: 0 auto; color: rgba(255, 255, 255, 0.74); }
/* The speed row from the Speed & sound panel. */
.speeds { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.speeds span {
  min-width: 52px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.speeds span.on { background: #f6b6d8; color: #2a1424; }
.trio-phones {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(10px, 2.4vw, 32px);
  align-items: start;
  max-width: 980px;
  /* As tall as most of the middle phone: the panel's edge cuts them all. */
  aspect-ratio: 1 / 0.62;
  margin: clamp(32px, 4vw, 48px) auto 0;
}
.trio-phones .phone { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.4)); }
.trio-phones .phone.side { margin-top: 12%; }

/* ---- Google: what syncs, beside the app's Google Drive settings, with a
   book going up to Drive. Still for reduced motion. ---- */
.sync, .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);
  box-shadow: 0 30px 60px -44px rgba(110, 50, 15, 0.4);
}
.sync {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.sync .glow, .free .glow { z-index: -1; opacity: 0.28; }
.sync h2 { margin-bottom: 20px; }
.sync p { margin: 0 0 14px; color: var(--ink-2); }
.sync .note { margin: 0; color: var(--ink-3); font-size: 16px; }

.drive {
  min-width: 0;
  border-radius: 26px;
  padding: 6px 0;
  background: #f5f2ef;
  border: 1px solid var(--rim);
  box-shadow: 0 30px 50px -30px rgba(110, 50, 15, 0.35);
}
.drive-label { padding: 16px 22px 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3); }
.ko .drive-label { letter-spacing: 0.02em; }
.drive-row { display: flex; align-items: center; gap: 14px; padding: 12px 22px; min-width: 0; }
.drive-row + .drive-row { border-top: 1px solid var(--rim); }
.drive-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e2651c;
  color: #fff;
}
.drive-icon svg { width: 19px; height: 19px; }
.drive-icon.blue { background: #3d8bf2; }
.drive-text { flex: 1; min-width: 0; }
.drive-text strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.drive-text small { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.35; }
.drive-switch { flex: none; position: relative; width: 50px; height: 30px; border-radius: 15px; background: #e2651c; }
.drive-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.drive-book { display: flex; align-items: center; gap: 14px; padding: 14px 22px 16px; border-top: 1px solid var(--rim); }
.drive-book img { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; object-position: 50% 12%; }
.drive-book .drive-text strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-bar { display: block; position: relative; height: 4px; margin-top: 8px; border-radius: 2px; background: rgba(96, 56, 24, 0.12); overflow: hidden; }
.drive-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 64%; border-radius: 2px; background: #e2651c; animation: drive-up 6s ease-in-out infinite; }
@keyframes drive-up {
  0% { width: 4%; opacity: 1; }
  80% { width: 100%; opacity: 1; }
  92% { width: 100%; opacity: 0; }
  100% { width: 4%; opacity: 0; }
}

/* ---- free, no ads, no subscription ---- */
.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 { position: relative; text-align: center; padding: 96px 0 0; }
.install .intro { margin-left: auto; margin-right: auto; }
.install .actions { justify-content: center; }
.install .bubble.one { left: 6%; top: 80px; width: 84px; height: 84px; font-size: 84px; }
.install .bubble.two { right: 9%; top: 210px; width: 54px; height: 54px; font-size: 54px; }
.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); }

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 ----
   Dark over the light page, as the app's card is over a light screen.
   GlassCast's mini.js moves it; these are only its colors. */
.mini {
  --mini-surface: #ffc59d;
  --mini-button: #3e1e10;
  --mini-ink: #fff4ec;
  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 40px rgba(80, 30, 5, 0.32), 0 2px 6px rgba(80, 30, 5, 0.18);
}
.mini-shadow {
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(80, 30, 5, 0.4);
  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 (prefers-reduced-motion: reduce) {
  .bubble, .drive-bar span { animation: 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; }
  .hero .glow { left: -20%; }
  .top nav .wide-only { display: none; }
  .hero-phone .phone { width: min(320px, 82%); }
  .hero-phone .bubble.one { left: 2%; top: 200px; }
  .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, .sync { margin-top: 72px; border-radius: 28px; }
  .sync { grid-template-columns: minmax(0, 1fr); }
  .trio { margin-top: 72px; border-radius: 28px; }
  .trio-phones { gap: 8px; }
  .speeds { gap: 6px; }
  .speeds span { min-width: 0; padding: 6px 10px; font-size: 14px; }
  .install .bubble { display: none; }
}
