:root {
  --paper: #fbf1e6;
  --page-wash: #fbf1e6;
  --page-haze: #fbf1e6;
  --ink: #302923;
  --muted: #74685e;
  --orange: #ff8c2a;
  --rose: #c96d78;
  --teal: #2e6966;
  --sage: #8fb49b;
  --line: rgba(47, 41, 35, 0.12);
  --shadow: 0 18px 38px rgba(72, 55, 38, 0.12);
  --font-openai: "OpenAI Sans", "Söhne", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--page-wash);
  font-family: var(--font-openai);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  display: grid;
  min-height: 100svh;
  place-items: start center;
  padding: 0;
}

.sketch-board {
  position: relative;
  display: grid;
  grid-template-rows: 58px auto 1fr auto;
  gap: 0;
  width: 100%;
  min-height: 100svh;
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(251, 241, 230, 0.98), rgba(251, 241, 230, 0.98)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E"),
    var(--paper);
  box-shadow: var(--shadow);
}

.sketch-board > * {
  position: relative;
  z-index: 1;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 28px 0;
  position: relative;
  z-index: 2;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo-lockup img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(255, 140, 42, 0.18);
}

.header-contact {
  justify-content: flex-end;
  color: #4c4858;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.header-contact .service-label,
.header-contact .service-item,
.header-contact .service-item span,
.header-contact .service-item i {
  color: #4c4858;
}

.header-contact .service-item {
  gap: 5px;
}

.header-contact .service-item i {
  font-size: 16px;
}

.intro-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(180px, 0.52fr);
  gap: clamp(18px, 2vw, 30px);
  align-items: center;
  margin: -58px 0 0;
  min-height: 320px;
  padding: 96px clamp(8px, 1.5vw, 20px) 38px 0;
  overflow: visible;
  background: transparent;
}

.intro-strip::before {
  position: absolute;
  top: calc(-1 * (58px + 12px));
  right: clamp(-10px, 0.4vw, 12px);
  height: 100svh;
  z-index: 0;
  width: auto;
  aspect-ratio: 941 / 1673;
  background: url("./assets/page-right-bottom-bg.png") no-repeat right bottom / contain;
  opacity: 0.8;
  content: "";
  pointer-events: none;
}

.intro-strip::after {
  display: none;
}

.intro-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: clamp(18px, 1.8vw, 28px);
  align-content: center;
  max-width: min(980px, 100%);
  padding-left: max(56px, calc((100vw - 1320px) / 2 + 56px));
}

.intro-art {
  position: absolute;
  inset: 4% -2% -200px 52%;
  z-index: 1;
  opacity: 0.4;
  min-height: 100%;
  pointer-events: none;
}

.intro-strip h1 {
  position: relative;
  z-index: 4;
  max-width: none;
  margin: 0;
  color: #3d384a;
  font-family: var(--font-display);
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0.01em;
  text-wrap: balance;
  white-space: nowrap;
}

.desktop-break {
  display: block;
}

.title-underline {
  position: relative;
  display: inline-block;
}

.title-underline::after {
  position: absolute;
  left: 50%;
  bottom: -0.16em;
  width: 100%;
  height: 16px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='32' viewBox='0 0 260 32'%3E%3Cpath d='M1 19c24 7 49 8 74 6 27-2 54-8 81-7 19 1 38 5 57 3 15-1 30-4 45-8' fill='none' stroke='%23e38d6d' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M2 24c23 4 46 5 69 4 35-2 69-8 104-7 21 0 42 4 63 1 7-1 14-2 21-4' fill='none' stroke='%23f3c1aa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='.85'/%3E%3C/svg%3E")
      no-repeat left center / 100% 100%;
  opacity: 0.9;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.intro-strip .audience-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 8px clamp(18px, 2vw, 30px);
  margin-top: 10px;
  justify-items: start;
}

.product-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  justify-content: center;
  gap: clamp(22px, 2.2vw, 36px);
  width: min(1440px, 100%);
  margin: 0 auto;
  min-height: 0;
  padding: 0 18px 14px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 18px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    0 18px 34px rgba(72, 55, 38, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.product-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.68), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 42%);
  content: "";
  opacity: 0.8;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-card.featured {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 247, 241, 0.34)),
    linear-gradient(120deg, rgba(255, 140, 42, 0.08), rgba(201, 109, 120, 0.07)),
    rgba(255, 255, 255, 0.34);
}

.card-top {
  padding: 24px 28px 0;
}

.card-index {
  margin-right: 7px;
  color: var(--rose);
  font-family: var(--font-display);
  font-size: clamp(28px, 2.1vw, 36px);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  vertical-align: baseline;
}

.card-top h2 {
  display: inline;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.card-top p {
  max-width: none;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(12px, 2.8vw, 14px);
  font-weight: 600;
  line-height: 1.55;
  white-space: nowrap;
}

.visual-grid {
  width: calc(100% - 56px);
  min-height: 0;
  margin: 0 28px;
  padding: 0;
}

.storybook-art,
.video-box,
.book-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 10px 26px rgba(72, 55, 38, 0.1);
}

