/* Settle the Trip — warm "golden hour" theme. Photos are decorative only. */
:root {
  --bg: #f6f0e8;
  --bg-2: #efe5d8;
  --surface: rgba(255, 252, 247, .9);
  --surface-solid: #fffcf7;
  --field: #fffaf3;
  --text: #22201c;
  --muted: #6a6158;
  --line: #e2d6c6;
  --accent: #b5471d;
  --accent-2: #d9622b;
  --accent-soft: #fbe9dc;
  --on-accent: #ffffff;
  --hard: #a3372a;
  --hard-soft: #fbeae6;
  --pref: #2c6b4d;
  --pref-soft: #e6f2ea;
  --warn: #7a5600;
  --warn-soft: #fcf2d8;
  --hard-fill: #b3382a;
  --pref-fill: #2c7a52;
  --shadow: 0 1px 2px rgba(60, 35, 10, .06), 0 10px 30px -12px rgba(60, 35, 10, .22);
  --shadow-lift: 0 2px 4px rgba(60, 35, 10, .08), 0 22px 44px -18px rgba(60, 35, 10, .35);
  --radius: 18px;
  --radius-sm: 10px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  /* trip-type accents */
  --t-beach: #1f8a9e;
  --t-hills: #3f7d3a;
  --t-city: #56627a;
  --t-heritage: #b2552e;
  --t-wildlife: #7a6a24;
  --t-adventure: #c8511b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121216;
    --bg-2: #18171c;
    --surface: rgba(30, 29, 35, .88);
    --surface-solid: #1e1d23;
    --field: #17161b;
    --text: #efeae4;
    --muted: #a8a097;
    --line: #37343c;
    --accent: #f4a574;
    --accent-2: #e8763a;
    --accent-soft: #3a2519;
    --on-accent: #ffffff;
    --hard: #f0a092;
    --hard-soft: #3a211d;
    --pref: #8fd1ae;
    --pref-soft: #1b3027;
    --warn: #ecc971;
    --warn-soft: #3a3020;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 48px -18px rgba(0, 0, 0, .75);
    --t-beach: #5cc4d6;
    --t-hills: #86c47e;
    --t-city: #a3b0c8;
    --t-heritage: #ec9a6f;
    --t-wildlife: #cbb866;
    --t-adventure: #f39a62;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  overflow-x: hidden;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-family: var(--display); font-size: 1.45rem; margin-top: .25rem; }
h3 { font-size: 1.08rem; }
p { margin: .4rem 0 .8rem; }
small, .muted { color: var(--muted); }
.kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700;
  color: var(--accent); margin: 0 0 .35rem;
}

/* ---------- scenery: blurred photo backdrop behind the hero ---------- */
.scenery {
  position: absolute; inset: 0 0 auto 0; height: 100vh; min-height: 640px; z-index: 0;
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 100%);
  mask-image: linear-gradient(#000 55%, transparent 100%);
}
.scenery .bd {
  position: absolute; inset: -40px; background-size: cover; background-position: center;
  filter: blur(22px) saturate(1.15); transform: scale(1.12);
  opacity: 0; transition: opacity 1.6s ease;
}
.scenery .bd.on { opacity: 1; animation: drift 14s ease-in-out infinite alternate; }
.scenery .scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 15% 20%, rgba(20, 12, 6, .25), transparent 60%),
    linear-gradient(180deg, rgba(18, 12, 8, .55), rgba(18, 12, 8, .35) 60%, rgba(18, 12, 8, .15));
}
@keyframes drift { from { transform: scale(1.12) translate3d(0, 0, 0); } to { transform: scale(1.2) translate3d(-2%, -1%, 0); } }

