/* ============================================================
   checkout.css - de checkoutpagina voor nieuwe klanten (checkout.php), in de stijl van autoflowr.com:
   zelfde lettertype, kleuren, verloop en kaarten. Licht en donker via html[data-theme] (theme.js).
   ============================================================ */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}
:root {
  --bg: #f7f8fc; --bg-2: #eef1fa; --card: #ffffff; --text: #141726; --muted: #5d6378; --line: #e1e5f0;
  --teal: #14b8a6; --violet: #7c5cff; --pink: #ec4899; --accent: #5b4bf0;
  --grad: linear-gradient(120deg, #14b8a6 0%, #7c5cff 55%, #ec4899 100%);
  --radius: 16px; --shadow: 0 10px 30px rgba(20, 23, 38, .08); --field: #ffffff; --danger: #c0264b;
}
html[data-theme="dark"] {
  --bg: #0d0f1a; --bg-2: #131628; --card: #171a2e; --text: #eceefa; --muted: #a2a8c3; --line: #262a44;
  --accent: #8f80ff; --shadow: 0 10px 30px rgba(0, 0, 0, .35); --field: #11142a; --danger: #ff7a95;
}
* { box-sizing: border-box; }
body.co { margin: 0; font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; background: var(--bg); color: var(--text);
  line-height: 1.55; -webkit-font-smoothing: antialiased; }
.co a { color: var(--accent); }
.co-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* kop */
.co-top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); }
.co-top .co-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.co-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: var(--text) !important; text-decoration: none; }
.co-logo svg { width: 34px; height: 34px; }
.co-top-right { color: var(--muted); font-size: .92rem; }
.co-top-right a { font-weight: 700; text-decoration: none; }

/* hero */
.co-hero { text-align: center; padding: 48px 0 30px; }
.co-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--bg-2); color: var(--accent); font-weight: 700; font-size: .85rem; }
.co-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.1; letter-spacing: -.035em; margin: 18px auto 14px; max-width: 860px; }
.co-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.co-lead { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin: 0 auto; }

/* twee kolommen: formulier links, wat je krijgt rechts */
.co-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 28px; align-items: start; padding-bottom: 40px; }
@media (max-width: 900px) { .co-grid { grid-template-columns: 1fr; } }
.co-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.co-form { overflow: hidden; position: sticky; top: 16px; }
@media (max-width: 900px) { .co-form { position: static; } }
.co-card-head { background: var(--grad); color: #fff; text-align: center; font-weight: 800; font-size: 1.15rem; padding: 16px; letter-spacing: -.01em; }
.co-card-body { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 520px) { .co-card-body { padding: 18px; } }
.co-step { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; margin: 6px 0 0; }
.co-step span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .85rem; }
.co-alert { border: 1px solid var(--danger); color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); border-radius: 12px; padding: 12px 14px; font-size: .95rem; }

/* maand / jaar */
.co-toggle { display: inline-flex; align-self: flex-start; background: var(--bg-2); border-radius: 999px; padding: 4px; gap: 4px; }
.co-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.co-toggle span { display: inline-block; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem; cursor: pointer; color: var(--muted); }
.co-toggle em { font-style: normal; font-size: .78rem; color: var(--teal); margin-left: 4px; }
.co-toggle input:checked + span { background: var(--card); color: var(--text); box-shadow: 0 2px 8px rgba(20, 23, 38, .12); }
.co-toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* plannen */
.co-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .co-plans { grid-template-columns: 1fr; } }
.co-plan { position: relative; cursor: pointer; }
.co-plan input { position: absolute; opacity: 0; pointer-events: none; }
.co-plan-box { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px 14px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.co-plan input:checked + .co-plan-box { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; box-shadow: 0 8px 22px rgba(124, 92, 255, .18); }
.co-plan input:focus-visible + .co-plan-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.co-plan strong { font-size: 1rem; }
.co-plan-price { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin-top: 4px; }
.co-plan-per, .co-plan-brands { color: var(--muted); font-size: .82rem; }
.co-badge { position: absolute; top: -10px; right: 10px; background: var(--grad); color: #fff; font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }

/* extra brands */
.co-extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; }
.co-extra small { display: block; color: var(--muted); font-size: .84rem; }
.co-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--field); flex-shrink: 0; }
.co-stepper button { width: 36px; height: 36px; border: 0; background: transparent; color: var(--text); font-size: 1.2rem; cursor: pointer; font-family: inherit; }
.co-stepper button:hover { background: var(--bg-2); }
.co-stepper input { width: 46px; height: 36px; border: 0; text-align: center; font: inherit; font-weight: 700; background: transparent; color: var(--text); -moz-appearance: textfield; }
.co-stepper input::-webkit-outer-spin-button, .co-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* gegevens */
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-fields .co-wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .co-fields { grid-template-columns: 1fr; } }
.co-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.co-fields input { font: inherit; font-weight: 500; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--text); }
.co-fields input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, .18); }
.co-hp { position: absolute; left: -9999px; }

