/* =========================================================================
   Pink Player — website ("In the Tab" direction)
   ========================================================================= */

:root {
  color-scheme: light;
  --ground: #eef0f4;
  --surface: #ffffff;
  --ink: #121418;
  --dim: #5b616e;
  --line: #dde0e6;
  --line-soft: #eceef2;
  --chrome: #e3e6ec;
  --pink: #ff4d96;
  --pink-text: #c81e66;
  --pink-display: #d4206b;
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--pink-text); }
a:hover { color: #9e1450; }

:focus-visible {
  outline: 2px solid var(--pink-text);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand svg { flex-shrink: 0; }
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dim);
  font-size: 15px;
  text-decoration: none;
}
.nav-link:hover { color: var(--ink); }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font: 600 16px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 120ms ease, background-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-sm { height: 44px; padding: 0 18px; border-radius: 12px; font-size: 15px; }
.btn-lg { height: 54px; padding: 0 24px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2d35; color: #fff; }
.btn-pink { background: var(--pink); color: var(--ink); font-weight: 700; }
.btn-pink:hover { color: var(--ink); filter: brightness(1.06); }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero { padding-top: 56px; }
.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 56px;
}
.display {
  flex: 1 1 560px;
  margin: 0;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 650;
  font-stretch: 85%;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.display span { display: block; }
.display .accent { color: var(--pink-display); }
.hero-side {
  flex: 1 1 340px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.lede {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--dim);
  text-wrap: pretty;
}
.lede strong {
  color: var(--ink);
  font-weight: 600;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--dim);
}

/* Browser window illustration */
.window {
  margin-top: 56px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 60px 120px -40px rgba(18, 20, 24, 0.35), 0 0 0 1px rgba(18, 20, 24, 0.08);
  overflow: hidden;
}
/* A busy tab strip: eleven tabs squeezed like a real browser, YouTube Music buried in the middle */
.window-tabs {
  height: 46px;
  padding: 0 8px 0 14px;
  background: var(--chrome);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.window-dots {
  align-self: center;
  display: flex;
  flex-shrink: 0;
  gap: 7px;
  margin-right: 12px;
}
.window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c9ced8;
}
.window-tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 220px;
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--dim);
}
.window-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 1px;
  background: #c4c9d3;
}
.window-dots + .window-tab::before,
.window-tab.is-active::before,
.window-tab.is-active + .window-tab::before { display: none; }
.window-tab svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.window-tab .solid { fill: currentColor; stroke: none; }
.window-tab span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-tab .audible {
  width: 13px;
  height: 13px;
  margin-left: auto;
}
.window-tab.is-active {
  border-radius: 10px 10px 0 0;
  background: var(--surface);
  color: var(--ink);
}
.window-tab.is-music { color: var(--ink); }
.window-tab.is-music svg { color: var(--pink-text); }
.window-new {
  flex-shrink: 0;
  align-self: center;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
}
.window-new svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.window-bar {
  height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid #e8eaef;
  display: flex;
  align-items: center;
  gap: 12px;
}
.window-bar > svg { flex-shrink: 0; }
.window-url {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  background: #f1f3f6;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--dim);
}
.window-url svg { flex-shrink: 0; }
.window-url span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-ext {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--chrome);
  flex-shrink: 0;
}
.window-pp {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffe0ee;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.window-stage {
  position: relative;
  height: 540px;
}
.doc {
  max-width: 640px;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.doc span {
  display: block;
  height: 11px;
  border-radius: 6px;
  background: #eef0f4;
}
.doc .doc-title { height: 30px; width: 62%; border-radius: 8px; background: var(--chrome); }
.doc .doc-meta { width: 28%; margin-bottom: 18px; }
.doc .doc-h { height: 18px; width: 38%; background: var(--chrome); margin: 8px 0 6px; }
.doc .doc-box {
  height: auto;
  padding: 18px 20px;
  border-radius: 12px;
  background: #f6f7f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.doc .doc-box span { background: var(--chrome); }
.window-popup {
  position: absolute;
  right: 28px;
  top: 8px;
  z-index: 2;
}
/* The live demo: the extension's real popup in a frame (demo/popup.html). */
.pp-frame {
  width: 360px;
  height: 466px;
  border-radius: 16px;
  overflow: hidden;
  background: #efe9f7;
  box-shadow: 0 40px 80px -24px rgba(18, 20, 24, 0.45), 0 0 0 1px rgba(18, 20, 24, 0.06);
}
.pp-frame iframe {
  display: block;
  width: 360px;
  height: 466px;
  border: 0;
}
.demo-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--dim);
}

/* Search */
.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 64px;
}
.feature-copy { flex: 1 1 360px; min-width: 0; }
.feature-stage {
  flex: 1 1 440px;
  min-width: 0;
  padding: 44px 0;
  border-radius: 24px;
  display: flex;
  justify-content: center;
}
.feature-stage img {
  display: block;
  width: 360px;
  max-width: calc(100% - 32px);
  height: auto;
  border-radius: 16px;
  box-shadow: 0 30px 60px -28px rgba(18, 20, 24, 0.4), 0 0 0 1px rgba(18, 20, 24, 0.06);
}
.ticks {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 32px;
  line-height: 1.55;
  color: var(--dim);
}
.ticks li strong { color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffe0ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c81e66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */
.section { padding-top: 140px; }
.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-text);
}
.title {
  margin: 14px 0 0;
  max-width: 720px;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 650;
  font-stretch: 85%;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.title-sm {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.04;
}
.copy {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--dim);
}

