/* The care plan request: one calm form for someone whose website already exists.
   Graphite surfaces and hairline borders; the site's green appears only on what is chosen or in focus. */

.cp-hero .ab-h1 { max-width: none; }
.cp-hero .ab-lede { margin-top: 14px; max-width: 46rem; }
.cp-hero.ab-sec { padding-bottom: 0; }
[data-for][hidden] { display: none !important; }

.cp-body { padding: 28px 0 clamp(48px, 6vw, 80px); }
.cp-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 32px); align-items: stretch; }
.cp-hero[hidden], .cp-layout[hidden], .cp-done[hidden], .cp-field[hidden], .cp-seen[hidden], .cp-error[hidden] { display: none !important; }

/* the form card and the panel beside it share one surface */
.cp-card, .cp-aside, .cp-done {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: linear-gradient(180deg, #181f29 0%, #131921 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 0 0 1px rgba(0, 0, 0, 0.35), 0 50px 100px -50px rgba(0, 0, 0, 0.85);
}
.cp-card::before, .cp-done::before { content: ''; position: absolute; inset: 0 32px auto 32px; height: 1px; background: linear-gradient(90deg, transparent, rgba(111, 216, 179, 0.55), transparent); pointer-events: none; }
.cp-card, .cp-aside { padding: clamp(22px, 2.4vw, 34px); }


.cp-field { margin: 0 0 14px; }
.cp-field:last-child { margin-bottom: 0; }
.cp-field label, .cp-label { display: block; margin: 0 0 7px; font-size: 13.5px; font-weight: 600; color: var(--fg-2); }
.cp-opt { margin-inline-start: 6px; font-size: 12px; font-weight: 400; color: var(--fg-3); }
.cp-hint { margin: 9px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--fg-3); }

.cp-card input[type="text"], .cp-card input[type="email"], .cp-card input[type="tel"], .cp-card select, .cp-card textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: #0e1319;
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cp-card textarea { padding: 11px 14px; line-height: 1.5; resize: vertical; }
.cp-card select { appearance: none; padding-inline-end: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%239FB0C0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.cp-card input::placeholder, .cp-card textarea::placeholder { color: var(--fg-3); opacity: 0.7; }
.cp-card input:hover, .cp-card select:hover, .cp-card textarea:hover { border-color: rgba(255, 255, 255, 0.2); }
.cp-card input:focus, .cp-card select:focus, .cp-card textarea:focus { outline: none; border-color: rgba(111, 216, 179, 0.75); box-shadow: 0 0 0 4px rgba(111, 216, 179, 0.12); }
.cp-card [aria-invalid="true"] { border-color: var(--bad); }

.cp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.cp-row > .cp-field:last-child { margin-bottom: 14px; }

.cp-seen { margin: -4px 0 16px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(255, 255, 255, 0.03); color: var(--fg-2); font-size: 14.5px; line-height: 1.45; }
.cp-seen::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-inline-end: 10px; border-radius: 50%; background: var(--signal); vertical-align: 1px; }

