/* pulseradio.app: Pulse's own look (deep teal night, photo backgrounds, liquid glass on what floats, light Figtree). */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('/fonts/figtree.woff2') format('woff2-variations'), url('/fonts/figtree.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --ink: #0d2a2a;        /* page: the app's focus night */
  --ink-2: #102f36;      /* a step lighter, for panels */
  --deep: #081a1c;       /* under the photos */
  --text: #f2f6f5;
  --muted: rgb(242 246 245 / 0.7);
  --faint: rgb(242 246 245 / 0.5);
  --line: rgb(242 246 245 / 0.14);
  --sea: #8ee6d8;        /* focus accent, the brand colour */
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --glass-bg: linear-gradient(160deg, rgb(255 255 255 / 0.17), rgb(255 255 255 / 0.05) 48%, rgb(255 255 255 / 0.1)), rgb(20 30 34 / 0.38);
  --glass-edge: inset 0 1px 0.5px rgb(255 255 255 / 0.5), inset 0 0 0 0.5px rgb(255 255 255 / 0.24);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 380;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 340; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem); }
h3 { font-size: 1.35rem; font-weight: 450; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; padding: 0.6rem 1rem; border-radius: 999px; background: #fff; color: #10151b; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.7rem 1.35rem; border-radius: 999px;
  font: inherit; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn.solid { background: #fff; color: #10151b; font-size: 1.05rem; padding: 0.85rem 1.6rem; }
.btn.solid:hover { background: #e6f7f4; }
.btn.glass {
  background: var(--glass-bg); color: var(--text); box-shadow: var(--glass-edge), 0 8px 24px rgb(0 0 0 / 0.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7);
}
.btn.glass:hover { background: linear-gradient(160deg, rgb(255 255 255 / 0.24), rgb(255 255 255 / 0.08) 48%, rgb(255 255 255 / 0.14)), rgb(20 30 34 / 0.38); }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: max(14px, env(safe-area-inset-top)) max(var(--gutter), calc((100% - var(--max)) / 2)) 14px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.top.scrolled {
  background: rgb(13 42 42 / 0.55); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.3rem; font-weight: 500; text-decoration: none; letter-spacing: -0.01em; }
.brand .logo { width: 1.75rem; height: 1.75rem; color: var(--sea); }
.top-right { display: flex; align-items: center; gap: 0.6rem; }
.langs {
  display: flex; padding: 3px; border-radius: 999px; background: var(--glass-bg); box-shadow: var(--glass-edge);
  -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7);
}
.langs a { padding: 0.45rem 0.7rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500; text-decoration: none; color: var(--muted); line-height: 1.2; }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { background: rgb(255 255 255 / 0.16); color: var(--text); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; display: grid; align-items: center;
  padding: 7rem var(--gutter) 12rem;
  background:
    linear-gradient(to top, var(--ink) 0%, rgb(13 42 42 / 0) 38%),
    linear-gradient(100deg, rgb(6 20 22 / 0.78) 0%, rgb(6 20 22 / 0.42) 48%, rgb(6 20 22 / 0.05) 78%),
    url('/img/hero.jpg') center 40% / cover no-repeat var(--deep);
}
.hero-copy { width: min(var(--max), 100%); margin-inline: auto; }
.hero h1 {
  font-size: clamp(3rem, 1.5rem + 6vw, 6.5rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1.02;
}
.hero h1 span { display: block; }
.lead { max-width: 36rem; margin-top: 1.5rem; font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); color: rgb(242 246 245 / 0.84); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.25rem; margin-top: 2.25rem; }
.cta-note { max-width: 19rem; font-size: 0.92rem; line-height: 1.45; color: var(--muted); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: 3.5rem; width: 100%; height: 120px; z-index: -1; }

/* ---------- section heads ---------- */
.modes, .pulse, .player, .faq { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }
.section-head { display: grid; gap: 1rem; max-width: 40rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* ---------- modes ---------- */
.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 0.6rem + 1vw, 1.5rem); }
.mode { display: flex; flex-direction: column; }
.mode img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: 0 20px 50px rgb(0 0 0 / 0.28); }
.mode:nth-child(1) img { object-position: 42% center; }
.mode:nth-child(2) img { object-position: 58% center; }
.mode:nth-child(3) img { object-position: 72% center; }
.mode:nth-child(4) img { object-position: 60% center; }
.mode-body { display: grid; gap: 0.6rem; padding: 1.15rem 0.2rem 0; }
.mode h3 { color: var(--c); font-size: 1.6rem; font-weight: 400; }
.mode-body > p { color: var(--muted); }

