html, body { min-height: 100%; overscroll-behavior: none; }
body.theme-navy { min-height: var(--vh); }
.page { min-height: var(--vh); display: flex; flex-direction: column; padding: max(16px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) max(20px, env(safe-area-inset-bottom)); max-width: 1280px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: clamp(16px, 4vh, 40px); }
.screen { flex: 1; display: flex; flex-direction: column; }
.screen:focus { outline: none; }

/* Home */
.home { display: grid; gap: clamp(20px, 4vw, 56px); align-items: center; }
@media (min-width: 960px) { .home { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.home .chart { --chart-h: clamp(170px, 30vh, 320px); }

/* Form */
.form-head { margin-bottom: clamp(16px, 3vh, 32px); }
.step { border: 0; padding: 0; margin: 0 0 clamp(18px, 3.5vh, 34px); min-width: 0; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: .8rem; }
.chips { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .chips.ages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.chips.cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip { position: relative; display: block; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; justify-content: center; min-height: clamp(58px, 8vh, 84px); padding: .6rem .5rem; border-radius: var(--radius-sm); background: var(--white); color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: clamp(1.05rem, 2.6vw, 1.5rem); text-align: center; border: 3px solid var(--white); transition: background-color .15s ease, color .15s ease, transform .1s ease; user-select: none; }
.chip input:checked + span { background: var(--red); color: var(--white); border-color: var(--red); }
.chip input:checked + span::before { content: '✓'; margin-right: .4rem; font-size: .9em; }
.chip input:focus-visible + span { box-shadow: var(--focus); }
.chip input:active + span { transform: scale(.98); }
.submit-row { margin-top: auto; padding-top: 8px; }
.submit-row .btn { width: 100%; }
@media (min-width: 640px) { .submit-row .btn { width: auto; min-width: 280px; } }
.alert { background: var(--white); color: var(--ink); border-left: 6px solid var(--red); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-weight: 600; }
.alert .btn { min-height: 46px; font-size: 1rem; padding: .6rem 1.2rem; }
.hint { color: rgba(255,255,255,.75); font-size: .95rem; margin: .7rem 0 0; }

/* Confirmation */
.confirm { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; padding-bottom: 6vh; }
.confirm .heart { width: clamp(90px, 18vw, 150px); animation: pop .6s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm .h1 { margin: .4rem 0 0; }
.confirm p { margin: 0 0 1rem; font-size: clamp(1.05rem, 2.4vw, 1.3rem); }

/* Closed */
.closed-box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.closed-box h2 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; margin: 0 0 .4rem; font-size: 1.4rem; }
.closed-box p { margin: 0; }
.net-status { font-size: .85rem; background: rgba(255,255,255,.12); border-radius: 999px; padding: .3rem .8rem; }
@media (min-width: 960px) { .home { flex: 1; align-content: center; padding-bottom: 6vh; } }

/* Póstlisti á staðfestingarsíðu (28.11.2026) */
.confirm .newsletter { margin-top: clamp(1rem, 4vh, 2.5rem); width: min(100%, 460px); padding: 20px 22px 22px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); background: rgba(255,255,255,.06); display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.confirm .newsletter-h { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; margin: 0; color: var(--pink); }
.confirm .newsletter p { margin: 0 0 .4rem; font-size: 1rem; color: rgba(255,255,255,.88); }
.confirm .newsletter-btn { min-height: 50px; font-size: 1rem; padding: .7rem 1.4rem; }
.confirm .newsletter-btn:hover { background: rgba(255,255,255,.1); border-color: #fff; }
@media (max-height: 760px) { .confirm { gap: .6rem; padding-bottom: 2vh; } .confirm .heart { width: 80px; } }
