/* ────────────────────────────────────────────────────────────
   Layover Logic — design tokens + components + motion
   ──────────────────────────────────────────────────────────── */

:root {
  /* Surfaces (dark) */
  --bg:        #0a0d11;
  --bg-elev:  #0e1218;
  --card:     #161a20;
  --card-2:   #1f2530;
  --line:     #232831;
  --line-2:   #2b3140;

  /* Ink */
  --ink:      #f2f4f7;
  --ink-2:    #c8cdd6;
  --dim:      #9da6b3;
  --dim-2:    #6b7382;

  /* Semantic */
  --accent:   #6ee7b7;  /* sleep · primary action */
  --accent-2: #34d399;
  --warn:     #fbbf24;  /* eat · replan */
  --warn-2:   #f59e0b;
  --danger:   #f87171;  /* rest at risk */
  --cat-stock:#7dd3fc;
  --cat-do:   #c4b5fd;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display: "Instrument Serif", "Times New Roman", serif;

  /* Radii */
  --r-input: 12px;
  --r-card: 18px;
  --r-btn: 14px;
  --r-modal: 24px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ────────────────────────────────────────────────────────────
   App shell that lives inside the device frame
   ──────────────────────────────────────────────────────────── */
.ll-app {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Real-device fullscreen: honour the notch + home indicator via safe-area insets */
.ll-app.fullscreen { padding-top: calc(env(safe-area-inset-top, 0px) + 14px); }
.ll-app.fullscreen .ll-tabbar { bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); }
.ll-app.fullscreen .ll-content { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
.ll-app * { box-sizing: border-box; }

/* Ambient mode wash — sits behind everything, color shifts per mode */
.ll-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 600ms var(--ease-out), background 600ms var(--ease-out);
}
.ll-wash.on { opacity: 1; }
.ll-wash.sleep {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(110,231,183,0.22), transparent 65%),
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(52,211,153,0.10), transparent 70%);
}
.ll-wash.eat {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(251,191,36,0.20), transparent 65%),
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(245,158,11,0.10), transparent 70%);
}
.ll-wash.warn {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(248,113,113,0.20), transparent 65%);
}

/* Drifting orbit particles for the hero reveal */
.ll-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ll-particles span {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  animation: ll-drift 6s linear infinite;
}
@keyframes ll-drift {
  0%   { transform: translateY(120%) scale(0.6); opacity: 0; }
  20%  { opacity: 0.7; }
  100% { transform: translateY(-20%) scale(1); opacity: 0; }
}

/* ────────────────────────────────────────────────────────────
   Top bar (habit-loop chip)
   ──────────────────────────────────────────────────────────── */
.ll-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 8px;
  flex-shrink: 0;
}
.ll-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ll-brand .mark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  box-shadow: 0 0 24px rgba(110,231,183,0.25);
}
.ll-brand .mark svg { width: 14px; height: 14px; }

.ll-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ll-chip .dot {
  width: 5px; height: 5px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.ll-chip.warn .dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }

/* ────────────────────────────────────────────────────────────
   Content scroll area
   ──────────────────────────────────────────────────────────── */
.ll-content {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  padding: 4px 18px 110px;
}
.ll-content::-webkit-scrollbar { display: none; }
.ll-content { scrollbar-width: none; }

.ll-h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 12px 0 4px;
}
.ll-sub {
  color: var(--dim);
  font-size: 13px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.ll-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
  margin: 0 0 8px;
}

/* ────────────────────────────────────────────────────────────
   Cards
   ──────────────────────────────────────────────────────────── */
.ll-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px;
  margin-bottom: 14px;
}
.ll-card.elev {
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-elev) 100%);
}

/* ────────────────────────────────────────────────────────────
   Inputs
   ──────────────────────────────────────────────────────────── */
