@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --ink: #111827;
  --body: #374151;
  --muted: #6b7280;
  --line: #e2e8f0;
  --surface: #f7f7f4;
  --surface-2: #ecebe6;
  --brand: #253044;
  --brand-accent: #4b5563;
  --white: #ffffff;
  --warn-bg: #fffbeb;
  --warn-border: #d97706;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --page-max: 1200px;
  --text-max: 42rem;
  --article-max: 46rem;
}

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

html {
  font-size: 93%;    /* modest scale-down so 100% zoom looks close to previous 80% zoom */
  scroll-behavior: smooth;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;  /* 17px at 16px base → ~13.6px at 12.8px base */
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
}

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

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

a:hover {
  color: var(--brand);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-width: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}

.site-logo__mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
}

.site-logo sup.tm {
  font-size: 0.32em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.04em;
}

sup.tm {
  font-size: 0.55em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.05em;
}

.site-logo:hover {
  color: var(--brand-accent);
}

.site-nav {
  flex: 0 0 auto;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 1.5rem;
  justify-content: flex-start;
  align-items: baseline;
}

.site-nav a {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
}

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

.site-header__cta,
.site-header__link {
  margin-left: 0;
  flex-shrink: 0;
}

.site-header__link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.site-header__link:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .site-header__inner {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1.25rem;
    padding: 12px 18px;
  }

  /* Flatten brand wrapper so logo, nav, and Sign Up share one flex row flow. */
  .site-header__brand {
    display: contents;
  }

  .site-logo {
    flex: 0 0 100%;
    width: 100%;
  }

  .site-logo__mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 9px;
  }

  .site-nav {
    width: auto;
  }

  .site-nav ul {
    justify-content: flex-start;
  }

  .site-header__link {
    margin-left: 0;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--brand);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--brand-accent);
  color: var(--white);
}

.btn--secondary {
  background: var(--white);
  color: var(--brand);
  border-color: var(--line);
}

.btn--secondary:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

/* —— Layout shells —— */
.shell {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.shell--narrow {
  max-width: var(--article-max);
}

.section {
  padding: 4rem 0;
}

.section--tight {
  padding: 2.6rem 0;
}

.section--muted {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.75vw, 1.45rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--brand);
}

.section__lede {
  margin: 0 0 1.5rem;
  max-width: var(--text-max);
  font-size: 1.08rem;
  color: var(--body);
}

/* —— Home hero —— */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}

.hero--compact {
  padding: 4rem 0 3rem;
}

.hero--landing {
  padding: clamp(3.5rem, 12vh, 7rem) 0 clamp(3rem, 10vh, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: none;
}

.hero--landing > .shell {
  width: 100%;
}

/* —— Short pages: footer pinned to bottom of window —— */
body.page-short {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.page-short main {
  flex: 1;
}

/* —— Home page: hero fills the window, title sits ~1/3 down —— */
body.page-home {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.page-home main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.page-home .hero--landing {
  flex: 1;
  padding: 0;
  display: grid;
  grid-template-rows: 1fr auto 2fr;
}

body.page-home .hero--landing > .shell {
  grid-row: 2;
  padding: 1rem 1rem;
}

body.page-home .hero h1.hero__title--single-line {
  font-size: clamp(2.05rem, 3.35vw, 2.9rem);
}

body.page-home .hero__text.home-prose .hero__sub {
  font-size: clamp(1.28rem, 1.95vw, 1.48rem);
}

.hero__text {
  max-width: var(--text-max);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero--landing .hero__text.home-prose {
  max-width: var(--text-max);
}

.hero--landing h1,
.hero--landing .home-prose p {
  text-align: center;
}

.hero__title--single-line {
  font-size: clamp(1.55rem, 2.85vw, 2.65rem);
  letter-spacing: -0.02em;
}

/* Allow wrapping on narrow screens; nowrap only when the line comfortably fits. */
@media (min-width: 440px) {
  .hero__title--single-line {
    white-space: nowrap;
  }
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.75vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--brand);
}

.hero__sub {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 1.75vw, 1.32rem);
  max-width: 44rem;
  color: var(--body);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.6rem;
  margin-bottom: 0;
}

.hero__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero__visual {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.hero__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* —— Feature grid —— */
.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.35rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--body);
}

/* —— Two-column prose —— */
.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.split--balanced {
  gap: 3rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.home-bottom {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .home-bottom {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

.home-bottom h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--brand);
}

.home-bottom p {
  margin: 0;
  max-width: var(--text-max);
}

.home-links {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.25rem;
}

.home-links a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.home-links a:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

/* —— Topic cards —— */
.topic-nav {
  margin-top: 2rem;
}

.topic-nav h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brand);
}

.topic-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .topic-nav__list--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.topic-nav__card {
  display: block;
  height: 100%;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.topic-nav__card:hover {
  border-color: var(--brand-accent);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  color: var(--body);
}

.topic-nav__card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--brand);
}

