:root {
  --ink: #182820; --paper: #f4f0e7; --card: #fffdf8; --sage: #dce3d8;
  --amber: #d78932; --rust: #a84f32; --blue: #38677b; --muted: #657068;
  --line: rgba(24,40,32,.16); --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 18px 55px rgba(41,45,37,.09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
img, svg, input, select, button { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border-radius: 50%; color: var(--paper); background: var(--ink); font: italic 16px var(--serif); }
.brand strong, .brand small { display: block; }
.brand strong { font: 600 20px var(--serif); letter-spacing: .01em; }
.brand small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.demo-flag { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.demo-flag span { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(215,137,50,.14); }
main { padding: 0 clamp(20px, 5vw, 72px) 72px; }
.intro { max-width: 980px; padding: 64px 0 52px; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(240px,.6fr); align-items: end; gap: 36px; }
.eyebrow { margin: 0 0 12px; color: var(--rust); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
.intro .eyebrow { grid-column: 1 / -1; margin-bottom: -24px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font: 400 clamp(54px, 8vw, 104px)/.86 var(--serif); letter-spacing: -.055em; }
h1 em { color: var(--rust); font-weight: 400; }
.dek { max-width: 380px; margin: 0 0 5px; color: var(--muted); font: 19px/1.55 var(--serif); }
.workspace { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.workspace, .planner-panel, .results, form, .form-grid, label { min-width: 0; }
.planner-panel { position: sticky; top: 18px; background: var(--ink); color: #f9f4e8; border-radius: 4px 34px 4px 4px; padding: 28px; box-shadow: var(--shadow); }
.form-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 26px; }
.form-heading > span { color: #e1b983; font: italic 17px var(--serif); }
.form-heading h2 { margin-bottom: 2px; font: 400 28px var(--serif); }
.form-heading p { color: #aebbb4; font-size: 12px; }
form > label, fieldset, .form-grid { margin-bottom: 20px; }
label, legend { display: block; color: #e2e7e3; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
input[type='text'], input[type='date'], input[type='time'], select { width: 100%; min-height: 43px; margin-top: 7px; border: 1px solid rgba(255,255,255,.22); border-radius: 3px; background: rgba(255,255,255,.075); color: white; padding: 9px 11px; outline: none; color-scheme: dark; }
input[type='text'], input[type='date'], input[type='time'], input[type='range'], select { min-width: 0; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #e7ad67; outline-offset: 2px; }
.form-grid { display: grid; gap: 13px; }.form-grid.two { grid-template-columns: 1fr 1fr; }
.range-wrap { min-height: 43px; margin-top: 7px; display: flex; gap: 10px; align-items: center; }
input[type='range'] { min-width: 0; accent-color: #e1b983; }
output { color: #fff; font-size: 13px; letter-spacing: 0; }
fieldset { min-width: 0; padding: 0; border: 0; }
legend { margin-bottom: 9px; }
.segment { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; }
.segment label { position: relative; }
.segment input, .choice-grid input { position: absolute; opacity: 0; }
.segment span { display: grid; place-items: center; min-height: 38px; color: #afbbb4; font-size: 10px; text-transform: none; letter-spacing: 0; border-right: 1px solid rgba(255,255,255,.15); cursor: pointer; }
.segment label:last-child span { border-right: 0; }
.segment input:checked + span { background: #f4efe5; color: var(--ink); font-weight: 800; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.choice-grid label { position: relative; }
.choice-grid span { display: flex; gap: 9px; align-items: center; min-height: 42px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 3px; color: #b9c3bd; text-transform: none; letter-spacing: 0; font-size: 12px; cursor: pointer; }
.choice-grid b { width: 17px; color: #e1b983; font-family: var(--serif); font-size: 15px; text-align: center; }
.choice-grid input:checked + span { color: white; border-color: #e1b983; background: rgba(225,185,131,.1); }
.switches-row { padding: 15px 0; border-top: 1px solid rgba(255,255,255,.13); border-bottom: 1px solid rgba(255,255,255,.13); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 12px; }
.switch input { position: absolute; opacity: 0; }.switch i { width: 34px; height: 20px; padding: 3px; border-radius: 20px; background: #627068; transition: .2s; }
.switch i::after { content: ''; display: block; width: 14px; height: 14px; border-radius: 50%; background: white; transition: .2s; }
.switch input:checked + i { background: #d8a15c; }.switch input:checked + i::after { transform: translateX(14px); }
.generate { width: 100%; min-height: 52px; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; border: 0; border-radius: 3px; padding: 0 18px; background: #e8c18e; color: var(--ink); font-weight: 800; cursor: pointer; }
.generate:hover { background: #f0d0a5; }.generate b { font-size: 22px; }
.form-note { margin: 12px 0 0; color: #8fa097; font-size: 10px; text-align: center; }
.constraint-note { margin: -5px 0 20px; padding: 10px 11px; border-left: 3px solid #e1b983; background: rgba(225,185,131,.09); color: #d9e0dc; font-size: 11px; text-transform: none; letter-spacing: 0; }
.results-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 3px 0 23px; }
.results-heading h2 { margin: 0; font: 400 38px var(--serif); }
.legend { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; border-radius: 99px; padding: 4px 8px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.live { color: #8c4d21; background: #f5dfc1; }.status.flexible { color: #456276; background: #dce9ec; }.status.confirmed { color: #2d6543; background: #d8ebdc; }
.plan-card { margin-bottom: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 3px 26px 3px 3px; box-shadow: 0 10px 30px rgba(41,45,37,.055); animation: rise .45s both; }
.plan-card:nth-child(2) { animation-delay: .06s; }.plan-card:nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
.plan-summary { display: grid; grid-template-columns: 58px 1fr auto; gap: 18px; align-items: start; padding: 24px; }
.rank { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: italic 21px var(--serif); }
.plan-kicker { margin-bottom: 5px; color: var(--rust); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.plan-title { margin-bottom: 7px; font: 400 27px/1.05 var(--serif); text-transform: capitalize; }
.plan-strap { margin: 0; color: var(--muted); font-size: 12px; }
.plan-status { margin-top: 10px; }
.plan-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; min-width: 154px; }
.plan-metrics span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.plan-metrics b { display: block; color: var(--ink); font: 400 18px var(--serif); text-transform: none; letter-spacing: 0; }
.plan-actions { display: flex; gap: 8px; padding: 0 24px 20px 100px; }
.estimate-note { margin: -8px 24px 16px 100px; color: var(--muted); font-size: 10px; }
.plan-actions button { border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); padding: 8px 12px; font-size: 10px; font-weight: 800; cursor: pointer; }
.plan-actions button:hover { background: var(--sage); }
details { border-top: 1px solid var(--line); }
summary { list-style: none; display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 24px; background: rgba(220,227,216,.38); cursor: pointer; color: var(--ink); font-size: 11px; font-weight: 800; }
summary::-webkit-details-marker { display: none; }
.accordion-action::after { content: 'Show details +'; color: var(--rust); white-space: nowrap; }
details[open] .accordion-action::after { content: 'Hide details −'; }
.itinerary { padding: 22px 24px 8px; }
.leg { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding-bottom: 14px; color: var(--blue); }
.leg-time { font: 700 10px var(--sans); text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.leg-body { border-left: 2px solid #a9c3cd; padding-left: 14px; font-size: 11px; }
.leg-body strong { display: block; color: var(--ink); font-size: 12px; }.leg a { font-weight: 800; }
.stop { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding-bottom: 22px; }
.stop-time { color: var(--ink); font: 700 11px var(--sans); }
.stop-body { position: relative; border-left: 4px solid var(--amber); padding: 0 0 0 14px; }
.stop.event .stop-body { border-color: var(--rust); }.stop.food .stop-body { border-color: var(--amber); }.stop.drinks .stop-body { border-color: var(--blue); }
.stop-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.stop-type { margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.stop h4 { margin: 0 0 5px; font: 400 19px var(--serif); }.stop p { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.stop-links { display: flex; gap: 12px; }.stop-links a { color: var(--ink); font-size: 10px; font-weight: 800; text-underline-offset: 3px; }
.plan-rationale { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 4px 24px 24px 100px; }
.note-box { padding: 14px; background: #f3eee2; border-radius: 3px; }.note-box.weather { background: #e8eef0; }
.note-box h5 { margin: 0 0 5px; font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }.note-box p { margin: 0; color: #59645d; font: 12px/1.5 var(--serif); }
.data-line { padding: 11px 24px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 9px; text-align: center; }
.empty { padding: 50px 30px; border: 1px dashed var(--line); text-align: center; }.empty h3 { font: 28px var(--serif); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px clamp(20px,5vw,72px); border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
#toast { position: fixed; right: 22px; bottom: 22px; z-index: 5; transform: translateY(20px); opacity: 0; pointer-events: none; border-radius: 3px; background: var(--ink); color: white; padding: 12px 16px; font-size: 12px; transition: .2s; }
#toast.show { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; padding: 48px 0 38px; }.intro .eyebrow { margin-bottom: -18px; }.dek { max-width: 520px; }
  .workspace { grid-template-columns: 1fr; }.planner-panel { position: static; }.results { margin-top: 16px; }
}
@media (max-width: 600px) {
  .site-header { min-height: 70px; }.demo-flag { max-width: none; font-size: 0; }.demo-flag span { flex: 0 0 7px; }
  main { padding-bottom: 46px; }.intro { min-width: 0; padding-top: 42px; }.intro .eyebrow { margin-bottom: -12px; } h1 { max-width: 100%; overflow-wrap: anywhere; font-size: 54px; }.dek { max-width: 100%; font-size: 17px; }
  .planner-panel { width: auto; min-width: 0; margin-inline: 0; padding: 24px 20px; border-radius: 3px 25px 3px 3px; }
  .results-heading { align-items: start; flex-direction: column; }.legend { justify-content: flex-start; }
  .plan-summary { grid-template-columns: 42px minmax(0,1fr); padding: 20px 17px; gap: 11px; }.rank { width: 38px; height: 38px; }.plan-title { font-size: 23px; }
  .plan-metrics { grid-column: 2; min-width: 0; width: 100%; margin-top: 4px; }.plan-actions { padding: 0 17px 17px 70px; flex-wrap: wrap; }
  .estimate-note { margin: -6px 17px 16px 70px; }
  summary { grid-template-columns: 1fr auto; padding-inline: 17px; }.summary-meta { grid-column: 1 / -1; grid-row: 2; }.accordion-action { grid-column: 2; grid-row: 1; }.itinerary { padding-inline: 17px; }.leg, .stop { grid-template-columns: 52px minmax(0,1fr); gap: 8px; }
  .stop-top { flex-direction: column; gap: 6px; }.plan-rationale { grid-template-columns: 1fr; margin: 0 17px 20px 77px; }.data-line { padding-inline: 16px; }
  footer { flex-direction: column; }.form-grid.two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