.samples {
  display: grid;
  grid-template-columns: 1.06fr 0.84fr;
  grid-template-rows: 1fr 1fr;
  gap: 9px;
}

.samples img,
.storybook-art img,
.video-box img,
.video-box video,
.book-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.samples img,
.video-box,
.book-preview {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 10px 26px rgba(72, 55, 38, 0.1);
}

.storybook-art {
  display: block;
  width: calc(100% - 56px);
  min-height: 0;
  margin: 0 28px;
  padding: 0;
}

.storybook-art img,
.video-box video,
.book-preview img {
  display: block;
}

.storybook-art img {
  border-radius: 8px;
}

.samples .tall {
  grid-row: span 2;
}

.video-box {
  position: relative;
  width: calc(100% - 56px);
  min-height: 0;
  margin: 0 28px;
}

.video-box::after,
.book-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.04), rgba(47, 41, 35, 0.18));
  content: "";
}

.video-box button {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 18px 34px rgba(47, 41, 35, 0.24);
  cursor: pointer;
  font-weight: 700;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.video-box.is-playing button {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.book-preview {
  position: relative;
  width: calc(100% - 56px);
  min-height: 0;
  margin: 0 28px;
}

.buy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 0 28px 26px;
  padding: 0;
  background: transparent;
}

.price-copy {
  min-width: 0;
}

.buy-row small {
  display: block;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}

.buy-row strong {
  display: block;
  margin-top: 5px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.buy-row strong span {
  margin-right: 2px;
  font-size: 19px;
}

.pay-button {
  align-self: center;
  min-width: 72px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 12px 22px rgba(201, 109, 120, 0.22);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.pay-button:hover,
.pay-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 15px 26px rgba(201, 109, 120, 0.28);
}

.bottom-info-strip {
  display: grid;
  place-items: center;
  padding: 8px 28px 18px;
  text-align: center;
}

.bottom-info-strip strong {
  color: var(--teal);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.audience-tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.audience-tags span {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: 0;
  background: none;
  color: rgba(94, 95, 124, 0.84);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
}

.intro-art {
  position: absolute;
  inset: 4% -2% -200px 52%;
  min-height: 100%;
  transform: scale(2);
  transform-origin: center right;
}

.intro-glow,
.intro-bloom,
.intro-stem,
.intro-leaf {
  position: absolute;
  display: block;
}

.intro-glow {
  display: none;
}

.intro-glow--peach {
  top: -2%;
  right: -18%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 196, 166, 0.76), rgba(255, 196, 166, 0.14) 58%, transparent 74%);
}

.intro-glow--blue {
  left: 44%;
  bottom: 15%;
  width: 200px;
  height: 160px;
  background: radial-gradient(circle, rgba(150, 198, 255, 0.8), rgba(150, 198, 255, 0.25) 56%, transparent 72%);
}

.intro-stem {
  width: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(150, 157, 238, 0.1), rgba(128, 135, 226, 0.88), rgba(105, 117, 210, 0.24));
  filter: blur(1.4px);
  transform-origin: bottom center;
}

.intro-stem--left {
  right: 29%;
  bottom: 2%;
  height: 120px;
  transform: rotate(11deg);
}

.intro-stem--right {
  right: 14%;
  bottom: 2%;
  height: 106px;
  transform: rotate(23deg);
}

.intro-bloom {
  border-radius: 46% 54% 42% 58% / 48% 44% 56% 52%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 213, 197, 0.95), transparent 30%),
    radial-gradient(circle at 58% 48%, rgba(255, 178, 145, 0.96), rgba(255, 152, 118, 0.82) 52%, rgba(255, 152, 118, 0.12) 74%, transparent 78%);
  filter: blur(10px);
  opacity: 0.88;
}

.intro-bloom--main {
  top: 18%;
  right: 16%;
  width: 124px;
  height: 98px;
}

.intro-bloom--side {
  top: 28%;
  right: -1%;
  width: 98px;
  height: 84px;
  opacity: 0.72;
}

.intro-leaf {
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  background: radial-gradient(circle at 40% 40%, rgba(173, 218, 255, 0.82), rgba(122, 182, 244, 0.72) 55%, rgba(122, 182, 244, 0.08) 78%, transparent 82%);
  filter: blur(12px);
}

.intro-leaf--left {
  left: 10%;
  bottom: 10%;
  width: 116px;
  height: 72px;
  transform: rotate(-18deg);
}

.intro-leaf--base {
  left: 42%;
  bottom: 6%;
  width: 82px;
  height: 120px;
  background: radial-gradient(circle at 50% 34%, rgba(174, 183, 255, 0.74), rgba(150, 160, 255, 0.28) 52%, transparent 78%);
  filter: blur(20px);
}

.contact-strip {
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: 18px;
  align-items: center;
  padding: 12px 28px;
  color: #fffaf4;
  background:
    linear-gradient(135deg, rgba(46, 105, 102, 0.96), rgba(143, 180, 155, 0.88)),
    #2e6966;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.contact-strip strong {
  font-size: 17px;
  font-weight: 700;
}