.topic-nav__card span {
  display: block;
  font-size: 0.94rem;
  line-height: 1.5;
}

.topic-nav__list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.topic-nav__list--inline a {
  font-weight: 600;
}

/* —— Pricing —— */
.pricing-page {
  max-width: 56rem;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  text-align: center;
}

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

.signup-page .article__lede,
.pricing-page .article__lede,
.signup-page h1,
.pricing-page h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--text-max);
}

.signup-paths,
.signup-offers,
.pricing-grid {
  text-align: left;
}

.pricing-stack {
  width: 100%;
}

.signup-offers {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  margin: 0 0 2rem;
}

@media (min-width: 640px) {
  .signup-offers {
    grid-template-columns: 1fr 1fr;
  }
}

.signup-offer {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
}

.signup-offer--beta {
  background: linear-gradient(135deg, var(--brand) 0%, #334155 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

.signup-offer--beta a:not(.btn) {
  color: #f8fafc;
}

.signup-offer h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.signup-offer--beta h2 {
  color: var(--white);
}

.signup-offer--notify h2 {
  color: var(--brand);
}

.signup-offer__text {
  margin: 0 0 1.25rem;
  flex: 1;
  font-size: 1.02rem;
  line-height: 1.6;
}

.signup-offer--beta .btn--primary {
  background: var(--white);
  color: var(--brand);
  border-color: var(--white);
  align-self: flex-start;
}

.signup-offer--beta .btn--primary:hover {
  background: #f1f5f9;
  color: var(--brand);
}

.signup-offer--notify .btn--primary {
  align-self: flex-start;
}

.pricing-card__status {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing-card--paused {
  opacity: 0.92;
}

.btn--disabled {
  display: inline-block;
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.pricing-page .article__back {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer__grid--compact {
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
}

@media (max-width: 640px) {
  .site-footer__grid--compact {
    grid-template-columns: 1fr;
  }
}

.pricing-page .beta-banner {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 2rem;
  padding: 1.5rem 1.6rem;
  background: linear-gradient(135deg, var(--brand) 0%, #334155 100%);
  color: #e5e7eb;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-page .beta-banner a:not(.btn) {
  color: #f8fafc;
}

.pricing-page .beta-banner__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
}

.pricing-page .beta-banner__text {
  margin: 0 0 1rem;
}

.pricing-page .beta-banner .btn--primary {
  background: var(--white);
  color: var(--brand);
  border-color: var(--white);
}

.pricing-page .beta-banner .btn--primary:hover {
  background: #f1f5f9;
  color: var(--brand);
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: none;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.pricing-card--featured {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pricing-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.pricing-card .price {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand);
}

.pricing-card ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  font-size: 0.94rem;
}

.pricing-card li {
  margin-bottom: 0.35rem;
}

/* —— Article pages —— */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand);
  max-width: var(--text-max);
  text-align: center;
}

.page-hero .article__lede {
  margin: 0;
  max-width: var(--text-max);
  font-size: 1.08rem;
  text-align: center;
}

/* Legacy: page-hero + shell on one element (older pages). */
.page-hero.shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-hero.shell h1,
.page-hero.shell .article__lede {
  text-align: center;
}

.article {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 2.5rem 28px 3rem;
  text-align: center;
}

.article section {
  margin-bottom: 2rem;
}

.article section h2 {
  margin: 0 auto 0.65rem;
  max-width: var(--text-max);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brand);
  text-align: center;
}

.article section h3 {
  margin: 1rem auto 0.4rem;
  max-width: var(--text-max);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.article section p,
.article section > p {
  margin: 0 auto 0.85rem;
  max-width: var(--text-max);
  text-align: center;
}

.article .callout {
  margin: 1rem auto 1.25rem;
  max-width: var(--text-max);
  text-align: center;
}

.article section ul {
  display: inline-block;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
}

.article section li {
  margin-bottom: 0.35rem;
}

.article .table-wrap {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.page-hero--product {
  padding: 2.5rem 0 0;
  background: transparent;
  border-bottom: none;
}

.product-copy {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.product-copy__intro {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.product-copy__intro h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand);
}

.product-copy__intro p {
  margin: 0;
  font-size: 1.08rem;
}

.product-copy__body {
  padding: 2.25rem 0 3rem;
  text-align: center;
}

.product-copy__body section {
  margin-bottom: 2.25rem;
}

.product-copy__body section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--brand);
}

.product-copy__body section p {
  margin: 0 auto 0.85rem;
  max-width: var(--text-max);
}

.article__back {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  text-align: center;
}

.article__back a {
  font-weight: 600;
  text-decoration: none;
}

.article__back a:hover {
  text-decoration: underline;
}

.article--about .article__lede {
  margin: 0 auto;
  max-width: var(--text-max);
  font-size: 1.08rem;
  text-align: center;
}

.article--about .article__back {
  padding-top: 0;
  border-top: none;
}

/* —— Callouts —— */
.callout {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-accent);
  font-size: 0.96rem;
  border-radius: 0 4px 4px 0;
}

.callout--legal {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  border-left-color: var(--warn-border);
}

.callout strong {
  color: var(--ink);
}

/* —— Tables —— */
.table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  font-weight: 600;
  background: var(--surface);
  color: var(--ink);
}

