:root {
  --wine: #7A1F2B; --wine-dk: #5A1520; --ink: #16181D; --ground: #FBFAF7; --olive-bg: #E8EDDF; --olive-ink: #2F3822;
  --muted: #5B5F66; --body: #3D4148; --line: #E3DED6; --line2: #D9D4CC; --sand: #F1EEE8; --outer: #EEEAE3;
  --head: 'Bricolage Grotesque', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--outer); color: var(--ink); font-family: 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; color: inherit; }
input, textarea { font: inherit; }
a { color: var(--wine); }
a:hover { color: var(--wine-dk); }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--wine); outline-offset: 2px; }

.frame { max-width: 520px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--ground); display: flex; flex-direction: column; }
@media (min-width: 560px) { body { padding: 24px 0; } .frame { min-height: calc(100vh - 48px); border-radius: 28px; overflow: hidden; box-shadow: 0 10px 40px rgba(22,24,29,0.08); } }

.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 8px; min-height: 60px; }
.back { background: none; border: none; padding: 10px 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.brand { font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; color: var(--wine); margin-left: auto; text-decoration: none; }
.dots { display: flex; gap: 6px; padding: 4px 24px 0; }
.dots span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.dots span.on { background: var(--wine); }

main { flex: 1; padding: 28px 24px 32px; display: flex; flex-direction: column; }
.step { display: flex; flex-direction: column; gap: 12px; flex: 1; animation: in .25s ease; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } }

