/* Styles the public Episode Recorder homepage, privacy policy, and support pages. */
:root {
  color-scheme: light;
  --ink: #171923;
  --muted: #596174;
  --line: #dfe3ea;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --accent: #ef4f5f;
  --accent-dark: #ca3444;
  --focus: #2f6fed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(circle at 82% 20%, rgba(239, 79, 95, 0.16), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 5rem);
  letter-spacing: -0.055em;
}

.lede {
  max-width: 700px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 1.16rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}

.hero-card {
  padding: 28px;
  border: 1px solid rgba(23, 25, 35, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(23, 25, 35, 0.12);
}

.hero-card img {
  display: block;
  width: 112px;
  height: 112px;
  margin-bottom: 20px;
}

.hero-card ul {
  margin: 0;
  padding-left: 20px;
}

.section {
  padding: 72px 0;
}

.section.soft {
  background: var(--soft);
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

.section-intro {
  max-width: 760px;
  margin: 0 0 34px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.card h3 {
  margin-top: 0;
}

.steps {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  padding: 22px 22px 22px 72px;
  border: 1px solid var(--line);
  border-radius: 14px;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: 19px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--ink);
  content: counter(steps);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.notice {
  padding: 20px;
  border-left: 4px solid var(--accent);
  background: #fff5f6;
}

.document {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.document h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.document h2 {
  margin-top: 42px;
}

.document li + li {
  margin-top: 8px;
}

.meta {
  color: var(--muted);
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-grid,
  .cards {
    grid-template-columns: 1fr;
  }
}
