﻿:root {
  --bg: #f8f0e3;
  --bg-soft: #efe1cf;
  --surface: rgba(255, 249, 240, 0.88);
  --surface-strong: #fffaf2;
  --text: #332118;
  --muted: #725a49;
  --line: rgba(126, 93, 70, 0.16);
  --accent: #d47842;
  --accent-dark: #b95d29;
  --accent-soft: #f0dbc2;
  --accent-glow: rgba(234, 170, 84, 0.28);
  --shadow: 0 22px 60px rgba(92, 61, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(92, 61, 42, 0.08);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(248, 205, 121, 0.34), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(232, 155, 94, 0.16), transparent 18%),
    radial-gradient(circle at bottom right, rgba(200, 107, 57, 0.14), transparent 23%),
    linear-gradient(180deg, #fcf7f0 0%, #f6ead8 52%, #f3e4d2 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 18px auto 0;
  padding: 14px 18px;
  background: rgba(255, 250, 243, 0.76);
  border: 1px solid rgba(110, 82, 62, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.brand {
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--accent-dark);
}

.section {
  position: relative;
  padding: 84px 20px;
}

.section--soft {
  background:
    linear-gradient(180deg, rgba(243, 229, 212, 0.66), rgba(243, 229, 212, 0.2));
}

.section--accent {
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 190, 89, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(240, 219, 194, 0.56), rgba(240, 219, 194, 0.14));
}

.section--book {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.72), rgba(239, 225, 207, 0.42));
}

.section__inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.section__inner--wide {
  width: min(100%, 1180px);
}

.section__inner--split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-heading p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.85;
  max-width: 62ch;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 110px;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 72px 50px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(255, 247, 236, 0.9));
  border: 1px solid var(--line);
  border-radius: 40px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.hero__content::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 55%);
  pointer-events: none;
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 9vw, 6.8rem);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero__subtitle {
  width: min(100%, 690px);
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1.14rem, 2.2vw, 1.42rem);
  line-height: 1.72;
}

.hero__text {
  width: min(100%, 720px);
  margin: 24px auto 0;
  font-size: 1.02rem;
  line-height: 1.9;
  color: #563f31;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
}

.hero__glow--one {
  top: 14%;
  left: 5%;
  width: 320px;
  height: 320px;
  background: var(--accent-glow);
}

.hero__glow--two {
  right: 8%;
  bottom: 12%;
  width: 360px;
  height: 360px;
  background: rgba(212, 120, 66, 0.16);
}

.text-card,
.info-card,
.form-card,
.faq-item {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.9), rgba(255, 247, 237, 0.82));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.text-card {
  max-width: 840px;
  padding: 30px 32px;
}

.text-card p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.88;
}

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

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

.info-card {
  padding: 28px 24px 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-height: 100%;
  padding: 28px 24px 24px;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.9), rgba(255, 247, 237, 0.82));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.choice-card--featured {
  border-color: rgba(185, 93, 41, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 247, 235, 0.96), rgba(250, 233, 211, 0.86));
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(92, 61, 42, 0.14);
  border-color: rgba(185, 93, 41, 0.22);
}

.info-card h3,
.choice-card h3 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.15rem;
  font-weight: 600;
}

.info-card p,
.choice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.78;
}

.choice-card .button {
  margin-top: auto;
}

.form-card {
  padding: 32px;
}

.form-card--compact {
  padding: 30px;
}

.question-weaver {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: 22px;
  align-items: stretch;
}

.weaver-card,
.weaver-result {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(255, 247, 237, 0.84));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.weaver-card {
  padding: 30px;
}

.weaver-actions,
.weaver-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.weaver-result {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 30px;
}

.weaver-result__kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.weaver-result.has-questions .weaver-result__kicker {
  color: var(--accent-dark);
  font-weight: 700;
}

.weaver-bridge {
  display: none;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.weaver-result.has-questions .weaver-bridge {
  display: block;
}

.weaver-summary {
  display: none;
  margin: 18px 0 0;
  padding: 18px;
  color: #51382a;
  font-size: 1rem;
  line-height: 1.78;
  white-space: pre-line;
  background: rgba(255, 250, 243, 0.78);
  border: 1px solid rgba(110, 82, 62, 0.14);
  border-radius: 20px;
}

.weaver-summary.is-visible {
  display: block;
}

.weaver-confirmation {
  display: none;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.weaver-confirmation.is-visible {
  display: flex;
}

.weaver-questions {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding-left: 22px;
}

.weaver-questions:empty {
  min-height: 168px;
  padding-left: 0;
}

.weaver-questions li {
  padding-left: 4px;
  color: #51382a;
  font-size: 1.02rem;
  line-height: 1.75;
}

.book-reader {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.book-panel,
.book-stage {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(255, 247, 237, 0.84));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.book-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}

.book-panel__label {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.book-panel h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 600;
}

.book-panel__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.78;
}

.book-progress {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #51382a;
  font-weight: 800;
}

.book-progress span:last-child {
  color: var(--muted);
  font-weight: 700;
}

.book-controls {
  display: grid;
  gap: 10px;
  align-items: center;
}

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

.book-controls--zoom {
  grid-template-columns: 52px 1fr 52px;
}

.book-icon-button,
.book-text-button {
  border: 1px solid rgba(185, 93, 41, 0.16);
  color: var(--text);
  background: rgba(255, 253, 249, 0.8);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.book-icon-button {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.3rem;
}

.book-controls--pager .book-icon-button {
  width: 100%;
  border-radius: 999px;
}

.book-text-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
}

.book-icon-button:hover,
.book-text-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(80, 53, 38, 0.1);
  border-color: rgba(185, 93, 41, 0.3);
}

