/* Convert group: pricing, demo, signup, thanks.
   Loaded after pages.css. Uses only the tokens from raisan.css. */

/* Components set display on elements the JS toggles with [hidden] */
.r [hidden] { display: none !important; }

/* ---------- Plan cards ---------- */
.c-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-top: clamp(40px, 5vw, 56px); }
.c-plan { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 22px; padding: clamp(26px, 2.6vw, 36px); border-radius: var(--r-card); background: var(--white); box-shadow: inset 0 0 0 1px rgba(11, 26, 92, 0.1); }
.c-plan.r-cut { padding: 0; background: none; box-shadow: none; }
.c-plan > .r-cut__body { display: flex; flex-direction: column; gap: 22px; padding: clamp(26px, 2.6vw, 36px); }
.c-plan__head { display: grid; gap: 8px; }
.c-plan__name { font-family: var(--f-display); font-weight: 900; font-size: clamp(24px, 2vw, 28px); line-height: 1.35; }
.c-plan__for { font-size: 16px; line-height: 1.6; color: var(--graphite); }
.c-plan.is-featured .r-cut__body { background: var(--r-deep); color: var(--white); border-radius: var(--r-card); }
.c-plan.is-featured .c-plan__for, .c-plan.is-featured .c-plan__vat, .c-plan.is-featured .c-limits dt { color: var(--on-dark-soft); }
.c-plan__flag { justify-self: start; }
.c-plan.is-featured .r-pill { background: transparent; color: var(--white); }

.c-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-height: 64px; }
.c-price__amount { display: inline-block; font-size: clamp(46px, 4.4vw, 60px); line-height: 1; will-change: transform, opacity, filter; }
.c-price__period { font-size: 15px; font-weight: 500; opacity: 0.72; }
.c-plan__vat { margin-top: -14px; font-size: 14px; color: var(--ink-soft); }

.c-plan .island, .c-plan .c-ghost { align-self: stretch; justify-content: space-between; }
.c-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 8px 8px 8px 8px; padding-inline-start: 26px;
  border-radius: 9999px; font-size: 17px; font-weight: 700; color: var(--r-blue);
  box-shadow: inset 0 0 0 1.5px var(--r-blue);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.c-ghost .island__icon { background: var(--r-blue); color: var(--white); }
.c-ghost:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .c-ghost:hover { background: var(--r-blue); color: var(--white); } .c-ghost:hover .island__icon { background: var(--white); color: var(--r-blue); } }
.c-plan.is-featured .island { background: var(--white); color: var(--r-deep); }
.c-plan.is-featured .island__icon { background: var(--r-blue); color: var(--white); }

.c-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.c-limits div { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--cream-2); }
.c-plan.is-featured .c-limits div { background: rgba(255, 255, 255, 0.08); }
.c-limits dt { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.c-limits dd { margin: 0; font-size: 21px; line-height: 1.3; }
.c-limits div:last-child:nth-child(odd) { grid-column: 1 / -1; }

.c-plan__mods { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--ash); }
.c-plan.is-featured .c-plan__mods { border-color: var(--on-dark-line); }
.c-plan__mods strong { font-size: 15px; font-weight: 700; }
.c-plan__mods .p-pills li { padding: 6px 12px; font-size: 14px; background: var(--cream-2); }
.c-plan.is-featured .c-plan__mods .p-pills li { background: rgba(255, 255, 255, 0.1); color: var(--white); }

/* The custom plan sits under the three as one wide navy strip */
.c-custom { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 48px; align-items: center; margin-top: 16px; }
.c-custom .r-card__title { margin-top: 2px; }
.c-custom ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.c-custom__side { display: grid; gap: 14px; justify-items: start; }
.c-custom__side .island { background: var(--white); color: var(--r-deep); }
.c-custom__side .island__icon { background: var(--r-blue); color: var(--white); }

/* ---------- Note under the plans ---------- */
.c-note { max-width: 44em; margin: 28px auto 0; text-align: center; font-size: 17px; color: var(--graphite); }

