/* hetge.com/gift: the December 2026 New Year gift page.
   Self-contained on purpose (it does not load landing.css): the page is the
   campaign poster made live, in one dark look at every theme setting.

   Sizing. Everything is set in --u. On a desktop window --u follows the
   window's height (1% of it), so logo, offer, calendar, claim form and apps
   always fill exactly one screen, as the home page does with its 100svh main.
   It stops shrinking at 7.2px (a 720px-tall window) and stops growing at 11px;
   below that floor the page simply scrolls. The 0.86vw term keeps the two
   columns inside a narrow desktop window. On an upright phone or tablet --u
   follows the width instead; see the block near the end of this file. */

@font-face { font-family: "Source Serif 4 Variable"; font-style: normal; font-weight: 200 900;
    font-display: swap; src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Variable"; font-style: normal; font-weight: 100 900;
    font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono Variable"; font-style: normal; font-weight: 100 900;
    font-display: swap; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); }

:root {
    color-scheme: dark;
    --paper: #0a0e15; --panel: #111826; --ink: #eef0f4; --soft: #b9c4d8; --faint: #8b93a5;
    --line: rgba(190, 205, 235, .24); --green: #14bf98; --green-ink: #06231c; --warn: #fcc94a;
    --cell: rgba(8, 13, 24, .6);
    --font-serif: "Source Serif 4 Variable", Georgia, "Times New Roman", serif;
    --font-body: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "Geist Mono Variable", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --u: clamp(min(7.2px, .86vw), min(1svh, .86vw), 11px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body);
    -webkit-font-smoothing: antialiased; line-height: 1.5; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ── the page: one screen tall on desktop ───────────────────── */
.page { position: relative; min-height: 100svh; display: flex; flex-direction: column;
    justify-content: space-between; overflow: hidden; isolation: isolate;
    padding: calc(var(--u) * 3.2) max(calc(var(--u) * 4), env(safe-area-inset-right, 0px))
             calc(var(--u) * 2.4) max(calc(var(--u) * 4), env(safe-area-inset-left, 0px)); }
/* The winter site photo behind the top of the page, washed blue and faded
   into the paper so the claim form and the apps sit on a plain ground. */
.page::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 66%; z-index: -1;
    background:
        linear-gradient(180deg, rgba(9, 16, 32, .58) 0, rgba(9, 16, 32, .50) 30%, rgba(9, 16, 32, .70) 62%, rgba(10, 14, 21, .94) 86%, #0a0e15 100%),
        linear-gradient(90deg, rgba(9, 14, 26, .55) 0, rgba(9, 14, 26, .12) 55%, rgba(9, 14, 26, .32) 100%),
        url("../images/gift/bg-winter.webp") center top / cover no-repeat; }
.inner { width: 100%; max-width: calc(var(--u) * 124); margin: 0 auto; }

.mark { display: block; width: calc(var(--u) * 18); aspect-ratio: 2100 / 750; background: var(--green);
    margin-left: calc(var(--u) * -.8);
    -webkit-mask: url("../images/hetge.svg") center / contain no-repeat;
            mask: url("../images/hetge.svg") center / contain no-repeat; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--u) * 47.6);
    gap: calc(var(--u) * 5); align-items: start; margin-top: calc(var(--u) * 2.6); }
.offer { min-width: 0; }
.offer h1 { font: 500 calc(var(--u) * 8) / 1.04 var(--font-serif); letter-spacing: -.02em; margin: 0;
    text-shadow: 0 4px 22px rgba(5, 8, 14, .6); }
.rule { width: calc(var(--u) * 7); height: calc(var(--u) * .5); border-radius: 3px; background: var(--green);
    margin: calc(var(--u) * 2.3) 0 calc(var(--u) * 1.7); }
.gift { font-size: calc(var(--u) * 3.5); line-height: 1.3; margin: 0; }
.count { font: 600 calc(var(--u) * 6.8) / 1.1 var(--font-serif); letter-spacing: -.02em; margin: 0; white-space: nowrap; }
.lead { font-size: calc(var(--u) * 2.3); line-height: 1.35; font-weight: 600; margin: calc(var(--u) * 1.7) 0 0; }
.terms { font-size: calc(var(--u) * 1.95); line-height: 1.4; color: var(--soft); margin: calc(var(--u) * .8) 0 0; max-width: 23em; }

.calendar { min-width: 0; }
.month { font: 500 calc(var(--u) * 2.2) / 1 var(--font-mono); letter-spacing: .34em; text-transform: uppercase;
    text-align: center; margin: 0 0 calc(var(--u) * 1.7); padding-left: .34em; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: calc(var(--u) * .7); }
.wd { font: 400 calc(var(--u) * 1.3) / 1.6 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
    color: var(--soft); text-align: center; }
