:root {
  --cream: #fbfaf7;
  --paper: #fff;
  --ink: #183150;
  --soft: #647388;
  --muted: #647388;
  --blue: #5873e8;
  --lavender: #ebe8ff;
  --yellow: #fff1cb;
  --mint: #dbf0e9;
  --line: #d6deea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Arial, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.mini-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.08em;
}

.mini-brand i {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 12px 12px 12px 4px;
  font-size: 17px;
  font-style: normal;
}

.back-link {
  display: inline-flex;
  gap: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.guide-shell,
.journal-shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 28px 100px;
}

.guide-title {
  text-align: center;
}

.kicker {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 15px auto 18px;
  font-size: clamp(48px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.guide-title > p:last-child {
  max-width: 590px;
  margin: 0 auto;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.6;
}

.rule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 55px;
}

.rule-card {
  padding: 35px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 25px;
}

.rule-card:nth-child(1) {
  background: var(--lavender);
}

.rule-card:nth-child(2) {
  background: var(--yellow);
}

.rule-card > span {
  display: inline-block;
  padding: 7px 9px;
  background: white;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}

.rule-card h2 {
  margin: 28px 0 8px;
  font-size: 45px;
}

.rule-card > p {
  min-height: 45px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.55;
}

.example {
  margin-top: 22px;
  padding: 17px;
  background: rgba(255, 255, 255, 0.76);
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
}

.example small {
  display: block;
  margin-top: 6px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 400;
}

.quick-test {
  margin-top: 18px;
  padding: 38px;
  background: var(--mint);
  border-radius: 25px;
}

.quick-test h2 {
  margin: 8px 0 22px;
  font-size: 30px;
}

.question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 18px 0;
  border-top: 1px solid rgba(24, 49, 80, 0.13);
}

.question code {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
}

.question details {
  flex: 0 0 auto;
}

.question summary {
  padding: 8px 12px;
  color: white;
  background: var(--ink);
  border-radius: 9px;
  cursor: pointer;
  list-style: none;
  font-size: 10px;
  font-weight: 800;
}

.question details p {
  margin: 8px 0 0;
  color: #1b6f5d;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.guide-note {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.guide-note b {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 50%;
}

.guide-note p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.journal-head {
  max-width: 760px;
  margin-bottom: 70px;
}

.journal-head .journal-lead {
  color: var(--soft);
  font-size: 17px;
  line-height: 1.6;
}

.journal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.journal-nav a {
  padding: 11px 18px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.journal-nav a:hover {
  color: white;
  background: var(--ink);
  transform: translateY(-2px);
}

.journal-list {
  display: grid;
  gap: 25px;
}

.journal-article {
  padding: 50px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  scroll-margin-top: 30px;
}

.journal-article:nth-child(2) {
  background: var(--yellow);
}

.journal-article:nth-child(3) {
  background: var(--mint);
}

.journal-article h2 {
  max-width: 780px;
  margin: 12px 0 20px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.journal-article p,
.journal-article li {
  color: #4f627a;
  font-size: 15px;
  line-height: 1.7;
}

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

.formula {
  margin: 28px 0;
  padding: 20px;
  color: #2440ad;
  background: var(--lavender);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 900;
}

#warum .example {
  background: var(--mint);
}

.mini-footer {
  padding: 35px 28px;
  text-align: center;
  color: #8794a5;
  background: #111f35;
  font-size: 10px;
}

.mini-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.mini-footer nav a {
  color: #8794a5;
}

.mini-footer nav a:hover {
  color: white;
}

/* Legal pages */
.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  margin: 48px 0 14px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 26px 0 10px;
  font-size: 16px;
}

.legal-content p,
.legal-content li {
  color: #4f627a;
  font-size: 15px;
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  display: grid;
  gap: 6px;
  padding-left: 20px;
  margin: 10px 0;
}

.legal-content a {
  color: var(--blue);
  text-underline-offset: 3px;
}

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

