:root {
  --site-dark: #111111;
  --site-dark-2: #222222;
  --site-muted: #8b8b8b;
  --site-yellow: #ffbf66;
  --site-red: #e7142d;
  --site-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.speechka-body,
body.speechka-legal-body,
body.speechka-status-body {
  background: var(--site-dark);
  color: var(--site-white);
  font-family: "Host Grotesk", Arial, sans-serif;
  line-height: 150%;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  top: 32px;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 0 32px;
}

.site-header.is-static {
  position: static;
  padding: 16px 32px;
  background: var(--site-dark);
}

.site-header.is-static .site-nav {
  padding: 8px 0;
  border-radius: 0;
  box-shadow: none;
}

.site-header.is-static .site-brand img {
  width: 40px;
  height: 40px;
}

.site-header.is-static .site-brand span {
  font-size: 26px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1156px;
  margin: 0 auto;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--site-dark);
  box-shadow: 8px 8px rgba(0, 0, 0, 0.25);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-brand img {
  width: 48px;
  height: 48px;
}

.site-brand span {
  color: var(--site-white);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle,
.nav-toggle-button {
  display: none;
}

.site-menu a,
.footer-links a,
.text-link,
.footer-brand {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-brand {
  color: inherit;
}

.site-menu a {
  padding: 8px 12px;
  color: var(--site-white);
  text-decoration: none;
}

.site-menu a:hover {
  text-decoration: underline;
}

.hero {
  min-height: 100vh;
  height: auto;
}

.h-1 {
  max-width: 1000px;
}

.hero .h-1,
.hero .p-large {
  color: var(--site-dark);
}

.p-large {
  max-width: 850px;
  line-height: 150%;
}

.button-primary,
.button-secondary {
  text-decoration: none;
}

.section-kicker {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.about .container {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1fr);
  align-items: center;
  gap: 80px;
}

.about .container > * {
  grid-area: auto !important;
}

.about-image {
  justify-self: center;
  width: min(640px, 100%);
  max-width: 640px;
}

.price-card,
.legal-card,
.info-card {
  border: 2px solid var(--site-dark-2);
  border-radius: 16px;
}

.price-card {
  padding: 24px;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: rgba(17, 17, 17, 0.05);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.credit-table {
  display: grid;
  gap: 12px;
  width: 100%;
}

.credit-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(17, 17, 17, 0.16);
  font-size: 18px;
  font-weight: 600;
}

.how-detail-list {
  display: flex;
  flex-direction: column;
  gap: 128px;
  width: 100%;
  max-width: 1156px;
  margin-top: 80px;
}

.how-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  align-items: center;
  gap: 72px;
}

.how-detail.is-reversed .how-detail-copy {
  order: 2;
}

.how-detail.is-reversed .how-detail-media {
  order: 1;
}

.how-detail-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.how-detail-copy .h-2 {
  max-width: 640px;
  font-size: clamp(48px, 5vw, 64px);
}

.how-detail-copy .p-medium {
  max-width: 620px;
}

.how-detail-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.how-detail-media img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
}

.site-footer {
  padding: 32px;
  background: var(--site-yellow);
  color: var(--site-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, auto);
  align-items: start;
  gap: 24px;
  width: 100%;
  max-width: 1156px;
  margin: 0 auto;
  font-weight: 600;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  align-items: start;
  justify-content: end;
  column-gap: 24px;
  row-gap: 12px;
}

.legal-page {
  padding: 184px 32px 96px;
  background: var(--site-yellow);
  color: var(--site-dark);
}

.speechka-body .landing-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 96px 32px;
  background: var(--site-yellow);
  color: var(--site-dark);
}

.landing-section-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  max-width: 1156px;
}

.landing-section-heading {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 620px;
}

.landing-section-heading .stack-8,
.landing-section-heading > div:first-child {
  gap: 8px;
}

.landing-faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 96px 32px;
  background: var(--site-dark);
  color: var(--site-white);
}

.landing-info .h-2,
.landing-faq .h-2 {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  line-height: 100%;
  text-transform: uppercase;
}

.landing-faq .caption,
.landing-faq .h-2 {
  color: var(--site-white);
}

.landing-info .info-card,
.landing-info .legal-card,
.landing-faq .info-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-info .info-card h2,
.landing-info .legal-card h2,
.landing-faq .info-card h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 125%;
}

