/* Theratool landing page
 *
 * Design tokens are ported verbatim from packages/shared/tailwind.preset.js,
 * which is the single source of truth for the apps. Variable names mirror the
 * Tailwind scale (primary-600, stone-200, ...) so the two stay recognisable.
 *
 * NOTE: docs/color-palette.html is stale (old teal ramp). Do not use it.
 */

:root {
    /* Primary — muted teal, from the logo's #94C5CC */
    --primary-50: #F0F7F8;
    --primary-100: #D8ECEF;
    --primary-200: #B8DADF;
    --primary-300: #94C5CC;
    --primary-400: #6BADB7;
    --primary-500: #4B959F;
    --primary-600: #3B7C86;
    --primary-700: #2E636C;
    --primary-800: #234D55;
    --primary-900: #1A3A40;

    /* Accent — soft blue, from the logo's #B4D2E7 */
    --accent-50: #F3F7FC;
    --accent-100: #E1ECF6;
    --accent-200: #CADDEF;
    --accent-300: #B4D2E7;
    --accent-400: #8BB6D6;
    --accent-600: #4A7DA8;

    /* Stone — cool blue-gray (overrides Tailwind's warm stone) */
    --stone-50: #F8F8F8;
    --stone-100: #EDEEF1;
    --stone-200: #DDDFE4;
    --stone-300: #C3C7CF;
    --stone-400: #A1A6B4;
    --stone-500: #7B8194;
    --stone-600: #5C6275;
    --stone-700: #414658;
    --stone-800: #282C3B;
    --stone-900: #000100;

    --white: #FFFFFF;
    --success-600: #059669;

    /* Type — app scale caps at 24px; 3xl+ is the display end, defined here */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --text-sm: 13px;
    --text-base: 14px;
    --text-lg: 16px;
    --text-xl: 18px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 38px;
    --text-5xl: 48px;
    --text-6xl: 60px;

    /* Shadows — from the preset */
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, .06), 0 1px 2px -1px rgba(0, 0, 0, .04);
    --shadow-card-hover: 0 4px 12px -2px rgba(0, 0, 0, .10), 0 2px 4px -2px rgba(0, 0, 0, .06);
    --shadow-card-raised: 0 8px 20px -4px rgba(0, 0, 0, .12), 0 4px 8px -4px rgba(0, 0, 0, .07);

    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    --container: 1120px;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    /* clip, not hidden — `hidden` would make this a scroll container and break
       the sticky header. Nothing overflows today; this is belt-and-braces. */
    overflow-x: clip;
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--stone-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--stone-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: var(--primary-700); }

:focus-visible {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ---------- Layout ---------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

.section { padding-block: 72px; }
.section--tight { padding-block: 56px; }
.section--alt { background: var(--stone-50); }

.section__head {
    max-width: 640px;
    margin-bottom: 40px;
}

.section__eyebrow {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary-600);
    margin-bottom: 10px;
}

h2 { font-size: clamp(26px, 3.4vw, var(--text-4xl)); }
h3 { font-size: var(--text-xl); }

.lead {
    font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
    color: var(--stone-600);
    margin-top: 14px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 100;
    background: var(--white);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card-raised);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(to bottom, var(--white), rgba(248, 248, 248, .8));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(221, 223, 228, .6);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .04);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 60px;
}

.site-header__logo { display: flex; align-items: center; }
.site-header__logo svg { height: 30px; width: auto; }

.site-nav {
    display: none;
    gap: 28px;
    font-size: var(--text-base);
    font-weight: 500;
}
.site-nav a {
    color: var(--stone-600);
    text-decoration: none;
    transition: color 150ms ease-in-out;
}
.site-nav a:hover { color: var(--primary-600); }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 100ms ease, border-color 100ms ease, transform 100ms ease;
}

.btn--primary {
    background: var(--primary-700);
    color: var(--white);
}
.btn--primary:hover { background: var(--primary-800); }
.btn--primary:active { transform: translateY(1px); }

.btn--secondary {
    background: var(--white);
    color: var(--stone-700);
    border-color: var(--stone-300);
}
.btn--secondary:hover { background: var(--stone-50); }

