/* ============================================================================
   Sunly — Happy Weather App
   Brand tokens (see PROJECT.md §2) + screens (splash / onboarding / home)
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Just+Another+Hand&display=swap');

:root {
    /* Brand palette */
    --sun-yellow:    #FFC83D;
    --amber-mid:     #FFBC56;
    --coral-sunset:  #FF7C5C;
    --cream:         #FFFDF5;
    --sky-cream:     #FFE282;
    --ink-navy:      #1A2238;
    --ink-soft:      #4A526E;

    /* UI tokens */
    --radius-sm:     12px;
    --radius:        18px;
    --radius-lg:     28px;
    --shadow:        0 8px 24px rgba(26, 34, 56, .12);
    --shadow-lg:     0 16px 40px rgba(26, 34, 56, .18);

    --font-body:     'Fredoka', 'SF Pro Rounded', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-accent:   'Just Another Hand', cursive;

    --safe-top:      env(safe-area-inset-top, 0);
    --safe-bottom:   env(safe-area-inset-bottom, 0);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    /* Disable double-tap-to-zoom for true app feel (pinch zoom still works) */
    touch-action: manipulation;
    -webkit-touch-callout: none;
}
body {
    font-family: var(--font-body);
    color: var(--ink-navy);
    background: linear-gradient(180deg, var(--sky-cream) 0%, var(--amber-mid) 60%, var(--coral-sunset) 100%);
    min-height: 100dvh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}