.legal-box {
  margin: 22px 0;
  padding: 20px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.legal-box p:last-child {
  margin-bottom: 0;
}

.legal-updated {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 12px;
}

@media (max-width: 700px) {
  .guide-shell,
  .journal-shell {
    padding-top: 55px;
  }

  .rule-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rule-card {
    padding: 26px;
  }

  .quick-test,
  .journal-article {
    padding: 28px 22px;
  }

  .question {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

/* interactive learning page */
.guide-route {
  margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: white;
}
.guide-route span { font-weight: 800; color: var(--ink); }
.guide-route b { color: var(--blue); }
.decision-lab {
  margin: 28px auto; padding: 42px; border-radius: 30px; background: #e8e7ff;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr); gap: 32px;
}
.decision-lab h2, .monster-challenge h2 { margin: 7px 0 10px; color: var(--ink); font-size: clamp(30px, 4vw, 48px); }
.decision-buttons { display: grid; gap: 10px; }
.decision-buttons button, .challenge-actions button {
  border: 1px solid rgba(28,48,86,.15); background: white; color: var(--ink); border-radius: 14px;
  padding: 16px 18px; text-align: left; font-weight: 800; cursor: pointer; transition: .2s ease;
}
.decision-buttons button:hover, .decision-buttons button.chosen,
.challenge-actions button:hover, .challenge-actions button.chosen { background: var(--ink); color: white; transform: translateX(4px); }
.decision-result {
  grid-column: 1 / -1; min-height: 82px; background: rgba(255,255,255,.65); border-radius: 18px;
  padding: 20px; display: flex; gap: 18px; align-items: center; color: var(--muted);
}
.decision-result b { color: var(--blue); font-size: 27px; }
.decision-result span { flex: 1; }
.decision-result code { background: white; padding: 12px; border-radius: 10px; color: var(--ink); }
.monster-challenge {
  margin: 28px auto; padding: 38px 42px; border-radius: 30px; background: #fff1bf;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 25px; align-items: center;
}
.challenge-actions { display: grid; gap: 10px; min-width: 220px; }
.monster-feedback { grid-column: 1 / -1; min-height: 25px; margin: 0; color: var(--ink); }
@media (max-width: 700px) {
  .decision-lab, .monster-challenge { grid-template-columns: minmax(0, 1fr); padding: 26px 20px; }
  .decision-result { flex-direction: column; align-items: flex-start; }
  .monster-feedback { grid-column: auto; }
}

:where(a, button, summary):focus-visible {
  outline: 3px solid rgba(88, 115, 232, 0.35);
  outline-offset: 3px;
}

.decision-result {
  color: var(--soft);
}

/* Product detail page */
.product-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px 28px 110px;
}

.book-hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(430px, 1.06fr);
  min-height: 650px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: white;
}

.book-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
}

.book-hero h1 {
  margin: 16px 0 24px;
  font-size: clamp(48px, 5.5vw, 68px);
}

.book-lead {
  max-width: 590px;
  margin: 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.62;
}

.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.book-tags span {
  padding: 9px 12px;
  color: #3f5570;
  background: #edf1f7;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.book-buy {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.book-buy > strong {
  white-space: nowrap;
  font-size: 27px;
  letter-spacing: -0.03em;
}

.book-buy button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 12px 22px;
  color: white;
  background: var(--blue);
  border: 0;
  border-radius: 15px;
  box-shadow: 0 12px 25px rgba(88, 115, 232, 0.22);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.book-buy button:hover {
  background: #3f5bd1;
  transform: translateY(-3px);
}

.book-buy button.book-added {
  background: #2f8d76;
}

.buy-note {
  max-width: 510px;
  margin: 14px 0 0;
  color: #8290a2;
  font-size: 10px;
  line-height: 1.5;
}

.book-hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background:
    radial-gradient(circle at 72% 23%, rgba(255, 255, 255, 0.64), transparent 24%),
    linear-gradient(145deg, #dce3ff, #becaff);
  border-left: 1px solid var(--line);
}

.book-hero-visual::before {
  content: "";
  position: absolute;
  width: 530px;
  height: 530px;
  left: 50%;
  top: 48%;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 72px rgba(255, 255, 255, 0.12),
    0 0 0 144px rgba(255, 255, 255, 0.08);
}

