/* The marketing site's one stylesheet: the layout (header and
   footer), the home page sections, the legal pages and the
   product-updates page, in that order. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Comfortaa";
  src: url("/fonts/comfortaa.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --brand: #1DB41C;
  --brand-dark: #189917;
  --brand-light: #3DC93C;
  --brand-mid: #1FA81E;
  --accent: #ef4444;
  --soft: #D4F2D4;
  --text: #0a0a0a;
  --dark: #0a0a0a;
  --gray-bg: #f9fafb;
  --border: #e5e7eb;
  --hero-glow:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(29, 180, 28, 0.17), transparent),
    radial-gradient(ellipse 55% 45% at 85% 25%, rgba(29, 180, 28, 0.09), transparent),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(15, 23, 42, 0.04), transparent);
  --cta-bg: linear-gradient(135deg, #D4F2D4 0%, #ffffff 50%, #EEF8EE 100%);
}

/* Base */

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

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

section[id] {
  scroll-margin-top: 4rem;
}

.brand-font {
  font-family: "Comfortaa", system-ui, sans-serif;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--brand);
  cursor: pointer;
  transition: opacity 0.15s;
}

.button:hover {
  opacity: 0.9;
}

.button--large {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.button--outline {
  font-weight: 500;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #d1d5db;
}

.button--outline:hover {
  opacity: 1;
  border-color: #9ca3af;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--gray-bg);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 72rem;
  height: 4rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header__logo img {
  width: auto;
  height: 2rem;
}

.site-header__nav {
  display: none;
  flex: 1;
  gap: 1.5rem;
  overflow: hidden;
  font-size: 0.875rem;
  color: #4b5563;
  white-space: nowrap;
}

.site-header__nav a:hover {
  color: #111827;
}

.site-header__account {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  white-space: nowrap;
}

.site-header__sign-in {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.site-header__sign-in:hover {
  color: #111827;
}

@media (min-width: 768px) {
  .site-header__nav {
    display: flex;
  }
}

/* Footer */

.site-footer {
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
  margin-top: 0.75rem;
}

.site-footer__links a:hover {
  color: #111827;
}

/* Section headings shared by the pages */

.eyebrow {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-dark);
}

.eyebrow--muted {
  color: #6b7280;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
}

.section-subtitle {
  max-width: 36rem;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.625;
}

.section-subtitle--light { color: #4b5563; }
.section-subtitle--dark { color: #9ca3af; }
.section-subtitle--flush { margin-top: 0; }

.section-divider {
  width: 3.5rem;
  height: 0.25rem;
  margin: 1.5rem auto 0;
  border-radius: 9999px;
  background: var(--brand);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

/* Home: hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.25rem;
  background: #ffffff;
}

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

.hero__inner {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero__lead {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  line-height: 1.625;
  color: #4b5563;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero__note {
  max-width: 36rem;
  margin: 2rem auto 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #6b7280;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero h1 {
    font-size: 3.75rem;
  }
}

/* The fade and curve from a white hero into a dark section */

.hero-bridge {
  position: relative;
  height: 7rem;
  margin-top: -0.5rem;
}

.hero-bridge__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    color-mix(in srgb, var(--soft) 70%, #ffffff) 35%,
    var(--soft) 55%,
    color-mix(in srgb, var(--dark) 25%, var(--soft)) 78%,
    var(--dark) 100%
  );
}

.hero-bridge__curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  display: block;
  width: 100%;
  height: 4rem;
  fill: var(--dark);
}

@media (min-width: 768px) {
  .hero-bridge {
    height: 9rem;
  }
}

/* Home: how it works */

.steps {
  padding: 2rem 1.25rem 4rem;
  color: #ffffff;
  background: var(--dark);
}

.steps__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.steps .eyebrow {
  margin-bottom: 0.75rem;
}

.steps__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* Each card's accent colour, in order: the top border, the number
   and the tag. */
.step-card { --step-accent: var(--brand); }
.step-card:nth-child(2) { --step-accent: var(--brand-light); }
.step-card:nth-child(3) { --step-accent: var(--brand-dark); }
.step-card:nth-child(4) { --step-accent: var(--accent); }

.step-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--step-accent);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.step-card--peak {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent),
    0 0 24px color-mix(in srgb, var(--accent) 12%, transparent);
}

.step-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--step-accent);
}

