/* Pocono Weekend — mobile-first, soft pinks and rose gold.
   Everything is designed for a 390 mm-wide phone first; the only desktop rule is at the end. */

:root {
  --bg-1: #fff7fb;
  --bg-2: #fdecf3;
  --bg-3: #f7f2ff;

  --ink: #4b3340;
  --ink-2: #8c7382;
  --ink-3: #b7a3ae;

  --rose: #e58ba6;
  --rose-2: #d96b8f;
  --rose-deep: #b4526f;
  --gold: #dfb09a;
  --gold-2: #f0d6c6;
  --mint: #bfe3d8;
  --peri: #ccd5f7;

  --card: rgba(255, 255, 255, 0.86);
  --line: rgba(180, 82, 111, 0.16);
  --shadow: 0 20px 45px -22px rgba(180, 82, 111, 0.45);
  --shadow-soft: 0 12px 28px -18px rgba(180, 82, 111, 0.4);
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 13px;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* .lock sets display:flex, which otherwise beats the UA rule for [hidden] */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(170deg, var(--bg-1) 0%, var(--bg-2) 52%, var(--bg-3) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ── soft light blobs behind everything ───────────────────────────────── */
.blobs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; }
.b1 { width: 300px; height: 300px; top: -80px; left: -70px; background: radial-gradient(circle, #ffd6e6, transparent 70%); }
.b2 { width: 260px; height: 260px; top: 35%; right: -90px; background: radial-gradient(circle, #ffe6d2, transparent 70%); }
.b3 { width: 320px; height: 320px; bottom: -120px; left: 10%; background: radial-gradient(circle, #e2dcff, transparent 70%); }

/* ── lock screen ──────────────────────────────────────────────────────── */
.lock {
  position: relative; z-index: 1;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
}

.lock-card {
  width: 100%; max-width: 400px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 30px 22px 26px;
  text-align: center;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.lock-card.gone { transform: scale(1.06) translateY(-14px); opacity: 0; }

.monogram {
  width: 74px; height: 74px; margin: 0 auto 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px; line-height: 1; white-space: nowrap;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(140deg, var(--rose) 0%, var(--rose-2) 55%, var(--gold) 100%);
  box-shadow: 0 10px 24px -10px rgba(217, 107, 143, 0.85), inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.monogram .amp { opacity: 0.75; margin: 0 1px; font-size: 19px; }

.lock-card h1 {
  font-family: var(--serif); font-weight: 600; font-size: 25px;
  margin: 0 0 6px; letter-spacing: 0.2px;
}
.lock-sub { margin: 0 0 20px; color: var(--ink-2); font-size: 13.5px; letter-spacing: 0.3px; }

.dots { display: flex; gap: 16px; justify-content: center; margin-bottom: 12px; }
.dot {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid var(--rose);
  background: rgba(255, 255, 255, 0.7);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.dot.filled {
  background: linear-gradient(140deg, var(--rose), var(--rose-2));
  box-shadow: 0 0 0 4px rgba(229, 139, 166, 0.16);
  animation: pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dots.shake { animation: shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97); }

.msg {
  min-height: 19px; margin: 0 0 14px; font-size: 13px; font-weight: 500;
  color: var(--rose-deep); letter-spacing: 0.2px;
}
.msg.ok { color: #4f8a72; }
.msg.locked { color: #a4642f; }

/* keypad */
.keypad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin: 4px 0 14px;
}
.key {
  font-family: var(--sans); font-size: 22px; font-weight: 500; color: var(--ink);
  height: 60px; border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 250, 0.9));
  box-shadow: 0 6px 14px -10px rgba(180, 82, 111, 0.6);
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.key span { position: relative; z-index: 1; }
.key:active { transform: scale(0.94); box-shadow: 0 2px 8px -6px rgba(180, 82, 111, 0.7); }
.key:focus-visible { outline: 2px solid var(--rose-2); outline-offset: 2px; }
.key.pressed::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(229, 139, 166, 0.55), transparent 65%);
  animation: ripple 0.45s ease-out forwards;
}
.key-ghost { font-size: 13px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-2); }
.keypad.disabled { opacity: 0.45; pointer-events: none; filter: saturate(0.6); }

.hint { margin: 0; font-size: 12px; color: var(--ink-3); letter-spacing: 0.2px; }

.lockout {
  margin-top: 14px; padding: 14px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(255, 236, 214, 0.95), rgba(255, 226, 236, 0.9));
  border: 1px solid rgba(180, 82, 111, 0.2);
  animation: fadeUp 0.4s ease both;
}
.lockout p { margin: 0; font-size: 13.5px; }
.lockout .clock { font-family: var(--serif); font-size: 27px; margin: 6px 0 2px; color: var(--rose-deep); }
.lockout .fine { font-size: 12px; color: var(--ink-2); margin-top: 4px; }

/* ── itinerary view ───────────────────────────────────────────────────── */
.app {
  position: relative; z-index: 1;
  max-width: 520px; margin: 0 auto;
  padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
}
.app.enter { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }

.topbar { margin-bottom: 16px; }
.hello {
  margin: 0 0 2px; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--rose-deep); font-weight: 600;
}
.trip-title {
  font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.12;
  margin: 0 0 10px;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); color: var(--ink-2);
}
.chip-count {
  background: linear-gradient(140deg, var(--rose), var(--rose-2));
  color: #fff; border-color: transparent; font-weight: 600;
  box-shadow: 0 8px 18px -12px rgba(217, 107, 143, 0.9);
}

/* the unmissable reminder */
.alert {
  display: flex; align-items: center; gap: 14px;
  margin: 4px 0 20px; padding: 16px 16px 16px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, #f9b8cf 0%, #f3a0bd 42%, #eec7ac 100%);
  color: #fff;
  box-shadow: 0 22px 40px -22px rgba(217, 107, 143, 0.95);
  position: relative; overflow: hidden;
  animation: fadeUp 0.7s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.alert::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: shimmer 4.5s ease-in-out infinite; pointer-events: none;
}
.alert-emoji { font-size: 34px; line-height: 1; animation: wiggle 5s ease-in-out infinite; }
.alert-text {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: 17.5px; line-height: 1.3;
  text-shadow: 0 1px 6px rgba(160, 60, 100, 0.25);
}
.alert-sub { margin: 4px 0 0; font-size: 12px; opacity: 0.92; }

/* day tabs */
.tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 5px; margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-soft);
}
.tab {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  padding: 10px 4px; border-radius: 999px;
  transition: color 0.25s ease, background 0.3s ease, transform 0.15s ease;
}
.tab span { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; margin-top: 1px; }
.tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(140deg, var(--rose), var(--rose-2) 70%, var(--gold));
  box-shadow: 0 10px 20px -14px rgba(217, 107, 143, 1);
}
.tab:active { transform: scale(0.97); }

/* timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, rgba(229, 139, 166, 0.1), rgba(217, 107, 143, 0.55), rgba(223, 176, 154, 0.15));
  border-radius: 2px;
}

.stop {
  position: relative; margin-bottom: 12px;
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.stop .node {
  position: absolute; left: -25px; top: 20px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--rose);
  box-shadow: 0 0 0 4px rgba(229, 139, 166, 0.12);
}
.stop.hero .node { background: linear-gradient(140deg, var(--rose), var(--rose-2)); border-color: #fff; }

.card {
  width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  padding: 13px 14px;
  font-family: var(--sans); color: var(--ink);
  transition: transform 0.16s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:active { transform: scale(0.985); }
.card.open { border-color: rgba(217, 107, 143, 0.4); }

.card-head { display: flex; align-items: flex-start; gap: 11px; }
.card-icon { font-size: 19px; line-height: 1.2; }
.card-main { flex: 1; min-width: 0; }
.card-time {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.6px;
  color: var(--rose-deep); background: rgba(229, 139, 166, 0.14);
  padding: 2px 8px; border-radius: 999px; margin-bottom: 5px;
}
.card-title { font-size: 15px; font-weight: 600; line-height: 1.25; margin: 0 0 3px; }
.card-addr {
  font-size: 12.5px; color: var(--ink-2); margin: 0; line-height: 1.35;
  overflow-wrap: anywhere;
}
.chev {
  flex: 0 0 auto; color: var(--ink-3); font-size: 13px; margin-top: 2px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.card.open .chev { transform: rotate(180deg); }

/* smooth height animation without measuring */
.card-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1); }
.card.open .card-body { grid-template-rows: 1fr; }
.card-body > div { overflow: hidden; }
.card-body ul { margin: 11px 0 0; padding: 0 0 0 17px; }
.card-body li { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin-bottom: 5px; }
.card-body li::marker { color: var(--rose); }
.card-wear {
  display: inline-block; margin-top: 9px; font-size: 12px; font-weight: 500;
  padding: 5px 11px; border-radius: 999px;
  background: linear-gradient(140deg, rgba(191, 227, 216, 0.55), rgba(204, 213, 247, 0.55));
  color: #4c6b63;
}
.card-map {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 11px; margin-right: 8px;
  font-size: 12.5px; font-weight: 600; text-decoration: none;
  color: var(--rose-deep); border-bottom: 1px solid rgba(180, 82, 111, 0.3); padding-bottom: 1px;
}
.tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--ink-3); float: right; margin-left: 8px;
}
.tag.shoot { color: var(--rose-deep); }