.detail-cover {
  position: absolute;
  z-index: 2;
  width: 290px;
  left: 43%;
  top: 49%;
  border-radius: 4px 11px 11px 4px;
  box-shadow: 24px 31px 38px rgba(34, 52, 119, 0.25);
  transform: translate(-50%, -50%) rotate(-5deg);
}

.detail-mascot {
  position: absolute;
  z-index: 4;
  width: 205px;
  right: -12px;
  bottom: 4px;
  filter: drop-shadow(0 18px 20px rgba(24, 49, 80, 0.18));
}

.book-orbit {
  position: absolute;
  z-index: 5;
  padding: 11px 15px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(24, 49, 80, 0.11);
  font-size: 12px;
  font-weight: 900;
}

.orbit-a {
  top: 55px;
  left: 38px;
  transform: rotate(-4deg);
}

.orbit-b {
  right: 25px;
  top: 180px;
  color: #1e755f;
  background: var(--mint);
  transform: rotate(5deg);
}

.book-seal {
  position: absolute;
  z-index: 6;
  top: 42px;
  right: 38px;
  width: 106px;
  height: 106px;
  display: grid;
  place-content: center;
  color: white;
  background: var(--ink);
  border-radius: 50%;
  text-align: center;
  transform: rotate(5deg);
}

.book-seal strong {
  font-size: 31px;
}

.book-seal span {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.book-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  background: var(--ink);
  border-radius: 22px;
}