.step-card--peak .step-card__number {
  background: linear-gradient(180deg, var(--brand) 75%, var(--accent) 75%);
}

.step-card h3 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.step-card p {
  flex: 1;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #d1d5db;
}

.step-card .step-card__tag {
  flex: none;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: color-mix(in srgb, var(--step-accent) 70%, #9ca3af);
}

.product-shot {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.product-shot__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.45);
}

.product-shot__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
}

.product-shot__bar {
  flex: 1;
  height: 0.45rem;
  margin-left: 0.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
}

.product-shot__viewport {
  position: relative;
  height: calc(100% - 1.65rem);
  overflow: hidden;
}

.product-shot__viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.03);
  transform-origin: top center;
}

.product-shot__privacy {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.18) 12%,
    transparent 22%
  );
}

@media (min-width: 768px) {
  .steps {
    padding-top: 2.5rem;
    padding-bottom: 5rem;
  }

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

@media (min-width: 1024px) {
  .steps__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Home: channels */

.channels {
  padding: 4rem 1.25rem 3rem;
  background: var(--gray-bg);
}

.channels__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.channels__list {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* A row's colour: the left stripe and the name. Set it with
   style="--channel-color: ..." or the channel--live class. */
.channel {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.625rem 1rem;
  border-left: 4px solid var(--channel-color, #cbd5e1);
}

.channel + .channel {
  border-top: 1px solid #f3f4f6;
}

.channel h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--channel-color, var(--text));
}

.channel p {
  font-size: 0.875rem;
  color: #4b5563;
}

.channel--live {
  --channel-color: var(--brand);
}

.channel--live h3 {
  color: var(--brand-dark);
}

.badge {
  align-self: flex-start;
  flex-shrink: 0;
  padding: 0.125rem 0.5rem;
  border: 1px solid;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--live { color: #ffffff; background: var(--brand); border-color: transparent; }
.badge--soon { color: #71717a; background: #f4f4f5; border-color: #e4e4e7; }

@media (min-width: 640px) {
  .channel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .badge {
    align-self: center;
  }
}

@media (min-width: 768px) {
  .channels {
    padding-bottom: 4rem;
  }
}

/* Home: who it's for */

.audience {
  background: #ffffff;
}

.channels-visual {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 0;
}

.channels-visual img {
  width: 100%;
  aspect-ratio: 2.5 / 1;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px -20px rgba(15, 23, 42, 0.12);
}

.audience__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

.audience .eyebrow {
  margin-bottom: 0.75rem;
}

.audience__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Each card's accent colour, in order: the short bar and the title. */
.audience-card { --card-accent: var(--brand); }
.audience-card:nth-child(2) { --card-accent: var(--accent); }
.audience-card:nth-child(3) { --card-accent: var(--brand-dark); }

.audience-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.audience-card::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 0.125rem;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  background: var(--card-accent);
}

.audience-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--card-accent);
}

.audience-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #4b5563;
}

@media (min-width: 768px) {
  .audience__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Home: FAQ */

.faq {
  padding: 5rem 1.25rem;
  background: var(--gray-bg);
}

.faq__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.faq .eyebrow {
  margin-bottom: 0.75rem;
}

.faq__list {
  margin-top: 2.5rem;
}

.faq__list details {
  padding: 1.25rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.faq__list details:first-child {
  border-top: 1px solid #f3f4f6;
}

.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: #111827;
  list-style: none;
  cursor: pointer;
}

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

.faq-toggle {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #6b7280;
  transition: transform 0.15s;
}

details[open] .faq-toggle {
  transform: rotate(45deg);
  border-color: color-mix(in srgb, var(--brand) 35%, #ffffff);
  background: color-mix(in srgb, var(--brand) 8%, #ffffff);
  color: var(--brand-dark);
}

.faq__list details p {
  max-width: 42rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #4b5563;
}

/* Home: closing call to action */

.cta {
  padding: 3.5rem 1.25rem;
  background: #ffffff;
}

.cta__box {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, #e2e8f0);
  border-radius: 1rem;
  background: var(--cta-bg);
  text-align: center;
}

.cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
}

.cta__actions {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .cta__box {
    padding: 3rem 2.5rem;
  }

  .cta h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

/* Legal pages: terms, privacy, acceptable use */

.legal-content {
  max-width: calc(48rem + 2.5rem);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.legal-content h1 {
  font-family: "Comfortaa", system-ui, sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 2.25rem;
}

.legal-content h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; font-size: 1.25rem; font-weight: 600; color: #111827; scroll-margin-top: 5rem; }
.legal-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.0625rem; font-weight: 600; color: #111827; }
.legal-content p { margin-bottom: 1rem; line-height: 1.625; color: #4b5563; }
.legal-content .legal-updated { margin-top: 0.5rem; font-size: 0.875rem; }
.legal-content ul, .legal-content ol { margin: 0 0 1rem; padding-left: 1.25rem; color: #4b5563; }
.legal-content li { margin-bottom: 0.375rem; line-height: 1.625; }
.legal-content hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--border); }
.legal-content a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--brand); }
.legal-content table { width: 100%; margin: 1rem 0 1.5rem; border-collapse: collapse; font-size: 0.875rem; }
.legal-content th, .legal-content td { border: 1px solid var(--border); padding: 0.625rem 0.75rem; text-align: left; vertical-align: top; }
.legal-content th { background: var(--gray-bg); font-weight: 600; color: #374151; }
.legal-content td { color: #4b5563; }
.legal-content em { font-size: 0.875rem; color: #6b7280; }
.legal-content .toc { margin-bottom: 1rem; }
.legal-content .toc li { margin-bottom: 0.25rem; }

@media (min-width: 768px) {
  .legal-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .legal-content h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

/* Product updates */

.hero--small {
  padding: 3.5rem 1.25rem 1rem;
}

.hero__inner--narrow {
  max-width: 36rem;
}

.hero--small .hero__lead {
  margin-top: 1rem;
}

.dark-glow {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(29, 180, 28, 0.12), transparent),
    var(--dark);
}

.updates {
  padding: 1.5rem 1.25rem 3rem;
  color: #ffffff;
}

.updates__inner {
  max-width: 28rem;
  margin: 0 auto;
}

.updates__intro {
  text-align: center;
  color: #9ca3af;
}

.updates__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.updates__form input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  font: inherit;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.updates__form input::placeholder {
  color: #6b7280;
}

.updates__form input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--brand);
}

/* Shown only at /updates#subscribed, in place of the form. */
.updates__done {
  display: none;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #4ade80;
}

.updates__done:target {
  display: block;
}

.updates__done:target + .updates__ask {
  display: none;
}

.updates__talk {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.updates__talk a {
  font-weight: 500;
  color: #d1d5db;
  text-decoration: underline;
  text-decoration-color: #4b5563;
  text-underline-offset: 2px;
}

.updates__talk a:hover {
  color: #ffffff;
}

@media (min-width: 640px) {
  .updates__form {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .hero--small {
    padding-top: 5rem;
  }

  .hero--small h1 {
    font-size: 3rem;
  }

  .updates {
    padding-top: 2rem;
    padding-bottom: 4rem;
  }
}

/* Page not found */

.not-found {
  max-width: 36rem;
  margin: 0 auto;
  padding: 5rem 1.25rem;
  text-align: center;
}

.not-found h1 {
  font-family: "Comfortaa", system-ui, sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
}

.not-found p {
  margin-top: 1rem;
}

.not-found a {
  color: var(--brand-dark);
  text-decoration: underline;
}