/* ---------- Comparison table (collapsible) ---------- */
.c-compare { display: grid; gap: 16px; }
.c-compare > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 18px 18px 18px; padding-inline-start: 28px;
  border-radius: 9999px; background: var(--white); cursor: pointer; list-style: none;
  box-shadow: inset 0 0 0 1px rgba(11, 26, 92, 0.12);
  font-family: var(--f-display); font-weight: 900; font-size: clamp(19px, 1.7vw, 22px);
  transition: box-shadow 200ms var(--ease-out), transform var(--t-press) var(--ease-out);
}
.c-compare > summary::-webkit-details-marker { display: none; }
.c-compare > summary:active { transform: scale(0.99); }
.c-compare > summary .round-arrow { background: var(--r-blue); }
.c-compare > summary .round-arrow svg { transition: transform 260ms var(--ease-out); }
.c-compare[open] > summary .round-arrow svg { transform: rotate(180deg); }
.c-compare__open { display: none; }
.c-compare[open] .c-compare__open { display: inline; }
.c-compare[open] .c-compare__closed { display: none; }
@media (hover: hover) and (pointer: fine) { .c-compare > summary:hover { box-shadow: inset 0 0 0 1.5px var(--r-blue); } }
@supports (interpolate-size: allow-keywords) {
  .c-compare { interpolate-size: allow-keywords; }
  .c-compare::details-content { block-size: 0; overflow: clip; transition: block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete; }
  .c-compare[open]::details-content { block-size: auto; }
}
.c-table { min-width: 720px; }
.c-table thead th:not(:first-child), .c-table td { text-align: center; }
.c-table thead th.is-featured { background: var(--r-deep); color: var(--white); }
.c-table td.is-featured { background: rgba(37, 99, 234, 0.05); }
.c-table .c-group th { padding-block: 22px 12px; font-family: var(--f-display); font-weight: 900; font-size: 15px; color: var(--r-blue); background: var(--white); }
.c-table .num { font-size: 17px; color: var(--ink); }
.c-yes, .c-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; }
.c-yes { background: var(--r-blue); color: var(--white); }
.c-no { box-shadow: inset 0 0 0 1.5px var(--ash); color: var(--ink-soft); }
.c-yes svg, .c-no svg { width: 14px; height: 14px; }

/* ---------- Form-as-hero page (demo) ---------- */
.c-split { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(32px, 4vw, 56px) clamp(64px, 7vw, 96px); }
.c-split > .container { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.c-split__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.c-split__intro .r-h-page { font-size: clamp(38px, 4.4vw, 62px); }
.c-panel {
  position: relative; display: grid; gap: 28px; padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-card); background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(11, 26, 92, 0.1), 0 40px 80px -56px rgba(11, 26, 92, 0.5);
}
.c-panel .r-field input, .c-panel .r-field select { background: var(--white); }
.c-panel__step { display: grid; gap: 16px; }
.c-panel__step + .c-panel__step { padding-top: 28px; border-top: 1px solid var(--ash); }
.c-panel__label { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 900; font-size: 19px; line-height: 1.4; }
.c-panel__label .r-badge { width: 32px; height: 32px; font-size: 15px; }
.c-submit { display: grid; gap: 12px; }
.c-submit .island { justify-self: start; }

.r-field select {
  appearance: none; cursor: pointer; padding-inline-end: 48px;
  background: var(--white) left 18px center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%232563EA' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.r-field [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #C4314B; }
.c-error { min-height: 0; font-size: 14px; font-weight: 700; color: #C4314B; }
.c-error:empty { display: none; }
.r-field input::placeholder { color: rgba(12, 12, 12, 0.5); }
.r-field .c-ltr { direction: ltr; text-align: right; }

/* ---------- Slot picker ---------- */
.c-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.c-days label, .c-times label { position: relative; cursor: pointer; }
.c-days input, .c-times input { position: absolute; opacity: 0; pointer-events: none; }
.c-day {
  display: grid; justify-items: center; gap: 2px; padding: 12px 6px;
  border-radius: 20px; background: var(--white); box-shadow: inset 0 0 0 1px var(--ash);
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform var(--t-press) var(--ease-out);
}
.c-day span { font-size: 13px; font-weight: 700; color: var(--ink-soft); transition: color 200ms ease; }
.c-day strong { font-size: 26px; line-height: 1.1; }
.c-day small { font-size: 12px; font-weight: 500; color: var(--ink-soft); transition: color 200ms ease; }
.c-days label:active .c-day, .c-times label:active .c-time { transform: scale(0.96); }
.c-days input:checked + .c-day { background: var(--r-deep); color: var(--white); box-shadow: none; }
.c-days input:checked + .c-day span, .c-days input:checked + .c-day small { color: var(--on-dark-soft); }
.c-days input:focus-visible + .c-day, .c-times input:focus-visible + .c-time { outline: 2px solid var(--r-blue); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .c-days input:not(:checked) + .c-day:hover, .c-times input:not(:checked):not(:disabled) + .c-time:hover { box-shadow: inset 0 0 0 1.5px var(--r-blue); }
}
.c-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.c-times[data-swap] { animation: c-times-in 220ms var(--ease-out); }
@keyframes c-times-in { from { opacity: 0; transform: translateY(6px); } }
.c-time {
  display: grid; place-items: center; min-height: 48px; padding: 8px;
  border-radius: 9999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--ash);
  font-size: 16px; font-weight: 700;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform var(--t-press) var(--ease-out);
}
.c-times input:checked + .c-time { background: var(--r-blue); color: var(--white); box-shadow: none; }
.c-times input:disabled + .c-time { cursor: not-allowed; color: rgba(12, 12, 12, 0.32); background: transparent; text-decoration: line-through; }
.c-slot-sum { display: flex; align-items: center; gap: 10px; min-height: 24px; font-size: 15px; font-weight: 700; color: var(--r-blue); }
.c-slot-sum svg { width: 18px; height: 18px; flex: none; }

/* ---------- Demo aside ---------- */
.c-aside { display: grid; gap: 16px; position: sticky; top: 104px; }
.c-aside .r-card { gap: 20px; }
.c-aside .r-card__title { font-size: clamp(22px, 2vw, 27px); }
.c-agenda { display: grid; gap: 14px; counter-reset: agenda; }
.c-agenda li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.c-agenda li::before {
  counter-increment: agenda; content: counter(agenda);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--r-blue); font-family: var(--f-sans); font-weight: 900; font-size: 17px;
}
.c-agenda p { color: var(--on-dark-strong); font-size: 17px; }
.c-aside__note { margin-top: 4px; font-size: 15px; color: var(--on-dark-soft); }
.c-agenda strong { display: block; font-family: var(--f-display); font-weight: 900; font-size: 18px; color: var(--white); }