.landing-info .info-card p,
.landing-info .info-card li,
.landing-faq .info-card p,
.landing-faq .info-card li {
  font-size: 16px;
  line-height: 150%;
}

.landing-info .info-card p,
.landing-info .info-card li {
  color: var(--site-dark);
  font-weight: 500;
}

.landing-faq .info-card h2 {
  color: var(--site-white);
}

.landing-faq .info-card p,
.landing-faq .info-card li {
  color: var(--site-muted);
  font-weight: 300;
}

.faq-card {
  min-height: 160px;
  border-color: var(--site-dark-2);
  background: var(--site-dark);
}

.faq-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 48px;
  width: 100%;
  max-width: 1156px;
  margin: 0 auto;
  align-items: start;
}

.legal-shell .legal-content {
  margin: 0;
}

.page-contents {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 2px solid var(--site-dark-2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.24);
}

.page-contents nav {
  display: grid;
  gap: 12px;
}

.page-contents a {
  color: var(--site-dark);
  font-size: 16px;
  font-weight: 600;
  line-height: 130%;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 110%;
  text-transform: none;
}

.legal-content h2 {
  margin-top: 24px;
  font-size: 28px;
  line-height: 125%;
}

.legal-content p,
.legal-content li {
  color: var(--site-dark);
  font-size: 18px;
  line-height: 150%;
}

.legal-content ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.legal-card,
.info-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.24);
}

.legal-card h2,
.info-card h2 {
  margin-top: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.support-list {
  display: grid;
  gap: 16px;
}

.policy-note {
  border-left: 4px solid var(--site-dark);
  padding-left: 16px;
  font-weight: 600;
}

.not-found-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background: var(--site-dark);
  color: var(--site-white);
}

.not-found-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 720px;
  padding: 32px;
  border: 2px solid #333333;
  border-radius: 16px;
}

.not-found-card h1 {
  margin: 0;
  font-size: clamp(48px, 10vw, 96px);
  line-height: 100%;
}

.not-found-card p {
  margin: 0;
  color: var(--site-muted);
  font-size: 20px;
  line-height: 150%;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.status-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background: var(--site-dark);
  color: var(--site-white);
}

.status-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(560px, 100%);
  text-align: center;
}

.status-card .site-brand {
  margin-bottom: 10px;
}

.status-card h1 {
  margin: 0;
  font-size: clamp(36px, 8vw, 72px);
  line-height: 1;
}

.status-card p {
  max-width: 520px;
  margin: 0;
  color: var(--site-muted);
  font-size: 20px;
  line-height: 1.5;
}

.status-card .status-note {
  font-size: 14px;
}

@media screen and (max-width: 991px) {
  .site-header,
  .site-header.is-static {
    top: 16px;
    padding: 16px;
  }

  .site-nav {
    position: relative;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    padding: 16px;
  }

  .site-header.is-static .site-nav {
    padding: 8px 0;
  }

  .site-brand img {
    width: 40px;
    height: 40px;
  }

  .site-brand span {
    font-size: 24px;
  }

  .nav-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 48px;
    height: 48px;
    margin-left: auto;
    cursor: pointer;
  }

  .nav-toggle-button span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 100px;
    background: var(--site-white);
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .nav-toggle:checked + .nav-toggle-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-button span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-menu {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-height: 0;
    padding-top: 0;
    overflow: hidden;
    transition: max-height 180ms ease, padding-top 180ms ease;
  }

  .site-menu a {
    min-height: 0;
    overflow: hidden;
  }

  .nav-toggle:checked + .nav-toggle-button + .site-menu {
    max-height: 440px;
    padding-top: 16px;
  }

  .nav-toggle:checked + .nav-toggle-button + .site-menu a {
    min-height: 40px;
  }

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

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: start;
    align-items: start;
  }

  .site-menu a {
    padding-left: 0;
  }

  .feature-list,
  .price-grid,
  .info-grid,
  .faq-card-grid {
    grid-template-columns: 1fr;
  }

  .how-detail-list {
    gap: 96px;
    margin-top: 48px;
  }

  .how-detail,
  .how-detail.is-reversed,
  .about .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .how-detail.is-reversed .how-detail-copy,
  .how-detail.is-reversed .how-detail-media {
    order: initial;
  }

  .how-detail-media {
    min-height: 0;
  }

  .legal-page {
    padding: 144px 16px 72px;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-contents {
    position: static;
    order: -1;
  }
}
