/* Episodic website. Colors match the app (src/constants/theme.ts). */

:root {
  --bg: #ffffff;
  --bg-soft: #f2f3f5;
  --bg-selected: #e3e5ea;
  --text: #16181d;
  --text-2: #5f6570;
  --line: #dadde3;
  --tint: #b0216a;
  --on-tint: #ffffff;
  --tint-soft: #f8e7f0;
  --device: #16181d;
  --shadow: 0 40px 80px -30px rgb(22 24 29 / 0.4);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f12;
    --bg-soft: #1c1e23;
    --bg-selected: #2a2d33;
    --text: #f2f3f5;
    --text-2: #a3a9b3;
    --line: #30343b;
    --tint: #ff74b4;
    --on-tint: #1a0a12;
    --tint-soft: #2b1621;
    --device: #2a2d33;
    --shadow: 0 40px 80px -30px rgb(0 0 0 / 0.85);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: var(--tint);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--tint);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 24px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
}

.skip:focus {
  left: 12px;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 30px;
  height: 30px;
}

.header-nav {
  display: flex;
  gap: 4px;
}

.header-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--text);
}

.site-footer {
  padding-block: 32px 40px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  gap: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.attribution {
  max-width: 46em;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  background: var(--tint);
  color: var(--on-tint);
}

.button-primary:hover {
  filter: brightness(1.08);
}

.button-quiet {
  background: var(--bg-soft);
  color: var(--text);
}

.button-quiet:hover {
  background: var(--bg-selected);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--tint-soft);
  color: var(--tint);
  font-size: 16px;
  font-weight: 600;
}

.soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Home: hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 48px 64px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -15%;
  width: min(760px, 110vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 16%, transparent), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 880px) {
  .hero {
    padding-block: 80px 72px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--tint);
  font-size: 15px;
  font-weight: 650;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 32em;
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.fine {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 15px;
}

/* Home: phone mockup. Sizes inside the screen use container units, so it scales as one piece. */

.phone {
  justify-self: center;
  width: min(300px, 82vw);
  aspect-ratio: 9 / 19.5;
  padding: 11px;
  border-radius: 52px;
  background: var(--device);
  box-shadow: var(--shadow);
}

.screen {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 41px;
  background: var(--bg);
  color: var(--text);
}

.ph-status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 3.5cqw 7cqw 0;
  font-size: 5cqw;
  font-weight: 650;
}

.ph-island {
  width: 30cqw;
  height: 9.5cqw;
  border-radius: 5cqw;
  background: #000;
}

.ph-battery {
  justify-self: end;
  width: 8.5cqw;
  height: 4.2cqw;
  border: 0.55cqw solid currentColor;
  border-radius: 1.4cqw;
  box-shadow: inset 0 0 0 0.7cqw var(--bg), inset 0 0 0 5cqw currentColor;
}

.ph-title {
  margin: 7cqw 6cqw 1cqw;
  font-size: 11cqw;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ph-label {
  margin: 5cqw 6cqw 2.2cqw;
  color: var(--text-2);
  font-size: 4.4cqw;
  font-weight: 600;
}

.ph-group {
  margin: 0 4cqw;
  padding: 0 3.5cqw;
  border-radius: 5cqw;
  background: var(--bg-soft);
  list-style: none;
}

.ph-row {
  display: flex;
  align-items: center;
  gap: 3.5cqw;
  padding: 3cqw 0;
}

.ph-row + .ph-row {
  border-top: 1px solid var(--line);
}

.ph-poster {
  flex: none;
  width: 12.5cqw;
  aspect-ratio: 2 / 3;
  border-radius: 1.6cqw;
}

.ph-poster.a {
  background: linear-gradient(165deg, #3d7ab0, #13283b 72%);
}

.ph-poster.b {
  background: linear-gradient(165deg, #e2a04a, #5c2a17 78%);
}

.ph-poster.c {
  background: linear-gradient(165deg, #7fb59a, #1d3a32 75%);
}

.ph-poster.d {
  background: linear-gradient(165deg, #c25a8a, #2c1530 75%);
}

.ph-poster.e {
  background: linear-gradient(165deg, #8f8bd6, #22224a 75%);
}

.ph-text {
  display: grid;
  flex: 1;
  gap: 0.6cqw;
  min-width: 0;
}

.ph-name {
  overflow: hidden;
  font-size: 5cqw;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ph-ep {
  overflow: hidden;
  font: 3.9cqw/1.3 var(--mono);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ph-sub {
  color: var(--text-2);
  font-size: 3.7cqw;
}

.ph-check {
  flex: none;
  width: 7.5cqw;
  height: 7.5cqw;
  border: 0.6cqw solid var(--tint);
  border-radius: 50%;
}

.ph-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: auto;
  padding: 3cqw 2cqw 7cqw;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 3.1cqw;
  font-weight: 500;
}

.ph-tab {
  display: grid;
  justify-items: center;
  gap: 1cqw;
}

.ph-tab svg {
  width: 6.5cqw;
  height: 6.5cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph-tab.on {
  color: var(--tint);
}

/* Home: sections */

.section {
  padding-block: 64px;
}

.section-head {
  max-width: 40em;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 1.1rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.feature p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 16px;
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--tint);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.band {
  display: grid;
  gap: 32px;
  padding: 40px 24px;
  border-radius: 28px;
  background: var(--tint-soft);
}

@media (min-width: 880px) {
  .band {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding: 56px;
  }
}

.band h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
}

.band p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 1.1rem;
}

.band .more {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
}

.checks {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 550;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checks svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.checks circle {
  fill: var(--tint);
}

.checks path {
  fill: none;
  stroke: var(--on-tint);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.closing {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
}

.closing p {
  color: var(--text-2);
  font-size: 1.1rem;
}

.closing .cta {
  justify-content: center;
  margin-top: 8px;
}

/* Text pages: privacy policy and support */

.page {
  padding-block: 48px 72px;
}

.prose {
  max-width: 720px;
  margin-inline: auto;
}

.prose h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
}

.prose .intro {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.15rem;
}

.prose .updated {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
}

.prose h2 {
  margin: 48px 0 12px;
  font-size: 1.55rem;
  font-weight: 750;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.prose p,
.prose ul,
.prose .table-wrap {
  margin-bottom: 16px;
}

.prose ul {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 6px;
}

.prose :target {
  scroll-margin-top: 24px;
}

.summary {
  margin: 32px 0;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.summary h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.summary ul {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

th,
td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 650;
}

thead th {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin: 32px 0 8px;
}

.card {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--tint);
  font-size: 1.4em;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > p {
  margin: -4px 0 18px;
}

/* Status pages: sign-in return and not found */

.status {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding-block: 56px;
}

.status-card {
  max-width: 540px;
  text-align: center;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--tint-soft);
  color: var(--tint);
}

.status-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-card h1 {
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  font-weight: 800;
}

.status-card p {
  margin-top: 14px;
  color: var(--text-2);
}

.status-card .button {
  margin-top: 28px;
}