.ll-field { margin-bottom: 14px; }
.ll-field:last-child { margin-bottom: 0; }
.ll-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--dim);
  margin: 0 0 6px;
}
.ll-input {
  width: 100%;
  background: #0c1015;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  padding: 14px 14px;
  font-size: 17px;
  font-family: inherit;
  -webkit-appearance: none; appearance: none;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.ll-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(110,231,183,0.12); }
.ll-input.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.ll-input::placeholder { color: var(--dim-2); }

.ll-row { display: flex; gap: 10px; }
.ll-row > .ll-field { flex: 1; min-width: 0; }

/* ────────────────────────────────────────────────────────────
   Buttons
   ──────────────────────────────────────────────────────────── */
.ll-btn {
  display: flex;
  align-items: center; justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--accent);
  color: #062018;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  border-radius: var(--r-btn);
  padding: 16px;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 220ms var(--ease-elastic), box-shadow 280ms var(--ease-out), background 200ms var(--ease-out);
  box-shadow: 0 8px 24px -8px rgba(110,231,183,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
}
.ll-btn:hover { box-shadow: 0 12px 28px -8px rgba(110,231,183,0.55), inset 0 1px 0 rgba(255,255,255,0.18); }
.ll-btn:active { transform: scale(0.97); }
.ll-btn.warn {
  background: var(--warn); color: #2a1a00;
  box-shadow: 0 8px 24px -8px rgba(251,191,36,0.45), inset 0 1px 0 rgba(255,255,255,0.22);
}
.ll-btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: none;
}
.ll-btn.secondary:hover { background: rgba(255,255,255,0.03); }
.ll-btn.ghost {
  background: transparent; color: var(--dim);
  border: none; box-shadow: none; padding: 12px;
}

/* ────────────────────────────────────────────────────────────
   Verdict card — the answer
   ──────────────────────────────────────────────────────────── */
.ll-verdict {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 20px 18px;
  margin-bottom: 14px;
  overflow: hidden;
}
.ll-verdict::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.ll-verdict.eat::before { background: var(--warn); }
.ll-verdict.warn::before { background: var(--danger); }

/* Full-bleed style: mode color washes the whole card */
.ll-verdict.bleed {
  border-color: rgba(110,231,183,0.25);
  background:
    radial-gradient(ellipse 120% 80% at 0% 0%, rgba(110,231,183,0.10), transparent 60%),
    linear-gradient(180deg, rgba(110,231,183,0.05), rgba(0,0,0,0)) ,
    var(--card);
}
.ll-verdict.bleed::before { display: none; }
.ll-verdict.eat.bleed {
  border-color: rgba(251,191,36,0.25);
  background:
    radial-gradient(ellipse 120% 80% at 0% 0%, rgba(251,191,36,0.10), transparent 60%),
    linear-gradient(180deg, rgba(251,191,36,0.05), rgba(0,0,0,0)) ,
    var(--card);
}
.ll-verdict.warn.bleed {
  border-color: rgba(248,113,113,0.28);
  background:
    radial-gradient(ellipse 120% 80% at 0% 0%, rgba(248,113,113,0.10), transparent 60%),
    var(--card);
}

.ll-verdict-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ll-verdict-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.ll-verdict.eat .ll-verdict-dot { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.ll-verdict.warn .ll-verdict-dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.ll-verdict-status {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
}
.ll-verdict.eat .ll-verdict-status { color: var(--warn); }
.ll-verdict.warn .ll-verdict-status { color: var(--danger); }

.ll-headline {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--ink);
}
.ll-headline.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1.0;
  font-style: italic;
}
.ll-headline .reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: ll-word-in 350ms var(--ease-out) forwards;
}

@keyframes ll-word-in {
  to { opacity: 1; transform: translateY(0); }
}

.ll-advice {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 14px;
}