.compare-table--dark-head thead th {
  background: var(--brand);
  color: var(--white);
  border-bottom: none;
}

.compare-table--dark-head thead th:first-child {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.compare-table tbody th {
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  width: 28%;
  min-width: 9rem;
  text-align: right;
}

.compare-table--vs .compare-table__vs-col {
  width: 3.25rem;
  min-width: 3.25rem;
  max-width: 3.25rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.compare-table--vs thead .compare-table__vs-col {
  font-size: 0.72rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.compare-table--vs.compare-table--dark-head thead .compare-table__vs-col {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.compare-table--vs tbody .compare-table__vs-col {
  background: var(--white);
}

.compare-table--vs th:nth-child(2),
.compare-table--vs td:nth-child(2),
.compare-table--vs th:nth-child(4),
.compare-table--vs td:nth-child(4) {
  text-align: center;
}

.compare-table--vs th:nth-child(2),
.compare-table--vs td:nth-child(2) {
  padding-right: 1.15rem;
}

.compare-table--vs th:nth-child(4),
.compare-table--vs td:nth-child(4) {
  padding-left: 1.15rem;
}

/* —— Home page sections (front → high yield → product) —— */
.home-section {
  scroll-margin-top: 5rem;
}

.home-section__inner {
  max-width: var(--text-max);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-section__inner--wide {
  max-width: var(--page-max);
}

.home-prose p {
  margin: 0 0 1rem;
  font-size: 1.08rem;
}

.home-prose p:last-child {
  margin-bottom: 0;
}

.home-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--brand);
}

.home-cta {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.home-cta p {
  margin: 0;
  flex: 1 1 100%;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .home-cta p {
    flex: 1 1 auto;
  }
}

/* —— Product workflow steps (screenshot placeholders) —— */
.workflow-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.workflow-step {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 820px) {
  .workflow-step {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
  }

  .workflow-step--flip .workflow-step__media {
    order: -1;
  }
}

.workflow-step__num {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.workflow-step h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--brand);
}

.workflow-step p {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
}

.workflow-step p:last-child {
  margin-bottom: 0;
}

.media-placeholder {
  aspect-ratio: 16 / 10;
  min-height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 6px;
}

.media-placeholder strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--body);
  font-weight: 600;
}

.workflow-step__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.workflow-step__img--diagram {
  object-fit: contain;
  background: #fff;
  padding: 0.35rem;
}

/* —— Product page: full-window layout (no page-hero) —— */
body.page-product {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.page-product .workflow-page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

body.page-product .workflow-carousel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.page-product .workflow-carousel__viewport {
  flex: 1;
}

body.page-product .workflow-carousel__slide {
  align-items: center;
}

/* Taller media on the product page */
body.page-product .media-placeholder,
body.page-product .workflow-step__img {
  min-height: 18rem;
}

/* —— Workflow carousel —— */
.workflow-carousel {
  margin: 0.5rem 0 0;
  outline: none;
}

/* All slides are placed in the same grid cell so the container stays as
   tall as the tallest slide — no layout jump when navigating. */
.workflow-carousel__viewport {
  display: grid;
}

.workflow-carousel__slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 0;
}

.workflow-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  position: relative;
}

.workflow-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.workflow-carousel__btn {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--brand);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s;
}

.workflow-carousel__btn:hover {
  background: var(--surface);
  border-color: var(--brand-accent);
}

.workflow-carousel__dots {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.workflow-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.workflow-carousel__dot.is-active,
.workflow-carousel__dot[aria-selected="true"] {
  background: var(--brand);
  transform: scale(1.35);
}

.workflow-carousel__dot:hover:not(.is-active) {
  background: var(--brand-accent);
}

.workflow-carousel__label {
  font-size: 0.82rem;
  color: var(--muted);
  min-width: 3rem;
  text-align: center;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #e2e8f0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer__grid {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 28px 2rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.site-footer__brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

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

.site-footer li {
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.site-footer__legal {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 28px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #94a3b8;
}

.site-footer__copy {
  max-width: var(--page-max);
  margin: 1rem auto 0;
  padding: 0 28px;
  font-size: 0.82rem;
  color: #64748b;
}

/* Lean footer variant: just legal lines (no nav grid, no wordmark). */
.site-footer--lean {
  padding: 1.5rem 0 1.25rem;
  text-align: center;
}

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