.guide-hero {
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 198, 111, .28), transparent 24rem),
    radial-gradient(circle at 8% 82%, rgba(46, 111, 104, .11), transparent 23rem),
    linear-gradient(135deg, #fffefd, #fff4e8 58%, #fbe9e6);
}

.guide-hero .page-mark {
  display: grid;
  min-height: 320px;
  place-items: center;
  background: rgba(255, 255, 255, .78);
}

.guide-hero-note {
  position: relative;
  max-width: 15rem;
  margin: 0;
  color: var(--wine-deep);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
}

.guide-hero-note::before {
  display: block;
  margin-bottom: .55rem;
  color: var(--coral);
  content: "♡";
  font-family: Georgia, serif;
  font-size: 3.4rem;
  line-height: 1;
}

.guide-anchor-nav {
  position: sticky;
  z-index: 16;
  top: 5.1rem;
  background: rgba(255, 250, 244, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.guide-anchor-inner {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding-block: .75rem;
  scrollbar-width: thin;
}

.guide-anchor-inner a {
  flex: 0 0 auto;
  padding: .5rem .8rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
}

.guide-anchor-inner a:hover {
  color: white;
  background: var(--support);
}

.guide-privacy {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.25rem;
  padding: .52rem .78rem;
  color: var(--support-deep);
  background: rgba(46, 111, 104, .09);
  border: 1px solid rgba(46, 111, 104, .2);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 850;
}

.guide-privacy::before {
  width: .62rem;
  height: .62rem;
  background: var(--support);
  border-radius: 50%;
  box-shadow: 0 0 0 .28rem rgba(46, 111, 104, .1);
  content: "";
}

.planner-shell {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  box-shadow: var(--shadow);
}

.planner-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .38fr);
  gap: 1.5rem;
  align-items: end;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background:
    radial-gradient(circle at 92% 0, rgba(255, 202, 121, .24), transparent 18rem),
    var(--rose-2);
  border-bottom: 1px solid var(--line);
}

.planner-head h2 { margin-bottom: .55rem; }
.planner-head p { margin-bottom: 0; color: var(--ink-soft); }