/* overzicht */
.co-summary { background: var(--bg-2); border-radius: 14px; padding: 14px 16px; font-size: .94rem; }
.co-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.co-summary [hidden] { display: none; }
.co-sum-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 9px !important; font-weight: 700; }
.co-sum-today { font-weight: 800; font-size: 1.05rem; }
.co-sum-today span:last-child { color: var(--teal); }
.co-summary p { margin: 8px 0 0; color: var(--muted); font-size: .84rem; }

.co-check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; cursor: pointer; }
.co-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--violet); flex-shrink: 0; }
.co-btn { border: 0; border-radius: 999px; padding: 16px 22px; font: inherit; font-weight: 800; font-size: 1.08rem; color: #fff; background: var(--grad);
  box-shadow: 0 10px 26px rgba(124, 92, 255, .35); cursor: pointer; transition: filter .15s, transform .15s; }
.co-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.co-btn:disabled { opacity: .7; cursor: progress; transform: none; }
.co-secure { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--muted); font-size: .84rem; }
.co-secure svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--teal); }

/* rechterkolom */
.co-side { display: flex; flex-direction: column; gap: 18px; }
.co-side .co-card { padding: 22px 24px; }
.co-side h2 { font-size: 1.12rem; margin: 0 0 12px; letter-spacing: -.01em; }
.co-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.co-list[hidden] { display: none; }
.co-list li { position: relative; padding-left: 34px; font-size: .95rem; color: var(--muted); }
.co-list li strong { color: var(--text); }
.co-list li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px; background: var(--grad); color: #fff;
  font-size: .78rem; font-weight: 800; display: grid; place-items: center; }

.co-flow-head { display: flex; gap: 14px; align-items: center; }
.co-flow-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.co-flow-head strong { color: var(--text); }
.co-flowy { width: 64px; height: 64px; flex-shrink: 0; background: url('flowy.webp?v=2') center / contain no-repeat; }
.co-flow svg { width: 100%; height: auto; display: block; margin-top: 8px; }
.co-flow text { font-family: inherit; font-weight: 700; font-size: 26px; fill: var(--text); }

.co-trial { display: flex; gap: 16px; align-items: flex-start; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 2px solid transparent !important; }
.co-trial > svg { width: 44px; height: 44px; flex-shrink: 0; }
.co-trial h2 { margin-bottom: 6px !important; }
.co-trial p { margin: 0; color: var(--muted); font-size: .95rem; }

/* klantcitaten */
.co-quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; position: relative; }
.co-quote-result { display: inline-block; font-weight: 800; font-size: .85rem; color: var(--accent); background: var(--bg-2); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.co-quote blockquote { margin: 0 0 14px; font-size: 1.02rem; font-style: italic; }
.co-quote figcaption { display: flex; align-items: center; gap: 12px; }
.co-quote figcaption small { display: block; color: var(--muted); font-size: .84rem; }
.co-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; flex-shrink: 0; }
img.co-avatar { object-fit: cover; background: var(--bg-2); }
.co-quotes { padding: 10px 0 50px; }
.co-quotes h2 { text-align: center; font-size: 1.6rem; letter-spacing: -.02em; margin: 0 0 22px; }
.co-quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

/* voet */
.co-foot { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: .85rem; }
.co-foot .co-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.co-foot a { color: var(--muted); }