/* Time strip — animated fill */
.ll-strip-wrap { margin: 14px 0 6px; }
.ll-strip-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ll-strip {
  display: flex;
  height: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.ll-strip-seg {
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  animation: ll-strip-fill 700ms var(--ease-out) forwards;
}
.ll-strip-seg.transit { background: rgba(255,255,255,0.08); animation-delay: 100ms; }
.ll-strip-seg.free.sleep { background: rgba(110,231,183,0.45); animation-delay: 200ms; }
.ll-strip-seg.free.eat { background: var(--warn); animation-delay: 200ms; }
.ll-strip-seg.rest { background: var(--accent); animation-delay: 300ms; box-shadow: 0 0 10px rgba(110,231,183,0.4); }
.ll-strip-seg.prep { background: rgba(255,255,255,0.20); animation-delay: 500ms; }
@keyframes ll-strip-fill {
  to { transform: scaleX(1); }
}

/* Timeline rows */
.ll-timeline {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px 14px;
  font-size: 14px;
  margin-top: 10px;
}
.ll-timeline .t {
  font-family: var(--font-mono);
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.ll-timeline .e {
  color: var(--ink);
  font-size: 14px;
}

.ll-meta {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.55;
}
.ll-pill {
  display: inline-block;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--dim);
  border-radius: 999px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  margin: 0 4px 4px 0;
  text-transform: uppercase;
}

/* ────────────────────────────────────────────────────────────
   City picks
   ──────────────────────────────────────────────────────────── */
.ll-picks-h {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
  font-weight: 600;
  margin: 4px 4px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ll-pick {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: opacity 150ms var(--ease-out);
}
.ll-pick:last-child { border-bottom: none; padding-bottom: 0; }
.ll-pick:hover { opacity: 0.85; }
.ll-pick:active { transform: scale(0.995); }
.ll-pick-title { font-size: 15.5px; font-weight: 600; color: var(--ink); margin: 0; }
.ll-pick-note { color: var(--dim); font-size: 12.5px; margin: 4px 0 0; line-height: 1.4; }
.ll-pick-meta {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.ll-pick-meta .crew-yes { color: var(--accent); font-weight: 600; }
.ll-cat {
  display: inline-block;
  background: rgba(110,231,183,0.10);
  color: var(--accent);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ll-cat.recover { background: rgba(251,191,36,0.12); color: var(--warn); }
.ll-cat.move { background: rgba(196,205,213,0.10); color: var(--dim); }
.ll-cat.stock { background: rgba(125,211,252,0.12); color: var(--cat-stock); }
.ll-cat.do { background: rgba(196,181,253,0.12); color: var(--cat-do); }
.ll-cat.coffee { background: rgba(251,191,36,0.12); color: var(--warn); }
.ll-cat.park { background: rgba(110,231,183,0.12); color: var(--accent); }
.ll-cat.culture { background: rgba(196,181,253,0.12); color: var(--cat-do); }
.ll-cat.events { background: rgba(248,113,113,0.12); color: var(--danger); }
.ll-cat.service { background: rgba(125,211,252,0.12); color: var(--cat-stock); }

/* ────────────────────────────────────────────────────────────
   Pick detail
   ──────────────────────────────────────────────────────────── */
.ll-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 13px;
  margin: 8px 0 14px;
  cursor: pointer;
  transition: color 150ms;
}
.ll-back:hover { color: var(--ink); }
.ll-detail-title { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 6px; line-height: 1.1; }
.ll-detail-stats {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.ll-detail-stats strong { color: var(--ink); font-weight: 600; }
.ll-quote {
  background: var(--card-2);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 16px 0;
  border-left: 3px solid var(--accent);
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.ll-quote::before {
  content: '\201C';
  position: absolute;
  top: -8px; left: 14px;
  font-size: 48px;
  color: var(--accent);
  opacity: 0.6;
  font-family: var(--font-display);
  font-style: italic;
  line-height: 1;
}
.ll-quote-attr {
  color: var(--dim);
  font-size: 11.5px;
  margin-top: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-style: normal;
}
.ll-crew-count {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 0;
}
.ll-crew-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ll-crew-lbl {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.35;
}

/* ────────────────────────────────────────────────────────────
   Schedule
   ──────────────────────────────────────────────────────────── */
.ll-sched {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 150ms, transform 160ms var(--ease-elastic);
  margin: 0 -6px;
  padding-left: 6px; padding-right: 6px;
  border-radius: 8px;
}
.ll-sched:hover { background: rgba(255,255,255,0.02); }
.ll-sched:active { transform: scale(0.985); background: rgba(255,255,255,0.04); }
.ll-sched:last-child { border-bottom: none; }
.ll-sched-date {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  font-weight: 600;
}
.ll-sched-route { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 4px; letter-spacing: -0.01em; }
.ll-sched-route .here { color: var(--accent); }
.ll-sched-meta {
  color: var(--dim);
  font-size: 12px;
  margin-top: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.ll-sched-chev { color: var(--dim); font-size: 18px; }

/* ────────────────────────────────────────────────────────────
   Replan banner
   ──────────────────────────────────────────────────────────── */
.ll-replan {
  background: linear-gradient(180deg, rgba(251,191,36,0.14), rgba(251,191,36,0.05));
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  animation: ll-pulse-amber 2.4s ease-in-out infinite;
}
@keyframes ll-pulse-amber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.0); }
  50% { box-shadow: 0 0 0 4px rgba(251,191,36,0.10); }
}
.ll-replan-icon {
  width: 22px; height: 22px; border-radius: 999px;
  background: rgba(251,191,36,0.18);
  color: var(--warn);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  margin-top: 1px;
}
.ll-replan-text { font-size: 14px; line-height: 1.45; }
.ll-replan-text strong { color: var(--warn); }
.ll-replan-text .link { color: var(--ink); text-decoration: underline; font-weight: 600; cursor: pointer; }

/* ────────────────────────────────────────────────────────────
   Rating modal
   ──────────────────────────────────────────────────────────── */
.ll-rating {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-modal);
  padding: 28px 22px 20px;
  margin: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ll-rating::before {
  content: '';
  position: absolute;
  top: -40%; left: -10%;
  width: 120%; height: 100%;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(110,231,183,0.10), transparent 65%);
  pointer-events: none;
}
.ll-rating-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ll-rating-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 22px;
}
.ll-rating-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: transform 120ms var(--ease-elastic), background 150ms;
  text-align: left;
}
.ll-rating-btn:hover { background: #252b38; }
.ll-rating-btn:active { transform: scale(0.97); }
.ll-rating-btn.up { background: var(--accent); color: #062018; border-color: transparent; box-shadow: 0 8px 24px -8px rgba(110,231,183,0.45); }
.ll-rating-btn.up:hover { background: var(--accent-2); }
.ll-rating-btn .emoji { font-size: 20px; }
.ll-rating-foot { color: var(--dim); font-size: 11.5px; margin-top: 14px; line-height: 1.5; }

/* ────────────────────────────────────────────────────────────
   Paywall
   ──────────────────────────────────────────────────────────── */
.ll-paywall-stat {
  background: var(--card-2);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}
.ll-paywall-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.ll-paywall-lbl { color: var(--dim); font-size: 12px; margin-top: 2px; }
.ll-price {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: border-color 150ms, background 150ms;
}
.ll-price:hover { border-color: var(--line-2); }
.ll-price.best {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(110,231,183,0.07), rgba(110,231,183,0.02));
}
.ll-price-lbl { font-size: 15px; font-weight: 600; }
.ll-price-lbl small { color: var(--dim); font-weight: 500; display: block; font-size: 12px; margin-top: 3px; font-family: var(--font-mono); letter-spacing: 0.02em; }
.ll-price-amt { font-size: 18px; font-weight: 700; color: var(--accent); font-family: var(--font-mono); }
.ll-price-badge {
  color: #062018;
  background: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

/* ────────────────────────────────────────────────────────────
   Prompt / calendar connect
   ──────────────────────────────────────────────────────────── */
.ll-prompt-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(110,231,183,0.16), rgba(110,231,183,0.04));
  color: var(--accent);
  display: grid; place-items: center;
  margin: 4px 0 18px;
  border: 1px solid rgba(110,231,183,0.18);
  box-shadow: 0 8px 32px -8px rgba(110,231,183,0.25);
}
.ll-prompt-icon svg { width: 28px; height: 28px; }
.ll-prompt-title { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 8px; }
.ll-prompt-body { color: var(--dim); font-size: 14px; line-height: 1.55; margin: 0 0 20px; }
.ll-prompt-foot { color: var(--dim); font-size: 11.5px; margin-top: 14px; text-align: center; }