.contact-strip span,
.contact-strip a {
  color: rgba(255, 250, 244, 0.9);
  font-size: 13px;
  font-weight: 600;
}

.contact-strip a {
  text-decoration: none;
}

.service-links {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.service-label {
  color: rgba(255, 250, 244, 0.9);
}

.service-item {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: rgba(255, 250, 244, 0.9);
}

.service-item i {
  font-size: 17px;
  line-height: 1;
}

.contact-strip .service-label,
.contact-strip .service-item,
.contact-strip .service-item span,
.contact-strip .service-item i {
  color: rgba(255, 250, 244, 0.9);
}


.modal-open {
  overflow: hidden;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(48, 41, 35, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.qr-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(360px, 100%);
  padding: 24px 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 244, 0.72)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 54px rgba(47, 41, 35, 0.2);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.qr-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.qr-modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.2;
}

.qr-modal__note {
  margin: 8px 0 16px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}

.qr-modal__image {
  width: min(250px, 100%);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(72, 55, 38, 0.12);
}

@media (max-width: 1120px) {
  .sketch-board {
    min-height: 0;
    grid-template-rows: auto;
  }

  .board-header {
    flex-wrap: wrap;
    padding-bottom: 8px;
  }

  .header-contact {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
  }

  .board-header,
  .intro-strip,
  .product-row,
  .bottom-info-strip,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .product-row {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding-bottom: 20px;
  }

  .intro-strip {
    grid-template-columns: minmax(0, 1fr) 280px;
    min-height: 340px;
    margin: -58px 0 0;
    padding: 96px 0 22px;
  }

  .intro-copy {
    padding-left: 56px;
  }

  .product-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .board-header .header-contact {
    display: none;
  }

  .board-header,
  .intro-strip,
  .product-row,
  .bottom-info-strip,
  .contact-strip {
    margin-inline: 0;
    padding-inline: 16px;
  }

  .logo-lockup img {
    width: 40px;
    height: 40px;
  }

  .intro-strip {
    grid-template-columns: 1fr;
    min-height: 300px;
    margin-inline: 0;
    padding: 78px 20px 24px;
  }

  .intro-strip::before {
    top: -58px;
    right: -28px;
    height: 100svh;
    width: auto;
    opacity: 0.56;
  }

  .intro-strip h1 {
    max-width: none;
    font-size: clamp(20px, 7.4vw, 30px);
    line-height: 1.3;
    letter-spacing: 0;
    white-space: normal;
    text-wrap: pretty;
  }

  .desktop-break {
    display: none;
  }

  .title-underline::after {
    height: 12px;
    bottom: -0.18em;
  }

  .intro-strip::after {
    display: none;
  }

  .intro-copy {
    gap: 14px;
    padding-left: 0;
    padding-right: 8px;
  }

  .intro-art {
    position: absolute;
    inset: 10% -28% auto 62%;
    min-height: 160px;
    margin-top: 0;
    pointer-events: none;
    opacity: 0.4;
  }

  .intro-glow--blue {
    display: none;
  }

  .intro-leaf--left,
  .intro-leaf--base {
    display: none;
  }

  .samples {
    grid-template-columns: 1fr;
  }

  .intro-strip .audience-tags,
  .audience-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
  }

  .audience-tags span {
    min-height: 0;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
  }

  .samples .tall {
    grid-row: auto;
  }

  .product-row {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 22px;
  }

  .product-card {
    gap: 12px;
  }

  .card-top {
    padding: 18px 18px 0;
  }

  .card-index {
    font-size: clamp(26px, 2.1vw, 34px);
  }

  .card-top h2 {
    font-size: 20px;
  }

  .visual-grid {
    width: calc(100% - 32px);
    margin-inline: 16px;
    padding: 0;
  }

  .video-box,
  .book-preview {
    width: calc(100% - 32px);
    margin-inline: 16px;
  }

  .buy-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin: 0 16px 16px;
    padding: 10px;
  }

  .pay-button {
    min-width: 68px;
  }
}

@media (max-width: 480px) {
  .intro-strip {
    min-height: 276px;
    padding: 72px 18px 20px;
  }

  .intro-strip::before {
    top: -58px;
    right: -120px;
    height: 100svh;
    width: auto;
    aspect-ratio: 941 / 1673;
    opacity: 0.52;
  }

  .intro-copy {
    padding-right: 8px;
  }

  .intro-strip h1 {
    font-size: clamp(18px, 7.6vw, 26px);
    line-height: 1.32;
  }

  .title-underline::after {
    height: 10px;
  }

  .intro-strip::after {
    display: none;
  }

  .intro-art {
    inset: 12% -34% auto 68%;
    min-height: 120px;
    opacity: 0.4;
  }

  .intro-glow--blue {
    display: none;
  }

  .intro-leaf--left,
  .intro-leaf--base {
    display: none;
  }
}
