/* PolicyCare website: shared styles for the home, privacy and terms pages. */

:root {
  --bg: #f7f9fd;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #13203a;
  --muted: #56627a;
  --line: #dfe6f1;
  --brand: #1d5a9e;
  --brand-strong: #164a85;
  --brand-soft: #e3edfa;
  --accent: #f29d1a;
  --accent-soft: #fff1dc;
  --ok: #1d8a5b;
  --shadow: 0 1px 2px rgba(19, 32, 58, 0.06), 0 12px 32px rgba(19, 32, 58, 0.08);
  --shadow-lg: 0 30px 80px rgba(22, 74, 133, 0.22);
  --radius: 20px;
  --hero-glow: radial-gradient(60% 60% at 70% 30%, rgba(29, 90, 158, 0.18), transparent 70%),
    radial-gradient(40% 50% at 20% 80%, rgba(242, 157, 26, 0.12), transparent 70%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d121b;
    --surface: #151c28;
    --surface-2: #1b2433;
    --text: #e9eef7;
    --muted: #a3afc4;
    --line: #273245;
    --brand: #7fb2ff;
    --brand-strong: #a7c9ff;
    --brand-soft: #1b2a44;
    --accent: #f7b955;
    --accent-soft: #33280f;
    --ok: #5fd39f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
    --hero-glow: radial-gradient(60% 60% at 70% 30%, rgba(127, 178, 255, 0.16), transparent 70%),
      radial-gradient(40% 50% at 20% 80%, rgba(247, 185, 85, 0.1), transparent 70%);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 16px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled,
.legal .site-header {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin-right: auto;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.brand small {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--brand);
  letter-spacing: 0.04em;
  margin-top: -2px;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.menu {
  display: none;
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  line-height: 0;
}

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

.menu-panel {
  position: absolute;
  right: 0;
  top: 48px;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
}

.menu-panel a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
}

.menu-panel a:hover {
  background: var(--surface-2);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(29, 90, 158, 0.3);
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #0b1424;
  }
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface);
}

.btn-play {
  background: #111;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  text-align: left;
  line-height: 1.15;
  box-shadow: var(--shadow);
}

.btn-play small {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.btn-play span {
  font-size: 1.05rem;
}

.btn-play svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.btn-sm {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-glow);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 28px 0 14px;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual .phone:first-child {
  transform: rotate(-4deg);
  z-index: 2;
}

.hero-visual .phone.back {
  position: absolute;
  right: 0;
  top: 40px;
  width: 58%;
  transform: rotate(6deg);
  opacity: 0.9;
  z-index: 1;
}

/* ------------------------------------------------------------ phone frame */

.phone {
  width: min(300px, 78vw);
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(145deg, #2a3446, #0f1520);
  box-shadow: var(--shadow-lg);
}

.phone img {
  border-radius: 31px;
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 1170;
  object-fit: cover;
  background: var(--surface-2);
}

/* ------------------------------------------------------------ trust strip */

.trust {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.trust ul {
  list-style: none;
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 12px 28px;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--muted);
}

.trust svg {
  width: 22px;
  height: 22px;
  color: var(--ok);
}

/* --------------------------------------------------------------- sections */

.section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 96px;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature.flip .feature-media {
  order: 2;
}

.feature-media {
  display: flex;
  justify-content: center;
  gap: 18px;
  position: relative;
}

.feature-media::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  border-radius: 40px;
  background: linear-gradient(140deg, var(--brand-soft), var(--accent-soft));
  z-index: -1;
}

.feature-media .phone {
  width: min(270px, 70vw);
}

.feature-media .pair .phone {
  width: min(230px, 44vw);
}

.pair {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.pair .phone:last-child {
  margin-top: 48px;
}

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

.feature li {
  position: relative;
  padding-left: 34px;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d5a9e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* ------------------------------------------------------------------ steps */

.alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.alt .card {
  background: var(--bg);
}

.steps .card::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--accent));
}

/* ---------------------------------------------------------------- privacy */

.privacy-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
  border-radius: 32px;
  padding: 56px;
  color: #fff;
  background: linear-gradient(140deg, #133e70, #1d5a9e 55%, #2a6fb9);
  box-shadow: var(--shadow-lg);
}

.privacy-band h2,
.privacy-band a {
  color: #fff;
}

.privacy-band p {
  color: rgba(255, 255, 255, 0.85);
}

.lock {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  max-width: 240px;
  margin: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.06);
}

.lock svg {
  width: 46%;
  height: 46%;
}

.privacy-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.privacy-points li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
}

.privacy-points strong {
  display: block;
}

.privacy-points span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------------------------------------------------------------- pricing */

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 24px;
}

.price-card {
  position: relative;
  text-align: center;
}

.price-card.best {
  border: 2px solid var(--brand);
}

.ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #1f1300;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.price {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 0;
}