/* choices */
.cp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-pill { position: relative; margin: 0; }
.cp-card .cp-field .cp-pill, .cp-card .cp-field .cp-option { font-weight: 400; margin: 0; }
.cp-pill input, .cp-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cp-pill span { display: inline-block; padding: 8px 15px; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 999px; background: #0e1319; color: var(--fg-2); font-size: 14.5px; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.cp-pill:hover span { border-color: rgba(255, 255, 255, 0.22); }
.cp-pill input:checked + span { border-color: rgba(111, 216, 179, 0.7); background: rgba(111, 216, 179, 0.09); color: var(--fg); }
.cp-pill input:focus-visible + span, .cp-option input:focus-visible + .cp-option-in { outline: 2px solid var(--signal); outline-offset: 3px; }

.cp-options { display: grid; gap: 10px; }
.cp-option { position: relative; display: block; }
.cp-option-in { position: relative; display: block; padding-block: 12px; padding-inline: 18px 50px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: #0e1319; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.cp-option-in::after { content: ''; position: absolute; inset-inline-end: 18px; top: 14px; width: 17px; height: 17px; border: 1.5px solid rgba(255, 255, 255, 0.25); border-radius: 50%; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.cp-option-in b { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; color: var(--fg); }
.cp-option-in small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--fg-3); }
.cp-option:hover .cp-option-in { border-color: rgba(255, 255, 255, 0.24); }
.cp-option input:checked + .cp-option-in { border-color: rgba(111, 216, 179, 0.7); background: rgba(111, 216, 179, 0.05); box-shadow: 0 0 0 1px rgba(111, 216, 179, 0.2) inset; }
.cp-option input:checked + .cp-option-in::after { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 0 4px #0e1319 inset; }

.cp-trap { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.cp-error { margin: 0 0 18px; padding: 12px 16px; border: 1px solid rgba(248, 113, 113, 0.45); border-radius: 12px; background: rgba(248, 113, 113, 0.08); color: #fecaca; font-size: 15px; line-height: 1.5; }
.cp-error a { color: inherit; text-decoration: underline; }

/* what happens next */
.cp-aside { display: flex; flex-direction: column; }
.cp-aside > .cp-aside-note:first-of-type { margin-top: auto; }
.cp-aside-h { margin: 0 0 18px; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
.cp-steps { margin: 0; padding: 0; list-style: none; counter-reset: cp; }
.cp-steps li { position: relative; padding-inline-start: 42px; margin: 0 0 16px; counter-increment: cp; }
.cp-steps li::before { content: counter(cp); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 50%; color: var(--fg-2); font-family: var(--mono); font-size: 12.5px; }
.cp-steps b { display: block; font-size: 15px; font-weight: 650; color: var(--fg); }
.cp-steps span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: var(--fg-3); }
.cp-aside-note { margin: 2px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13.5px; line-height: 1.55; color: var(--fg-3); }
.cp-aside-note + .cp-aside-note { margin-top: 14px; padding-top: 0; border-top: 0; }
.cp-aside-note a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }

/* the confirmation and the saved request */
.cp-done { max-width: 760px; padding: clamp(28px, 3.4vw, 48px); }
.cp-done:focus { outline: none; }
.cp-done-ico { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 0 20px; border: 1px solid rgba(111, 216, 179, 0.45); border-radius: 50%; background: rgba(111, 216, 179, 0.08); color: var(--signal); }
.cp-done h2 { margin: 0 0 12px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 650; letter-spacing: -0.02em; }
.cp-done p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.65; color: var(--fg-2); }
.cp-ref { display: inline-block; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; background: #0e1319; font-family: var(--mono); font-size: 14px; color: var(--fg); letter-spacing: 0.04em; }
.cp-done .cp-steps { margin: 22px 0 6px; }
.cp-done-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cp-sum { margin: 22px 0 0; display: grid; grid-template-columns: minmax(120px, 0.4fr) 1fr; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.cp-sum dt, .cp-sum dd { margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 15.5px; line-height: 1.5; }
.cp-sum dt { color: var(--fg-3); }
.cp-sum dd { color: var(--fg); overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .cp-layout { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 560px) {
  .cp-card { padding: 18px 16px; border-radius: 16px; }
  .cp-card::before, .cp-done::before { inset-inline: 20px; }
  .cp-row { grid-template-columns: minmax(0, 1fr); }
  .cp-option-in { padding-inline-end: 46px; }
  .cp-sum { grid-template-columns: minmax(0, 1fr); }
  .cp-sum dt { padding-bottom: 0; border-bottom: 0; }
}

.cp-fine { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: var(--fg-3); text-align: center; }
.cp-fine[hidden] { display: none; }
.cp-pay { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.cp-group { margin: 2px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cp-group-h { margin: 0 0 12px; font-size: 14.5px; font-weight: 650; color: var(--fg); }
.cp-submit { width: 100%; min-height: 50px; margin-top: 18px; }
.cp-submit[disabled] { opacity: 0.65; cursor: progress; }
.cp-pay .cp-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Domain-control verification (care plan). Token-only, so both themes work from
   one rule set. The email/code inputs inherit the card's input styling. */
.cp-verify { margin: 18px 0 0; }
.cp-verify-steps[hidden], .cp-verify-pane[hidden], .cp-verify-row[hidden] { display: none !important; }
.cp-verify-intro { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--fg-3); }
.cp-verify-start { width: 100%; min-height: 48px; }
.cp-verify-steps { margin-top: 16px; display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.cp-verify-pane { display: grid; gap: 10px; }
.cp-verify-label { font-size: 13.5px; font-weight: 600; color: var(--fg-2); }
.cp-verify-row { display: flex; gap: 8px; align-items: stretch; }
.cp-verify-row input { flex: 1; min-width: 0; }
.cp-verify-act { flex: none; min-height: 44px; white-space: nowrap; padding-inline: 18px; }
#cp-vcode { letter-spacing: 6px; text-align: center; font-weight: 700; }
.cp-verify-alt { align-self: start; margin: 2px 0 0; padding: 0; border: 0; background: none; color: var(--signal); font: inherit; font-size: 13px; text-align: start; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cp-verify-alt:hover { color: var(--fg); }
.cp-verify-opt h3 { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; color: var(--fg); }
.cp-verify-opt > p { margin: 0 0 6px; font-size: 13px; color: var(--fg-3); }
.cp-verify-codewrap { display: flex; align-items: stretch; }
.cp-verify-code { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.5; padding: 11px 13px; border: 1px solid var(--line); border-inline-end: 0; border-radius: 12px; border-start-end-radius: 0; border-end-end-radius: 0; background: var(--bg); font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 12.5px; color: var(--fg); }
.cp-verify-copy { flex: none; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; border-start-start-radius: 0; border-end-start-radius: 0; background: color-mix(in srgb, var(--signal) 10%, transparent); color: var(--fg); font-size: 13px; font-weight: 600; cursor: pointer; }
.cp-verify-copy:hover { background: color-mix(in srgb, var(--signal) 18%, transparent); }
.cp-verify-sub { margin: 6px 0 0; font-size: 13px; color: var(--fg-3); }
.cp-verify-tok { padding: 2px 6px; border-radius: 6px; background: var(--bg); font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 12px; color: var(--fg); }
.cp-verify-status { margin: 2px 0 0; min-height: 1.2em; font-size: 14px; font-weight: 600; }
.cp-verify-ok { color: var(--signal); }
.cp-verify-no { color: var(--bad); }
@media (max-width: 440px) { .cp-verify-row { flex-direction: column; } .cp-verify-act { width: 100%; } }
@media (max-width: 560px) { .cp-pay .cp-options { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 760px) {
  .cp-hero.ab-sec { padding-top: 28px; }
  .cp-hero .ab-lede { margin-top: 10px; font-size: 16px; }
  .cp-body { padding-top: 20px; }
}

/* right to left: the select's arrow sits on the left, and the step count uses the page's Arabic type */
html[dir="rtl"] .cp-card select { background-position: left 16px center; }
html[dir="rtl"] .cp-steps li::before { content: counter(cp, arabic-indic); }

/* Offer ladder: three ways to work with us, shown on the default care landing.
   Token colours only, so the Paper/Navy pass has nothing to map here. */
.cp-choose { margin-bottom: clamp(22px, 3vw, 34px); }
.cp-choose-intro { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.cp-choose-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); align-items: stretch; }
.cp-tier { display: flex; flex-direction: column; gap: 5px; padding: clamp(18px, 2vw, 24px); border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.cp-tier--feature { border-color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.cp-tier-badge { align-self: flex-start; margin-bottom: 4px; padding: 3px 9px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-signal); background: var(--signal); }
html[dir="rtl"] .cp-tier-badge { letter-spacing: 0; text-transform: none; font-family: var(--arabic); }
.cp-tier-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--fg); }
.cp-tier-price { margin: 0; font-size: 14px; font-weight: 600; color: var(--signal); }
.cp-tier-desc { margin: 2px 0 12px; font-size: 13px; line-height: 1.55; color: var(--fg-2); }
.cp-tier-link { margin-top: auto; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--fg); }
a.cp-tier-link:hover { color: var(--signal); }
/* Whole-card links (Monitor, In-depth audit): the entire card is tappable. */
a.cp-tier--link { text-decoration: none; color: inherit; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
a.cp-tier--link:hover { border-color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
a.cp-tier--link:hover .cp-tier-link { color: var(--signal); }
a.cp-tier--link:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.cp-tier-more { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.45; color: var(--fg-3); }
.cp-tier-more a { color: var(--fg-2); }
.cp-tier-more a:hover { color: var(--signal); }
.cp-choose-aside { margin: 14px 0 0; font-size: 13.5px; color: var(--fg-3); }
.cp-choose-aside a { color: var(--fg-2); }
.cp-choose-aside a:hover { color: var(--signal); }
@media (max-width: 760px) { .cp-choose-grid { grid-template-columns: 1fr; } }

/* site-styles: Paper and Navy, written by scripts/site-styles.mjs; edit the rules above, then rerun */
@media screen {
:where(html.ab-alt) .cp-card, :where(html.ab-alt) .cp-aside, :where(html.ab-alt) .cp-done { border: 1px solid color-mix(in srgb, var(--fg) 9%, transparent); background-image: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-2) 100%); box-shadow: 0 1px 0 color-mix(in srgb, var(--fg) 5%, transparent) inset, 0 0 0 1px rgba(0, 0, 0, 0.35), 0 50px 100px -50px rgba(0, 0, 0, 0.85); }
:where(html.ab-alt) .cp-card::before, :where(html.ab-alt) .cp-done::before { background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--signal) 55%, transparent), transparent); }
:where(html.ab-alt) .cp-card input[type="text"], :where(html.ab-alt) .cp-card input[type="email"], :where(html.ab-alt) .cp-card input[type="tel"], :where(html.ab-alt) .cp-card select, :where(html.ab-alt) .cp-card textarea { border: 1px solid color-mix(in srgb, var(--fg) 11%, transparent); background-color: var(--bg-deep); }
:where(html.ab-alt) .cp-card input:hover, :where(html.ab-alt) .cp-card select:hover, :where(html.ab-alt) .cp-card textarea:hover { border-color: color-mix(in srgb, var(--fg) 20%, transparent); }
:where(html.ab-alt) .cp-card input:focus, :where(html.ab-alt) .cp-card select:focus, :where(html.ab-alt) .cp-card textarea:focus { border-color: color-mix(in srgb, var(--signal) 75%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 12%, transparent); }
:where(html.ab-alt) .cp-seen { border: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); background: color-mix(in srgb, var(--fg) 3%, transparent); }
:where(html.ab-alt) .cp-pill span { border: 1px solid color-mix(in srgb, var(--fg) 11%, transparent); background-color: var(--bg-deep); }
:where(html.ab-alt) .cp-pill:hover span { border-color: color-mix(in srgb, var(--fg) 22%, transparent); }
:where(html.ab-alt) .cp-pill input:checked + span { border-color: color-mix(in srgb, var(--signal) 70%, transparent); background: color-mix(in srgb, var(--signal) 9%, transparent); }
:where(html.ab-alt) .cp-option-in { border: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); background-color: var(--bg-deep); }
:where(html.ab-alt) .cp-option-in::after { border: 1.5px solid color-mix(in srgb, var(--fg) 25%, transparent); }
:where(html.ab-alt) .cp-option:hover .cp-option-in { border-color: color-mix(in srgb, var(--fg) 24%, transparent); }
:where(html.ab-alt) .cp-option input:checked + .cp-option-in { border-color: color-mix(in srgb, var(--signal) 70%, transparent); background: color-mix(in srgb, var(--signal) 5%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--signal) 20%, transparent) inset; }
:where(html.ab-alt) .cp-option input:checked + .cp-option-in::after { box-shadow: 0 0 0 4px var(--bg-2) inset; }
:where(html.ab-alt) .cp-error { border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); color: var(--bad); }
:where(html.ab-alt) .cp-steps li::before { border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent); }
:where(html.ab-alt) .cp-aside-note { border-top: 1px solid color-mix(in srgb, var(--fg) 8%, transparent); }
:where(html.ab-alt) .cp-done-ico { border: 1px solid color-mix(in srgb, var(--signal) 45%, transparent); background: color-mix(in srgb, var(--signal) 8%, transparent); }
:where(html.ab-alt) .cp-ref { border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); background-color: var(--bg-deep); }
:where(html.ab-alt) .cp-sum { border-top: 1px solid color-mix(in srgb, var(--fg) 8%, transparent); }
:where(html.ab-alt) .cp-sum dt, :where(html.ab-alt) .cp-sum dd { border-bottom: 1px solid color-mix(in srgb, var(--fg) 8%, transparent); }
:where(html.ab-alt) .cp-tier-badge { color: var(--on-signal); }
}
/* /site-styles */