/* ---------- Minimal header (demo) ---------- */
.c-minihead { position: relative; z-index: 10; }
.c-minihead .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; }
.c-minihead img { height: 54px; width: auto; }
.c-minihead a.c-back { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 9999px; font-size: 15px; font-weight: 700; color: var(--ink-soft); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .c-minihead a.c-back:hover { background: rgba(11, 26, 92, 0.05); color: var(--ink); } }

/* ---------- Thanks ---------- */
.c-thanks .r-page-hero__head { max-width: 760px; }
.c-done {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  background: var(--r-blue); color: var(--white);
  box-shadow: 0 0 0 12px rgba(37, 99, 234, 0.12);
}
.c-done svg { width: 38px; height: 38px; }
.c-done path { stroke-dasharray: 30; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .c-done { animation: c-done-in 500ms var(--ease-out) both 120ms; }
  .c-done path { animation: c-check 420ms var(--ease-out) both 420ms; }
  @keyframes c-done-in { from { opacity: 0; transform: scale(0.8); } }
  @keyframes c-check { from { stroke-dashoffset: 30; } }
}
.c-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: next; }
.c-next .r-card { gap: 14px; }
.c-next .r-card h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.4; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .c-plans { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-inline: auto; }
  .c-custom-wrap { max-width: 620px; margin-inline: auto; }
  .c-plan.is-featured { order: -1; }
}
@media (max-width: 960px) {
  .c-split > .container, .c-custom, .c-next { grid-template-columns: minmax(0, 1fr); }
  .c-aside { position: static; }
}
@media (max-width: 640px) {
  .c-days { grid-template-columns: repeat(5, minmax(64px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); scrollbar-width: none; }
  .c-days label { scroll-snap-align: start; }
  .c-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-minihead .container { min-height: 76px; }
  .c-minihead img { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .c-times[data-swap] { animation: none; }
}

/* ---------- Form steps and choice chips ---------- */
fieldset.c-panel__step { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.c-panel__step + fieldset.c-panel__step { padding-top: 28px; border-top: 1px solid var(--ash); }
legend.c-panel__label { float: inline-start; width: 100%; margin-bottom: 16px; padding: 0; }
legend.c-panel__label + * { clear: both; }
.c-panel__hint { margin-top: -6px; font-size: 15px; color: var(--graphite); }
.c-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.c-chips label { position: relative; cursor: pointer; }
.c-chips input { position: absolute; opacity: 0; pointer-events: none; }
.c-chips span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 9999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--ash);
  font-size: 15px; font-weight: 700;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform var(--t-press) var(--ease-out);
}
.c-chips label:active span { transform: scale(0.97); }
.c-chips input:checked + span { background: var(--r-blue); color: var(--white); box-shadow: none; }
.c-chips input:focus-visible + span { outline: 2px solid var(--r-blue); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .c-chips input:not(:checked) + span:hover { box-shadow: inset 0 0 0 1.5px var(--r-blue); } }
.c-sublabel { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.c-privacy { font-size: 14px; color: var(--ink-soft); }
.c-privacy a { color: var(--r-blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Small pieces shared by the forms and thanks ---------- */
.c-next .r-card h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.4; }
.c-next--hero { width: 100%; margin-top: clamp(40px, 5vw, 56px); text-align: start; }
.c-next--hero .r-card--white { box-shadow: inset 0 0 0 1px rgba(11, 26, 92, 0.1); }
.c-thanks .container { display: flex; flex-direction: column; align-items: center; }
.c-thanks__actions { justify-content: center; margin-top: 32px; }