.price small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.price-card ul {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.price-card li::before {
  content: "✓  ";
  color: var(--ok);
  font-weight: 800;
}

.price-card .btn {
  width: 100%;
}

.pricing-note {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 28px auto 0;
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------- faq */

.faq {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 22px;
}

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

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

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brand);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--muted);
}

/* -------------------------------------------------------------------- cta */

.cta {
  text-align: center;
  padding: 72px 24px;
  border-radius: 32px;
  background: linear-gradient(140deg, var(--brand-soft), var(--accent-soft));
  border: 1px solid var(--line);
}

.cta img {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
}

.cta .hero-actions {
  justify-content: center;
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.social-row {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.social-row > span {
  font-weight: 600;
  color: var(--text);
  margin-right: 4px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.social-link:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.social-link:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.social-link svg {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ------------------------------------------------------------ legal pages */

.legal-hero {
  padding: 56px 0 32px;
  position: relative;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-glow);
  pointer-events: none;
  z-index: -1;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-meta span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 72px;
}

.toc {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  font-size: 0.9rem;
}

.toc h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
  counter-reset: toc;
}

.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.toc a:hover,
.toc a.active {
  color: var(--text);
  background: var(--surface-2);
  border-left-color: var(--brand);
}

.doc {
  min-width: 0;
}

.doc section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 16px;
}

.doc h2 {
  font-size: 1.35rem;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.doc h2 .num {
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 800;
  min-width: 28px;
}

.doc h3 {
  font-size: 1.02rem;
  margin-top: 1.2em;
}

.doc ul,
.doc ol {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.doc li {
  margin-bottom: 0.4em;
}

.doc li::marker {
  color: var(--brand);
}

.summary {
  background: linear-gradient(140deg, var(--brand-soft), var(--accent-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 32px;
  margin-bottom: 16px;
}

.summary h2 {
  font-size: 1.15rem;
}

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

.summary li {
  position: relative;
  padding-left: 36px;
}

/* The tick sits beside the text, so bold words stay in the sentence. */
.summary li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ok);
  font-weight: 800;
  font-size: 0.85rem;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 1em;
}

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

/* ------------------------------------------------------------- animation */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.shown {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .hero-grid,
  .feature,
  .privacy-band {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
    text-align: center;
  }

  .lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .feature,
  .feature.flip {
    gap: 32px;
    margin-bottom: 72px;
  }

  .feature.flip .feature-media {
    order: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .privacy-band {
    padding: 36px 24px;
    text-align: center;
  }

  .privacy-points {
    text-align: left;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    max-height: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
  }

  .toc ol {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav .btn-sm {
    display: none;
  }

  .menu {
    display: block;
  }

  .section {
    padding: 64px 0;
  }

  .pricing,
  .privacy-points {
    grid-template-columns: 1fr;
  }

  .doc section,
  .summary {
    padding: 22px 20px;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .hero-visual .phone.back {
    display: none;
  }
}

/* Video: a cover image until the visitor presses play, then YouTube's player */
.video-frame {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0b1f48;
  aspect-ratio: 16 / 9;
}

.video-facade,
.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  position: relative;
  cursor: pointer;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: #e62117;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.video-play svg {
  width: 40px;
  height: 40px;
  fill: #fff;
  margin-left: 4px;
}

.video-facade:hover .video-play,
.video-facade:focus-visible .video-play {
  transform: scale(1.08);
}

.video-facade:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.video-note {
  text-align: center;
  color: var(--muted);
  margin-top: 18px;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .video-play {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
  }

  .video-play svg {
    width: 30px;
    height: 30px;
  }
}

/* Tutorials page */
.tutorials-hero {
  text-align: center;
  max-width: 820px;
}

.tutorials {
  padding-top: 24px;
}

.tutorial-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 88px;
}

.tutorial-featured .video-frame {
  max-width: none;
  margin: 0;
}

.tutorial-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 5px 12px;
}

.tutorial-featured h2 {
  margin: 14px 0 10px;
}

.tutorials-head {
  margin-bottom: 36px;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 32px;
}

.tutorial-card .video-frame {
  max-width: none;
  margin: 0 0 16px;
  box-shadow: var(--shadow);
}

.tutorial-card h3 {
  margin: 10px 0 6px;
  font-size: 1.25rem;
}

.tutorial-card .muted {
  margin: 0;
}

.tutorials-cta {
  text-align: center;
  margin-top: 64px;
}

/* The covers carry the video title in the middle: keep the play button in the corner. */
.tutorials .video-play {
  left: 18px;
  top: auto;
  bottom: 18px;
  margin: 0;
  width: 60px;
  height: 60px;
}

.tutorials .video-play svg {
  width: 28px;
  height: 28px;
}

.tutorials-cta .hero-actions {
  justify-content: center;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .tutorial-featured {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 56px;
  }
}

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