.day { aspect-ratio: 1; border-radius: calc(var(--u) * 1.1); background: var(--cell);
    border: 1.3px solid rgba(214, 224, 244, .42); display: flex; align-items: center; justify-content: center;
    font-size: calc(var(--u) * 2.3); font-weight: 500; font-variant-numeric: tabular-nums;
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .8); }
.day.past { color: var(--faint); border-color: rgba(214, 224, 244, .16); background: rgba(8, 13, 24, .38); }
.day.today { border: 2px solid var(--green); background: rgba(20, 191, 152, .2); color: #fff; font-weight: 700; }
/* The legend keeps its line even when empty, so the page does not shift
   between the open month and the days around it. */
.legend { display: flex; gap: calc(var(--u) * 1.8); justify-content: flex-end; flex-wrap: wrap;
    margin: calc(var(--u) * 1.1) 0 0; min-height: 1.5em; font-size: calc(var(--u) * 1.35); color: var(--soft); }
.legend span { display: inline-flex; align-items: center; gap: .5em; }
.legend i { width: 1em; height: 1em; border-radius: .3em; border: 1.3px solid rgba(214, 224, 244, .42); background: var(--cell); }
.legend i.t { border: 2px solid var(--green); background: rgba(20, 191, 152, .2); }
.legend i.p { border-color: rgba(214, 224, 244, .16); background: rgba(8, 13, 24, .38); }

/* ── claim: counter and form, or one note per closed state ──── */
/* A fixed height, centered, so the apps below never move when the state does. */
.claim { display: flex; flex-direction: column; gap: calc(var(--u) * 1.5); align-items: center; justify-content: center;
    text-align: center; min-height: calc(var(--u) * 21); padding: calc(var(--u) * 1.4) 0; }
.left { display: flex; flex-direction: column; gap: calc(var(--u) * .9); align-items: center; width: 100%; }
.left p { margin: 0; font-size: calc(var(--u) * 1.9); line-height: 1.3; color: var(--soft); }
.left b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.left .low b { color: var(--warn); }
.pips { display: grid; grid-template-columns: repeat(31, minmax(0, 1fr)); gap: calc(var(--u) * .4);
    width: 100%; max-width: calc(var(--u) * 64); }
.pips i { height: calc(var(--u) * .8); border-radius: calc(var(--u) * .4); background: var(--green); }
.pips i.gone { background: #232c3c; }
.claim form { display: flex; flex-direction: column; gap: calc(var(--u) * .9); align-items: center; width: 100%; }
.claim form label { font-size: calc(var(--u) * 2.5); line-height: 1.3; font-weight: 500; }
.row { display: flex; gap: calc(var(--u) * 1); width: 100%; max-width: calc(var(--u) * 64); justify-content: center; }
.row input { flex: 1 1 auto; min-width: 0; font: 500 calc(var(--u) * 1.9) / 1.2 var(--font-mono); color: #fff;
    background: rgba(8, 13, 24, .7); border: 2.5px solid var(--green); border-radius: calc(var(--u) * 1.4);
    padding: calc(var(--u) * 1.4) calc(var(--u) * 1.8); }
.row input::placeholder { color: var(--faint); }
.btn { font: 600 calc(var(--u) * 1.9) / 1.2 var(--font-body); color: var(--green-ink); background: var(--green);
    border: 0; border-radius: calc(var(--u) * 1.4); padding: calc(var(--u) * 1.5) calc(var(--u) * 2.6);
    cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .55; cursor: default; filter: none; }
.hint { font-size: calc(var(--u) * 1.5); color: var(--faint); margin: 0; min-height: 1.5em; }
.hint.err { color: var(--warn); }
.hint a { color: var(--soft); text-decoration: underline; text-underline-offset: .15em; }
.hint a:hover { color: var(--ink); }
.note { max-width: calc(var(--u) * 64); width: 100%; border: 1px solid var(--line); border-radius: calc(var(--u) * 1.4);
    background: var(--panel); padding: calc(var(--u) * 2) calc(var(--u) * 2.4);
    display: flex; flex-direction: column; gap: calc(var(--u) * .9); align-items: center; }
.note h2 { font: 500 calc(var(--u) * 3) / 1.2 var(--font-serif); margin: 0; text-wrap: balance; }
.note p { margin: 0; color: var(--soft); font-size: calc(var(--u) * 1.7); line-height: 1.45; max-width: 34em; }
.note .em { font-family: var(--font-mono); color: #fff; overflow-wrap: anywhere; }
.link { display: inline-block; font: 600 calc(var(--u) * 1.6) / 1.2 var(--font-body); color: var(--ink); background: transparent;
    border: 1.5px solid var(--line); border-radius: calc(var(--u) * 1.2);
    padding: calc(var(--u) * 1) calc(var(--u) * 1.8); cursor: pointer; text-decoration: none; }
.link:hover { border-color: var(--soft); }

/* ── suite: what the license covers ─────────────────────────── */
.suite { border-top: 1px solid var(--line); padding-top: calc(var(--u) * 2.2); text-align: center; }
.suite p { font-size: calc(var(--u) * 2.3); line-height: 1.35; margin: 0 0 calc(var(--u) * 2); text-wrap: balance; }
.suite p b { color: var(--green); font-weight: 600; }
.apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.apps li { border-left: 1px solid var(--line); min-width: 0; }
.apps li:first-child { border-left: 0; }
.apps a { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 1.1);
    padding: calc(var(--u) * .3) calc(var(--u) * .6); text-decoration: none; }
.apps img { display: block; width: calc(var(--u) * 7); aspect-ratio: 1; border-radius: 22%;
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .8); transition: transform .15s; }
.apps a:hover img { transform: translateY(-2px); }
.apps span { font-size: calc(var(--u) * 1.9); font-weight: 500; line-height: 1.25; }

/* ── phones and tablets held upright: the poster, one screen tall ── */
/* The same two-column poster, not a stacked column: an upright screen is
   taller than the 4:5 campaign image, so the whole page fits it. --u follows
   the width (the page is 66.7u wide) and gives way to the height on short
   screens, so nothing scrolls until it reaches its 5px floor. The smallest
   text is set a little larger in u than on desktop to stay readable. */
@media (max-width: 900px) and (max-aspect-ratio: 1/1) {
    :root { --u: clamp(5px, min(1.5vw, 100svh / 108), 10px); }
    .page { padding: calc(var(--u) * 3) max(calc(var(--u) * 3.3), env(safe-area-inset-right, 0px))
                     calc(var(--u) * 2.6) max(calc(var(--u) * 3.3), env(safe-area-inset-left, 0px)); }
    .page::before { height: 60%; }
    .cols { grid-template-columns: minmax(0, 1fr) calc(var(--u) * 28.5); gap: calc(var(--u) * 2.5); }
    .offer h1 { font-size: calc(var(--u) * 6.6); }
    .count { font-size: calc(var(--u) * 5.2); }
    .gift { font-size: calc(var(--u) * 3.1); }
    .lead { font-size: calc(var(--u) * 2.4); }
    .terms { font-size: calc(var(--u) * 2.1); }
    .calendar { margin-top: calc(var(--u) * 1); }
    .grid { gap: calc(var(--u) * .55); }
    .wd { font-size: calc(var(--u) * 1.45); letter-spacing: .06em; }
    .day { border-radius: calc(var(--u) * .8); border-width: 1px; }
    .legend { font-size: calc(var(--u) * 1.6); gap: calc(var(--u) * 1.2); }
    .left p { font-size: calc(var(--u) * 2.3); }
    .claim form label { font-size: calc(var(--u) * 2.9); }
    .hint { font-size: calc(var(--u) * 1.85); }
    .note p { font-size: calc(var(--u) * 2.1); }
    .link { font-size: calc(var(--u) * 2); }
    /* 16px, never smaller: below that iOS zooms the page when the field is focused. */
    .row input { font-size: 16px; padding: calc(var(--u) * 1.5) calc(var(--u) * 1.6); border-width: 2px; }
    .btn { font-size: max(14px, calc(var(--u) * 2.2)); padding: calc(var(--u) * 1.5) calc(var(--u) * 2); }
    .suite p { font-size: calc(var(--u) * 2.5); }
    .apps span { font-size: calc(var(--u) * 1.85); }
}

/* ── preview panel (static build only) ──────────────────────── */
/* Floats over the page instead of sitting in it, so it never changes the
   layout it is there to inspect. Fixed sizes: it must not scale with --u. */
.pv { position: fixed; z-index: 20; right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: min(320px, calc(100vw - 28px));
    background: rgba(17, 24, 38, .96); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); padding: 12px 14px 14px;
    display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pv-head strong { font: 500 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.pv-btn { font: 600 12px/1 var(--font-body); color: var(--soft); background: transparent; border: 1px solid var(--line);
    border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.pv-btn:hover { color: var(--ink); border-color: var(--soft); }
.pv-ctl { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pv-ctl label { display: flex; justify-content: space-between; gap: 10px; color: var(--soft); }
.pv-ctl output { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pv-ctl input[type=range] { width: 100%; margin: 0; accent-color: var(--green); }
.pv-foot { display: flex; justify-content: flex-end; }
.pv-show { position: fixed; z-index: 20; right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)); background: rgba(17, 24, 38, .9); }

@media (prefers-reduced-motion: reduce) { .apps img { transition: none; } }