/* ────────────────────────────────────────────────────────────
   Tab bar
   ──────────────────────────────────────────────────────────── */
.ll-tabbar {
  position: absolute;
  left: 14px; right: 14px;
  bottom: 24px;
  z-index: 5;
  background: rgba(22, 26, 32, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,0.5);
}
.ll-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 14px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  transition: color 150ms, background 150ms;
}
.ll-tab svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.ll-tab.active { color: var(--ink); background: rgba(255,255,255,0.06); }

/* ────────────────────────────────────────────────────────────
   View transitions
   ──────────────────────────────────────────────────────────── */
/* Content is NEVER hidden by an animation. Critical containers animate
   TRANSFORM ONLY — opacity stays pinned at 1 the whole time — so even if the
   animation timeline never advances past t=0 (print/PDF, backgrounded tab,
   reduced-motion, throttled webview), every view renders fully visible. */
@keyframes ll-rise-in {
  from { transform: translateY(11px) scale(0.992); }
  to { transform: none; }
}

/* Directional page transitions — applied via JS (app2.jsx) only when motion is
   allowed. Base .ll-view stays opacity:1, so reduced-motion / print render the
   static end-state with no animation. */
@keyframes ll-screen-fwd {
  from { transform: translateX(26px); }
  to   { transform: none; }
}
@keyframes ll-screen-back {
  from { transform: translateX(-26px); }
  to   { transform: none; }
}
@keyframes ll-screen-fade {
  from { transform: translateY(10px) scale(0.994); }
  to   { transform: none; }
}
.ll-view { opacity: 1; }
/* The view wrapper sits between .ll-app (flex column, overflow hidden) and
   .ll-content (flex:1, overflow-y auto). Without min-height:0 the wrapper
   refuses to shrink below its content, so .ll-content never scrolls and
   anything below the fold is unreachable. */
