/* gabagoolOS site. One calm column of features, each beside a real R1.
   Type is the player's own: Source Sans 3, with Shrikhand saved for the
   house special. Colour is the player's teal, plus the R1's own rims. */

@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Shrikhand"; src: url("fonts/Shrikhand-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #ffffff;
  --band: #f3f6f8;
  --card: #ffffff;
  --text: #16202a;
  --sub: #4d5b68;
  --dim: #6a7784;
  --line: rgba(22, 32, 42, .1);
  --accent: #0f766e;          /* the player's teal, dark enough for text on white */
  --on-accent: #ffffff;
  --pink: #e8457f;
  --shadow: 0 30px 60px -30px rgba(22, 32, 42, .35);
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fun: "Shrikhand", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1219; --band: #121a23; --card: #18212c; --text: #f2f5f8; --sub: #b3bfcb; --dim: #8d99a6;
    --line: rgba(255, 255, 255, .09); --accent: #72d8cd; --on-accent: #10202c; --pink: #ff6fa5;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1219; --band: #121a23; --card: #18212c; --text: #f2f5f8; --sub: #b3bfcb; --dim: #8d99a6;
  --line: rgba(255, 255, 255, .09); --accent: #72d8cd; --on-accent: #10202c; --pink: #ff6fa5;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
p { margin: 0 0 14px; }
p, li, summary, figcaption, dd { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
code { font: 500 .88em/1 ui-monospace, "SF Mono", Menlo, monospace; background: var(--band); padding: .18em .4em; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1080px, 100%); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--card); padding: 8px 12px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a.opt { color: var(--sub); text-decoration: none; font-size: 16px; }
nav a.opt:hover { color: var(--text); }
.theme { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--sub); cursor: pointer; }
.theme svg { width: 18px; height: 18px; } .theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; } :root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: block; } :root:not([data-theme="light"]) .theme .moon { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.06); } .btn:active { transform: scale(.97); }
.btn-small { height: 36px; padding: 0 16px; font-size: 15px; }
.btn-big { height: 58px; padding: 0 34px; font-size: 19px; }
.link { color: var(--text); font-weight: 600; text-decoration: none; }
.link:hover { color: var(--accent); }

/* the R1 itself: a coloured translucent rim, black glass, a plain chin, buttons on the right */
.r1 { --rim: #f0862e; position: relative; width: 270px; max-width: 100%; background: #0a0c0f; border: 5px solid var(--rim);
  border-radius: 32px; padding: 16px 15px 54px; box-shadow: 0 0 0 1px rgba(0,0,0,.3), inset 0 0 0 1.5px rgba(255,255,255,.16), var(--shadow); }
.r1::after { content: ""; position: absolute; inset: 0; border-radius: 27px; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,255,255,.1), transparent 36%); }
.r1::before { content: ""; position: absolute; right: -9px; top: 24%; width: 4px; height: 14%; border-radius: 0 3px 3px 0;
  background: var(--rim); filter: brightness(.88); box-shadow: 0 64px 0 var(--rim), 0 100px 0 var(--rim); }