h1 { margin: 0; font-family: var(--head); font-size: 40px; line-height: 1.02; font-weight: 700; }
h2 { margin: 0; font-family: var(--head); font-size: 30px; line-height: 1.1; font-weight: 700; }
h3 { margin: 6px 0 0; font-family: var(--head); font-size: 22px; }
.lede { margin: 0; font-size: 17px; line-height: 1.45; color: var(--body); }
.sub { margin: 0; font-size: 15px; color: var(--muted); }
.small { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.banner { width: 100%; object-fit: cover; border-radius: 16px; }
.hero { width: 100%; height: 360px; object-fit: cover; border-radius: 20px; }

.primary { height: 56px; border-radius: 28px; border: none; background: var(--wine); color: #fff; font-size: 17px; font-weight: 600; }
.primary:hover { background: var(--wine-dk); }
.ghost { height: 52px; border-radius: 26px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 16px; font-weight: 600; }

.opt { text-align: left; padding: 10px; border-radius: 16px; border: 1.5px solid var(--line2); background: #fff; display: flex; align-items: center; gap: 16px; }
.opt.on, .chip.on, .num.on, .bud.on, .fl.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt img { width: 96px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; }
.opt.tall img { width: 104px; height: 104px; }
.opt .t { font-size: 20px; font-weight: 600; }
.opt.tall .t { font-size: 19px; }
.opt .s, .bud .s, .fl .s { font-size: 14px; line-height: 1.35; opacity: 0.8; }
.col { display: flex; flex-direction: column; gap: 4px; }

.nums { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.num { height: 52px; border-radius: 26px; border: 1.5px solid var(--line2); background: #fff; font-size: 18px; font-weight: 600; }
.scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.tip { margin-top: 8px; padding: 16px; border-radius: 14px; background: var(--sand); font-size: 15px; line-height: 1.4; color: var(--body); }

.people { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 16px; background: var(--sand); margin-top: 4px; }
.people .lab { font-size: 16px; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 44px; height: 44px; border-radius: 22px; border: 1.5px solid var(--line2); background: #fff; font-size: 22px; line-height: 1; padding: 0; }
.stepper span { min-width: 28px; text-align: center; font-size: 22px; font-weight: 700; }
.bud { text-align: left; padding: 18px 20px; border-radius: 16px; border: 1.5px solid var(--line2); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bud .t { font-size: 19px; font-weight: 600; }
.bud .r { font-size: 16px; font-weight: 600; white-space: nowrap; }

.months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chip { height: 52px; border-radius: 12px; border: 1.5px solid var(--line2); background: #fff; font-size: 16px; font-weight: 500; }
.dashed { height: 52px; border-radius: 12px; border: 1.5px dashed #B9B3A9; background: transparent; color: var(--body); font-size: 16px; }

.reg { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); }
.reg.x { background: var(--sand); }
.reg.x img { opacity: 0.35; }
.reg.x .n { color: #8A8E95; }
.reg img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; flex: none; }
.reg .info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.reg .n { font-size: 16px; font-weight: 600; }
.reg .d { font-size: 12px; color: var(--muted); }
.ib { width: 44px; height: 44px; border-radius: 22px; border: 1.5px solid var(--line2); background: #fff; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--muted); }
.ib.heart.on { background: var(--wine); border-color: var(--wine); color: #fff; }
.ib.heart.on svg { fill: #fff; }
.ib.skip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

label { font-size: 14px; color: var(--muted); }
.field { height: 54px; border-radius: 12px; border: 1.5px solid var(--line2); padding: 0 16px; font-size: 17px; background: #fff; color: var(--ink); width: 100%; }
.fl { text-align: left; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line2); background: #fff; display: flex; flex-direction: column; gap: 2px; }
.fl .t { font-size: 16px; font-weight: 600; }

/* results */
.res { gap: 18px; }
.rhead { position: relative; border-radius: 20px; overflow: hidden; background: #3A0F15; color: #fff; padding: 120px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.rhead > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.rhead .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(58,15,21,0) 10%, rgba(58,15,21,0.92) 72%); }
.rhead > span, .rhead > div:not(.shade) { position: relative; }
.badge { position: absolute !important; top: 18px; right: 18px; width: 92px; height: 92px; border-radius: 46px; background: var(--ground); color: var(--wine); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.badge b { font-family: var(--head); font-size: 32px; line-height: 1; }
.badge small { font-size: 8px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 3px; text-align: center; line-height: 1.15; }
.tag { align-self: flex-start; padding: 5px 10px; border-radius: 12px; background: var(--ground); color: var(--wine); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.tag.alt { background: rgba(255,255,255,0.2); color: #fff; }
.kicker { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.label { font-family: var(--head); font-size: 34px; font-weight: 700; line-height: 1.05; }
.summary { font-size: 15px; line-height: 1.4; }
.stops { display: flex; flex-wrap: wrap; gap: 8px; }
.stops span { padding: 8px 14px; border-radius: 18px; background: var(--olive-bg); color: var(--olive-ink); font-size: 14px; font-weight: 600; }
.flight { margin: 0; font-size: 14px; line-height: 1.45; color: var(--body); }
.card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; }
.eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wine); font-weight: 600; }
.bar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--body); }
.bar .k { width: 76px; flex: none; }
.bar .track { flex: 1; height: 8px; border-radius: 4px; background: var(--sand); overflow: hidden; }
.bar .fill { height: 100%; background: var(--wine); border-radius: 4px; }
.bar .v { width: 26px; text-align: right; font-weight: 600; color: var(--ink); }
.note { font-size: 12px; color: var(--muted); line-height: 1.4; }
.book { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.book .i { flex: none; width: 28px; height: 28px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.book .t { font-size: 16px; font-weight: 600; line-height: 1.3; }
.book .w { font-size: 13px; color: var(--muted); }
.alts h3 { font-size: 18px; margin: 6px 0 2px; }
.alt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line2); background: #fff; text-align: left; width: 100%; }
.alt .tg { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.alt .n { font-size: 15px; font-weight: 600; }
.alt .sc { font-family: var(--head); font-size: 22px; font-weight: 700; color: var(--wine); }
.tier { font-size: 14px; line-height: 1.45; color: var(--body); background: transparent; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.total .amt { font-size: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.how { padding: 16px; border-radius: 14px; background: var(--sand); font-size: 14px; line-height: 1.5; color: var(--body); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 20px; font-size: 14px; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 24px 22px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.foot a { color: inherit; }