.ll-app > .ll-view { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ll-stagger > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .ll-view {
    animation: ll-rise-in 460ms var(--ease-out);
  }
  /* Reveal stagger helper — transform only, opacity stays 1 throughout */
  .ll-stagger > * {
    animation: ll-rise-in 500ms var(--ease-out) backwards;
  }
  .ll-stagger > *:nth-child(1) { animation-delay: 80ms; }
  .ll-stagger > *:nth-child(2) { animation-delay: 180ms; }
  .ll-stagger > *:nth-child(3) { animation-delay: 280ms; }
  .ll-stagger > *:nth-child(4) { animation-delay: 380ms; }
  .ll-stagger > *:nth-child(5) { animation-delay: 480ms; }
  .ll-stagger > *:nth-child(6) { animation-delay: 580ms; }
}

/* ────────────────────────────────────────────────────────────
   Hero variant moments (canvas only)
   ──────────────────────────────────────────────────────────── */
.ll-hero-cockpit .ll-headline { font-family: var(--font-sans); }
.ll-hero-editorial .ll-headline { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: 40px; letter-spacing: -0.02em; line-height: 0.95; }
.ll-hero-ambient .ll-headline { font-family: var(--font-sans); font-size: 34px; }
.ll-hero-ambient .ll-verdict {
  background: linear-gradient(160deg, rgba(110,231,183,0.18), rgba(110,231,183,0.04) 60%, transparent), var(--card);
  border-color: rgba(110,231,183,0.3);
  padding: 28px 22px;
}
.ll-hero-ambient .ll-verdict::before { display: none; }

