/* Between · landing
   Warm paper by day, near-black at night, straight from the app's tokens. Apricot (Sofia's colour) is the one accent.
   The only colour fades are the live skies on the pass and the luggage tags: each is that city's sky right now. */

@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --font: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t: 220ms;

  --maxw: 1120px;
  --gutter: clamp(18px, 4vw, 44px);

  --bg: #f4f2ee;
  --row: #fdfcfa;
  --sunk: #ebe8e2;
  --ink: #141518;
  --ink-2: rgba(20, 21, 24, 0.66);
  --ink-3: rgba(20, 21, 24, 0.52);
  --hair: rgba(20, 21, 24, 0.09);
  --hair-2: rgba(20, 21, 24, 0.15);
  --shadow: 0 1px 0 var(--hair), 0 24px 48px -28px rgba(40, 30, 20, 0.35);

  --accent: #d9692f;
  --accent-ink: #b4531f;
  --accent-soft: rgba(217, 105, 47, 0.13);
  --on-accent: #fff;

  --c-always: #141518;
  --c-away: #d9692f;
  --c-weather: #3a7bd5;
  --c-count: #8a6fd1;
  --c-forgot: #d1493b;
  --c-ok: #2f9a5b;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1013;
  --row: #1a1b1f;
  --sunk: #16171b;
  --ink: #f2f1ee;
  --ink-2: rgba(242, 241, 238, 0.68);
  --ink-3: rgba(242, 241, 238, 0.5);
  --hair: rgba(255, 255, 255, 0.08);
  --hair-2: rgba(255, 255, 255, 0.14);
  --shadow: 0 1px 0 var(--hair), 0 24px 48px -28px rgba(0, 0, 0, 0.8);

  --accent: #ee8a52;
  --accent-ink: #f29a68;
  --accent-soft: rgba(238, 138, 82, 0.15);
  --on-accent: #1a0f08;

  --c-always: #f2f1ee;
  --c-away: #ee8a52;
  --c-weather: #6aa0ee;
  --c-count: #a892e6;
  --c-forgot: #ec6a5c;
  --c-ok: #4cc07c;
  color-scheme: dark;
}

html[data-lang="de"] [lang="en"], html[data-lang="en"] [lang="de"] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; transition: background-color 300ms, color 300ms; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.small { font-size: 12px; }
.dim { color: var(--ink-3); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.d-always { background: var(--c-always); }
.d-away { background: var(--c-away); }
.d-weather { background: var(--c-weather); }
.d-count { background: var(--c-count); }
.d-forgot { background: var(--c-forgot); }

/* Folding rows: height animates through grid rows, nothing is measured */
.fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--out); }
.fold > div { overflow: hidden; }
[aria-expanded="true"] + .fold { grid-template-rows: 1fr; }

