:root {
  color-scheme: light;
  --ink: #050505;
  --muted: #5f5f5f;
  --paper: #ffffff;
  --surface: #ffffff;
  --line: #e7e7e7;
  --soft: #f7f7f7;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.site-footer,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}

.brand-name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.site-nav {
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
}

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

.home-hero,
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  min-height: calc(100svh - 72px);
  padding: 64px clamp(20px, 5vw, 72px) 56px;
}

.product-hero {
  min-height: 72svh;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: 5.2rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.product-copy h1 {
  font-size: 4.6rem;
}

h2 {
  margin-bottom: 14px;
  font-size: 2rem;
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  color: #242424;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 750;
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.logo-showcase,
.reader-showcase {
  min-height: 320px;
}

.logo-showcase {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 24px;
}

.logo-showcase img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.reader-showcase {
  display: grid;
  place-items: center;
}

.tablet-frame {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 4 / 3;
  padding: clamp(24px, 4vw, 40px);
  border: 10px solid var(--ink);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.library-top {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.library-top span,
.progress-line {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: #d9d9d9;
}

.library-top span {
  width: 24%;
}

.library-top span:first-child {
  width: 42%;
  background: var(--ink);
}

.volume-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 3vw, 28px);
}

.cover {
  display: block;
  aspect-ratio: 3 / 4.25;
  border: 1px solid #111;
  border-radius: 7px;
  background: linear-gradient(135deg, #111 0%, #111 48%, #f4f4f4 48%, #f4f4f4 100%);
}

.cover-b {
  background: linear-gradient(135deg, #f4f4f4 0%, #f4f4f4 48%, #111 48%, #111 100%);
}

.cover-c {
  background: repeating-linear-gradient(90deg, #111 0, #111 14px, #f4f4f4 14px, #f4f4f4 28px);
}

.progress-line {
  width: 84%;
  height: 14px;
  margin-top: 26px;
}

.section,
.content-section,
.feature-grid,
.flow-section,
.legal-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section,
.content-section,
.feature-grid,
.flow-section {
  padding: 76px 0;
}

.section-heading {
  margin-bottom: 26px;
}

.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.work-mark {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  object-fit: contain;
}

.card-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  font-size: 1.4rem;
}

.content-section {
  max-width: 850px;
  color: #242424;
  font-size: 1.08rem;
}

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

.feature-grid article {
  padding: clamp(22px, 3.5vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-grid p,
.feature-grid li,
.flow-list span,
.legal-page p,
.legal-page li {
  color: #333;
}

ul,
ol {
  padding-left: 1.2rem;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-list li {
  min-height: 230px;
  padding: 22px;
  border-top: 4px solid var(--ink);
  background: var(--soft);
  counter-increment: flow;
}

.flow-list li::before {
  content: counter(flow, decimal-leading-zero);
  display: block;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.flow-list strong,
.flow-list span {
  display: block;
}

.flow-list strong {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.check-list {
  display: grid;
  gap: 10px;
}

.legal-page {
  max-width: 820px;
  padding: 76px 0;
}

.legal-page h1 {
  margin-bottom: 42px;
  font-size: 3.8rem;
}

.legal-page section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-page h2 {
  font-size: 1.25rem;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  gap: 18px;
}

@media (max-width: 920px) {
  .home-hero,
  .product-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .logo-showcase,
  .reader-showcase {
    min-height: 220px;
  }

  .feature-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .flow-list li {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .brand-name {
    font-size: .98rem;
  }

  .logo-showcase {
    min-height: 160px;
  }

  .logo-showcase img {
    width: 88px;
    height: 88px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  h1,
  .product-copy h1,
  .legal-page h1 {
    font-size: 2.7rem;
  }

  .home-hero,
  .product-hero {
    padding-top: 42px;
  }

  .lead {
    font-size: 1.08rem;
  }
}