/* Density */
.ll-density-relaxed .ll-content { padding: 12px 22px 110px; }
.ll-density-relaxed .ll-h1 { font-size: 32px; margin: 18px 0 6px; }
.ll-density-relaxed .ll-headline { font-size: 36px; }
.ll-density-relaxed .ll-verdict { padding: 28px 24px 22px; }
.ll-density-relaxed .ll-card { padding: 22px; margin-bottom: 18px; }
.ll-density-relaxed .ll-advice { font-size: 16px; }

/* Logo */
.ll-logo-wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* ════════════════════════════════════════════════════════════
   LUXURY MOTION LAYER
   Ambient, continuous, restrained. Everything loops on transform
   / opacity / shadow only and is gated behind reduced-motion so
   print + accessibility fall back to the calm end-state.
   ════════════════════════════════════════════════════════════ */

/* Smooth, GPU-friendly hover lift on surfaces */
.ll-card,
.ll-verdict,
.ll-price,
.ll-paywall-stat {
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 240ms var(--ease-out), background 240ms var(--ease-out);
  will-change: transform;
}
@media (hover: hover) {
  .ll-card:hover,
  .ll-verdict:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -22px rgba(0,0,0,0.7);
  }
}

@media (prefers-reduced-motion: no-preference) {

  /* — Smoother per-element entrance stagger (transform only) — */
  .ll-stagger > * {
    animation: ll-rise-in 560ms var(--ease-out) backwards;
  }

  /* — Ambient wash slowly breathes (opacity transition kept for mode fade) — */
  .ll-wash.on {
    animation: ll-wash-breathe 11s ease-in-out infinite;
    transform-origin: 50% 30%;
    will-change: transform, filter;
  }
  @keyframes ll-wash-breathe {
    0%, 100% { transform: scale(1);    filter: brightness(0.88) saturate(1); }
    50%      { transform: scale(1.08); filter: brightness(1.12) saturate(1.08); }
  }

  /* — Brand mark: soft pulsing halo — */
  .ll-brand .mark {
    animation: ll-mark-glow 4.2s ease-in-out infinite;
  }
  @keyframes ll-mark-glow {
    0%, 100% { box-shadow: 0 0 18px rgba(110,231,183,0.18); }
    50%      { box-shadow: 0 0 30px rgba(110,231,183,0.45); }
  }

  /* — Prompt / hero icons: same breathing halo — */
  .ll-prompt-icon {
    animation: ll-icon-float 5.5s ease-in-out infinite;
  }
  @keyframes ll-icon-float {
    0%, 100% { transform: translateY(0);     box-shadow: 0 8px 32px -8px rgba(110,231,183,0.22); }
    50%      { transform: translateY(-4px);  box-shadow: 0 16px 40px -8px rgba(110,231,183,0.34); }
  }

  /* — Live status dots: gentle breathing glow — */
  .ll-chip .dot {
    animation: ll-dot-breathe 2.8s ease-in-out infinite;
  }
  @keyframes ll-dot-breathe {
    0%, 100% { opacity: 0.65; box-shadow: 0 0 4px var(--accent); }
    50%      { opacity: 1;    box-shadow: 0 0 12px var(--accent); }
  }
  .ll-chip.warn .dot { animation-name: ll-dot-breathe-warn; }
  @keyframes ll-dot-breathe-warn {
    0%, 100% { opacity: 0.65; box-shadow: 0 0 4px var(--warn); }
    50%      { opacity: 1;    box-shadow: 0 0 12px var(--warn); }
  }

  /* — Verdict status dot: expanding "live" ping ring — */
  .ll-verdict-dot { position: relative; }
  .ll-verdict-dot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    border: 1.5px solid var(--accent);
    animation: ll-ping 2.8s var(--ease-out) infinite;
  }
  .ll-verdict.eat  .ll-verdict-dot::after { border-color: var(--warn); }
  .ll-verdict.warn .ll-verdict-dot::after { border-color: var(--danger); }
  @keyframes ll-ping {
    0%        { transform: scale(0.6); opacity: 0.55; }
    70%, 100% { transform: scale(2.6); opacity: 0; }
  }

  /* — Verdict accent rail: slow liquid flow — */
  .ll-verdict::before {
    background: linear-gradient(180deg, var(--accent-2), var(--accent), var(--accent-2));
    background-size: 100% 220%;
    animation: ll-rail-flow 4.5s ease-in-out infinite;
  }
  @keyframes ll-rail-flow {
    0%, 100% { background-position: 0 0; }
    50%      { background-position: 0 100%; }
  }

  /* — Primary CTA: periodic sheen sweep + breathing lift — */
  .ll-btn:not(.secondary):not(.ghost)::after {
    content: '';
    position: absolute;
    top: 0; left: -70%;
    width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.38), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
    animation: ll-sheen 6s ease-in-out infinite;
  }
  @keyframes ll-sheen {
    0%        { left: -70%; opacity: 0; }
    8%        { opacity: 1; }
    26%       { left: 130%; opacity: 0; }
    100%      { left: 130%; opacity: 0; }
  }

  /* — Rest fill: traveling shimmer highlight — */
  .ll-strip-seg.rest { position: relative; overflow: hidden; }
  .ll-strip-seg.rest::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
    background-size: 55% 100%;
    background-repeat: no-repeat;
    animation: ll-shimmer 3.2s linear infinite;
  }
  @keyframes ll-shimmer {
    0%   { background-position: -60% 0; }
    100% { background-position: 160% 0; }
  }

  /* — Tab bar: little bounce when a tab becomes active — */
  .ll-tab.active svg { animation: ll-tab-pop 360ms var(--ease-elastic); }
  @keyframes ll-tab-pop {
    0%   { transform: scale(0.82); }
    60%  { transform: scale(1.12); }
    100% { transform: scale(1); }
  }

  /* — Replan banner icon: soft attention pulse — */
  .ll-replan-icon { animation: ll-icon-pulse 2.4s ease-in-out infinite; }
  @keyframes ll-icon-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
  }
}