/* Re-enable selection in input fields where it makes sense */
input, textarea, select { -webkit-user-select: text; user-select: text; }
button, input { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================================
   Screen plumbing — only one screen visible at a time, with smooth transitions
   ============================================================================ */
.screen {
    position: fixed;
    top: 0;
    bottom: 0;
    /* Mobile-style centered column on wider viewports */
    left: max(0px, calc(50vw - 240px));
    right: max(0px, calc(50vw - 240px));
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Soft shadow around the "app frame" when wider than the column */
@media (min-width: 520px) {
    .screen {
        box-shadow: 0 0 60px rgba(26, 34, 56, .15);
    }
}
.screen.is-active {
    opacity: 1;
    visibility: visible;
}

/* ============================================================================
   SCREEN: SPLASH
   ============================================================================ */
.screen--splash {
    background: linear-gradient(180deg, var(--sky-cream) 0%, var(--amber-mid) 100%);
    display: grid;
    place-items: center;
}
.splash__inner {
    text-align: center;
    animation: splash-pop .8s cubic-bezier(.22, 1.4, .36, 1) both;
}
.splash__logo {
    width: min(58vw, 320px);
    height: auto;
    animation: splash-bob 2.4s ease-in-out infinite;
    filter: drop-shadow(0 12px 24px rgba(26,34,56,.18));
}
.splash__tagline {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(1.3rem, 4.5vw, 1.8rem);
    color: var(--ink-navy);
    margin: 1rem 0 0;
    letter-spacing: -.5px;
}

@keyframes splash-pop {
    0%   { opacity: 0; transform: scale(.85); }
    60%  { opacity: 1; transform: scale(1.04); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes splash-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ============================================================================
   SCREEN: ONBOARDING
   ============================================================================ */
.screen--onboarding {
    background: linear-gradient(180deg, var(--sky-cream) 0%, #FFD680 100%);
    display: grid;
    place-items: start center;
    padding: 1.5rem 1.2rem 2rem;
}
.onb {
    width: 100%;
    max-width: 460px;
    text-align: center;
    padding-top: max(2rem, var(--safe-top));
}
.onb__mascot {
    width: 130px;
    margin: 0 auto .5rem;
    animation: splash-bob 3.2s ease-in-out infinite;
}
.onb__title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    margin: 0 0 .3rem;
    color: var(--ink-navy);
}
.onb__lead {
    font-size: 1rem;
    color: var(--ink-soft);
    margin: 0 0 1.8rem;
    line-height: 1.45;
}
.onb__form {
    display: grid;
    gap: 1rem;
    text-align: left;
}
.onb__privacy {
    margin-top: 1.4rem;
    color: var(--ink-soft);
    font-size: .8rem;
    opacity: .8;
}
.onb .auth__tabs { margin: 0 0 1rem; }
.field__hint {
    font-weight: 400;
    opacity: .55;
    margin-left: .3rem;
    font-size: .75em;
}
.auth__intro {
    margin: 0 0 1rem;
    font-size: .95rem;
    color: var(--ink-soft);
    text-align: center;
    line-height: 1.45;
}

/* ============================================================================
   Form primitives — used in onboarding & elsewhere
   ============================================================================ */
.field {
    position: relative;
    display: block;
}
.field__label {
    display: block;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .02em;
    margin-bottom: .35rem;
    color: var(--ink-navy);
    padding-left: .25rem;
}
.field__input {
    width: 100%;
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: .95rem 1.1rem;
    font-size: 1rem;
    color: var(--ink-navy);
    box-shadow: var(--shadow);
    transition: border-color .2s, box-shadow .2s;
}
.field__input::placeholder { color: rgba(74, 82, 110, .55); }
.field__input:focus {
    outline: none;
    border-color: var(--sun-yellow);
    box-shadow: 0 0 0 4px rgba(255, 200, 61, .25), var(--shadow);
}

/* Suggest dropdown */
.suggest {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 10;
    margin: .35rem 0 0;
    padding: .25rem 0;
    list-style: none;
    background: var(--cream);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 240px;
    overflow-y: auto;
}
.suggest:empty { display: none; }
.suggest li {
    padding: .7rem 1rem;
    cursor: pointer;
    transition: background .15s;
}
.suggest li:hover, .suggest li.is-focused {
    background: var(--sky-cream);
}

/* ============================================================================
   Buttons
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: none;
    border-radius: var(--radius);
    padding: 1rem 1.4rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}
.btn--primary {
    background: var(--ink-navy);
    color: var(--cream);
}
.btn--primary:not(:disabled):hover {
    background: #232C49;
    box-shadow: var(--shadow-lg);
}

/* Icon-only button (refresh, etc) */
.icon-btn {
    background: var(--cream);
    border: none;
    border-radius: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .15s;
}
.icon-btn img { width: 34px; height: 34px; }
.icon-btn:active { transform: scale(.94); }

/* ============================================================================
   SCREEN: HOME
   ============================================================================ */
.screen--home {
    background: linear-gradient(180deg, var(--sky-cream) 0%, var(--sky-cream) 22%, var(--amber-mid) 75%, var(--coral-sunset) 100%);
    padding: var(--header-height, 130px) 1.1rem 1.5rem;
}

/* ---------- Shared app header (home + compare) ---------- */
.app-header {
    position: fixed;
    top: 0;
    left: max(0px, calc(50vw - 240px));
    right: max(0px, calc(50vw - 240px));
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: 1rem 1.1rem .55rem;
    padding-top: max(1rem, var(--safe-top));
    background: var(--sky-cream);   /* solid, matched met top van screen gradient */
}
.app-header[hidden] { display: none; }
.home__brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    /* button reset */
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.home__brand:active { transform: scale(.98); }
.home__logo {
    width: 108px;
    height: 108px;
    object-fit: contain;
    flex-shrink: 0;
}
.home__name {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}
.home__greeting {
    font-size: 1rem;
    font-weight: 500;
    opacity: .7;
    color: var(--ink-navy);
}
.home__name strong {
    font-weight: 700;
    font-size: 1.45rem;
    color: var(--ink-navy);
    letter-spacing: -.3px;
}
.home__actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

/* ============================================================================
   Location dropdown (under the marker icon button)
   ============================================================================ */
.loc-menu {
    position: relative;
}
.loc-dropdown {
    /* Fixed to the app column so the dropdown always fills the available
       width, never wider than the screen, never anchored under one button */
    position: fixed;
    top: 96px;
    left:  max(.6rem, calc(50vw - 240px + .6rem));
    right: max(.6rem, calc(50vw - 240px + .6rem));
    background: var(--cream);
    border-radius: 26px;
    box-shadow: 0 18px 40px rgba(26, 34, 56, .22);
    padding: .7rem .7rem .8rem;
    z-index: 110;
    animation: dropdown-pop .18s cubic-bezier(.22, 1.4, .36, 1) both;
}
.loc-dropdown[hidden] { display: none; }

@keyframes dropdown-pop {
    0%   { opacity: 0; transform: translateY(-8px) scale(.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.loc-dropdown__add {
    position: relative;
    padding: .4rem .5rem .8rem;
    border-bottom: 1px solid rgba(26,34,56,.08);
    margin-bottom: .4rem;
}
.loc-dropdown__input {
    width: 100%;
    background: transparent;
    border: none;
    padding: .75rem .35rem;
    font: inherit;
    font-size: 1.35rem;
    color: var(--ink-navy);
}
.loc-dropdown__input::placeholder { color: rgba(74,82,110,.6); }
.loc-dropdown__input:focus { outline: none; }

/* Search-suggest list inside the dropdown */
.suggest--in-dropdown {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    margin-top: .45rem;
    background: var(--cream);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(26,34,56,.18);
    max-height: 300px;
    overflow-y: auto;
    z-index: 5;
    font-size: 1.2rem;
}
.suggest--in-dropdown li {
    padding: .85rem 1.1rem;
}

.loc-dropdown__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.loc-dropdown__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .95rem .9rem;
    border-radius: 16px;
    cursor: pointer;
    transition: background .15s, transform .15s ease;
    touch-action: none;
    user-select: none;
}
.loc-dropdown__item.is-dragging {
    background: #FFF1B8;
    box-shadow: 0 12px 28px rgba(26, 34, 56, .25);
    z-index: 10;
    position: relative;
    transition: none;
    cursor: grabbing;
}
.loc-dropdown__drag {
    color: rgba(74, 82, 110, .4);
    font-size: 1.6rem;
    line-height: 1;
    cursor: grab;
    flex-shrink: 0;
    padding: 0 .25rem;
}
.loc-dropdown__item:hover { background: rgba(255, 200, 61, .15); }
.loc-dropdown__item.is-current {
    background: rgba(255, 200, 61, .22);
}
.loc-dropdown__item-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    opacity: .85;
}
.loc-dropdown__item-name {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--ink-navy);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.loc-dropdown__item-remove {
    background: transparent;
    border: none;
    color: rgba(74,82,110,.55);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0 .35rem;
    line-height: 1;
}
.loc-dropdown__item-remove:hover { color: var(--coral-sunset); }
.loc-dropdown__empty {
    padding: .95rem .9rem;
    color: var(--ink-soft);
    font-size: 1.2rem;
    opacity: .65;
}

.home__location-block {
    text-align: center;
    padding: .8rem 0 1.2rem;
}
.home__location {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(1.6rem, 6.5vw, 2rem);
    letter-spacing: -.5px;
    margin: 0;
    color: var(--ink-navy);
}
.home__date {
    margin: .2rem 0 0;
    font-size: .85rem;
    color: var(--ink-soft);
    opacity: .8;
}

/* ---------- Forecast list ---------- */
.forecast {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.forecast__row {
    background: var(--cream);
    border-radius: var(--radius);
    padding: .35rem 1.1rem;
    display: grid;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 14px rgba(26, 34, 56, .08);
}
.forecast__row--left  { grid-template-columns: 90px 1fr auto; text-align: left; }
.forecast__row--right { grid-template-columns: auto 1fr 90px; text-align: right; }

.forecast__icon { width: 90px; height: 90px; }
.forecast__meta { min-width: 0; }
.forecast__day  { font-size: 1.35rem; font-weight: 700; margin: 0; color: var(--ink-navy); letter-spacing: -.3px; }
.forecast__label{ font-size: 1rem; opacity: .65; margin: .1rem 0 0; color: var(--ink-navy); }
.forecast__temps{ display: flex; flex-direction: column; line-height: 1.05; }
.forecast__row--left  .forecast__temps { align-items: flex-end;   text-align: right; }
.forecast__row--right .forecast__temps { align-items: flex-start; text-align: left;  }
.forecast__high { font-size: 1.85rem; font-weight: 700; color: var(--ink-navy); letter-spacing: -.5px; }
.forecast__low  { font-size: 1.2rem;  opacity: .55; color: var(--ink-navy); }

.home__status {
    text-align: center;
    margin: 1rem 0 0;
    color: var(--ink-navy);
    opacity: .7;
    font-size: .85rem;
}

/* ---------- Activity card per day ---------- */
.activity {
    background: #FFEDC8;                    /* soft warm peach-cream, niet zuiver wit */
    border: 2px dashed var(--sun-yellow);
    border-radius: var(--radius);
    padding: 1rem 1.1rem 1.1rem;
    margin: .15rem 0 .15rem;
    box-shadow: 0 4px 12px rgba(26, 34, 56, .06);
    animation: activity-grow .2s ease-out both;
}
@keyframes activity-grow {
    0%   { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}
.activity__label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--coral-sunset);             /* warm coral pop, geen kleurboek */
    margin: 0 0 .45rem;
}
.activity__text {
    font-size: 1.05rem;
    line-height: 1.45;
    margin: 0 0 .9rem;
    color: var(--ink-navy);
}
.activity__cta {
    display: flex;
    justify-content: flex-end;              /* knop rechts uitlijnen */
}
.activity__spotify {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: var(--ink-navy);
    color: var(--cream);
    padding: .6rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    transition: background .15s, transform .15s;
}
.activity__spotify:hover { background: #232C49; }
.activity__spotify:active { transform: scale(.97); }
.activity__spotify svg { display: block; }

/* Collapsed "tap voor tip" card on non-today rows */
.activity-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    background: #FFF6E0;                       /* lichter dan de actieve activity-card */
    border: 2px dashed rgba(255, 200, 61, .5);
    border-radius: var(--radius);
    padding: .8rem 1.1rem;
    margin: .15rem 0;
    cursor: pointer;
    color: var(--ink-navy);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    transition: background .15s, transform .15s;
    box-shadow: 0 4px 12px rgba(26, 34, 56, .04);
}
.activity-toggle:hover { background: #FFEFC2; }
.activity-toggle:active { transform: scale(.995); }
.activity-toggle__label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .55rem;
}
.activity-toggle__hint {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--coral-sunset);
}
.activity-toggle__chevron {
    color: var(--ink-navy);
    opacity: .55;
    transition: transform .25s cubic-bezier(.4, 1.4, .6, 1);
    flex-shrink: 0;
}
.activity-toggle[aria-expanded="true"] .activity-toggle__chevron {
    transform: rotate(180deg);
    opacity: .9;
}

.home__footer {
    text-align: center;
    padding: 1.8rem 1rem 1.4rem;
    color: var(--ink-navy);
}
.home__baseline {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
    letter-spacing: -.3px;
}
.home__baseline-dot {
    color: var(--coral-sunset);
}
.home__version {
    display: inline-block;
    margin-top: .3rem;
    font-size: .75rem;
    opacity: .45;
}

/* Night-theme: enkel logo wisselt (via JS), achtergrond blijft consistent */

/* ============================================================================
   Hamburger dropdown menu (right side of header)
   ============================================================================ */
.ham-menu { position: relative; }
.ham-dropdown {
    position: absolute;
    top: calc(100% + .55rem);
    right: 0;
    width: 260px;
    max-width: 90vw;
    background: var(--cream);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(26, 34, 56, .22);
    padding: .55rem;
    z-index: 50;
    animation: dropdown-pop .18s cubic-bezier(.22, 1.4, .36, 1) both;
}
.ham-dropdown[hidden] { display: none; }
.ham-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 14px;
    padding: .85rem .9rem;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink-navy);
    text-align: left;
    cursor: pointer;
    transition: background .15s;
}
.ham-item:hover { background: rgba(255, 200, 61, .18); }
.ham-item__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--ink-navy);
    opacity: .8;
}
.ham-item--logout {
    margin-top: .3rem;
    border-top: 1px solid rgba(26, 34, 56, .1);
    padding-top: 1rem;
    color: var(--coral-sunset);
}
.ham-item--logout .ham-item__icon { color: var(--coral-sunset); opacity: 1; }

