: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;
  overflow-x: hidden;
}

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;
}

.home-hero {
  grid-template-columns: minmax(0, 0.96fr) minmax(300px, 0.62fr);
  gap: clamp(36px, 5vw, 72px);
  max-width: 1180px;
  min-height: min(680px, calc(100svh - 112px));
  margin: 0 auto;
  padding-right: clamp(32px, 7vw, 104px);
  padding-left: clamp(32px, 7vw, 104px);
}

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

.product-copy,
.reader-showcase {
  min-width: 0;
}

.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;
  position: relative;
  min-height: 360px;
  place-items: center;
  padding: clamp(20px, 4vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(#efefef 1px, transparent 1px),
    linear-gradient(90deg, #efefef 1px, transparent 1px),
    var(--surface);
  background-size: 34px 34px;
  box-shadow: var(--shadow);
}

.logo-showcase::before,
.logo-showcase::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.logo-showcase::before {
  inset: 24px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
}

.logo-showcase::after {
  right: 0;
  bottom: 0;
  width: 38%;
  height: 38%;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.74);
}

.brand-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 112px;
  grid-template-rows: auto 1fr;
  gap: 22px;
  width: min(100%, 420px);
  min-height: 260px;
  padding: 34px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.brand-board::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 8px;
  background: var(--ink);
}

.brand-board-main {
  display: grid;
  grid-row: 1 / span 2;
  min-height: 172px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand-board-main img {
  display: block;
  width: 124px;
  height: 124px;
  object-fit: contain;
}

.brand-board-lines {
  display: grid;
  align-content: end;
  gap: 10px;
  padding-top: 38px;
}

.brand-board-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #d8d8d8;
}

.brand-board-lines span:first-child {
  width: 88%;
  background: var(--ink);
}

.brand-board-lines span:nth-child(2) {
  width: 64%;
}

.brand-board-lines span:nth-child(3) {
  width: 42%;
}

.brand-board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-self: end;
  gap: 8px;
}

.brand-board-grid img {
  width: 100%;
  aspect-ratio: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}

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

.device-stage {
  position: relative;
  width: min(100%, 560px);
  min-height: 430px;
}

.device-stage::before {
  content: "";
  position: absolute;
  inset: 26px 0 38px 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(#efefef 1px, transparent 1px),
    linear-gradient(90deg, #efefef 1px, transparent 1px),
    var(--surface);
  background-size: 34px 34px;
}

.device-frame {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 9px solid var(--ink);
  background: var(--ink);
  box-shadow: var(--shadow);
}

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

.ipad-frame {
  top: 46px;
  right: 0;
  width: min(92%, 520px);
  aspect-ratio: 2420 / 1668;
  border-radius: 24px;
}

.ipad-frame img {
  border-radius: 16px;
}

.iphone-frame {
  left: 14px;
  bottom: 20px;
  width: min(30%, 164px);
  aspect-ratio: 414 / 900;
  border-width: 8px;
  border-radius: 30px;
}

.iphone-frame img {
  border-radius: 22px;
}

.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;
  }

  .home-hero {
    max-width: 720px;
    padding-right: clamp(24px, 7vw, 56px);
    padding-left: clamp(24px, 7vw, 56px);
  }

  .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: 300px;
    padding: 20px;
  }

  .logo-showcase::before {
    inset: 14px;
  }

  .brand-board {
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(100%, 250px);
    min-height: 236px;
    padding: 20px;
  }

  .brand-board-main {
    grid-row: auto;
    min-height: 130px;
  }

  .brand-board-main img {
    width: 82px;
    height: 82px;
  }

  .brand-board-lines {
    grid-row: 1;
    gap: 8px;
    padding-top: 22px;
    padding-right: 58px;
  }

  .brand-board-grid {
    grid-template-columns: repeat(3, 44px);
  }

  .brand-board-grid img {
    padding: 8px;
  }

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

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

  .product-copy h1 {
    font-size: 2.35rem;
    line-height: 1.08;
    word-break: break-all;
  }

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

  .lead {
    font-size: 1.08rem;
    word-break: break-all;
    max-width: 100%;
  }

  .product-copy,
  .reader-showcase {
    width: 100%;
  }

  .reader-showcase {
    overflow: hidden;
  }

  .device-stage {
    width: min(100%, 300px);
    min-height: 310px;
  }

  .device-stage::before {
    inset: 20px 0 30px 22px;
  }

  .ipad-frame {
    top: 36px;
    right: 0;
    width: 92%;
    border-width: 7px;
    border-radius: 18px;
  }

  .ipad-frame img {
    border-radius: 14px;
  }

  .iphone-frame {
    left: 10px;
    bottom: 6px;
    width: 30%;
    border-width: 7px;
    border-radius: 25px;
  }

  .iphone-frame img {
    border-radius: 18px;
  }
}