.r1 img { width: 100%; aspect-ratio: 480 / 800; border-radius: 4px; }
.c-orange { --rim: #f0862e; } .c-blue { --rim: #4f86e0; } .c-green { --rim: #69bb72; }
.c-white { --rim: #e4e9ee; } .c-black { --rim: #2a2e35; }
:root[data-theme="dark"] .c-black { --rim: #3a404a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-black { --rim: #3a404a; } }

/* the Songs list scrolls inside its R1 as the page scrolls past */
.screen { position: relative; overflow: hidden; border-radius: 4px; }
.list-window { position: absolute; left: 0; top: 20.75%; width: 94.17%; height: 67.4%; overflow: hidden; }
.list-window img { width: 100%; aspect-ratio: auto; border-radius: 0; transform: translateY(var(--list, 0px)); will-change: transform; }

/* each R1 catches the light: the glass glare follows the pointer, the player
   leans toward it a little, and the page around it takes on its rim colour */
/* one soft light for the whole page, under the pointer, in the colour of the R1 it's near */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(820px circle at var(--wx, 70%) var(--wy, 50%), color-mix(in srgb, var(--wash, #4f86e0) 7%, transparent), transparent 72%);
  transition: opacity .9s ease; }
body.lit::after { opacity: 1; }
body { position: relative; z-index: 0; }
.feature .r1 { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), box-shadow .9s ease; }
.feature .r1::after { background: radial-gradient(circle at var(--gx, 30%) var(--gy, 15%), rgba(255,255,255,.09), transparent 50%),
  linear-gradient(150deg, rgba(255,255,255,.08), transparent 36%); }
.feature.lit .r1 { box-shadow: 0 0 0 1px rgba(0,0,0,.3), inset 0 0 0 1.5px rgba(255,255,255,.16), var(--shadow),
  0 0 80px -24px color-mix(in srgb, var(--rim) 35%, transparent); }

/* R1s you can try: tap the screen for the next one */
.try { margin: 0; display: flex; flex-direction: column; align-items: center; }
.try .r1 { width: 270px; }
.try .screen { all: unset; box-sizing: border-box; display: block; width: 100%; position: relative; overflow: hidden; border-radius: 4px; cursor: pointer; }
.try .screen::before { content: ""; display: block; padding-top: 166.667%; }
.try .screen:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.try .screen img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.try .screen img.in-right { animation: push-in .42s cubic-bezier(.2, .8, .2, 1) both; }
.try .screen img.out-left { animation: push-out .42s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes push-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes push-out { from { transform: none; filter: none; } to { transform: translateX(-28%); filter: brightness(.55); } }
.try-bar { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 15px; color: var(--sub); min-height: 24px; }
.try-name { font-weight: 600; color: var(--text); }
.dots { display: flex; gap: 0; margin-inline: -9px; }
.dots button { all: unset; position: relative; width: 24px; height: 24px; cursor: pointer; }
.dots button::before { content: ""; position: absolute; inset: 8.5px; border-radius: 50%; background: var(--line); transition: background .2s ease, transform .2s ease; }
.dots button[aria-current="true"]::before { background: var(--accent); transform: scale(1.25); }
.dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 50%; }
.try-hint { font-size: 14px; color: var(--dim); transition: opacity .4s ease; }
.tried .try-hint { opacity: 0; }
@media (hover: hover) { .try .r1:hover { --shadow: 0 34px 64px -28px rgba(22, 32, 42, .42); } }

/* Your taste: the card really goes */
.taste .card { position: absolute; left: 12.5%; top: 15%; width: 75%; height: 46.25%; border-radius: 0; pointer-events: none; opacity: 0; }
.taste .card.go-right { animation: fly-right .55s cubic-bezier(.3, .1, .4, 1) both; }
.taste .card.go-left { animation: fly-left .55s cubic-bezier(.3, .1, .4, 1) both; }
.taste .card.go-up { animation: fly-up .55s cubic-bezier(.3, .1, .4, 1) both; }
.taste .card.come-back { animation: come-back .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fly-right { from { opacity: 1; } to { opacity: 0; transform: translate(130%, 8%) rotate(18deg); } }
@keyframes fly-left { from { opacity: 1; } to { opacity: 0; transform: translate(-130%, 8%) rotate(-18deg); } }
@keyframes fly-up { from { opacity: 1; } 30% { transform: scale(1.04); } to { opacity: 0; transform: translateY(-120%) scale(.9); } }
@keyframes come-back { from { opacity: 1; transform: translate(-120%, 6%) rotate(-14deg); } to { opacity: 1; transform: none; } }
.taste .screen > img:first-child.pop { animation: pop .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { transform: scale(.985); filter: brightness(.9); } to { transform: none; } }
.taste .hot { all: unset; position: absolute; top: 66.9%; height: 9.4%; border-radius: 50%; cursor: pointer; }
.taste .hot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.taste .undo { left: 16.7%; width: 11%; } .taste .skip { left: 32.3%; width: 15.6%; }
.taste .keep { left: 52%; width: 15.6%; } .taste .love { left: 71.9%; width: 11.5%; }
.taste .screen { position: relative; }

/* sections slide up a little as they arrive */
.pre { transform: translateY(26px); opacity: .25; }
.in { transform: none; opacity: 1; transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .8s ease; }

/* small kindnesses */
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.btn { box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--accent) 90%, transparent); }
nav a.opt { position: relative; }
nav a.opt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform .25s ease; }
nav a.opt:hover::after { transform: scaleX(1); }
.link span { display: inline-block; transition: transform .2s ease; } .link:hover span { transform: translateX(3px); }
.faq details[open] p { animation: open .35s ease both; }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.heart { color: var(--pink); }
@media (prefers-reduced-motion: no-preference) {
  .hero-shot .front { animation: float-a 7s ease-in-out infinite; }
  .hero-shot .back { animation: float-b 8s ease-in-out infinite; }
}
@keyframes float-a { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-10px); } }
@keyframes float-b { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-6px); } }

/* hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 66px); line-height: 1.04; margin-bottom: 22px; }
.lede { font-size: 21px; line-height: 1.55; color: var(--sub); max-width: 34ch; margin-bottom: 30px; }
.cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-shot { position: relative; height: 560px; }
.hero-shot .r1 { position: absolute; }
.hero-shot .front { width: 280px; left: 170px; top: 0; transform: rotate(4deg); z-index: 2; }
.hero-shot .back { width: 240px; left: 0; top: 80px; transform: rotate(-7deg); }

/* features: one at a time, alternating sides */
.feature { padding: 64px 0; }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature.flip .copy { order: 2; }
.feature h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; margin-bottom: 18px; }
.feature .copy p { color: var(--sub); max-width: 40ch; font-size: 19px; }
.feature .shot { display: flex; justify-content: center; }
.feature .shot.pair { gap: 24px; }
.feature .shot.pair .r1 { width: 230px; }
.feature .shot.pair .r1:last-child { margin-top: 56px; }
.new { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); border: 1px solid currentColor;
  border-radius: 999px; padding: 2px 12px; margin-bottom: 14px; }

/* the house special: the one loud moment */
.special { padding: 72px 0;
  background-color: #ffffff;
  background-image: linear-gradient(90deg, rgba(214, 64, 78, .30) 50%, transparent 0), linear-gradient(rgba(214, 64, 78, .30) 50%, transparent 0);
  background-size: 40px 40px; }
.special-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 48px 56px;
  border-radius: 28px; color: #2a1416; background: #ffffff; box-shadow: 0 24px 50px -28px rgba(90, 20, 30, .5); }
.special h2 { font: 400 clamp(38px, 4.4vw, 56px)/1.05 var(--fun); color: #8e1f2f; letter-spacing: 0; margin-bottom: 18px; }
.special-copy p { color: #4e3a34; font-size: 19px; }
.special .fine { font-size: 16px; color: #6c5850; margin: 0; }
.special .r1 { justify-self: center; width: 250px; transform: rotate(4deg); --shadow: 0 30px 50px -24px rgba(90, 20, 30, .55); }

/* worry-free */
.safe { padding: 72px 0; background: var(--band); }
.safe h2, .install h2, .faq h2, .download h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; margin-bottom: 30px; }
.safe ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.safe li { color: var(--sub); font-size: 18px; }
.safe strong { display: block; color: var(--text); font-size: 19px; margin-bottom: 6px; }

/* install */
.install { padding: 96px 0 72px; }
.install ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.install li { counter-increment: step; }
.install li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 600; margin-bottom: 16px; }
.install h3 { font-size: 21px; margin-bottom: 8px; }
.install li p { color: var(--sub); font-size: 17px; }
.after { margin-top: 28px; color: var(--sub); }

/* questions */
.faq { padding: 72px 0; }
.faq details { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; color: var(--dim); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--sub); padding-bottom: 20px; margin: 0; max-width: 62ch; }

/* download */
.download { padding: 96px 0; text-align: center; background: var(--band); }
.download h2 { margin-bottom: 10px; }
.download p { color: var(--sub); }
.download .btn-big { margin: 18px 0 22px; }
.download .more { font-size: 16px; }

footer { padding: 48px 0 64px; color: var(--sub); font-size: 16px; }
footer .small { font-size: 14px; color: var(--dim); max-width: 62ch; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  nav a.opt { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero .wrap, .feature .wrap, .special-card { grid-template-columns: 1fr; gap: 36px; }
  .hero-shot { height: 470px; max-width: 380px; width: 100%; margin-inline: auto; }
  .hero-shot .front { width: 230px; left: auto; right: 0; }
  .hero-shot .back { width: 210px; left: 0; }
  .feature { padding: 44px 0; }
  .feature.flip .copy { order: 0; }
  .feature .shot.pair .r1 { width: 46%; }
  .r1 { border-radius: 26px; padding: 12px 11px 40px; border-width: 4px; }
  .r1::after { border-radius: 22px; }
  .special { background-size: 28px 28px; padding: 48px 0; }
  .special-card { padding: 28px 24px 36px; }
  .safe ul, .install ol { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } .pre { transform: none; opacity: 1; } .feature .r1 { transform: none; } }

/* Cover Flow, held sideways: the R1 on its side */
/* turned a quarter clockwise: the chin to the left, the side keys along the bottom */
.r1.landscape { width: 480px; padding: 15px 16px 15px 54px; }
.r1.landscape img { aspect-ratio: 800 / 480; }
.r1.landscape::before { right: auto; top: auto; bottom: -9px; left: 58%; width: 14%; height: 4px; border-radius: 0 0 3px 3px;
  box-shadow: -64px 0 0 var(--rim), -100px 0 0 var(--rim); }
.feature.wide .wrap { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 860px) { .r1.landscape { width: 100%; padding: 10px 10px 10px 36px; } .feature.wide .wrap { grid-template-columns: 1fr; } }
