/* Care Plans (/care-plans) and signing up for one (/care-plans/start). Lives inside the site's zoomed layout:
   desktop at 1440px, mobile at 390px (same conventions as site.css), using the site's colors and type. */

.cp-wrap { width: 1180px; margin: 0 auto; position: relative; }
.cp-eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); margin-bottom: 12px; }
.cp-sec { padding: 104px 0; }
.cp-sec--soft { background: var(--white); border-radius: 48px; width: 1360px; margin: 0 auto; }
.cp-sec h2 em, .cp-hero h1 em, .cp-end h2 em, .cp-plan__who em { font-style: italic; }

/* ---------- Hero ---------- */
.cp-hero { position: relative; overflow: clip; padding: 150px 0 96px; text-align: center; }
.cp-hero__inner { max-width: 860px; }
.cp-hero__script { display: inline-block; margin-bottom: 18px; transform-origin: center; }
.cp-hero h1 { max-width: 820px; margin: 0 auto; }
.cp-hero__lead { max-width: 640px; margin: 22px auto 0; }
.cp-hero__ctas { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 36px; }
.cp-hero__note { margin-top: 18px; font-size: 14px; opacity: .75; }
.cp-btn-dark { background: var(--green); color: var(--cream); }
.cp-btn-dark:hover { background: var(--yellow); color: var(--green); }
.cp-btn-light { background: var(--cream); color: var(--green); }
.cp-btn-light:hover { background: var(--yellow); }
.cp-link { font-size: 16.2px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.cp-link:hover { text-decoration-thickness: 2px; }
.cp-shape { position: absolute; pointer-events: none; }
.cp-shape--clover { width: 150px; right: 120px; top: 120px; }
.cp-shape--dome { width: 170px; left: 90px; bottom: 40px; }

/* ---------- Plans ---------- */
.cp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.cp-head__aside { max-width: 340px; text-align: right; }
.cp-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cp-plan { display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: 32px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(40, 71, 52, .14); transition: transform .35s var(--ease-back), box-shadow .3s ease; }
.cp-plan:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(40, 71, 52, .2), 0 18px 40px rgba(40, 71, 52, .1); }
.cp-plan--four { background: #FBF3EA; }
.cp-plan__tag { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); }
.cp-plan__who { margin-top: 10px; font-size: 30px; line-height: 38px; }
.cp-plan__price { display: flex; align-items: baseline; margin-top: 22px; font-variant-numeric: lining-nums tabular-nums; }
.cp-plan__cur { font-size: 26px; line-height: 1; align-self: flex-start; margin-top: 8px; margin-right: 2px; }
.cp-plan__num { font-size: 60px; line-height: 1; letter-spacing: -.01em; }
.cp-plan__per { margin-left: 6px; font-size: 16.2px; opacity: .7; white-space: nowrap; }
.cp-plan__save { align-self: flex-start; margin-top: 16px; padding: 5px 12px; border-radius: 100px; background: var(--yellow); font-size: 14px; }
.cp-plan__facts { margin: 26px 0 28px; flex: 1; }
.cp-plan__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(40, 71, 52, .14); font-size: 15px; }
.cp-plan__facts dt { opacity: .75; }
.cp-plan__facts dd { font-variant-numeric: tabular-nums; }
.cp-plan__btn { width: 100%; height: 52px; gap: 10px; }
.cp-plan__btn svg, .cp-end .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.cp-plan__btn:hover svg, .cp-end .btn:hover svg { transform: translateX(3px); }

/* ---------- How it works ---------- */
.cp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 48px; list-style: none; padding: 0; }
.cp-step__num { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 100px; background: var(--peach); font-size: 17px; margin-bottom: 20px; }
.cp-step h3 { margin-bottom: 10px; }

/* ---------- Good to know ---------- */
.cp-faq { display: grid; grid-template-columns: 360px 1fr; gap: 80px; }
.cp-faq__note { margin-top: 18px; opacity: .8; }
.cp-q { border-top: 1px solid rgba(40, 71, 52, .2); }
.cp-q:last-child { border-bottom: 1px solid rgba(40, 71, 52, .2); }
.cp-q summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; }
.cp-q summary::-webkit-details-marker { display: none; }
.cp-q__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 100px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(40, 71, 52, .2); transition: background-color .2s ease; }
.cp-q__icon::before, .cp-q__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--green); transform: translate(-50%, -50%); transition: transform .25s ease; }
.cp-q__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.cp-q[open] .cp-q__icon { background: var(--yellow); }
.cp-q[open] .cp-q__icon::after { transform: translate(-50%, -50%) rotate(0); }
.cp-q p { padding: 0 60px 26px 0; max-width: 720px; }

/* ---------- End cap ---------- */
.cp-end { padding: 0 0 120px; }
.cp-end .cp-wrap { padding: 72px 64px; border-radius: 48px; background: var(--green); color: var(--cream); text-align: center; }
.cp-end p { margin: 14px auto 30px; max-width: 560px; opacity: .9; }
.cp-end .btn { gap: 10px; }
.cp-end__ctas { display: flex; align-items: center; justify-content: center; gap: 28px; }
.cp-link--light { color: var(--cream); }