/* ============================================================================
   Compare screen
   ============================================================================ */
.screen--compare {
    background: linear-gradient(180deg, var(--sky-cream) 0%, var(--sky-cream) 22%, var(--amber-mid) 75%, var(--coral-sunset) 100%);
    padding: var(--header-height, 130px) 1.1rem 1.5rem;
}
/* Title + selectors gewoon bovenaan in normale flow — scrollen weg met content */
.compare__sticky-head {
    margin: 0 0 1rem;
    padding: 0;
}
.compare__title {
    margin: 0 0 .5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--ink-navy);
    letter-spacing: -.4px;
    text-align: center;
}
.compare__back-wrap {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 .5rem;
}
.compare__back-wrap .btn--primary {
    padding-left: 1.6rem;
    padding-right: 1.8rem;
}
.compare__share-wrap {
    display: flex;
    justify-content: center;
    margin: 1.2rem 0 0;
}
.btn--share {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: var(--ink-navy);   /* zoals Spotify pill — Sunly stijl */
    color: var(--cream);
    border: none;
    border-radius: 999px;
    padding: .8rem 1.3rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .15s, background .2s;
}
.btn--share:hover { background: #232C49; }
.btn--share:active { transform: scale(.97); }
.btn--share:disabled { opacity: .6; cursor: not-allowed; }
.btn--share svg { color: #25D366; }      /* enkel het logo blijft WhatsApp groen */

/* ============================================================================
   Profile / auth screen
   ============================================================================ */
.screen--profile {
    background: linear-gradient(180deg, var(--sky-cream) 0%, var(--sky-cream) 22%, var(--amber-mid) 75%, var(--coral-sunset) 100%);
    padding: var(--header-height, 130px) 1.1rem 1.5rem;
}
.auth {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.1rem 1.3rem;
    box-shadow: var(--shadow);
    max-width: 380px;
    margin: 0 auto;
}
.auth__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(74, 82, 110, .1);
    border-radius: 999px;
    padding: .25rem;
    margin-bottom: 1rem;
}
.auth__tab {
    background: transparent;
    border: none;
    padding: .55rem .5rem;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    border-radius: 999px;
    transition: background .15s, color .15s;
}
.auth__tab.is-active {
    background: var(--cream);
    color: var(--ink-navy);
    box-shadow: 0 2px 6px rgba(26, 34, 56, .12);
}
.auth__form { display: grid; gap: .8rem; }
.auth__field { display: block; }
.auth__label {
    display: block;
    font-weight: 600;
    font-size: .8rem;
    margin-bottom: .25rem;
    color: var(--ink-navy);
    padding-left: .2rem;
}
.auth__input {
    width: 100%;
    background: #FFF6E0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: .8rem 1rem;
    font: inherit;
    font-size: 1rem;
    color: var(--ink-navy);
    transition: border-color .15s, box-shadow .15s;
}
.auth__input:focus {
    outline: none;
    border-color: var(--sun-yellow);
    box-shadow: 0 0 0 4px rgba(255, 200, 61, .2);
}
.auth__error {
    margin: 0;
    color: var(--coral-sunset);
    font-size: .85rem;
    font-weight: 600;
}
.auth__submit {
    margin-top: .4rem;
    width: 100%;
}
.auth__info {
    margin: 1rem 0 0;
    font-size: .82rem;
    color: var(--ink-soft);
    line-height: 1.45;
    text-align: center;
}

/* Logged-in view */
.profile {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.2rem 1.6rem;
    box-shadow: var(--shadow);
    max-width: 380px;
    margin: 0 auto;
    text-align: center;
}
.profile__mascot { width: 120px; margin: 0 auto .6rem; }
.profile__hello {
    margin: 0;
    color: var(--ink-soft);
    font-size: .95rem;
}
.profile__name {
    margin: .15rem 0 .3rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-navy);
    letter-spacing: -.3px;
}
.profile__email {
    margin: 0 0 1.4rem;
    color: var(--ink-soft);
    font-size: .9rem;
}
.profile__logout {
    background: var(--coral-sunset);
    color: var(--cream);
}
.profile__logout:hover { background: #E5654C; }

/* ============================================================================
   Over Sunly page
   ============================================================================ */
.screen--about {
    background: linear-gradient(180deg, var(--sky-cream) 0%, var(--sky-cream) 22%, var(--amber-mid) 75%, var(--coral-sunset) 100%);
    padding: var(--header-height, 130px) 1.1rem 1.5rem;
}
.about-intro {
    background: var(--cream);
    border: 1.5px solid rgba(26, 34, 56, .12);
    border-radius: var(--radius);
    padding: 1rem 1.1rem 1.2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(26, 34, 56, .07);
    margin: 0 0 1rem;
}
.about-intro__mascot {
    width: 110px;
    margin: 0 auto .55rem;
    display: block;
    animation: splash-bob 3.2s ease-in-out infinite;
}
.about-intro p {
    margin: .35rem 0;
    color: var(--ink-navy);
    font-size: .98rem;
    line-height: 1.5;
}
.about-changelog__heading {
    margin: 1.3rem 0 .6rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink-navy);
    letter-spacing: -.2px;
}
.about-changelog {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.about-entry {
    background: var(--cream);
    border: 1.5px solid rgba(26, 34, 56, .1);
    border-radius: var(--radius);
    padding: .85rem 1rem .95rem;
    box-shadow: 0 3px 10px rgba(26, 34, 56, .06);
}
.about-entry__title {
    margin: 0 0 .25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--coral-sunset);
    letter-spacing: -.2px;
}
.about-entry__sub {
    margin: .5rem 0 .15rem;
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink-navy);
}
.about-entry__list {
    margin: .25rem 0 0;
    padding-left: 1.2rem;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--ink-navy);
}
.about-entry__list li { margin: .15rem 0; }
.about-entry code {
    background: #FFF1C2;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: .85em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ============================================================================
   Install-als-app page
   ============================================================================ */
.screen--install {
    background: linear-gradient(180deg, var(--sky-cream) 0%, var(--sky-cream) 22%, var(--amber-mid) 75%, var(--coral-sunset) 100%);
    padding: var(--header-height, 130px) 1.1rem 1.5rem;
}
.install__intro {
    margin: 0 0 1rem;
    text-align: center;
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.45;
}
.install-card {
    background: var(--cream);
    border: 1.5px solid rgba(26, 34, 56, .12);
    border-radius: var(--radius);
    padding: .9rem 1.1rem 1rem;
    margin: 0 0 .7rem;
    box-shadow: 0 4px 12px rgba(26, 34, 56, .07);
}
.install-card__title {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-navy);
    letter-spacing: -.2px;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.install-card__platform {
    font-size: 1.3rem;
    line-height: 1;
}
.install-card__steps {
    margin: 0;
    padding-left: 1.3rem;
    color: var(--ink-navy);
    font-size: .95rem;
    line-height: 1.55;
}
.install-card__steps li { margin: .15rem 0; }
.install-card__steps strong { color: var(--ink-navy); }
.install-card__note {
    margin: .5rem 0 0;
    padding: .55rem .75rem;
    background: #FFF1C2;
    border-left: 3px solid var(--sun-yellow);
    border-radius: 8px;
    font-size: .85rem;
    color: var(--ink-soft);
    line-height: 1.45;
}

/* ============================================================================
   Iconen page
   ============================================================================ */
.screen--icons {
    background: linear-gradient(180deg, var(--sky-cream) 0%, var(--sky-cream) 22%, var(--amber-mid) 75%, var(--coral-sunset) 100%);
    padding: var(--header-height, 130px) 1.1rem 1.5rem;
}
.icons-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.icons-row {
    background: var(--cream);
    border-radius: var(--radius);
    padding: .6rem 1rem;
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(26, 34, 56, .07);
}
.icons-row img { width: 76px; height: 76px; }
.icons-row__info { min-width: 0; }
.icons-row__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink-navy);
    margin: 0 0 .15rem;
    letter-spacing: -.2px;
}
.icons-row__desc {
    font-size: .9rem;
    color: var(--ink-navy);
    opacity: .65;
    margin: 0 0 .35rem;
}
.icons-row__codes {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}
.icons-row__code {
    display: inline-flex;
    align-items: center;
    background: var(--sky-cream);
    color: var(--ink-navy);
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}
.icons-row__code--deco {
    background: rgba(74, 82, 110, .12);
    color: var(--ink-soft);
    font-weight: 600;
}
.icons-row__code--brand {
    background: var(--coral-sunset);
    color: var(--cream);
    font-weight: 700;
}