.book-icon-button:disabled,
.book-text-button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.book-zoom {
  align-self: center;
  justify-self: center;
  color: #51382a;
  font-weight: 800;
}

.book-actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

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

.book-stage {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 720px;
  overflow: hidden;
}

.book-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.book-page-shell {
  display: grid;
  place-items: start center;
  min-height: 660px;
  padding: 28px;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 15%, transparent 85%, rgba(255, 255, 255, 0.2)),
    rgba(112, 82, 61, 0.08);
}

#book-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fffdf9;
  border-radius: 10px;
  box-shadow: 0 24px 50px rgba(57, 38, 28, 0.18);
}

.book-fallback {
  display: none;
  width: 100%;
  min-height: 660px;
  border: 0;
  border-radius: 14px;
  background: #fffdf9;
}

.book-reader.is-fallback #book-canvas {
  display: none;
}

.book-reader.is-fallback .book-fallback {
  display: block;
}

.book-stage:fullscreen {
  background: #f5ead9;
}

.book-stage:fullscreen .book-page-shell {
  height: calc(100vh - 79px);
}


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

.form-grid__full {
  grid-column: 1 / -1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 700;
}

.hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 54px;
  padding: 15px 16px;
  font: inherit;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid rgba(110, 82, 62, 0.18);
  border-radius: 20px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(200, 107, 57, 0.64);
  box-shadow: 0 0 0 5px rgba(200, 107, 57, 0.12);
  transform: translateY(-1px);
}

textarea {
  min-height: 152px;
  resize: vertical;
}

.checkbox {
  flex-direction: row;
  align-items: flex-start;
  margin: 22px 0 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.7;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  padding: 0;
  min-height: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-3px) scale(1.01);
}

.button:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}

.button--primary {
  color: #fffaf3;
  background: linear-gradient(180deg, #df844d 0%, var(--accent) 100%);
  box-shadow:
    0 16px 34px rgba(200, 107, 57, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.button--primary:hover {
  background: linear-gradient(180deg, #d77840 0%, var(--accent-dark) 100%);
}

.button--secondary {
  color: var(--text);
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid rgba(185, 93, 41, 0.16);
}

.button--secondary:hover {
  box-shadow: 0 12px 28px rgba(80, 53, 38, 0.12);
  border-color: rgba(185, 93, 41, 0.3);
}

.small-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-feedback {
  display: none;
  margin: 16px 0 0;
  padding: 14px 16px;
  color: #6a4b37;
  font-size: 0.95rem;
  line-height: 1.65;
  background: rgba(255, 247, 235, 0.92);
  border: 1px solid rgba(185, 93, 41, 0.16);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(92, 61, 42, 0.06);
}

.form-feedback.is-visible {
  display: block;
}

.form-feedback.is-error {
  color: #8b3a2d;
  background: rgba(255, 241, 238, 0.96);
  border-color: rgba(173, 76, 58, 0.18);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 0 22px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.faq-item:hover {
  border-color: rgba(185, 93, 41, 0.22);
  transform: translateY(-2px);
}

.faq-item summary {
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.02rem;
}

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

.faq-item p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  padding: 32px 20px 44px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.8), rgba(255, 245, 235, 0.72));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.site-footer__brand {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
}

.site-footer__text {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__contact a {
  width: fit-content;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}

.site-footer__contact a:hover {
  color: var(--accent-dark);
}

@media (max-width: 920px) {
  .section {
    padding: 74px 18px;
  }

  .site-header {
    border-radius: 28px;
    padding: 16px;
  }

  .site-nav {
    gap: 12px;
  }

  .cards-grid,
  .choice-grid,
  .section__inner--split,
  .question-weaver,
  .book-reader,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero__content,
  .form-card,
  .form-card--compact,
  .weaver-card,
  .book-panel,
  .weaver-result,
  .text-card {
    padding-left: 26px;
    padding-right: 26px;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 12px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .section {
    padding: 64px 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero__content {
    padding: 44px 22px;
    border-radius: 28px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 14vw, 4.5rem);
  }

  .hero__subtitle {
    font-size: 1.08rem;
    line-height: 1.72;
  }

  .hero__text {
    font-size: 0.98rem;
    line-height: 1.82;
  }

  .hero__actions {
    flex-direction: column;
    margin-top: 28px;
  }

  .button {
    width: 100%;
    min-height: 54px;
  }

  .text-card,
  .info-card,
  .choice-card,
  .form-card,
  .weaver-card,
  .book-panel,
  .book-stage,
  .weaver-result,
  .site-footer__inner {
    border-radius: 24px;
  }

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

  .section-heading h2 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .text-card,
  .form-card,
  .form-card--compact,
  .weaver-card,
  .book-panel,
  .weaver-result {
    padding: 24px 20px;
  }

  .book-stage {
    order: -1;
    min-height: 560px;
  }

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

  .book-page-shell,
  .book-fallback {
    min-height: 500px;
  }

  .book-page-shell {
    padding: 16px;
  }

  .info-card {
    padding: 24px 20px 22px;
  }

  .choice-card {
    padding: 24px 20px 22px;
  }

  .info-card h3,
  .choice-card h3 {
    font-size: 1.95rem;
  }

  .site-footer {
    padding: 20px 16px 36px;
  }

  .site-footer__inner {
    padding: 24px 20px;
  }
}

