:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #647067;
  --paper: #fbfbf7;
  --surface: #ffffff;
  --line: #dfe6dc;
  --bamboo: #2f7d4a;
  --bamboo-dark: #1f5f3a;
  --sky: #d9edf2;
  --coral: #e56b51;
  --gold: #e5b94d;
  --shadow: 0 24px 60px rgba(32, 53, 42, 0.16);
  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;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(251, 251, 247, 0.92);
  border-bottom: 1px solid rgba(223, 230, 220, 0.8);
  backdrop-filter: blur(18px);
}

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

.brand {
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--bamboo);
}

.site-nav {
  gap: clamp(12px, 2.8vw, 26px);
  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(--bamboo-dark);
}

.home-hero,
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  min-height: calc(100svh - 92px);
  padding: clamp(56px, 8vw, 108px) clamp(20px, 5vw, 72px) clamp(42px, 6vw, 80px);
}

.product-hero {
  min-height: 76svh;
  background: linear-gradient(135deg, #f7faf5 0%, #eef8f2 58%, #fff8ea 100%);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--bamboo-dark);
  font-size: 0.8rem;
  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: clamp(3.2rem, 8vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.product-copy h1 {
  font-size: clamp(2.65rem, 5.6vw, 5.7rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: 0;
}

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

.lead {
  max-width: 720px;
  color: #3f4c44;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.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(--bamboo);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 750;
}

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

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

.lab-panel,
.reader-showcase {
  position: relative;
  min-height: 520px;
}

.lab-panel {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(47, 125, 74, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(47, 125, 74, 0.12) 1px, transparent 1px),
    #f3f8ef;
  background-size: 42px 42px;
  box-shadow: var(--shadow);
}

.shelf {
  position: absolute;
  right: 8%;
  bottom: 14%;
  display: flex;
  align-items: end;
  gap: 10px;
  width: 44%;
  height: 170px;
  padding: 18px;
  border-bottom: 12px solid #9b6a42;
}

.shelf span {
  display: block;
  width: 22%;
  border-radius: 5px 5px 0 0;
  background: var(--gold);
}

.shelf span:nth-child(1) {
  height: 82%;
  background: var(--coral);
}

.shelf span:nth-child(2) {
  height: 96%;
  background: var(--bamboo);
}

.shelf span:nth-child(3) {
  height: 72%;
  background: #5aa8b2;
}

.shelf span:nth-child(4) {
  height: 88%;
}

.phone-frame,
.tablet-frame {
  position: relative;
  border: 10px solid #22332b;
  background: #f9fbf8;
  box-shadow: 0 28px 70px rgba(23, 33, 28, 0.26);
}

.phone-frame {
  width: min(58vw, 300px);
  aspect-ratio: 9 / 18.5;
  border-radius: 36px;
  transform: rotate(-5deg) translateX(-18px);
}

.phone-top {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 80px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 0 0 12px 12px;
  background: #22332b;
}

.phone-screen {
  height: 100%;
  padding: 52px 18px 24px;
}

.screen-title,
.reader-strip,
.progress-line {
  border-radius: 999px;
  background: #cfded2;
}

.screen-title {
  width: 72%;
  height: 16px;
  margin-bottom: 22px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cover-grid span,
.cover {
  display: block;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--bamboo), #bcd66c);
}

.cover-grid span {
  aspect-ratio: 3 / 4.2;
}

.cover-grid span:nth-child(2),
.cover-grid span:nth-child(5),
.cover-b {
  background: linear-gradient(135deg, #335d7c, var(--sky));
}

.cover-grid span:nth-child(3),
.cover-grid span:nth-child(6),
.cover-c {
  background: linear-gradient(135deg, var(--coral), #f2cf7a);
}

.reader-strip {
  width: 100%;
  height: 12px;
  margin-top: 22px;
}

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

.tablet-frame {
  width: min(100%, 620px);
  aspect-ratio: 4 / 3;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 28px;
}

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

.library-top span {
  display: block;
  width: 24%;
  height: 16px;
  border-radius: 999px;
  background: #d7e5db;
}

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

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

.cover {
  aspect-ratio: 3 / 4.25;
}

.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: clamp(54px, 8vw, 92px) 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(32, 53, 42, 0.08);
  text-decoration: none;
}

.work-icon {
  margin-bottom: 12px;
  font-size: 2rem;
}

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

.content-section {
  max-width: 850px;
  color: #33433a;
  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: #435047;
}

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(--bamboo);
  background: #fff;
  counter-increment: flow;
}

.flow-list li::before {
  content: counter(flow, decimal-leading-zero);
  display: block;
  margin-bottom: 32px;
  color: var(--coral);
  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: clamp(52px, 8vw, 90px) 0;
}

.legal-page h1 {
  margin-bottom: 42px;
  font-size: clamp(2.4rem, 6vw, 4.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;
  }

  .lab-panel,
  .reader-showcase {
    min-height: 420px;
  }

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

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

  h1 {
    font-size: 3.15rem;
  }

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

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

  .lab-panel {
    min-height: 360px;
  }

  .shelf {
    right: 2%;
    width: 52%;
  }

  .phone-frame {
    width: min(74vw, 250px);
  }
}