/* ---------- the pulse ---------- */
.pulse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.pulse-copy { display: grid; gap: 1.1rem; max-width: 34rem; }
.pulse-copy h2 { margin-bottom: 0.4rem; }
.pulse-copy p { color: rgb(242 246 245 / 0.82); font-size: 1.125rem; }
.levels-panel {
  border-radius: 28px; padding: clamp(0.75rem, 0.4rem + 1vw, 1.25rem);
  background: linear-gradient(160deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.02) 50%, rgb(255 255 255 / 0.05)), var(--ink-2);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255 / 0.22), inset 0 0 0 0.5px rgb(255 255 255 / 0.1), 0 30px 70px rgb(0 0 0 / 0.25);
}
.levels { margin: 0; padding: 0; list-style: none; }
.level { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 1rem; padding: 1rem 0.9rem; border-radius: 18px; }
.level + .level { border-top: 1px solid rgb(242 246 245 / 0.07); }
.level.is-default { background: rgb(142 230 216 / 0.07); }
.level-text { display: grid; gap: 0.15rem; }
.level-text strong { font-weight: 500; font-size: 1.05rem; }
.level-text span { font-size: 0.9rem; line-height: 1.45; color: var(--muted); }
.wave { width: 100%; height: 56px; }

/* ---------- player ---------- */
.shots { position: relative; padding-bottom: clamp(0rem, -2rem + 6vw, 3rem); }
.shot-desk, .shot-phone { margin: 0; }
.shot-desk {
  width: min(100%, 1040px); padding: 8px; border-radius: 26px;
  background: var(--glass-bg); box-shadow: var(--glass-edge), 0 40px 90px rgb(0 0 0 / 0.4);
}
.shot-desk img { width: 100%; border-radius: 19px; }
.shot-phone {
  position: absolute; right: 0; bottom: 0; width: clamp(150px, 6rem + 9vw, 250px); padding: 6px; border-radius: 34px;
  background: var(--glass-bg); box-shadow: var(--glass-edge), 0 30px 70px rgb(0 0 0 / 0.45);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.shot-phone img { width: 100%; border-radius: 28px; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 1rem + 2vw, 3rem); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.point { display: grid; gap: 0.45rem; align-content: start; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.point h3 { font-size: 1.2rem; }
.point p { color: var(--muted); }

/* ---------- price ---------- */
.price {
  display: grid; padding: clamp(5rem, 3rem + 8vw, 9rem) var(--gutter);
  background:
    linear-gradient(to bottom, var(--ink) 0%, rgb(13 42 42 / 0) 22%, rgb(13 42 42 / 0) 78%, var(--ink) 100%),
    url('/img/calm.jpg') center / cover no-repeat var(--deep);
}
.price-card {
  justify-self: center; width: min(36rem, 100%); display: grid; gap: 1.1rem; justify-items: start;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); border-radius: 30px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.17), rgb(255 255 255 / 0.05) 48%, rgb(255 255 255 / 0.1)), rgb(10 30 34 / 0.42);
  box-shadow: var(--glass-edge), 0 30px 70px rgb(0 0 0 / 0.3);
  -webkit-backdrop-filter: blur(36px) saturate(1.7); backdrop-filter: blur(36px) saturate(1.7);
}
.price-card p { color: rgb(242 246 245 / 0.84); font-size: 1.125rem; }
.price-card .btn { margin-top: 0.5rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 2rem clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0.1rem; cursor: pointer; list-style: none; font-size: 1.15rem; font-weight: 420;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 0.75rem; height: 0.75rem; margin-right: 0.3rem;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-25%) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(15%) rotate(225deg); }
.faq details p { padding: 0 0.1rem 1.3rem; max-width: 40rem; color: var(--muted); }
.faq details a { color: var(--text); text-underline-offset: 3px; }

/* ---------- footer ---------- */
.foot { padding: 2.5rem 0 max(2.5rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 2rem; }
.foot .brand { font-size: 1.1rem; color: var(--text); margin-right: auto; }
.foot .brand .logo { width: 1.4rem; height: 1.4rem; }
.foot a { text-underline-offset: 3px; }
.foot-langs { display: flex; gap: 1rem; }
.foot-langs a { text-decoration: none; }
.foot-langs a[aria-current] { color: var(--text); text-decoration: underline; }

/* ---------- 404 ---------- */
.plain .top { background: transparent; }
.nf { min-height: 80svh; display: grid; align-content: center; justify-items: start; gap: 1.2rem; width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; padding-top: 6rem; }
.nf h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); font-weight: 300; }
.nf p { color: var(--muted); }
.nf-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode img { aspect-ratio: 16 / 10; }
  .pulse { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .top { padding-block: max(10px, env(safe-area-inset-top)) 10px; }
  .top .btn.glass { min-height: 2.4rem; padding: 0.5rem 1rem; font-size: 0.95rem; }
  .langs a { padding: 0.4rem 0.55rem; }
  .hero { align-items: end; padding-top: 6.5rem; padding-bottom: 8.5rem; background-position: 30% 40%, center, 22% 40%; }
  .hero-wave { bottom: 1.5rem; height: 84px; }
  .cta-row .btn { width: 100%; }
  .cta-note { max-width: none; }
  .mode-grid { grid-template-columns: minmax(0, 1fr); }
  .shots { padding-bottom: 0; }
  .shot-desk { padding: 5px; border-radius: 18px; }
  .shot-desk img { border-radius: 14px; }
  .shot-phone { display: none; }
  .points { grid-template-columns: minmax(0, 1fr); }
  .level { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .wave { height: 44px; }
  .foot .brand { width: 100%; }
}
@media (max-width: 400px) {
  .top .brand span { display: none; }
}
