/* hearl.app. Colours, type and radii follow DESIGN.md and mobile/src/theme.ts. */
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #0d0b0a;
  --canvas-deep: #080605;
  --surface: #181513;
  --surface-raised: #1f1a17;
  --border: #2b2520;
  --border-strong: #3d352e;
  --accent: #de5c39;
  --accent-bright: #e86e4d;
  --accent-muted: rgba(222, 92, 57, 0.15);
  --text: #f5efe6;
  --text-muted: #9e948a;
  --success: #4e9b70;
  --serif: "Source Serif 4", Newsreader, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

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

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-bright);
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 6.4vw, 72px);
}

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0;
}

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

.narrow {
  max-width: 760px;
}

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

.small {
  font-size: 14px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--text-muted);
  max-width: 46ch;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--canvas);
  border-radius: 10px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

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

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

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark:hover {
  color: var(--text);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-right: -12px;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
}

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

.site-header nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section.tint {
  background: var(--canvas-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  margin-top: 12px;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
}

.page-head {
  padding: 88px 0 24px;
}

.page-head h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-top: 12px;
}

.page-head .lead,
.page-head .muted {
  margin-top: 16px;
}

.page-head.center {
  text-align: center;
}

.page-head.center .lead,
.page-head.center img {
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin-top: 16px;
}

.hero .lead {
  margin-top: 24px;
}

.hero .note {
  margin-top: 16px;
}

.hero-art {
  justify-self: center;
  width: min(100%, 400px);
}

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

}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--canvas);
}

.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--canvas);
}

.store-soon {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent-muted);
  border: 1px solid rgba(222, 92, 57, 0.4);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.store-badge img {
  height: 50px;
  width: auto;
}

/* Episode-ending illustration */
.ending {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.ending .card {
  padding: 20px 22px;
}

.ending .quote {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  margin-top: 8px;
}

.ending .next {
  border-color: rgba(222, 92, 57, 0.5);
}

.ending .next h3 {
  font-size: 19px;
  margin-top: 6px;
}

.label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split h2 + p {
  margin-top: 20px;
}

.split p + p {
  margin-top: 16px;
}

/* Cards and grids */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.card h3 + p {
  margin-top: 10px;
  color: var(--text-muted);
}

.card p + p {
  margin-top: 8px;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--accent-muted);
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
}

.series {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.series li {
  display: flex;
  flex-direction: column;
}

.series img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.series h3 {
  font-size: 20px;
  margin-top: 14px;
}

.series .label {
  margin-top: 6px;
}

.series p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
}

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.checks li strong {
  color: var(--text);
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: rgba(222, 92, 57, 0.55);
  background: linear-gradient(180deg, rgba(222, 92, 57, 0.08), var(--surface) 40%);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
}

.price strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
}

.plan .minutes {
  margin-top: 10px;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

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

th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

tr:last-child td {
  border-bottom: 0;
}

.fine {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 18px;
}

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

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

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

.faq details > div {
  padding: 0 0 20px;
  color: var(--text-muted);
  max-width: 64ch;
}

.faq details > div p + p,
.faq details > div ol,
.faq details > div ul {
  margin-top: 10px;
}

.faq ol,
.faq ul {
  padding-left: 22px;
}

/* Support */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact .card + .card {
  margin-top: 16px;
}

.mascot-sm {
  width: 140px;
  margin-bottom: 8px;
}

.gap {
  margin-top: 10px;
}

.faq h2 {
  font-size: 24px;
  margin: 44px 0 4px;
}

.faq h2:first-child {
  margin-top: 0;
}

/* Legal and long-form */
.prose {
  font-size: 17px;
  line-height: 1.7;
  color: #e6ded3;
}

.prose h2 {
  font-size: 26px;
  margin: 48px 0 12px;
  color: var(--text);
  scroll-margin-top: 24px;
}

.prose h3 {
  font-size: 19px;
  margin: 28px 0 8px;
  color: var(--text);
}

.prose p,
.prose ul,
.prose ol,
.prose table {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
}

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

.prose strong {
  color: var(--text);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.prose table {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
}

.prose code {
  font-size: 0.9em;
  background: var(--surface-raised);
  padding: 1px 6px;
  border-radius: 6px;
}

.prose pre {
  margin: 0 0 14px;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.prose pre code {
  padding: 0;
  background: none;
}

/* Closing call to action */
.closing {
  text-align: center;
}

.closing img {
  margin: 0 auto 8px;
}

.closing .lead {
  margin: 16px auto 0;
}

.closing .cta-row {
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  background: var(--canvas-deep);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}

.footer-cols h2 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-cols a:not(.wordmark) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}

.footer-cols a:not(.wordmark):hover {
  color: var(--accent-bright);
}

.footer-cols .muted {
  margin-top: 8px;
}

.disclaimer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  max-width: 90ch;
}

.site-footer .small {
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 1000px) {
  .series {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .hero-grid,
  .split,
  .contact,
  .plans,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-art {
    width: min(70%, 300px);
    order: -1;
  }

  .series {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .wrap {
    padding: 0 20px;
  }
}