.ph-1 { background-image: url(images/sigiriya.webp); }
.ph-2 { background-image: url(images/road-trip.png); }
.ph-3 { background-image: url(images/rice-terraces.webp); }
.ph-4 { background-image: url(images/lake-village.webp); }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .85rem 16px; color: #fff;
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease, backdrop-filter .3s ease;
}
header.site.scrolled {
  background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; text-decoration: none; color: inherit; font-size: 1.08rem; letter-spacing: -.01em; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 50% 70%, #ffd29a 0 28%, #f08a44 29% 52%, #c2461b 53%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}
.tag { opacity: .8; font-size: .9rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1; color: #fff;
  max-width: 1120px; margin: 0 auto; padding: 28px 16px 120px;
  display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; padding-top: 48px; padding-bottom: 150px; } }
.hero .kicker { color: #ffd2ad; }
.display {
  font-family: var(--display); font-weight: 700; color: #fff;
  font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.display em { font-style: italic; color: #ffc48f; }
.lede { font-size: 1.08rem; max-width: 34rem; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.how { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.how li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .8rem .4rem .4rem; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); font-size: .92rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.how b { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; color: #b5471d; font-size: .85rem; }

/* photo deck: the active photo sits in front; the others fan out behind it */
.deck { position: relative; height: 380px; max-width: 460px; width: 100%; justify-self: center; }
@media (max-width: 899px) { .deck { height: 260px; max-width: 340px; } }
@media (max-width: 599px) {
  .hero { gap: 18px; padding-top: 16px; padding-bottom: 100px; }
  .lede { font-size: 1rem; }
  .how li { font-size: .85rem; padding: .3rem .7rem .3rem .3rem; }
  .how b { width: 1.35rem; height: 1.35rem; }
  .deck { height: 170px; max-width: 260px; }
  .deck .ph { border-width: 4px; border-radius: 14px; }
  .tag { display: none; }
}
.deck .ph {
  position: absolute; inset: 0; margin: 0; border-radius: 20px; background-size: cover; background-position: center;
  border: 6px solid rgba(255, 255, 255, .92); cursor: pointer;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .9s ease, filter .9s ease;
}
.deck .ph[data-pos="0"] { transform: rotate(-2deg); z-index: 4; }
.deck .ph[data-pos="1"] { transform: translate(8%, -4%) rotate(5deg) scale(.94); z-index: 3; filter: brightness(.85); }
.deck .ph[data-pos="2"] { transform: translate(-7%, 3%) rotate(-8deg) scale(.9); z-index: 2; filter: brightness(.7); }
.deck .ph[data-pos="3"] { transform: translate(0, 0) rotate(2deg) scale(.86); z-index: 1; opacity: 0; }

.dots { position: absolute; left: 16px; bottom: 96px; display: flex; gap: .45rem; }
@media (min-width: 900px) { .dots { left: auto; right: 16px; bottom: 120px; } }
.dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, .5); transition: width .4s ease, background-color .4s ease;
}
.dots button[aria-pressed=true] { width: 28px; background: #fff; }
@media (max-width: 599px) { .dots { bottom: 72px; left: 50%; transform: translateX(-50%); } }

/* trip pages: a shorter photo band, no marketing copy */
body[data-view="trip"] .scenery { height: 360px; min-height: 0; }
body[data-view="trip"] .hero { padding: 0; min-height: 150px; display: block; }
body[data-view="trip"] .hero-copy,
body[data-view="trip"] .deck { display: none; }
body[data-view="trip"] .dots { bottom: 18px; }
body[data-view="trip"] main { margin-top: -40px; }

/* ---------- main column & cards ---------- */
main { position: relative; z-index: 2; max-width: 820px; margin: -70px auto 0; padding: 0 16px 48px; }
section.card, .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 0 0 18px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
}
@media (min-width: 620px) { section.card, .card { padding: 26px 28px; } }
.card .card { box-shadow: none; background: var(--surface-solid); }
.stack > * + * { margin-top: .75rem; }

/* reveal on scroll (added by scenery.js only when motion is allowed) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; margin: .75rem 0 .3rem; }
label.inline { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; margin: .25rem .9rem .25rem 0; cursor: pointer; }
input[type=text], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: .65rem .75rem; font: inherit; color: inherit;
  background: var(--field); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input[type=checkbox] { accent-color: var(--accent-2); width: 1.05rem; height: 1.05rem; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
textarea { min-height: 5.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint { font-size: .88rem; color: var(--muted); margin: .15rem 0 .4rem; font-weight: 400; }

button, .button {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px; padding: .6rem 1.15rem;
  border: 1px solid transparent; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-2), #b5471d);
  box-shadow: 0 6px 16px -8px rgba(181, 71, 29, .8);
  text-decoration: none; display: inline-block;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease;
}
button:hover:not([disabled]), .button:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 22px -10px rgba(181, 71, 29, .9); }
button:active:not([disabled]) { transform: translateY(0); }
button.secondary, .button.secondary {
  background: transparent; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: none;
}
button.secondary:hover:not([disabled]) { background: var(--accent-soft); }
button.small { padding: .3rem .75rem; font-size: .88rem; }
button.danger { border-color: var(--hard); background: transparent; color: var(--hard); box-shadow: none; }
button.danger:hover:not([disabled]) { background: var(--hard-soft); }
button[disabled] { opacity: .55; cursor: progress; }
button[aria-pressed=true] { background: linear-gradient(135deg, var(--accent-2), #b5471d); color: var(--on-accent); border-color: transparent; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; gap: .5rem .9rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* ---------- notices ---------- */
.banner {
  border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 0 0 1rem; font-weight: 600;
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
}
.warn { background: var(--warn-soft); color: var(--text); border-left: 4px solid var(--warn); padding: .7rem .9rem; border-radius: var(--radius-sm); margin: .6rem 0; }
.error { background: var(--hard-soft); border-left: 4px solid var(--hard); padding: .7rem .9rem; border-radius: var(--radius-sm); margin: .6rem 0; }
.ok { background: var(--pref-soft); border-left: 4px solid var(--pref); padding: .7rem .9rem; border-radius: var(--radius-sm); margin: .6rem 0; }

fieldset { border: 0; padding: 0; margin: 0; }
.section-hard, .section-pref, .section-notes { border-radius: var(--radius); padding: 16px 18px; margin: 1.1rem 0; }
.section-hard { background: var(--hard-soft); border: 1px solid color-mix(in srgb, var(--hard) 55%, transparent); }
.section-hard > h3 { color: var(--hard); }
.section-pref { background: var(--pref-soft); border: 1px solid color-mix(in srgb, var(--pref) 55%, transparent); }
.section-pref > h3 { color: var(--pref); }
.section-notes { background: var(--accent-soft); border: 1px solid var(--line); }

.likes { display: grid; grid-template-columns: 1fr; gap: .35rem .9rem; }
@media (min-width: 560px) { .likes { grid-template-columns: 1fr 1fr; } }
.likes .like { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.likes .like span { flex: 1; text-transform: capitalize; }
.likes select { width: auto; min-width: 9rem; }
.date-row { display: flex; gap: .4rem; align-items: end; flex-wrap: wrap; margin: .3rem 0; }
.date-row > div { flex: 1 1 8rem; }
.date-row label { font-weight: 400; margin: 0; font-size: .88rem; }

/* ---------- trip header: progress + name chips ---------- */
.trip-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
.progress { margin: .8rem 0 .4rem; }
.progress progress {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 999px;
  background: var(--bg-2); overflow: hidden; display: block;
}
.progress progress::-webkit-progress-bar { background: var(--bg-2); border-radius: 999px; }
.progress progress::-webkit-progress-value { background: linear-gradient(90deg, #f0a35e, var(--accent-2), #b5471d); border-radius: 999px; transition: width .8s ease; }
.progress progress::-moz-progress-bar { background: linear-gradient(90deg, #f0a35e, var(--accent-2), #b5471d); border-radius: 999px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .7rem 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .7rem .2rem .2rem; border-radius: 999px;
  border: 1px dashed var(--line); color: var(--muted); font-size: .88rem; background: var(--surface-solid);
}
.chip .initial {
  display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%;
  background: var(--bg-2); color: var(--muted); font-weight: 700; font-size: .8rem;
}
.chip.in { border-style: solid; border-color: color-mix(in srgb, var(--pref) 50%, transparent); color: var(--text); }
.chip.in .initial { background: var(--pref-fill); color: #fff; }

/* ---------- options ---------- */
.demo-label {
  display: inline-block; font-size: .8rem; font-weight: 600; line-height: 1.3;
  background: var(--warn-soft); color: var(--warn); border: 1px dashed var(--warn);
  border-radius: 8px; padding: .18rem .5rem; margin: .25rem 0;
}
.src-label { display: inline-block; font-size: .8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: .12rem .5rem; margin: .25rem 0; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; margin: .5rem 0; font-size: .95rem; }
.facts b { font-weight: 700; font-size: 1.05rem; }
.type-chip {
  --t: var(--accent);
  display: inline-block; padding: .08rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  color: var(--t); background: color-mix(in srgb, var(--t) 13%, transparent); border: 1px solid color-mix(in srgb, var(--t) 35%, transparent);
}
.type-chip::first-letter { text-transform: uppercase; }
.t-beach { --t: var(--t-beach); }
.t-hills { --t: var(--t-hills); }
.t-city { --t: var(--t-city); }
.t-heritage { --t: var(--t-heritage); }
.t-wildlife { --t: var(--t-wildlife); }
.t-adventure { --t: var(--t-adventure); }

.card.option { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.card.option::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--t, var(--accent)), color-mix(in srgb, var(--t, var(--accent)) 30%, transparent));
}
.card.option:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card.option h3 { font-family: var(--display); font-size: 1.35rem; margin-top: .2rem; }

ul.opts { display: grid; gap: .75rem; }
ul.opts > li.opt {
  position: relative; border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem .8rem 1.2rem;
  background: var(--surface-solid); transition: transform .2s ease, box-shadow .2s ease;
}
ul.opts > li.opt:first-child { border-top: 1px solid var(--line); }
ul.opts > li.opt::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--t, var(--accent)); }
ul.opts > li.opt:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.pill { display: inline-block; font-size: .8rem; line-height: 1.35; border-radius: 10px; padding: .12rem .55rem; border: 1px solid var(--line); }
.pill.hard { color: var(--hard); border-color: var(--hard); }
.pill.pref { color: var(--pref); border-color: var(--pref); }
.pill.pass { color: var(--pref); border-color: var(--pref); background: var(--pref-soft); }

table.people { width: 100%; border-collapse: collapse; margin-top: .8rem; font-size: .93rem; }
table.people th, table.people td { text-align: left; vertical-align: top; padding: .55rem .45rem; border-top: 1px solid var(--line); }
table.people th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
table.people ul { margin: 0; padding-left: 1rem; }
table.people tr.mine { background: var(--accent-soft); }
table.people tr.mine td:first-child { border-radius: 10px 0 0 10px; }
table.people tr.mine td:last-child { border-radius: 0 10px 10px 0; }
table.people td > button { margin: 0 .25rem .3rem 0; }
.fit { display: inline-flex; flex-direction: column; gap: .25rem; font-weight: 600; min-width: 4.5rem; }
.fit meter { width: 4.5rem; height: 6px; }
.fit meter::-webkit-meter-bar { background: var(--bg-2); border: 0; border-radius: 999px; height: 6px; }
.fit meter::-webkit-meter-optimum-value { background: linear-gradient(90deg, #f0a35e, var(--accent-2)); border-radius: 999px; }
.fit meter::-moz-meter-bar { background: linear-gradient(90deg, #f0a35e, var(--accent-2)); border-radius: 999px; }
@media (max-width: 620px) {
  table.people thead { display: none; }
  table.people, table.people tbody, table.people tr, table.people td { display: block; width: 100%; }
  table.people tr { border-top: 1px solid var(--line); padding: .5rem 0; }
  table.people td { border: 0; padding: .15rem .3rem; }
  table.people td::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
  table.people td.name::before { display: none; }
  table.people td.name { font-weight: 700; }
  table.people tr.mine td:first-child, table.people tr.mine td:last-child { border-radius: 0; }
}

ul.plain { list-style: none; padding: 0; margin: .3rem 0; }
ul.plain > li { padding: .55rem 0; border-top: 1px solid var(--line); }
ul.plain > li:first-child { border-top: 0; }
.draft { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem; margin: .55rem 0; background: var(--surface-solid); animation: pop .35s ease both; }
.draft.applied { opacity: .7; }
.draft blockquote { margin: .35rem 0; padding-left: .65rem; border-left: 3px solid var(--accent-2); color: var(--muted); font-style: italic; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: none; } }
.ai-note { font-size: .85rem; color: var(--muted); font-style: italic; }
.summary {
  background: linear-gradient(135deg, var(--accent-soft), transparent); border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 12px; padding: .7rem .85rem; margin: .7rem 0;
}
.linkbox { display: flex; gap: .4rem; align-items: center; }
.linkbox input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.flash { outline: 2px solid var(--accent); outline-offset: 3px; transition: outline-color 1.5s; }
details > summary { cursor: pointer; font-weight: 700; margin: .5rem 0; color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* =====================================================================
   Low-friction answering, photos and trip-page extras
   ===================================================================== */
.row.between { justify-content: space-between; }
.row.tight { gap: .35rem; }
.center { text-align: center; }
.label { font-weight: 700; margin: 1rem 0 .4rem; }
.hard-label { color: var(--hard); }
button.linkish {
  background: none; border: 0; box-shadow: none; padding: .3rem .2rem; color: var(--accent); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; border-radius: 6px;
}
button.linkish:hover:not([disabled]) { transform: none; filter: none; box-shadow: none; }
button.linkish[disabled] { opacity: .35; }
button.big { padding: .8rem 1.6rem; font-size: 1.05rem; }
.ok-line { color: var(--pref); }

/* ---------- destination photos ---------- */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--bg-2); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.missing img { display: none; }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .8rem;
  padding: 1.6rem .75rem .45rem; font-size: .72rem; color: rgba(255, 255, 255, .92);
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
}
.photo figcaption a { color: rgba(255, 255, 255, .85); }
.photo.card { aspect-ratio: 16 / 7; margin: -20px -20px 16px; border-radius: var(--radius) var(--radius) 0 0; }
@media (min-width: 620px) { .photo.card { margin: -26px -28px 18px; } }
.photo.swipe { aspect-ratio: 4 / 3; }
.photo.thumb { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 12px; }
.photo.fallback {
  display: grid; place-items: center; color: #fff; font-weight: 700; text-transform: capitalize; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--t, var(--accent)), color-mix(in srgb, var(--t, var(--accent)) 45%, #000));
}
.photo.thumb.fallback span { font-size: .62rem; text-align: center; padding: 2px; }
.card.option::before { z-index: 1; }
.card.option .photo.card { border-bottom: 1px solid var(--line); }
ul.opts > li.opt { display: flex; gap: .9rem; align-items: flex-start; }
ul.opts > li.opt > .opt-body { flex: 1; min-width: 0; }

/* ---------- answer panel ---------- */
.answer { overflow: hidden; }
.answer-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.answer .screen-title { font-size: 1.6rem; outline: none; }
.answer .screen { animation: pop .35s ease both; }

.name-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; margin-top: .8rem; }
.name-btn {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1rem .6rem; border-radius: 16px;
  background: var(--surface-solid); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 1.02rem;
}
.name-btn .initial {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(135deg, #f0a35e, var(--accent-2)); color: #fff;
}
.name-btn small { color: var(--pref); font-weight: 600; }
.name-btn.done .initial { background: var(--pref-fill); }
.name-btn:hover:not([disabled]) { box-shadow: var(--shadow-lift); filter: none; }

.deck-progress { display: flex; align-items: center; gap: .3rem; margin: .4rem 0 .8rem; }
.pip { flex: 1; height: 5px; border-radius: 999px; background: var(--bg-2); transition: background-color .3s ease; }
.pip.now { background: var(--accent-2); }
.pip.s-in { background: var(--pref); }
.pip.s-ok { background: #d9a33b; }
.pip.s-out { background: var(--hard); }
.deck-progress .count { font-size: .8rem; color: var(--muted); margin-left: .4rem; font-variant-numeric: tabular-nums; }

.swipe-card {
  position: relative; border-radius: 20px; overflow: hidden; background: var(--surface-solid); border: 1px solid var(--line);
  box-shadow: var(--shadow-lift); touch-action: pan-y; user-select: none; cursor: grab; outline: none;
  transition: transform .25s ease, opacity .25s ease; max-width: 520px; margin: 0 auto;
}
.swipe-card:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent), var(--shadow-lift); }
.swipe-card.dragging { transition: none; cursor: grabbing; }
.swipe-card.fly-in { transform: translateX(120%) rotate(12deg) !important; opacity: 0; }
.swipe-card.fly-out { transform: translateX(-120%) rotate(-12deg) !important; opacity: 0; }
.swipe-card .photo figcaption { font-size: .68rem; }
.swipe-card img { -webkit-user-drag: none; pointer-events: none; }
.swipe-body { padding: 14px 16px 16px; }
.swipe-body h3 { font-family: var(--display); font-size: 1.45rem; margin: 0; }
.swipe-body .muted { margin: 0 0 .3rem; }
.stamp {
  position: absolute; top: 18px; padding: .3rem .8rem; border: 3px solid; border-radius: 10px; font-weight: 900; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: .05em; opacity: 0; transition: opacity .15s ease; background: rgba(255, 255, 255, .85);
}
.stamp.in { left: 18px; color: var(--pref); transform: rotate(-12deg); }
.stamp.out { right: 18px; color: var(--hard); transform: rotate(12deg); }
.swipe-card.lean-in .stamp.in, .swipe-card.lean-out .stamp.out { opacity: 1; }

.stance-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; max-width: 520px; margin: 14px auto 6px; }
.stance-bar .st { padding: .75rem .4rem; border-radius: 14px; font-size: .95rem; box-shadow: none; }
.stance-bar .st.out { background: var(--hard-soft); color: var(--hard); border: 1px solid color-mix(in srgb, var(--hard) 40%, transparent); }
.stance-bar .st.ok { background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.stance-bar .st.in { background: var(--pref-soft); color: var(--pref); border: 1px solid color-mix(in srgb, var(--pref) 40%, transparent); }
.stance-bar .st[aria-pressed=true] { outline: 3px solid currentColor; outline-offset: 1px; }

.chips-wrap { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.chips-wrap input[type=number] { width: 9rem; }
.chip-btn {
  background: var(--surface-solid); color: var(--text); border: 1px solid var(--line); box-shadow: none;
  padding: .5rem .9rem; font-weight: 600; font-size: .92rem;
}
.chip-btn.small { padding: .32rem .7rem; font-size: .85rem; }
.chip-btn:hover:not([disabled]) { border-color: var(--accent); box-shadow: none; filter: none; }
.chip-btn[aria-pressed=true] { background: linear-gradient(135deg, var(--accent-2), #b5471d); color: #fff; border-color: transparent; }
.chip-btn.hard[aria-pressed=true] { background: var(--hard-fill); }
.chip-btn.love[aria-pressed=true] { background: var(--pref-fill); }
.chip-btn.love { text-transform: capitalize; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface-solid); flex-wrap: nowrap; }
.seg button {
  background: transparent; color: var(--muted); border: 0; box-shadow: none; padding: .35rem .8rem; font-size: .86rem; border-radius: 999px; white-space: nowrap;
}
.seg button:hover:not([disabled]) { transform: none; box-shadow: none; filter: none; color: var(--text); }
.seg button[aria-pressed=true] { background: var(--accent-soft); color: var(--accent); }
.seg button.hard[aria-pressed=true] { background: var(--hard-fill); color: #fff; }
.seg button.love[aria-pressed=true] { background: var(--pref-fill); color: #fff; }
.seg button.s-in[aria-pressed=true] { background: var(--pref-fill); color: #fff; }
.seg button.s-ok[aria-pressed=true] { background: #a8780a; color: #fff; }
.seg button.s-out[aria-pressed=true] { background: var(--hard-fill); color: #fff; }

.why-rows { display: grid; gap: .6rem; margin: 1rem 0 .4rem; }
.why-row { border: 1px solid var(--line); border-radius: 14px; padding: .7rem .85rem; background: var(--surface-solid); }
.why-row p { margin: 0 0 .45rem; }
.why-row .row.tight { margin-bottom: .5rem; }
.impact { margin: .9rem 0; padding: .6rem .8rem; border-radius: 12px; background: var(--bg-2); font-size: .92rem; }
.like-rows { display: grid; gap: .45rem; margin-top: .5rem; }
.like-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.like-row > span { text-transform: capitalize; font-weight: 600; }
.other-dates { margin-top: .6rem; }
.other-dates .date-row input { min-width: 0; }

.mini-list { list-style: none; padding: 0; margin: .3rem 0; display: grid; gap: .3rem; }
.mini-list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .3rem .1rem; }
button.x {
  background: transparent; color: var(--muted); border: 1px solid var(--line); box-shadow: none; width: 1.8rem; height: 1.8rem;
  padding: 0; border-radius: 50%; font-size: 1.05rem; line-height: 1; flex: 0 0 auto;
}
button.x:hover:not([disabled]) { color: var(--hard); border-color: var(--hard); transform: none; box-shadow: none; filter: none; }

.review-trips { list-style: none; padding: 0; margin: .4rem 0 1rem; display: grid; gap: .55rem; }
.review-trips li { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); }
.review-trips li.ruled-out { opacity: .75; }
.rt-body { flex: 1 1 10rem; display: flex; flex-direction: column; }
.rt-body .ruled { color: var(--hard); font-size: .8rem; font-weight: 600; }
.review-trips .seg { margin-left: auto; }
@media (max-width: 560px) {
  .review-trips .seg { margin-left: 0; width: 100%; }
  .review-trips .seg button { flex: 1; padding: .35rem .3rem; font-size: .8rem; }
  .like-row .seg button { padding: .32rem .6rem; }
}
.review-cols { display: grid; gap: 0 .9rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .review-cols { grid-template-columns: 1fr 1fr; } }
.review-cols > div { margin: .4rem 0; }

/* ---------- head extras ---------- */
.deadline { margin: .5rem 0 0; padding: .45rem .75rem; border-radius: 10px; background: var(--accent-soft); display: inline-block; }
.deadline.passed { background: var(--warn-soft); }
.matters { color: var(--accent); font-weight: 600; margin: .5rem 0 0; }
.nudges { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .6rem 0 .2rem; }
a.nudge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  text-decoration: none; color: var(--pref); border: 1px solid color-mix(in srgb, var(--pref) 45%, transparent); background: var(--pref-soft);
}
a.nudge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
a.nudge:hover { filter: brightness(1.05); }
.button.small { padding: .3rem .75rem; font-size: .88rem; }
ul.links > li { display: grid; gap: .35rem; }

/* ---------- stance tally ---------- */
.tally { margin: .6rem 0; }
.tally-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--bg-2); }
.tally-bar span { height: 100%; }
.tally-bar .seg-in { background: var(--pref); }
.tally-bar .seg-ok { background: #d9a33b; }
.tally-bar .seg-out { background: var(--hard); }
.tally-bar .seg-none { background: var(--line); }
.tally-bar .w0 { flex: .4; } .tally-bar .w1 { flex: 1; } .tally-bar .w2 { flex: 2; } .tally-bar .w3 { flex: 3; }
.tally-bar .w4 { flex: 4; } .tally-bar .w5 { flex: 5; } .tally-bar .w6 { flex: 6; } .tally-bar .w7 { flex: 7; }
.tally-bar .w8 { flex: 8; } .tally-bar .w9 { flex: 9; } .tally-bar .w10 { flex: 10; }
.tally-text { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin: .35rem 0 0; font-size: .86rem; color: var(--muted); }
.tally-text .t-in b { color: var(--pref); }
.tally-text .t-ok b { color: #a8780a; }
.tally-text .t-out b { color: var(--hard); }

/* ---------- compare ---------- */
.compare { margin: 1rem 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-solid); }
.compare select { width: auto; flex: 1 1 10rem; }
.compare-scroll { overflow-x: auto; }
.compare-table ul { margin: 0 0 .3rem; padding-left: 1rem; }
.compare-table ul.gets li::marker { color: var(--pref); }
.compare-table ul.gives li::marker { color: var(--accent-2); }
.compare-table ul.gives { color: var(--muted); }
@media (max-width: 620px) {
  .compare-table thead { display: table-header-group; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td { display: revert; width: auto; }
  .compare-table td::before { display: none; }
}

/* ---------- group calendar ---------- */
.calendar > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; list-style: none; margin: 0; }
.calendar > summary::-webkit-details-marker { display: none; }
.calendar > summary .summary-title { font-family: var(--display); font-size: 1.3rem; color: var(--text); }
.calendar > summary::after { content: "Show"; margin-left: auto; font-size: .85rem; color: var(--accent); }
.calendar[open] > summary::after { content: "Hide"; }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin-top: .8rem; }
.month-name { font-weight: 700; margin: 0 0 .3rem; }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dow span { font-size: .7rem; color: var(--muted); text-align: center; }
.day { display: grid; place-items: center; aspect-ratio: 1; font-size: .75rem; border-radius: 6px; background: var(--bg-2); color: var(--muted); }
.day.empty { background: transparent; }
.day.b1 { background: color-mix(in srgb, var(--hard) 30%, var(--bg-2)); color: var(--text); }
.day.b2 { background: color-mix(in srgb, var(--hard-fill) 70%, var(--bg-2)); color: #fff; }
.day.b3 { background: var(--hard-fill); color: #fff; }
.day.trip { box-shadow: inset 0 -3px 0 var(--accent-2); font-weight: 700; color: var(--text); }
.day.b2.trip, .day.b3.trip { color: #fff; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted); margin-top: .8rem; }
.legend .sample { width: 1.1rem; height: 1.1rem; aspect-ratio: auto; display: inline-block; margin-left: .5rem; }

/* ---------- decision share ---------- */
.decision-share { border-radius: var(--radius); overflow: hidden; background: var(--surface-solid); border: 1px solid var(--line); margin: .2rem 0 .8rem; box-shadow: var(--shadow); }
.decision-share .photo.card { margin: 0; border-radius: 0; aspect-ratio: 16 / 6; }
.ds-body { padding: 14px 16px 16px; }
.ds-body h3 { font-family: var(--display); font-size: 1.6rem; margin: .1rem 0 .3rem; }

/* ---------- footer ---------- */
.site-foot { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 8px 16px 40px; font-size: .88rem; color: var(--muted); text-align: center; }
.site-foot p { margin: .25rem 0; }

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