/* Header */
.bar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 200ms, background-color 300ms; }
.bar.scrolled { border-bottom-color: var(--hair); }
.bar-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.03em; text-decoration: none; }
.mark { width: 28px; height: 28px; }
.mark rect { fill: var(--ink); }
.mark-arc { fill: none; stroke: var(--bg); stroke-width: 2; stroke-dasharray: 2.4 2.6; stroke-linecap: round; }
.mark-a { fill: var(--bg); }
.mark-b { fill: var(--accent); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--hair); }
.lang button { border: 0; background: none; cursor: pointer; padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.lang button[aria-pressed="true"] { background: var(--row); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.mode { width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: background-color 160ms, color 160ms; }
.mode:hover { background: var(--hair); color: var(--ink); }
.mode .ic { grid-area: 1 / 1; }
:root[data-theme="light"] .ic-sun, :root[data-theme="dark"] .ic-moon { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 14px; border: 0; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform 120ms var(--out), background-color 160ms, box-shadow 160ms, color 160ms; }
.btn:active { transform: scale(0.97); }
.btn .ic { width: 16px; height: 16px; }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-line { background: var(--row); box-shadow: inset 0 0 0 1px var(--hair-2); height: 42px; font-size: 14px; }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn-line:disabled { cursor: default; color: var(--ink-3); }
.btn-soft { height: 34px; padding: 0 14px; border-radius: 11px; font-size: 13px; background: var(--accent-soft); color: var(--accent-ink); }
.btn-soft[aria-pressed="true"] { background: var(--hair); color: var(--ink-2); }

/* Live sky surfaces */
.sky { position: relative; color: #fff; background: #1b2248; transition: background 1.6s ease, color 1.6s ease; }
.sky.light-sky { color: #141518; }

/* Hero */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 22px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-ok) 22%, transparent); }
h1 { font-size: clamp(42px, 6.4vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 30em; margin-top: 22px; text-wrap: pretty; }
.actions { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.hint { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* The pass */
.pass { --cut: 13px; position: relative; border-radius: 30px; background: var(--row); box-shadow: var(--shadow); }
.pass-sky { border-radius: 30px 30px 0 0; padding: 20px 22px 22px; }
.pass-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; opacity: 0.86; }
.pass-pill { font-family: var(--font); font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.16); }
.light-sky .pass-pill { background: rgba(20, 21, 24, 0.08); }
.route { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 20px; }
.route > div { display: flex; flex-direction: column; }
.route .to { text-align: right; align-items: flex-end; }
.route .code { font-size: 11.5px; opacity: 0.8; }
.route b { font-size: 34px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; }
.route .small { opacity: 0.82; margin-top: 2px; }
.route-arc { flex: 1; max-width: 110px; height: 34px; margin-bottom: 24px; }
.route-arc path { fill: none; stroke: currentColor; stroke-opacity: 0.5; stroke-width: 1.4; stroke-dasharray: 3 4; }
.route-arc circle { fill: var(--accent); }
.perf { position: relative; height: 0; border-top: 1.5px dashed var(--hair-2); margin: 0 calc(var(--cut) + 8px); }
.perf::before, .perf::after { content: ""; position: absolute; top: calc(var(--cut) * -1); width: calc(var(--cut) * 2); height: calc(var(--cut) * 2); border-radius: 50%; background: var(--bg); transition: background-color 300ms; }
.perf::before { left: calc((var(--cut) * -2) - 8px); }
.perf::after { right: calc((var(--cut) * -2) - 8px); }
.pass-body { padding: 18px 12px 12px; }
.progress { display: flex; align-items: center; gap: 12px; padding: 0 10px 10px; }
.progress b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.ring { width: 40px; height: 40px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke: var(--hair); stroke-width: 4; }
.ring .ring-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100.53; stroke-dashoffset: 100.53; transition: stroke-dashoffset 360ms var(--out), stroke 200ms; }
.pass.done .ring-fill { stroke: var(--c-ok); }
.pack-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 10px; border: 0; background: none; border-radius: 14px; text-align: left; cursor: pointer; transition: background-color 160ms; }
.pack-list button:hover { background: var(--hair); }
.pack-list button:active .box { transform: scale(0.9); }
.box { width: 22px; height: 22px; border-radius: 8px; box-shadow: inset 0 0 0 1.6px var(--ink-3); display: grid; place-items: center; flex: none; transition: background-color 180ms, box-shadow 180ms, transform 120ms var(--out); }
.box .ic { width: 14px; height: 14px; stroke: var(--on-accent); stroke-width: 2.6; opacity: 0; transition: opacity 150ms; }
.pack-list .name { flex: 1; font-weight: 700; font-size: 15px; transition: color 180ms; }
.pack-list .why { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.pack-list [aria-pressed="true"] .box { background: var(--accent); box-shadow: none; }
.pack-list [aria-pressed="true"] .box .ic { opacity: 1; }
.pack-list [aria-pressed="true"] .name { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.already { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 12px 10px; border: 0; border-top: 1px solid var(--hair); background: none; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; text-align: left; }
.already .ic { width: 16px; height: 16px; transition: transform var(--t) var(--out); }
.already[aria-expanded="true"] .ic { transform: rotate(180deg); }
.already-list { padding: 0 10px 8px; font-size: 13px; color: var(--ink-3); }

/* Sections */
.sect { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--hair); }
.sect-head h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
.sect-head p { margin-top: 16px; font-size: 17px; color: var(--ink-2); max-width: 32em; text-wrap: pretty; }
.center { text-align: center; }
.sect-head.center p { margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-rev > :first-child { order: 2; }
.note { margin-top: 28px; font-size: 14px; color: var(--ink-3); }

/* Direction switch */
.seg { display: inline-flex; margin-top: 28px; padding: 4px; border-radius: 14px; background: var(--hair); }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--ink-2); transition: background-color 160ms, color 160ms; }
.seg button .ic { width: 14px; height: 14px; }
.seg button[aria-pressed="true"] { background: var(--row); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }

/* Two places */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 250px) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 44px; }
.tag { position: relative; border-radius: 24px; background: var(--row); box-shadow: var(--shadow); overflow: hidden; }
.tag-sky { height: 96px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; }
.tag-sky .small { opacity: 0.85; }
.tag-sky b { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; }
.hole { position: absolute; right: 18px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25); transition: background-color 300ms; }
.tag-list { padding: 10px 18px 6px; }
.tag-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; font-size: 14.5px; font-weight: 700; transition: color 240ms; }
.tag-list li + li { border-top: 1px solid var(--hair); }
.tag-list li em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.tag-list li.here { color: var(--ink-3); }
.tag-list li.goes em { color: var(--accent-ink); }
.tag-foot { display: flex; align-items: center; gap: 6px; padding: 8px 18px 16px; color: var(--ink-3); }
.tag-foot .ic { width: 14px; height: 14px; }
.bag { border-radius: 24px; background: var(--ink); color: var(--bg); padding: 20px; min-height: 100%; transition: background-color 300ms, color 300ms; }
.bag-title { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.bag li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14.5px; font-weight: 700; animation: drop 260ms var(--out) both; }
.bag li .dot.on-you { background: currentColor; }
:root[data-theme="dark"] .bag { background: #26272d; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-2); }
:root[data-theme="dark"] .bag-foot { border-top-color: var(--hair-2); }
.bag-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--bg) 16%, transparent); font-size: 12.5px; font-weight: 600; opacity: 0.66; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* Reasons */
.reasons { border-radius: 24px; background: var(--row); box-shadow: var(--shadow); padding: 6px; }
.reasons li + li { border-top: 1px solid var(--hair); margin: 0 12px; }
.reasons li + li > button { margin: 0 -12px; width: calc(100% + 24px); }
.reasons button { width: 100%; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; padding: 16px 16px; border: 0; background: none; border-radius: 18px; text-align: left; cursor: pointer; transition: background-color 160ms; }
.reasons button:hover { background: var(--hair); }
.r-name { font-weight: 800; font-size: 15.5px; letter-spacing: -0.01em; }
.r-ex { font-size: 13.5px; color: var(--ink-3); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reasons button .ic { width: 16px; height: 16px; color: var(--ink-3); transition: transform var(--t) var(--out); }
.reasons [aria-expanded="true"] .ic { transform: rotate(180deg); }
.reasons .fold p { padding: 0 16px 16px 36px; font-size: 14.5px; color: var(--ink-2); }

/* Quick add */
.add { border-radius: 24px; background: var(--row); box-shadow: var(--shadow); padding: 22px; }
.add-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 10px; }
.add-input { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: 600 16px var(--font); outline: none; transition: box-shadow 160ms; }
.add-input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.chips { display: flex; flex-direction: column; margin-top: 12px; min-height: 152px; }
.chips li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; animation: drop 220ms var(--out) both; }
.chips li + li { border-top: 1px solid var(--hair); }
.chips .c-name { flex: 1; font-weight: 700; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips .c-cat { font-size: 12.5px; color: var(--ink-3); }
.rule { flex: none; border: 0; cursor: pointer; height: 30px; padding: 0 11px; border-radius: 10px; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; transition: background-color 160ms, color 160ms, transform 120ms var(--out); }
.rule:active { transform: scale(0.95); }
.rule[data-rule="always"] { background: var(--ink); color: var(--bg); }
.rule[data-rule="follows"] { background: var(--accent-soft); color: var(--accent-ink); }
.rule[data-rule="stays"] { background: var(--hair); color: var(--ink-2); }
.add-hint { margin-top: 10px; }

/* Learns */
.learn { margin-top: 44px; border-top: 1px solid var(--hair); }
.learn-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; padding: 36px 0; border-bottom: 1px solid var(--hair); }
.learn-text h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.learn-text h3 .ic { color: var(--accent); }
.learn-text p { margin-top: 8px; color: var(--ink-2); max-width: 26em; }
.learn-demo { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.mini { width: 100%; border-radius: 20px; background: var(--row); box-shadow: var(--shadow); padding: 14px 18px; }
.mini-head { display: flex; align-items: center; gap: 6px; color: var(--ink-3); margin-bottom: 6px; }
.mini-head .ic { width: 12px; height: 12px; }
.mini li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-weight: 700; font-size: 14.5px; }
.mini li em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.mini .forgot-row { display: none; }
.mini.logged .forgot-row { display: flex; animation: drop 260ms var(--out) both; }
.dupe { width: 100%; border-radius: 20px; background: var(--row); box-shadow: var(--shadow); padding: 18px; }
.dupe-top { display: flex; align-items: baseline; justify-content: space-between; }
.dupe-top b { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.trips { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin: 14px 0; }
.trips i { height: 8px; border-radius: 3px; background: var(--accent); }
.trips i.off { background: var(--hair); }
.dupe-bot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Out the door */
.door { border-radius: 24px; background: var(--row); box-shadow: var(--shadow); padding: 22px; }
.door-group + .door-group { margin-top: 20px; }
.door-title { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 10px; }
.pocket { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.leave { display: flex; flex-direction: column; gap: 8px; }
.door button { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--hair); font-weight: 700; font-size: 15px; text-align: left; cursor: pointer; transition: background-color 160ms, box-shadow 160ms, transform 120ms var(--out); }
.door button:active { transform: scale(0.98); }
.tick { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px var(--ink-3); display: grid; place-items: center; flex: none; transition: background-color 160ms, box-shadow 160ms; }
.tick .ic { width: 13px; height: 13px; stroke: #fff; stroke-width: 2.8; opacity: 0; transition: opacity 140ms; }
.door [aria-pressed="true"] .tick { background: var(--c-ok); box-shadow: none; }
.door [aria-pressed="true"] .tick .ic { opacity: 1; }
.door-done { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 14px; font-weight: 700; color: var(--ink-3); transition: color 200ms; }
.door-done .ic { width: 16px; height: 16px; }
.door.all .door-done { color: var(--c-ok); }

/* Close */
.close { text-align: center; }
.close h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; }
.close p { margin: 18px auto 0; max-width: 30em; color: var(--ink-2); font-size: 17px; }

.foot { border-top: 1px solid var(--hair); }
.foot-in { display: flex; justify-content: space-between; align-items: center; height: 72px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bag { grid-column: 1 / -1; order: 3; min-height: 0; }
}
@media (max-width: 860px) {
  .hero-grid, .split, .learn-row { grid-template-columns: minmax(0, 1fr); }
  .split-rev > :first-child { order: 0; }
  .pass { max-width: 440px; }
}
@media (max-width: 560px) {
  .two { grid-template-columns: minmax(0, 1fr); }
  .route b { font-size: 28px; }
  .pack-list .why span { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
  .r-ex { display: none; }
  .reasons button { grid-template-columns: auto 1fr auto; }
  .seg button { padding: 8px 11px; font-size: 13px; }
  .lang button { padding: 4px 7px; }
}

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