.foot { margin-top: 26px; text-align: center; }
.foot p { font-size: 12px; color: var(--ink-3); margin: 0 0 12px; }
.heart { color: var(--rose-2); }
.lock-again {
  font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
}
.lock-again:active { transform: scale(0.97); }

.empty { font-size: 14px; color: var(--ink-2); padding: 24px 4px; }

/* petals on unlock */
.petal {
  position: fixed; z-index: 5; font-size: 18px; pointer-events: none;
  animation: petal 1.5s ease-out forwards;
}

/* ── motion ───────────────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0.5); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); }
}
@keyframes ripple { from { opacity: 1; transform: scale(0.4); } to { opacity: 0; transform: scale(2.1); } }
@keyframes shimmer { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(320%); } }
@keyframes wiggle {
  0%, 88%, 100% { transform: rotate(0deg); } 90% { transform: rotate(-12deg); }
  93% { transform: rotate(10deg); } 96% { transform: rotate(-6deg); }
}
@keyframes petal {
  0% { opacity: 0; transform: translateY(0) scale(0.6) rotate(0deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-170px) scale(1.15) rotate(140deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.06s !important; }
  .alert::after { display: none; }
}

@media (min-width: 700px) {
  .app { padding-top: 34px; }
  .trip-title { font-size: 34px; }
}