/* ── Tactile press feedback on tappable surfaces ── */
.ll-card[onclick], .ll-card:active { transition: transform 120ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 240ms var(--ease-out), background 240ms var(--ease-out); }
.ll-card:active { transform: scale(0.988); }
.ll-row:active { transform: scale(0.99); }
.ll-stat:active { transform: scale(0.97); }

/* Unread bell badge: gentle attention pulse */
@media (prefers-reduced-motion: no-preference) {
  .ll-bell-badge { animation: ll-badge-pop 2.6s ease-in-out infinite; }
  @keyframes ll-badge-pop {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.14); }
  }
}

/* Count-up numbers respect motion preferences automatically (JS-driven). */

/* ────────────────────────────────────────────────────────────
   Month grid — "like the calendar on my wall"
   ──────────────────────────────────────────────────────────── */
.ll-cal { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px 10px; margin-bottom: 14px; }
.ll-cal-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.ll-cal-title { flex: 1; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.ll-cal-arrow {
  width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); border-radius: 9px;
  color: var(--dim); cursor: pointer; transform: rotate(180deg);
}
.ll-cal-arrow.next { transform: none; }
.ll-cal-arrow:active { background: rgba(255,255,255,0.09); }
.ll-cal-dow {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
  color: var(--dim-2); text-align: center; padding-bottom: 5px;
}
.ll-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.ll-cal-cell {
  min-height: 54px; border-radius: 8px; padding: 4px 5px 5px;
  background: rgba(255,255,255,0.022); border: 1px solid transparent;
  cursor: pointer; overflow: hidden; display: flex; flex-direction: column; gap: 2px;
}
.ll-cal-cell:active { background: rgba(255,255,255,0.06); }
.ll-cal-cell.out { opacity: 0.34; }
.ll-cal-cell.today { border-color: var(--accent); }
.ll-cal-num { font-family: var(--font-mono); font-size: 10px; color: var(--dim); line-height: 1; }
.ll-cal-cell.today .ll-cal-num { color: var(--accent); font-weight: 700; }
.ll-cal-lay {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  border: 1px solid; border-radius: 5px; padding: 2px 0; text-align: center; line-height: 1.15;
  background: rgba(255,255,255,0.04);
}
.ll-cal-lay.here { background: rgba(110,231,183,0.16); }
.ll-cal-bar {
  /* A block reads as one strip of tape across the week, so the days after the
     first carry no words but must keep the same height — a bar that collapses
     to a hairline stops looking like the same thing. */
  min-height: 15px; display: flex; align-items: center;
  font-size: 8.5px; font-weight: 700; color: #0a0d11; line-height: 1.2;
  padding: 1px 4px; overflow: hidden;
}
/* text-overflow needs a block that overflows, not the flex box around it —
   without the inner span a long title clips mid-letter with no ellipsis. */
