/* netslank.dk/kom-i-gang — the onboarding (kom-i-gang.html, onboarding.js), on the front page's styles
   (landing.css): the dark band of the hero on top with the steps, the white cards below. */

.onb-page { background: var(--tint); }
.onb-top {
    color: var(--on-dark);
    padding: env(safe-area-inset-top, 0px) 0 88px;
    background: radial-gradient(60% 90% at 100% 0%, rgba(29, 104, 135, .7), transparent 70%), linear-gradient(170deg, var(--teal-800), var(--teal-950));
}
.onb-intro { padding-top: 24px; max-width: var(--wrap); }
.onb-intro h1 { font-size: clamp(30px, 5vw, 46px); max-width: 16em; }
.onb-intro .lead { margin-top: 14px; }

/* the three steps: done ones ticked, the current one lit */
.onb-steps { list-style: none; display: flex; gap: 8px; margin-top: 36px; counter-reset: s; }
.onb-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 0 0; border-top: 3px solid rgba(255, 255, 255, .18); color: var(--on-dark-muted); font-size: 15px; font-weight: 600; min-width: 0; }
.onb-steps li .n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .12); font-size: 14px; }
.onb-steps li .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onb-steps li.on { color: #fff; border-color: var(--orange); }
.onb-steps li.on .n { background: var(--orange); color: #fff; }
.onb-steps li.done { color: #fff; border-color: var(--sky); }
.onb-steps li.done .n { background: var(--sky); color: var(--teal-900); font-size: 0; }
.onb-steps li.done .n::before { content: "✓"; font-size: 15px; }
@media (max-width: 520px) { .onb-steps li:not(.on) .t { display: none; } }

/* the cards, pulled up over the band */
.onb { margin-top: -64px; padding-bottom: 72px; }
.onb-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .onb-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.onb-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 22px; }
@media (min-width: 700px) { .onb-card { padding: 36px 40px; } }
.onb-card.flat { box-shadow: none; background: transparent; padding: 0; }
.onb-card.flat:first-child { background: var(--surface); box-shadow: var(--shadow); padding: 28px 22px; margin-bottom: 20px; }
@media (min-width: 700px) { .onb-card.flat:first-child { padding: 32px 40px; } }
.onb-card h2 { font-size: 26px; outline: none; }
.onb-card .sub-h { font-size: 19px; margin-top: 30px; }
.muted { color: var(--muted); margin-top: 6px; }

.fields { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 620px) { .fields { grid-template-columns: 1fr 1fr; } .field.wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
.field input {
    font: inherit; font-size: 16px; font-weight: 400; color: var(--text);
    min-height: 48px; padding: 10px 14px; border-radius: 12px;
    border: 1.5px solid var(--line); background: var(--bg);
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.onb-msg { margin-top: 18px; padding: 10px 14px; border-radius: 12px; background: #fdecea; color: #8a1c12; font-size: 15px; }
@media (prefers-color-scheme: dark) { .onb-msg { background: #3a1814; color: #ffb4a8; } }
.onb-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap-reverse; }
.onb-nav .btn.primary { margin-left: auto; }
.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn.soft { background: var(--teal-50); color: var(--accent); }
.btn.soft:hover { background: var(--teal-100); }
.onb-card.flat .btn.soft { background: var(--surface); box-shadow: var(--shadow); }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 520px) { .onb-nav .btn { flex: 1; } }

/* the pictures beside step 1 and 3 */
.onb-visual { position: relative; padding: 8px 4px 0; }
@media (min-width: 1000px) { .onb-visual { position: sticky; top: 24px; padding: 0; } }
/* (on a phone, under the form: the window and the phone a little smaller) */
@media (max-width: 999px) { .onb-visual .browser { width: 88%; } .onb-phone { width: 34%; margin-top: -26%; } .onb-phone.solo { width: 52%; margin-top: 0; } }
.onb-visual .browser { box-shadow: var(--shadow-lg); }
.onb-phone { width: 36%; margin: -30% 4% 0 auto; }
.onb-phone.solo { width: 62%; margin: 0 auto; }
.onb-ticks { margin-top: 28px; gap: 10px; }
.ticks.small { margin-top: 24px; gap: 10px; font-size: 15px; color: var(--muted); }
.gdpr-mini { margin-top: 28px; padding: 16px 18px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); font-size: 15px; color: var(--muted); }
.gdpr-mini b { display: block; color: var(--text); }

/* step 2: each extra a card with its picture */
.extras { display: grid; gap: 20px; }
@media (min-width: 1000px) { .extras { grid-template-columns: repeat(3, 1fr); } }
.extra { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 2px solid transparent; transition: border-color .2s, box-shadow .2s; }
.extra.chosen { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(243, 152, 20, .14), var(--shadow); }
.extra-pic { position: relative; height: 210px; overflow: hidden; background: radial-gradient(70% 90% at 100% 0%, rgba(29, 104, 135, .65), transparent 70%), linear-gradient(170deg, var(--teal-800), var(--teal-950)); }
.extra-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.extra-body h3 { font-size: 21px; }
.extra-body > p { color: var(--muted); font-size: 15px; }
.extra-body .extra-price { color: var(--text); font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 10px; background: var(--teal-50); }
.extra-note { font-size: 13px !important; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-900); background: var(--sky); padding: 3px 10px; border-radius: 999px; }

.toggle, .terms { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.toggle { margin-top: auto; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; }
.extra.chosen .toggle { border-color: var(--orange); background: rgba(243, 152, 20, .08); }
.toggle input, .terms input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); }
.terms { color: var(--muted); }
.terms.dpa { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--teal-50); color: var(--text); }

/* the pictures: booking (behandler-booking's own screenshots), the assistant and a website as drawings */
.pic-booking .booking-calendar { position: absolute; left: 18px; top: 22px; width: 118%; max-width: none; border-radius: 8px; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .45)); }
.pic-booking .phone { position: absolute; right: 18px; top: 26px; width: 30%; }
.mock-ai { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.35; }
.bubble.me { align-self: flex-end; background: var(--orange); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { display: grid; gap: 5px; background: #fff; color: #10232c; border-bottom-left-radius: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.bubble.bot .kcal { color: #16526a; font-weight: 600; }
.bubble.bot .dist { display: flex; height: 7px; border-radius: 4px; overflow: hidden; }
.bubble.bot .dist i:nth-child(1) { background: #f39814; }
.bubble.bot .dist i:nth-child(2) { background: #5f83b9; }
.bubble.bot .dist i:nth-child(3) { background: #a1cae2; }
.bubble.bot .legend { font-size: 11px; color: #55666f; }
.mock-site { padding: 22px 22px 0; }
.mock-site .browser { --surface: #fff; --chrome: #eef2f4; --chrome-dot: #d3dbe0; --line: #e4eaee; --muted: #55666f; height: 100%; border-radius: 12px 12px 0 0; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.mock-site .browser-bar { height: 26px; }
.mock-site .browser-bar span { padding: 2px 24px; font-size: 11px; }
.site { padding: 10px 14px; color: #10232c; font-size: 11px; }
.site-nav { display: flex; gap: 12px; align-items: center; color: #55666f; }
.site-nav b { color: #2f6b4f; font-size: 13px; margin-right: auto; }
.site-hero { display: grid; gap: 4px; margin: 12px 0 10px; padding: 14px; border-radius: 10px; background: linear-gradient(120deg, #e6f2ea, #f6efe2); }
.site-hero strong { font-size: 15px; color: #1f4a37; }
.site-hero em { font-style: normal; color: #55666f; }
.site-hero u { justify-self: start; margin-top: 4px; text-decoration: none; color: #fff; background: #2f6b4f; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.site-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.site-tiles i { height: 36px; border-radius: 8px; background: #eef2f4; }

/* step 3: the bill */
.today { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: var(--teal-50); }
.today span { font-weight: 600; }
.today b { font-size: 30px; color: var(--accent); }
.today small { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.seats { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 15px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 40px; height: 36px; border: 0; background: transparent; color: var(--accent); font-size: 20px; cursor: pointer; font-family: inherit; }
.stepper button:hover { background: var(--teal-50); }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; }
.bill { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.bill th { text-align: left; font-weight: 400; padding: 10px 0; }
.bill td { text-align: right; white-space: nowrap; padding: 10px 0 10px 12px; font-variant-numeric: tabular-nums; }
.bill tbody tr { border-bottom: 1px solid var(--line); }
.bill tr.use { color: var(--muted); }
.bill tfoot th, .bill tfoot td { font-weight: 600; font-size: 18px; padding-top: 14px; }
.bill-note { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* the data processing agreement, read before accepting */
.dpa-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 24px; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.dpa-dialog[open] { display: flex; flex-direction: column; }
.dpa-dialog::backdrop { background: rgba(6, 24, 32, .6); }
.dpa-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dpa-head h2 { font-size: 22px; }
.dpa-head .x { border: 0; background: none; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.dpa-body { flex: 1; min-height: 0; overflow: auto; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 14px; line-height: 1.55; }
.dpa-body section { margin-top: 14px; }
.dpa-body h3 { font-size: 16px; margin-bottom: 6px; }
.dpa-body h4 { font-size: 14px; margin: 10px 0 4px; }
.dpa-body p { margin-top: 6px; }
.dpa-body p.more { padding-left: 14px; }
.dpa-body table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.dpa-body th, .dpa-body td { text-align: left; vertical-align: top; padding: 6px 8px; border: 1px solid var(--line); }
.dpa-dialog .onb-nav { margin-top: 16px; }

.onb-closed .onb-card { max-width: 640px; }
.onb-foot { padding: 0 0 40px; text-align: center; font-size: 14px; color: var(--muted); }
.onb-foot a { color: var(--muted); }
.mock-journey { display: grid; place-items: center; padding: 18px; }
.mock-journey ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; max-width: 260px; counter-reset: j; }
.mock-journey li { counter-increment: j; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: center; padding: 7px 12px; border-radius: 12px; background: #fff; color: #10232c; box-shadow: 0 8px 18px rgba(0, 0, 0, .22); font-size: 13px; }
.mock-journey li::before { content: counter(j); grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; font-size: 12px; }
.mock-journey li span { color: #55666f; font-size: 11px; }
@media (min-width: 1000px) { .extras { grid-template-columns: repeat(2, 1fr); } }