.book-stats div {
  display: grid;
  gap: 4px;
  padding: 28px;
  color: white;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.book-stats div:last-child {
  border-right: 0;
}

.book-stats strong {
  font-size: 27px;
}

.book-stats span {
  color: #aebcd0;
  font-size: 10px;
}

.product-section {
  padding: 115px 0 0;
}

.product-heading {
  max-width: 790px;
  margin-bottom: 38px;
}

.product-heading h2,
.book-delivery h2,
.product-faq h2 {
  margin: 12px 0 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.product-heading > p:last-child {
  color: var(--soft);
  font-size: 16px;
  line-height: 1.62;
}

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

.pain-grid article,
.contents-grid article {
  min-height: 230px;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.pain-grid article:nth-child(1),
.contents-grid article:nth-child(2) {
  background: var(--lavender);
}

.pain-grid article:nth-child(2),
.contents-grid article:nth-child(4) {
  background: var(--yellow);
}

.pain-grid article:nth-child(3),
.contents-grid article:nth-child(6) {
  background: var(--mint);
}

.pain-grid article > span,
.contents-grid article > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pain-grid h3,
.contents-grid h3 {
  margin: 55px 0 10px;
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.pain-grid p,
.contents-grid p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

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

.sample-page {
  min-height: 440px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
}

.sample-lilac {
  background: var(--lavender);
}

.sample-yellow {
  background: var(--yellow);
  transform: translateY(24px);
}

.sample-mint {
  background: var(--mint);
}

.sample-page > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sample-page > div:first-child span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.sample-page small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.sample-page h3 {
  margin: 82px 0 14px;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.sample-page > p {
  min-height: 62px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
}

.mini-formula,
.mini-check {
  margin-top: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
}

.mini-examples {
  display: grid;
  gap: 7px;
  margin-top: 28px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 13px;
}

.mini-examples span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

/* Book page preview gallery */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.preview-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: zoom-in;
  text-align: left;
  font-family: inherit;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.preview-item:hover,
.preview-item:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 22px 34px rgba(24, 49, 80, 0.16);
}

.preview-frame {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.preview-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.preview-zoom {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  font-size: 15px;
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.preview-item:hover .preview-zoom,
.preview-item:focus-visible .preview-zoom {
  opacity: 1;
  transform: scale(1);
}

.preview-caption {
  padding: 13px 15px 15px;
  border-top: 1px solid var(--line);
}

.preview-kicker {
  display: block;
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-title {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.preview-note {
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 12px;
}

.preview-lightbox {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
  background: rgba(15, 25, 43, 0.88);
}

.preview-lightbox.preview-open {
  display: flex;
}

.preview-lightbox figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(540px, 100%);
  margin: 0;
}

.preview-lightbox img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  background: white;
}

.preview-lightbox figcaption {
  margin-top: 18px;
  color: white;
  text-align: center;
}

.preview-lightbox figcaption b {
  display: block;
  font-size: 16px;
}

.preview-lightbox figcaption span {
  display: block;
  margin-top: 4px;
  color: #aebcd0;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.preview-close,
.preview-nav {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.preview-close:hover,
.preview-nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.preview-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.preview-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  font-size: 22px;
  transform: translateY(-50%);
}

.preview-prev {
  left: 16px;
}

.preview-next {
  right: 16px;
}

.contents-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contents-grid article {
  min-height: 250px;
}

.book-delivery {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  margin-top: 115px;
  background: var(--ink);
  border-radius: 32px;
}

.book-delivery > div:first-child {
  padding: 65px;
}

.book-delivery .kicker {
  color: #95a8ff;
}

.book-delivery h2 {
  color: white;
}

.book-delivery p,
.book-delivery li {
  color: #b8c5d6;
  font-size: 14px;
  line-height: 1.65;
}

.book-delivery ul {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding-left: 19px;
}

.book-buy-final > strong {
  color: white;
}

.delivery-visual {
  position: relative;
  overflow: hidden;
  min-height: 570px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.58), transparent 36%),
    #cbd4ff;
}

.delivery-visual::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(255, 255, 255, 0.12);
}

.delivery-visual img {
  position: relative;
  z-index: 2;
  width: 270px;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 24px 28px 35px rgba(24, 49, 80, 0.24);
  transform: rotate(4deg);
}

.delivery-visual > span {
  position: absolute;
  z-index: 3;
  top: 38px;
  right: 36px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
}

.delivery-visual b {
  position: absolute;
  z-index: 3;
  left: 28px;
  bottom: 28px;
  padding: 13px 16px;
  color: var(--ink);
  background: white;
  border-radius: 13px;
  font-size: 10px;
}

.product-faq {
  max-width: 920px;
  margin: 115px auto 0;
}

.product-faq details {
  border-top: 1px solid var(--line);
}

.product-faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.product-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 900;
}

.product-faq summary::-webkit-details-marker {
  display: none;
}

.product-faq summary span {
  color: var(--blue);
  font-size: 22px;
}

.product-faq details[open] summary span {
  transform: rotate(45deg);
}

.product-faq details p {
  max-width: 720px;
  margin: -8px 0 25px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.65;
}

.detail-toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 24px;
  padding: 15px 18px;
  color: white;
  background: var(--ink);
  border-radius: 13px;
  box-shadow: 0 16px 38px rgba(24, 49, 80, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  font-size: 12px;
  font-weight: 800;
}

.detail-toast a {
  margin-left: 12px;
  color: #bfcaff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-toast-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

@media (max-width: 920px) {
  .book-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .book-hero-visual {
    min-height: 590px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .book-stats,
  .contents-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-stats div:nth-child(2) {
    border-right: 0;
  }

  .book-stats div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .sample-pages {
    grid-template-columns: minmax(0, 1fr);
  }

  .sample-page {
    min-height: 330px;
  }

  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sample-yellow {
    transform: none;
  }

  .sample-page h3 {
    margin-top: 48px;
  }

  .book-delivery {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .product-shell {
    padding: 18px 14px 75px;
  }

  .book-hero {
    border-radius: 24px;
  }

  .book-hero-copy {
    padding: 42px 20px;
  }

  .book-hero h1 {
    font-size: 40px;
  }

  .book-buy {
    align-items: flex-start;
    flex-direction: column;
  }

  .book-buy button {
    width: 100%;
  }

  .book-hero-visual {
    min-height: 470px;
  }

  .detail-cover {
    width: 215px;
  }

  .detail-mascot {
    width: 150px;
  }

  .book-seal {
    width: 84px;
    height: 84px;
    top: 22px;
    right: 18px;
  }

  .orbit-a {
    top: 24px;
    left: 18px;
  }

  .orbit-b {
    top: 130px;
    right: 10px;
  }

  .book-stats,
  .pain-grid,
  .contents-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .preview-caption {
    padding: 10px 12px 12px;
  }

  .preview-title {
    font-size: 12px;
  }

  .preview-lightbox {
    padding: 60px 12px;
  }

  .preview-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .preview-prev {
    left: 6px;
  }

  .preview-next {
    right: 6px;
  }

  .preview-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }

  .book-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .book-stats div:last-child {
    border-bottom: 0;
  }

  .product-section {
    padding-top: 82px;
  }

  .product-heading h2,
  .book-delivery h2,
  .product-faq h2 {
    font-size: 42px;
  }

  .pain-grid article,
  .contents-grid article {
    min-height: 215px;
  }

  .sample-page {
    min-height: 380px;
    padding: 26px;
  }

  .book-delivery {
    margin-top: 82px;
    border-radius: 24px;
  }

  .book-delivery > div:first-child {
    padding: 42px 24px;
  }

  .delivery-visual {
    min-height: 460px;
  }

  .delivery-visual img {
    width: 220px;
  }

  .product-faq {
    margin-top: 82px;
  }

  .detail-toast {
    right: 14px;
    left: 14px;
    bottom: 14px;
    transform: translateY(20px);
  }

  .detail-toast-visible {
    transform: translateY(0);
  }

  .detail-toast a {
    display: block;
    margin: 6px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Café interactive page */
.cafe-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 38px 28px 110px;
}

.cafe-title {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: 570px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 32px;
}

.cafe-title > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 62px;
}

.cafe-title h1 {
  margin: 16px 0 22px;
  font-size: clamp(56px, 7vw, 88px);
}

.cafe-title > div:first-child > p:not(.kicker) {
  max-width: 570px;
  margin: 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.62;
}

.cafe-title > div:first-child > a {
  align-self: flex-start;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
  padding: 12px 20px;
  color: white;
  background: var(--blue);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
}

.cafe-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(88, 115, 232, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 115, 232, 0.075) 1px, transparent 1px),
    var(--yellow);
  background-size: 28px 28px;
  border-left: 1px solid var(--line);
}

.cafe-visual > span {
  position: absolute;
  z-index: 4;
  top: 42px;
  right: 32px;
  padding: 13px 16px;
  color: white;
  background: var(--blue);
  border-radius: 15px 15px 4px 15px;
  font-size: 13px;
  font-weight: 900;
  transform: rotate(4deg);
}

.cafe-visual img {
  position: absolute;
  z-index: 3;
  width: 260px;
  right: -10px;
  bottom: 0;
  filter: drop-shadow(0 19px 20px rgba(24, 49, 80, 0.18));
}

.coffee-cup {
  position: absolute;
  z-index: 2;
  width: 215px;
  height: 245px;
  left: 50px;
  top: 150px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 12px 12px 30px 30px;
  box-shadow: 17px 24px 35px rgba(24, 49, 80, 0.2);
  transform: rotate(-5deg);
}

.coffee-cup::before {
  content: "";
  position: absolute;
  width: 73px;
  height: 98px;
  right: -54px;
  top: 52px;
  border: 22px solid var(--ink);
  border-left: 0;
  border-radius: 0 48px 48px 0;
}

.coffee-cup::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: -14px;
  height: 27px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.coffee-cup i {
  position: absolute;
  width: 96px;
  height: 9px;
  top: 76px;
  background: #95a8ff;
  border-radius: 999px;
}

.coffee-cup b {
  font-size: 21px;
}

.coffee-builder,
.tone-lab,
.cafe-phrases {
  padding-top: 110px;
  scroll-margin-top: 30px;
}

.coffee-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.coffee-heading h2,
.cafe-check h2 {
  margin: 12px 0 16px;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.coffee-heading > p:last-child,
.cafe-check > div:first-child > p:last-child {
  color: var(--soft);
  font-size: 16px;
  line-height: 1.62;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.builder-controls {
  display: grid;
  gap: 12px;
}

.builder-controls fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.builder-controls legend {
  float: left;
  width: 100%;
  margin-bottom: 13px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.builder-controls button,
.cafe-check-actions button {
  padding: 11px 14px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.builder-controls button:hover,
.builder-controls button.choice-active,
.cafe-check-actions button:hover,
.cafe-check-actions button.choice-active {
  color: white;
  background: var(--ink);
  transform: translateY(-2px);
}

.phrase-ticket {
  position: sticky;
  top: 100px;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: start;
  padding: 45px;
  background:
    linear-gradient(rgba(88, 115, 232, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 115, 232, 0.07) 1px, transparent 1px),
    var(--lavender);
  background-size: 26px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.phrase-ticket > p {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.phrase-ticket > strong {
  margin: 22px 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.phrase-ticket > span {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
}

.phrase-ticket > button {
  align-self: flex-start;
  margin-top: 32px;
  padding: 13px 16px;
  color: white;
  background: var(--blue);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.phrase-ticket > small {
  min-height: 16px;
  margin-top: 9px;
  color: #287663;
  font-size: 10px;
  font-weight: 900;
}

.tone-scale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tone-scale article {
  min-height: 360px;
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.tone-direct {
  background: #ffe5d8;
}

.tone-neutral {
  color: white;
  background: var(--blue);
  transform: translateY(-14px);
}

.tone-polite {
  background: var(--mint);
}

.tone-scale article > span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tone-scale h3 {
  margin: 70px 0 14px;
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.tone-scale p {
  min-height: 64px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
}

.tone-neutral p,
.tone-neutral small {
  color: #dae1ff;
}

.tone-scale small {
  display: block;
  padding-top: 18px;
  color: var(--soft);
  border-top: 1px solid rgba(24, 49, 80, 0.13);
  font-size: 10px;
}

.tone-neutral small {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.phrase-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: white;
  border: 1px solid var(--line);
  border-radius: 25px;
}

.phrase-list article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 4px 14px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.phrase-list article:nth-child(2n) {
  border-right: 0;
}

.phrase-list article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.phrase-list span {
  width: 34px;
  height: 34px;
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  color: var(--blue);
  background: var(--lavender);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.phrase-list strong {
  font-size: 14px;
}

.phrase-list small {
  color: var(--soft);
  font-size: 11px;
}

.cafe-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 25px;
  align-items: center;
  margin-top: 110px;
  padding: 48px;
  background: var(--yellow);
  border-radius: 30px;
}

.cafe-check h2 {
  max-width: 720px;
  font-size: clamp(35px, 5vw, 55px);
}

.cafe-check-actions {
  display: grid;
  gap: 10px;
  min-width: 230px;
}

.cafe-check-actions button {
  border-radius: 14px;
  text-align: left;
}

.cafe-feedback {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

@media (max-width: 850px) {
  .cafe-title,
  .builder-grid,
  .cafe-check {
    grid-template-columns: minmax(0, 1fr);
  }

  .cafe-visual {
    min-height: 520px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .phrase-ticket {
    position: relative;
    top: auto;
  }

  .tone-scale {
    grid-template-columns: minmax(0, 1fr);
  }

  .tone-scale article {
    min-height: 280px;
  }

  .tone-neutral {
    transform: none;
  }

  .tone-scale h3 {
    margin-top: 42px;
  }
}

@media (max-width: 620px) {
  .cafe-shell {
    padding: 18px 14px 75px;
  }

  .cafe-title {
    border-radius: 24px;
  }

  .cafe-title > div:first-child {
    padding: 42px 24px;
  }

  .cafe-title h1 {
    font-size: 56px;
  }

  .cafe-visual {
    min-height: 430px;
  }

  .coffee-cup {
    width: 160px;
    height: 195px;
    left: 24px;
    top: 130px;
  }

  .coffee-cup::before {
    width: 58px;
    height: 76px;
    right: -44px;
    border-width: 18px;
    border-left: 0;
  }

  .cafe-visual img {
    width: 200px;
  }

  .coffee-builder,
  .tone-lab,
  .cafe-phrases {
    padding-top: 80px;
  }

  .coffee-heading h2,
  .cafe-check h2 {
    font-size: 42px;
  }

  .phrase-ticket {
    min-height: 390px;
    padding: 28px;
  }

  .phrase-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .phrase-list article,
  .phrase-list article:nth-child(2n),
  .phrase-list article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .phrase-list article:last-child {
    border-bottom: 0;
  }

  .cafe-check {
    margin-top: 80px;
    padding: 34px 22px;
  }

  .cafe-check-actions {
    min-width: 0;
  }

  .cafe-feedback {
    grid-column: auto;
  }
}