.ll-cal-bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ll-cal-van { font-family: var(--font-mono); font-size: 8.5px; color: var(--dim-2); line-height: 1.2; }
.ll-cal-legend {
  display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 11px 4px 2px;
  font-size: 10.5px; color: var(--dim);
}
.ll-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ll-cal-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.ll-cal-hint { padding: 4px; font-size: 11.5px; color: var(--dim-2); line-height: 1.45; }

/* View toggle — agenda stays the default; the grid is a choice she makes. */
.ll-viewtoggle { display: flex; gap: 4px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.ll-viewtoggle button {
  flex: 1; background: transparent; border: 0; border-radius: 7px; padding: 7px 8px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em;
  color: var(--dim); cursor: pointer;
}
.ll-viewtoggle button.on { background: rgba(110,231,183,0.14); color: var(--accent); }

/* Kind chips in the entry form */
.ll-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.ll-kind {
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); color: var(--dim);
  border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.ll-kind.on { border-color: var(--accent); color: var(--accent); background: rgba(110,231,183,0.12); }

/* ── Time wheel + presets (van time) ───────────────────────── */
.ll-input.ll-time { color-scheme: dark; min-width: 0; min-height: 52px; text-align: left; font-size: 20px; font-weight: 600; }
.ll-input.ll-time::-webkit-date-and-time-value { text-align: left; }
.ll-input.ll-time::-webkit-calendar-picker-indicator { filter: invert(0.8); opacity: 0.6; cursor: pointer; }
/* Side by side (landing | van) each field gets ~160px, and 20px type clips
   the AM/PM. One stylesheet serves the phone and the desktop web app: on a
   touch screen tapping the field opens the wheel, so the icon is dead weight
   there; with a mouse it is the only way to open the picker, so it stays. */
.ll-row .ll-input.ll-time { font-size: 17px; padding-right: 10px; }
@media (pointer: coarse) {
  .ll-row .ll-input.ll-time::-webkit-calendar-picker-indicator { display: none; }
}
.ll-presets { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ll-preset-row { display: grid; gap: 6px; }
.ll-preset {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 48px; padding: 8px 4px; border-radius: 12px; cursor: pointer;
  background: var(--card-2); color: var(--ink); border: 1px solid var(--line);
  font-family: inherit; transition: all 150ms var(--ease-out);
}
.ll-preset .t { font-family: var(--font-mono); font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }
.ll-preset .t small { font-size: 9.5px; font-weight: 600; margin-left: 2px; color: var(--dim); }
.ll-preset .n { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.ll-preset.wide { flex-direction: row; justify-content: space-between; padding: 10px 14px; }
.ll-preset.wide .n { font-size: 9.5px; color: var(--accent); }
.ll-preset.on { background: rgba(110,231,183,0.10); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(110,231,183,0.08); }
.ll-preset.on .t small, .ll-preset.on .n { color: var(--accent); }
.ll-preset:active { transform: scale(0.97); }