.planner-progress-card {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.planner-progress-card strong {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .55rem;
  color: var(--support-deep);
  font-size: .9rem;
}

.planner-progress-card progress {
  width: 100%;
  height: .75rem;
  overflow: hidden;
  accent-color: var(--support);
  border: 0;
  border-radius: 999px;
}

.planner-body { padding: clamp(1.2rem, 3vw, 2rem); }

.stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin-bottom: 1.5rem;
  padding: .45rem;
  background: #f8efe7;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.stage-tab {
  min-height: 3.4rem;
  padding: .65rem .8rem;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: .75rem;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.45;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.stage-tab small { display: block; font-size: .72rem; font-weight: 650; }
.stage-tab:hover { background: rgba(255, 255, 255, .72); transform: translateY(-1px); }
.stage-tab[aria-selected="true"] { color: white; background: var(--support-deep); box-shadow: 0 10px 25px rgba(32, 85, 79, .18); }

.stage-panel[hidden] { display: none; }
.stage-panel-head { max-width: 760px; margin-bottom: 1.2rem; }
.stage-panel-head h3 { margin-bottom: .35rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.stage-panel-head p { margin-bottom: 0; color: var(--ink-soft); }

.guide-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.guide-check {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  align-items: start;
  min-height: 8.2rem;
  padding: 1.05rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1rem;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.guide-check:hover { transform: translateY(-2px); border-color: rgba(46, 111, 104, .42); }
.guide-check:has(input:checked) { background: rgba(46, 111, 104, .08); border-color: rgba(46, 111, 104, .4); }
.guide-check input { width: 1.3rem; height: 1.3rem; margin-top: .14rem; accent-color: var(--support); }
.guide-check strong { display: block; margin-bottom: .25rem; color: var(--ink); }
.guide-check span span { display: block; color: var(--ink-soft); font-size: .87rem; line-height: 1.65; }

.planner-foot {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.planner-status { margin: 0; color: var(--ink-soft); font-size: .85rem; }
.planner-tools { display: flex; flex-wrap: wrap; gap: .55rem; }
.guide-button {
  min-height: 2.8rem;
  padding: .6rem .85rem;
  color: var(--wine);
  background: white;
  border: 1px solid var(--wine);
  border-radius: .75rem;
  cursor: pointer;
  font-weight: 850;
}
.guide-button.primary { color: white; background: var(--wine); }
.guide-button:hover { box-shadow: 0 8px 20px rgba(91, 39, 48, .11); }

.guide-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
  color: white;
  background: linear-gradient(135deg, var(--support-deep), #347b72);
  border-radius: 1.25rem;
}
.guide-callout h3 { margin-bottom: .25rem; color: white; }
.guide-callout p { margin-bottom: 0; color: rgba(255, 255, 255, .82); }

.handoff-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.handoff-intro { position: sticky; top: 9.5rem; }
.handoff-intro p { color: var(--ink-soft); }
.handoff-points { display: grid; gap: .7rem; margin: 1.2rem 0; }
.handoff-point { display: grid; grid-template-columns: 2.2rem 1fr; gap: .75rem; align-items: start; }
.handoff-point span { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; color: white; background: var(--support); border-radius: 50%; font-size: .8rem; font-weight: 900; }
.handoff-point strong { display: block; }
.handoff-point small { color: var(--ink-soft); font-size: .82rem; }

.handoff-sheet {
  position: relative;
  padding: clamp(1.35rem, 4vw, 2.2rem);
  background:
    linear-gradient(rgba(255, 255, 255, .93), rgba(255, 255, 255, .93)),
    repeating-linear-gradient(0deg, transparent 0 1.9rem, rgba(140, 47, 66, .08) 1.9rem 1.95rem);
  border: 1px solid rgba(140, 47, 66, .22);
  border-radius: 1.3rem;
  box-shadow: var(--shadow-soft);
}
.handoff-sheet::before { position: absolute; inset: .55rem; border: 1px dashed rgba(140, 47, 66, .18); border-radius: .95rem; content: ""; pointer-events: none; }
.handoff-sheet > * { position: relative; }
.handoff-sheet h3 { margin-bottom: .3rem; font-size: 1.65rem; }
.handoff-sheet-lead { color: var(--ink-soft); font-size: .85rem; }
.handoff-field { margin-top: 1.15rem; }
.handoff-field strong { display: block; margin-bottom: .35rem; }
.write-line { min-height: 2rem; border-bottom: 1px solid rgba(56, 40, 43, .45); }
.write-line + .write-line { margin-top: .25rem; }
.handoff-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.handoff-check-row { display: flex; flex-wrap: wrap; gap: .55rem 1rem; color: var(--ink-soft); font-size: .85rem; }

.signal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.signal-card { padding: 1.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: 1.1rem; }
.signal-card strong { display: block; margin-bottom: .35rem; color: var(--wine-deep); }
.signal-card p { margin-bottom: 0; color: var(--ink-soft); }

.call-script-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .58fr); gap: 1.2rem; }
.call-script {
  margin: 0;
  padding: clamp(1.3rem, 4vw, 2rem);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--coral);
  border-radius: 1.1rem;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.9;
}
.script-tools { padding: 1.35rem; background: var(--rose-2); border: 1px solid var(--line); border-radius: 1.1rem; }
.script-tools p { color: var(--ink-soft); font-size: .9rem; }
.copy-status { min-height: 1.5rem; margin: .55rem 0 0; color: var(--support-deep); font-size: .82rem; font-weight: 800; }

.privacy-card {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  color: white;
  background: linear-gradient(135deg, #402f34, #65434a);
  border-radius: 1.5rem;
}
.privacy-card h2, .privacy-card h3 { color: white; }
.privacy-card p { color: rgba(255, 255, 255, .78); }
.privacy-card ul { margin: 1rem 0 0; padding-left: 1.2rem; color: rgba(255, 255, 255, .84); }

.guide-preview-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 10%, rgba(255, 198, 111, .22), transparent 20rem),
    linear-gradient(145deg, #fffaf4, #f5eee6);
}

.guide-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.guide-preview-copy .section-lead { margin-bottom: 1.4rem; }
.guide-stage-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.guide-stage-card { position: relative; min-height: 13rem; padding: 1.2rem; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 1.2rem; box-shadow: var(--shadow-soft); }
.guide-stage-card span { display: block; margin-bottom: .7rem; color: var(--coral); font-family: "Noto Serif TC", serif; font-size: 2rem; font-weight: 900; }
.guide-stage-card h3 { font-size: 1.15rem; }
.guide-stage-card p { margin-bottom: 0; color: var(--ink-soft); font-size: .86rem; }

@media (max-width: 920px) {
  .guide-anchor-nav { top: 4.6rem; }
  .planner-head, .handoff-layout, .call-script-layout, .guide-preview-layout { grid-template-columns: 1fr; }
  .handoff-intro { position: static; }
  .guide-stage-list { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 640px) {
  .guide-anchor-nav { top: 4.6rem; }
  .guide-hero .page-mark { min-height: 230px; }
  .stage-tabs { grid-template-columns: 1fr; }
  .stage-tab { text-align: left; }
  .guide-checks, .signal-grid, .handoff-mini-grid, .guide-stage-list { grid-template-columns: 1fr; }
  .guide-check { min-height: 0; }
  .planner-foot, .guide-callout { align-items: stretch; grid-template-columns: 1fr; }
  .planner-tools { display: grid; grid-template-columns: 1fr; width: 100%; }
  .guide-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-tab, .guide-check, .guide-button { transition: none; }
}

@media print {
  .guide-anchor-nav, .planner-head, .stage-tabs, .planner-foot, .guide-callout, .guide-intro-copy,
  .handoff-intro .actions, .script-tools, .privacy-card, .guide-page-footer { display: none !important; }
  .planner-shell, .handoff-sheet { border: 1px solid #777; box-shadow: none; }
  .planner-body { padding: 0; }
  .stage-panel[hidden] { display: block !important; }
  .stage-panel { margin-bottom: 1.2rem; break-inside: avoid; }
  .guide-checks { grid-template-columns: 1fr 1fr; }
  .guide-check { min-height: 0; padding: .55rem; break-inside: avoid; }
  .guide-check input { appearance: none; width: .9rem; height: .9rem; border: 1px solid #000; }
  .guide-check input:checked::after { display: block; content: "✓"; font-size: .8rem; line-height: .75rem; }
  .handoff-layout { display: block; }
  .handoff-intro { position: static; margin-bottom: .7rem; }
  .handoff-points { display: none; }
  .handoff-sheet { padding: .8cm; break-before: page; }
  .write-line { min-height: 1.5rem; }
  .print-guide #signals, .print-guide #call, .print-guide #resources, .print-guide #privacy,
  .print-guide [aria-labelledby="faq-title"] { display: none !important; }
  .print-handoff .guide-hero, .print-handoff #planner, .print-handoff #signals,
  .print-handoff #call, .print-handoff #resources, .print-handoff #privacy,
  .print-handoff [aria-labelledby="faq-title"] { display: none !important; }
  .print-handoff #handoff { padding: 0; border: 0; }
  .print-handoff .handoff-sheet { break-before: auto; }
}