/* ---------- Sign up (/care-plans/start) ---------- */
.cp-start { padding: 140px 0 120px; }
.cp-start [hidden] { display: none !important; } /* the page swaps views with hidden; grid and flex rules must not undo it */
.cp-back { display: block; width: fit-content; margin-bottom: 26px; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.cp-start h1 { max-width: 760px; }
.cp-start h1 em { font-style: italic; }
.cp-start__lead { margin-top: 14px; max-width: 620px; }
.cp-start__note, .cp-start__closed, .cp-done { margin-top: 40px; padding: 44px 48px; border-radius: 32px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(40, 71, 52, .14); max-width: 760px; }
.cp-start__closed p, .cp-done p { margin-top: 12px; }
.cp-start__closed .btn, .cp-done .btn { margin-top: 26px; gap: 10px; }
.cp-start__grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; margin-top: 44px; }
.cp-box { margin: 0 0 22px; padding: 30px 32px 32px; border: 0; border-radius: 32px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(40, 71, 52, .14); min-width: 0; }
.cp-box legend { float: left; width: 100%; display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 22px; line-height: 28px; }
.cp-box legend span { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 100px; background: var(--peach); font-size: 15px; }
.cp-box legend + * { clear: both; }
.cp-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cp-choice { position: relative; display: block; padding: 18px 20px; border-radius: 22px; background: #FBF3EA; box-shadow: inset 0 0 0 1px rgba(40, 71, 52, .14); cursor: pointer; transition: box-shadow .2s ease, background-color .2s ease; }
.cp-choice input { position: absolute; opacity: 0; pointer-events: none; }
.cp-choice:has(input:checked) { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--green); }
.cp-choice:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 3px; }
.cp-choice__name { display: block; font-size: 16px; line-height: 22px; }
.cp-choice__price { display: block; margin-top: 6px; font-size: 26px; line-height: 32px; font-variant-numeric: lining-nums tabular-nums; }
.cp-choice__price small { font-size: 14px; opacity: .7; }
.cp-choice__save { display: block; margin-top: 4px; font-size: 13.5px; opacity: .8; }
.cp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.cp-field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.cp-field--wide { grid-column: 1 / -1; }
.cp-field small { opacity: .7; }
.cp-field input { height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(40, 71, 52, .28); background: var(--cream); color: var(--green); font: inherit; font-size: 16px; }
.cp-field input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.cp-terms { max-height: 300px; overflow: auto; padding: 20px 22px; border-radius: 18px; background: var(--cream); box-shadow: inset 0 0 0 1px rgba(40, 71, 52, .14); font-size: 15px; line-height: 23px; }
.cp-terms h3 { margin: 16px 0 4px; font-size: 16px; line-height: 22px; }
.cp-terms h3:first-child { margin-top: 0; }
.cp-terms ul { margin: 12px 0 0 18px; }
.cp-terms__version { margin-top: 10px; font-size: 13px; opacity: .7; }
.cp-renew { margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: #FBF3EA; font-size: 15px; line-height: 23px; }
.cp-renew b { font-weight: 400; font-size: 17px; }
.cp-check { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; font-size: 15px; line-height: 23px; cursor: pointer; }
.cp-check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--green); }
.cp-card { min-height: 120px; }
.cp-small { margin-top: 14px; font-size: 13.5px; line-height: 20px; opacity: .75; }
.cp-error { margin: 0 0 18px; padding: 14px 18px; border-radius: 16px; background: var(--peach); font-size: 15px; }
.cp-submit { width: 100%; height: 60px; gap: 10px; }
.cp-submit[disabled] { opacity: .6; cursor: progress; }
.cp-summary { position: sticky; top: 110px; padding: 30px 30px 32px; border-radius: 32px; background: var(--green); color: var(--cream); }
.cp-summary__tag { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.cp-summary__name { margin-top: 8px; font-size: 24px; line-height: 30px; }
.cp-summary__price { margin-top: 14px; font-size: 44px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.cp-summary__price small { font-size: 16px; opacity: .75; }
.cp-summary ul { margin-top: 22px; list-style: none; padding: 0; font-size: 15px; line-height: 22px; }
.cp-summary li { padding: 11px 0; border-top: 1px solid rgba(255, 249, 238, .2); }
.cp-done h2 em { font-style: italic; }
.cp-done ol { margin: 18px 0 0 20px; line-height: 26px; }

/* ---------- Mobile (390px) ---------- */
@media (max-width: 1023px) {
  .cp-wrap { width: auto; margin: 0 20px; }
  .cp-sec { padding: 64px 0; }
  .cp-sec--soft { width: auto; margin: 0 10px; border-radius: 32px; }
  .cp-hero { padding: 110px 0 56px; }
  .cp-hero h1 { font-size: 40px; line-height: 48px; }
  .cp-hero__ctas { flex-direction: column; gap: 18px; }
  .cp-shape--clover { width: 82px; right: -14px; top: 64px; }
  .cp-shape--dome { width: 90px; left: -20px; bottom: 10px; }
  .cp-head { display: block; margin-bottom: 28px; }
  .cp-head__aside { text-align: left; margin-top: 12px; }
  .cp-plans, .cp-steps { grid-template-columns: 1fr; }
  .cp-steps { gap: 28px; }
  .cp-faq { grid-template-columns: 1fr; gap: 28px; }
  .cp-q p { padding-right: 0; }
  .cp-end { padding-bottom: 72px; }
  .cp-end .cp-wrap { padding: 48px 24px; border-radius: 32px; }
  .cp-end__ctas { flex-direction: column; gap: 18px; }
  .cp-start { padding: 100px 0 72px; }
  .cp-start__grid { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .cp-summary { position: static; order: -1; margin-bottom: 22px; padding: 24px; border-radius: 26px; }
  .cp-summary__price { font-size: 38px; }
  .cp-box { padding: 24px 20px; border-radius: 26px; }
  .cp-choices, .cp-fields { grid-template-columns: 1fr; }
  .cp-start__note, .cp-start__closed, .cp-done { padding: 28px 22px; border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-plan, .cp-plan__btn svg, .cp-q__icon::after { transition: none; }
}