.btn--ghost {
    background: transparent;
    color: var(--stone-700);
}
.btn--ghost:hover { background: var(--stone-100); color: var(--stone-900); }

.btn--sm { font-size: var(--text-base); padding: 9px 16px; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.note {
    font-size: var(--text-base);
    color: var(--stone-500);
    margin-top: 14px;
}

/* ---------- Hero ---------- */

.hero {
    background:
        radial-gradient(900px 420px at 12% -10%, var(--primary-50) 0%, transparent 60%),
        radial-gradient(760px 380px at 92% 0%, var(--accent-50) 0%, transparent 62%),
        var(--white);
    padding-block: 72px 80px;
    border-bottom: 1px solid var(--stone-100);
}

.hero__grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(34px, 5.6vw, var(--text-6xl));
    line-height: 1.08;
}

.hero__sub {
    font-size: clamp(var(--text-lg), 2.1vw, 21px);
    color: var(--stone-600);
    margin-top: 20px;
    max-width: 34em;
}

.hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 26px;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--stone-600);
}
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points svg { flex: none; color: var(--primary-600); }

/* ---------- Agenda motif (illustrative, not a screenshot) ---------- */

.agenda {
    background: var(--white);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card-raised);
    padding: 14px;
    overflow: hidden;
}

.agenda__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stone-100);
}
.agenda__dot {
    width: 9px; height: 9px;
    border-radius: 999px;
    background: var(--stone-200);
}
.agenda__label {
    margin-left: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--stone-500);
}

.agenda__grid {
    display: grid;
    /* minmax(0,1fr) — without it, long words like "Relatietherapie" set an
       auto min-width on the columns and push the whole page wider than the
       viewport on small screens. */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.agenda__day {
    font-size: 11px;
    font-weight: 600;
    color: var(--stone-400);
    text-align: center;
    padding-bottom: 6px;
}

.agenda__col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    min-height: 210px;
}

.slot {
    border-radius: var(--radius-md);
    padding: 7px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    min-width: 0;
    overflow-wrap: anywhere;
}
.slot--a { background: var(--primary-100); color: var(--primary-800); }
.slot--b { background: var(--accent-100); color: var(--accent-600); }
.slot--empty { background: var(--stone-50); border: 1px dashed var(--stone-200); }
.slot--tall { padding-block: 18px; }

/* ---------- Feature cards ---------- */

.cards {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

.card {
    background: var(--white);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 22px;
    transition: box-shadow 150ms ease-in-out;
}
.card:hover { box-shadow: var(--shadow-card-hover); }

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    color: var(--primary-600);
    margin-bottom: 14px;
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--stone-600); font-size: var(--text-base); }

.card__list {
    margin-top: 12px;
    display: grid;
    gap: 7px;
    font-size: var(--text-base);
    color: var(--stone-600);
}
.card__list li { display: flex; gap: 9px; align-items: flex-start; }
.card__list svg { flex: none; margin-top: 4px; color: var(--primary-400); }

/* Feature card that carries the headline benefit */
.card--feature {
    border-color: var(--primary-200);
    background: linear-gradient(180deg, var(--primary-50) 0%, var(--white) 55%);
}

.payoff {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    color: var(--stone-700);
}
.payoff strong { color: var(--stone-900); }

/* ---------- Trust ---------- */

.trust-list {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

.trust-item {
    background: var(--white);
    border: 1px solid var(--stone-200);
    border-left: 3px solid var(--primary-300);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
}
.trust-item h3 { font-size: var(--text-lg); margin-bottom: 6px; }
.trust-item p { color: var(--stone-600); font-size: var(--text-base); }


/* ---------- Steps ---------- */

.steps {
    display: grid;
    gap: 20px;
    counter-reset: step;
    grid-template-columns: 1fr;
}
.step { display: flex; gap: 14px; align-items: flex-start; }
.step__num {
    counter-increment: step;
    flex: none;
    width: 30px; height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--primary-700);
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 700;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: var(--text-lg); margin-bottom: 4px; }
.step p { font-size: var(--text-base); color: var(--stone-600); }