/* Three tabs */
.trio {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 40px 24px;
}
.trio-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trio-stage {
  margin-bottom: 8px;
  padding: 28px 0;
  border-radius: 24px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.trio-stage img {
  display: block;
  width: 310px;
  max-width: calc(100% - 32px);
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 60px -28px rgba(18, 20, 24, 0.4), 0 0 0 1px rgba(18, 20, 24, 0.06);
}
.tint-lilac { background: #e9e4f6; }
.tint-sky { background: #e1ecf6; }
.tint-blush { background: #f6e2ec; }
.trio-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.trio-card p {
  margin: 0;
  line-height: 1.55;
  color: var(--dim);
}
.trio-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Real screenshots: one row, equal heights (columns follow each image's aspect ratio) */
.wild {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.8714fr 2.3297fr;
  gap: 24px;
  align-items: start;
}
.wild figure { margin: 0; min-width: 0; }
.wild a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(18, 20, 24, 0.35), 0 0 0 1px rgba(18, 20, 24, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.wild a:hover {
  transform: translateY(-2px);
  box-shadow: 0 36px 70px -30px rgba(18, 20, 24, 0.4), 0 0 0 1px rgba(18, 20, 24, 0.1);
}
.wild img {
  display: block;
  width: 100%;
  height: auto;
}
.wild figcaption {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--dim);
}

/* Keyboard */
.panel {
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(18, 20, 24, 0.06), 0 30px 60px -40px rgba(18, 20, 24, 0.25);
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 64px;
}
.panel > * {
  flex: 1 1 340px;
  min-width: 0;
}
.keys { margin: 0; }
.keys > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e8eaef;
}
.keys > div:last-child { border-bottom: 0; }
.keys dt { font-size: 17px; font-weight: 600; }
.keys dd {
  margin: 0;
  display: flex;
  gap: 6px;
}
.keys .note { font-size: 15px; color: var(--dim); }
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: #f6f7f9;
  box-shadow: inset 0 -2px 0 rgba(18, 20, 24, 0.12), 0 0 0 1px rgba(18, 20, 24, 0.12);
  color: var(--ink);
  font: 600 15px/1 var(--font);
}
kbd.wide { padding: 0 16px; }
.copy kbd {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 13px;
  vertical-align: 1px;
}

/* Small details */
.details {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  column-gap: 32px;
  border-top: 1px solid var(--line);
}
.detail {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.detail-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(18, 20, 24, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.detail-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.detail h3 { margin: 0; font-size: 18px; font-weight: 650; }
.detail p {
  margin: 4px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--dim);
}

/* Privacy */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
}
.split > :first-child { flex: 1 1 320px; min-width: 0; }
.split > :last-child { flex: 1.4 1 480px; min-width: 0; }
.facts {
  margin: 0;
  padding: 6px 28px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(18, 20, 24, 0.06);
}
.facts > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--dim); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* Closing call to action */
.cta {
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  padding: clamp(32px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
}
.cta-copy { flex: 1 1 420px; min-width: 0; }
.cta h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 650;
  font-stretch: 85%;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.cta p {
  margin: 14px 0 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

/* Footer */
.site-footer .wrap {
  padding-top: 56px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--dim);
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.site-footer a:hover { color: var(--pink-text); }

/* -------------------------------------------------------------------------
   Privacy policy page
   ------------------------------------------------------------------------- */
.policy {
  max-width: 760px;
  margin: 24px auto 0;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(18, 20, 24, 0.06);
  line-height: 1.65;
}
.policy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 650;
  font-stretch: 85%;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.policy .updated { margin: 10px 0 0; color: var(--dim); font-size: 15px; }
.policy h2 {
  margin: 40px 0 10px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.policy p,
.policy li { color: #33363e; }
.policy ul { padding-left: 22px; }
.policy li { margin: 6px 0; }
.policy code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--ground);
  font-size: 0.9em;
}

/* -------------------------------------------------------------------------
   Small screens
   ------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .section { padding-top: 96px; }
  .window-dots { display: none; }
  .window-tab:not(.is-active) { flex: 0 0 24px; padding: 0 5px; }
  .window-tab:not(.is-active) span,
  .window-tab .audible { display: none; }
  .window-tab.is-active { flex: 0 0 auto; max-width: 128px; }
  .doc { display: none; }
  .window-stage { height: 430px; }
  .window-popup { right: auto; left: 50%; transform: translateX(-50%); }
  .window-popup .pp-frame { zoom: 0.84; }
  .wild { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .wild a { transition: none; }
}