.compare__selectors {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: 0;
    /* sticky en bg leven nu in .compare__sticky-head — geen aparte sticky meer */
}
.compare__select {
    width: 100%;
    background: var(--cream);
    border: none;
    border-radius: var(--radius);
    padding: .8rem 1rem;
    font: inherit;
    font-size: 1rem;
    color: var(--ink-navy);
    box-shadow: var(--shadow);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231A2238' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px;
    padding-right: 2.4rem;
}
.compare__vs {
    font-family: var(--font-accent);
    font-size: 1.6rem;
    color: var(--ink-navy);
    opacity: .65;
}
.compare__status {
    text-align: center;
    margin: 1rem 0 0;
    color: var(--ink-navy);
    opacity: .7;
    font-size: .9rem;
}

/* Per-day comparison row */
.compare-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.compare-row {
    background: var(--cream);
    border: 1.5px solid rgba(26, 34, 56, .12);
    border-radius: var(--radius);
    padding: .55rem .9rem;
    margin: 0 .35rem;
    display: grid;
    /* Sides shrink to their content, middle takes the slack → veel meer ruimte
       voor het verdict tussenin, geen botsing meer met de winner-ring */
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .9rem;
    box-shadow: 0 4px 12px rgba(26, 34, 56, .07);
}
.compare-side { padding: 0; }
.compare-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}
.compare-side img { width: 54px; height: 54px; }
.compare-side__high { font-size: 1.3rem; font-weight: 700; color: var(--ink-navy); margin: 0; line-height: 1; }
.compare-side__low  { font-size: .85rem; opacity: .55; color: var(--ink-navy); margin: 0; line-height: 1.35; }