/* ---------- Pricing ---------- */

.price-card {
    max-width: 520px;
    margin-inline: auto;
    background: var(--white);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card-raised);
    padding: 32px;
    text-align: center;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-block: 12px 6px;
}
.price__amount {
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--stone-900);
    letter-spacing: -0.03em;
}
.price__period { font-size: var(--text-lg); color: var(--stone-500); }

.price-list {
    display: grid;
    gap: 9px;
    margin-top: 22px;
    text-align: left;
    font-size: var(--text-base);
    color: var(--stone-600);
}
.price-list li { display: flex; gap: 9px; align-items: flex-start; }
.price-list svg { flex: none; margin-top: 4px; color: var(--success-600); }

.price-card .btn { width: 100%; margin-top: 24px; }

/* ---------- FAQ / details ---------- */

.faq { display: grid; gap: 10px; }

details {
    background: var(--white);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    padding: 0 18px;
}
details[open] { box-shadow: var(--shadow-card); }

summary {
    cursor: pointer;
    list-style: none;
    padding-block: 16px;
    font-weight: 600;
    color: var(--stone-900);
    font-size: var(--text-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: "";
    flex: none;
    width: 9px; height: 9px;
    border-right: 2px solid var(--stone-400);
    border-bottom: 2px solid var(--stone-400);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 150ms ease-in-out;
}
details[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }

details > *:not(summary) {
    padding-bottom: 18px;
    color: var(--stone-600);
    font-size: var(--text-base);
}

/* Technical disclosure */
.tech { margin-top: 28px; background: var(--stone-50); }
.tech table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}
.tech th, .tech td {
    text-align: left;
    padding: 9px 10px;
    border-bottom: 1px solid var(--stone-200);
    vertical-align: top;
}
.tech th { color: var(--stone-700); font-weight: 600; white-space: nowrap; }
.tech td { color: var(--stone-600); }
.tech__scroll { overflow-x: auto; }

/* ---------- Not-for ---------- */

.notfor {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    font-size: var(--text-base);
    color: var(--stone-600);
}
.notfor li { display: flex; gap: 9px; align-items: flex-start; }
.notfor svg { flex: none; margin-top: 4px; color: var(--stone-400); }

/* ---------- Final CTA ---------- */

.cta {
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 100%);
    color: var(--white);
    text-align: center;
    padding-block: 68px;
}
.cta h2 { color: var(--white); }
.cta p { color: var(--primary-100); margin-top: 14px; font-size: var(--text-lg); }
.cta .btn {
    background: var(--white);
    color: var(--primary-800);
    margin-top: 26px;
}
.cta .btn:hover { background: var(--primary-50); }
.cta .note { color: var(--primary-200); }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--white);
    border-top: 1px solid var(--stone-200);
    padding-block: 40px;
    font-size: var(--text-base);
    color: var(--stone-500);
}
.site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-content: space-between;
}
.site-footer svg { height: 26px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--stone-600); text-decoration: none; }
.site-footer a:hover { color: var(--primary-600); text-decoration: underline; }
.site-footer__legal { color: var(--stone-400); font-size: var(--text-sm); }

/* ---------- Responsive ---------- */

/* Agenda tiles are decorative; shrink the type rather than break words on
   narrow phones. */
@media (max-width: 479px) {
    .slot { font-size: 10px; padding-inline: 6px; }
    .site-header__actions { gap: 0; }
    .site-header__logo svg { height: 26px; }
    .site-header__inner { gap: 8px; }
    .site-header__actions .btn--sm { font-size: var(--text-sm); padding: 8px 11px; }
}

@media (min-width: 640px) {
    .container { padding-inline: 24px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .trust-list { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .site-footer__inner { flex-direction: row; align-items: center; }
}

@media (min-width: 768px) {
    .site-nav { display: flex; }
}

@media (min-width: 1024px) {
    .container { padding-inline: 32px; }
    .section { padding-block: 96px; }
    .hero { padding-block: 96px 104px; }
    .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
    .cards { grid-template-columns: repeat(3, 1fr); }
    .cards--two { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(5, 1fr); }
    .steps .step { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
