/* Weekly Family Reset template components */
#why, #builder, #prompt-result, #nori-workflow, #plan-output, #use-plan, #manual, #faq, #sources { scroll-margin-top: 112px; }
.template-hero { padding-bottom: 34px; }
.template-hero .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); }
.template-hero-copy { min-width: 0; }
.template-hero-copy .dek { max-width: 700px; }
.template-stats { display: flex; flex-wrap: wrap; gap: 9px; margin: 21px 0 0; }
.template-stat { padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid var(--line); color: #5c544d; font-size: 13px; font-weight: 750; }
.template-hero-visual { position: relative; min-height: 390px; margin: 0; }
.hero-phone { position: absolute; width: min(53%, 245px); overflow: hidden; border: 7px solid #fff; border-radius: 28px; background: #eee; box-shadow: 0 22px 48px rgba(53, 40, 26, .18); }
.hero-phone img { width: 100%; height: 100%; object-fit: cover; }
.hero-phone.input { top: 0; right: 7%; transform: rotate(4deg); }
.hero-phone.calendar { bottom: 2px; left: 5%; transform: rotate(-5deg); }
.hero-connection { position: absolute; z-index: -1; width: 235px; height: 235px; border-radius: 50%; right: 3%; top: 21%; background: radial-gradient(circle, rgba(255,177,93,.47), rgba(238,245,232,.72) 52%, transparent 69%); }
.hero-badge { position: absolute; z-index: 3; right: 1%; bottom: 17%; max-width: 185px; padding: 13px 14px; border: 1px solid #f0c89f; border-radius: 16px; color: #62452f; background: rgba(255,254,253,.94); box-shadow: var(--shadow-small); font-size: 13px; font-weight: 750; }
.hero-badge strong { display: block; margin-bottom: 2px; color: var(--orange-dark); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

.summary-panel.template-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .9fr); align-items: center; gap: 24px; margin-bottom: 48px; padding: 25px 27px; border: 1px solid #e7d6c5; border-radius: 23px; background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,240,225,.9)); box-shadow: var(--shadow-small); }
.template-summary h2 { margin-bottom: 9px; font-size: clamp(28px, 4vw, 41px); }
.template-summary p:last-child { margin-bottom: 0; }
.reset-outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.reset-outcome { min-height: 82px; padding: 12px; border: 1px solid rgba(233, 204, 176, .86); border-radius: 15px; background: rgba(255,255,255,.72); }
.reset-outcome strong { display: block; color: var(--orange-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.reset-outcome span { display: block; margin-top: 3px; color: #544c44; font-size: 13px; line-height: 1.35; }

.builder-section { position: relative; overflow: hidden; padding: clamp(22px, 4vw, 36px); border: 1px solid #edc99f; border-radius: 27px; background: linear-gradient(135deg, #fff1df 0%, #fffaf1 46%, #eff6e8 100%); box-shadow: var(--shadow); }
.builder-section::before { content: ""; position: absolute; top: -160px; right: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 182, 100, .17); }
.builder-section > * { position: relative; z-index: 1; }
.builder-section .section-label { color: var(--orange-dark); }
.builder-intro { max-width: 650px; margin-bottom: 23px; }
.builder-intro p:last-child { margin-bottom: 0; }
.builder-privacy { display: flex; gap: 10px; align-items: flex-start; max-width: 720px; margin: 0 0 24px; padding: 13px 15px; border-left: 4px solid var(--sage-dark); border-radius: 0 13px 13px 0; color: #4d593f; background: rgba(255,255,255,.65); font-size: 14px; }
.builder-privacy svg { flex: 0 0 18px; margin-top: 2px; }
.reset-form { display: grid; gap: 16px; }
.form-step { padding: 18px; border: 1px solid rgba(228, 205, 182, .92); border-radius: 18px; background: rgba(255,255,255,.78); }
.form-step-title { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: var(--ink); font-family: "EK Notice Sans", "Instrument Sans", sans-serif; font-size: 20px; letter-spacing: -.02em; }
.step-number { display: inline-grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; color: #8a3d13; background: #ffddba; font-family: "Instrument Sans", sans-serif; font-size: 13px; font-weight: 900; }
.field-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: start; gap: 13px; }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.form-step:first-child .field-grid { align-items: start; }
.form-step:first-child .field { grid-template-rows: 20px 46px 34px minmax(0, auto); }
.field.full { grid-column: 1 / -1; }
.field label { min-height: 20px; color: #3e3934; font-size: 14px; font-weight: 850; }
.required { color: #b44818; }
.field-hint { min-height: 33px; margin: -2px 0 0; color: #706960; font-size: 12px; line-height: 1.35; }
.field input, .field textarea { box-sizing: border-box; width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #d9d0c5; border-radius: 12px; color: var(--ink); background: #fffefa; font: inherit; line-height: 1.42; outline: none; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.field input { height: 46px; }
.field input[type="date"] { appearance: none; -webkit-appearance: none; line-height: 22px; }
.field textarea { min-height: 116px; resize: vertical; }
.form-step:first-child .field-hint { min-height: 34px; }
.field input:focus, .field textarea:focus { border-color: #d57331; box-shadow: 0 0 0 4px rgba(255,173,88,.22); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #bb4b25; }
.field-error { display: none; color: #a9401c; font-size: 12px; font-weight: 700; }
.field-error.visible { display: block; }
.builder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 4px; }
.builder-button, .open-nori-button, .download-nori-button { min-height: 51px; padding: 0 19px; border: 0; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #2a190d; background: linear-gradient(110deg, #ffc073, #ff9e42); box-shadow: 0 7px 14px rgba(210,112,34,.16); font: inherit; font-weight: 900; text-decoration: none; transition: transform .16s cubic-bezier(.23,1,.32,1), box-shadow .16s ease; }
.builder-button:hover, .open-nori-button:hover, .download-nori-button:hover, .builder-button:focus-visible, .open-nori-button:focus-visible, .download-nori-button:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(210,112,34,.22); outline: 3px solid rgba(255,173,88,.24); outline-offset: 3px; }
.builder-button:active, .open-nori-button:active, .download-nori-button:active { transform: scale(.97); }
.builder-button:disabled { cursor: not-allowed; opacity: .58; box-shadow: none; transform: none; }
.builder-button svg, .open-nori-button svg, .download-nori-button svg { width: 18px; height: 18px; }
.builder-note { margin: 0; color: #70675f; font-size: 12px; }
.prompt-result { margin-top: 22px; padding: 21px; border: 1px solid #dfc7ad; border-radius: 20px; background: rgba(255,255,255,.74); }
.prompt-result.is-ready { border-color: #c4d8b6; background: linear-gradient(145deg, #fffefa, #f3f8ed); }
.prompt-result-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.prompt-step { margin: 0 0 4px !important; color: #a04b19 !important; font-size: 11px !important; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.prompt-result-head h3 { margin: 0; font-size: 26px; }
.prompt-result-head p { margin: 5px 0 0; color: #5d554e; font-size: 14px; }
.prompt-state { flex: 0 0 auto; margin-top: 2px; padding: 6px 9px; border-radius: 999px; color: #766e66; background: #f2ede6; font-size: 11px; font-weight: 850; white-space: nowrap; }
.prompt-result.is-ready .prompt-state { color: #456431; background: #e3efda; }
.prompt-empty { display: grid; gap: 4px; margin-top: 15px; padding: 15px; border: 1px dashed #d8c4ae; border-radius: 15px; color: #675c52; background: rgba(255,250,243,.72); }
.prompt-empty[hidden] { display: none; }
.prompt-empty strong { color: #4a423b; font-size: 14px; }
.prompt-empty span { font-size: 13px; line-height: 1.42; }
.prompt-box { max-height: 420px; margin: 15px 0; padding: 17px; overflow: auto; border: 1px solid #c8d9bc; border-radius: 17px; color: #312b25; background: #fffefa; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; }
.prompt-box[hidden], .prompt-actions[hidden] { display: none; }
.prompt-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.open-nori-button { color: #304626; background: #e5f0dc; box-shadow: none; }
.download-nori-button { color: #574638; background: #fff; box-shadow: 0 5px 13px rgba(63,45,28,.08); }
.copy-status { min-height: 21px; margin: 10px 0 0; color: #4f7137; font-size: 13px; font-weight: 800; }
.no-script-prompt { margin-top: 17px; padding: 16px; border: 1px dashed #d8b590; border-radius: 15px; background: rgba(255,255,255,.66); color: #62584f; font-size: 14px; }

.nori-experience { padding-top: 4px; }
.nori-experience-intro { max-width: 760px; }
.nori-home-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr); gap: 28px; align-items: start; margin-top: 25px; padding: 24px; border: 1px solid #d3dfc8; border-radius: 24px; background: linear-gradient(145deg, #fff, #eef6e9); box-shadow: var(--shadow-small); }
.nori-home-copy { min-width: 0; padding: 7px 2px 7px 5px; }
.journey-kicker { margin-bottom: 9px !important; color: #547139 !important; font-size: 12px !important; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.journey-steps { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: journey; }
.journey-steps li { position: relative; min-height: 60px; margin: 0; padding: 4px 0 4px 49px; color: #4d5843; counter-increment: journey; }
.journey-steps li::before { content: counter(journey); position: absolute; left: 0; top: 2px; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 11px; color: #46652f; background: #dbead0; font-size: 13px; font-weight: 900; }
.journey-steps strong { display: block; color: #263621; font-size: 16px; line-height: 1.25; }
.journey-steps span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.38; }
.journey-note { margin-top: 18px; padding: 15px; border-left: 4px solid #ffad58; border-radius: 0 14px 14px 0; background: rgba(255,249,240,.78); }
.journey-note p { margin: 0; color: #5b5147; font-size: 14px; }
.nori-home-figure { display: grid; justify-items: center; gap: 13px; margin: 0; padding: 16px 12px 13px; border: 1px solid #d6e1cd; border-radius: 19px; background: linear-gradient(145deg, #fafdf8, #ecf4e6); }
.nori-home-frame { position: relative; display: flex; justify-content: center; width: min(100%, 258px); overflow: hidden; border: 5px solid #fff; border-radius: 26px; background: #f7f4ec; box-shadow: 0 17px 34px rgba(55, 65, 45, .18); }
.nori-home-frame img { display: block; width: 100%; height: auto; }
.nori-home-figure figcaption { max-width: 300px; margin: 0; color: #64705b; font-size: 12px; line-height: 1.42; text-align: center; }
.nori-home-figure figcaption strong { color: #405b2e; }
.plan-table { margin-top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.plan-table table { width: 100%; border-collapse: collapse; }
.plan-table th, .plan-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; line-height: 1.4; }
.plan-table th { color: #5b534b; background: #faf6f0; font-size: 13px; }
.plan-table tr:last-child td { border-bottom: 0; }
.plan-table td:first-child { width: 38%; color: var(--ink); font-weight: 820; }

.manual-reset { padding: 25px; border: 1px solid #d8e4cd; border-radius: 23px; background: linear-gradient(145deg, #fff, #f1f7ec); }
.manual-reset h2 { margin-bottom: 10px; }
.manual-checklist { margin: 19px 0 0; padding: 0; list-style: none; }
.manual-checklist li { position: relative; margin: 0; padding: 12px 4px 12px 32px; border-top: 1px solid rgba(177, 194, 164, .52); color: #4c5743; font-size: 15px; }
.manual-checklist li::before { content: "□"; position: absolute; left: 4px; top: 9px; color: #58743f; font-size: 21px; }

.template-sources { margin-top: 4px; }
.template-sources table { width: 100%; border-collapse: collapse; }
.template-sources th, .template-sources td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
.template-sources th { color: #5d554e; background: #faf6f0; }

@media (max-width: 900px) {
  .template-hero .hero-grid { grid-template-columns: 1fr; }
  .template-hero-visual { width: min(100%, 520px); min-height: 360px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .template-hero-visual { min-height: 320px; }
  .hero-phone { width: min(52%, 210px); border-width: 5px; border-radius: 22px; }
  .hero-phone.input { right: 5%; }
  .hero-phone.calendar { left: 4%; }
  .hero-badge { right: 0; bottom: 14%; max-width: 155px; padding: 11px; font-size: 12px; }
  .summary-panel.template-summary { grid-template-columns: 1fr; padding: 21px; }
  .builder-section { margin-inline: -1px; padding: 22px 16px; border-radius: 22px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-hint, .form-step:first-child .field-hint { min-height: 0; }
  .form-step:first-child .field { grid-template-rows: auto; }
  .form-step { padding: 15px; }
  .builder-actions, .prompt-actions { align-items: stretch; flex-direction: column; }
  .builder-button, .open-nori-button, .download-nori-button { width: 100%; }
  .prompt-result { padding: 17px; }
  .prompt-result-head { display: block; }
  .prompt-state { display: inline-flex; margin-top: 9px; }
  .prompt-box { max-height: 370px; padding: 14px; font-size: 12px; }
  .nori-home-showcase { grid-template-columns: 1fr; gap: 20px; padding: 18px 16px; }
  .nori-home-copy { padding: 2px; }
  .nori-home-figure { width: min(100%, 300px); justify-self: center; padding: 14px 10px 12px; }
  .nori-home-frame { width: min(100%, 236px); border-width: 4px; border-radius: 22px; }
  .nori-home-figure figcaption { font-size: 11px; }
  .plan-table { overflow: visible; border: 0; background: transparent; }
  .plan-table table, .plan-table tbody, .plan-table tr, .plan-table td { display: block; width: 100%; }
  .plan-table thead { display: none; }
  .plan-table tr { margin-bottom: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
  .plan-table td { padding: 0; border: 0; }
  .plan-table td:first-child { width: auto; margin-bottom: 5px; color: #5b743f; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
  .plan-table tr:last-child { margin-bottom: 0; }
  .reset-outcomes { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .prompt-result.show { animation: none; }
  .field input, .field textarea, .builder-button, .open-nori-button, .download-nori-button { transition: none; }
}