.compare-mid {
    text-align: center;
    padding: 0 .35rem;
    min-width: 130px;
}
.compare-mid__day {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-navy);
    margin: 0;
    letter-spacing: -.2px;
}
.compare-mid__date {
    font-size: .85rem;
    opacity: .6;
    color: var(--ink-navy);
    margin: 0 0 .5rem;
}
.compare-verdict {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--sun-yellow);
    color: var(--ink-navy);
    font-size: .95rem;
    font-weight: 700;
    padding: .4rem .85rem;
    border-radius: 999px;
    letter-spacing: -.2px;
}
.compare-verdict__arrow {
    display: inline-block;
    font-size: 1.05em;
    line-height: 1;
}
.compare-verdict--tie { background: rgba(74, 82, 110, .15); color: var(--ink-navy); }
.compare-verdict svg  { width: 12px; height: 12px; }

/* Winner side highlight: gold sparkle frame */
.compare-side--winner {
    position: relative;
}
.compare-side--winner::after {
    content: "";
    position: absolute;
    /* Ring blijft binnen de side, raakt het midden niet meer */
    inset: -4px -2px;
    border-radius: 14px;
    border: 3px solid var(--sun-yellow);
    pointer-events: none;
    opacity: .85;
}
.compare-side--winner .compare-side__high { color: var(--coral-sunset); }

/* ============================================================================
   PWA install button (simple, mobile-style)
   ============================================================================ */
.btn--install {
    display: block;
    margin: 1.5rem auto max(1.5rem, var(--safe-bottom));
    width: calc(100% - 2.4rem);
    max-width: 320px;
    background: var(--ink-navy);
    color: var(--cream);
    border: none;
    border-radius: var(--radius);
    padding: 1rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .15s, background .2s;
}
.btn--install:hover { background: #232C49; }
.btn--install:active { transform: scale(.98); }

/* ============================================================================
   Reduced motion
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    .splash__logo, .onb__mascot, .home__mascot { animation: none; }
    .splash__inner { animation-duration: .01ms; }
    .screen { transition: none; }
}
