/* ============================================================
   Trip with AI — editorial travel planner
   Palette: ink green, warm sand, terracotta accent
   ============================================================ */

:root {
  --ink: #14211c;
  --ink-2: #23362d;
  --ink-soft: #4d6157;
  --muted: #75857c;
  --sand: #f5f0e6;
  --sand-2: #efe8db;
  --cream: #fdfbf6;
  --line: rgba(20, 33, 28, .12);
  --line-soft: rgba(20, 33, 28, .07);
  --terra: #bd4f2c;
  --terra-dark: #9c3f21;
  --sage: #2f5d4e;
  --gold: #d99b3f;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 28, .05), 0 8px 24px -12px rgba(20, 33, 28, .18);
  --shadow-md: 0 2px 6px rgba(20, 33, 28, .05), 0 26px 60px -30px rgba(20, 33, 28, .38);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 82% -10%, rgba(189, 79, 44, .07), transparent 60%),
    var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.022em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--cream);
  padding: 10px 18px; border-radius: 999px; z-index: 200;
  transition: top .2s ease;
}
.skip:focus { top: 14px; }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Header ============ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 240, 230, .78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-head.scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(245, 240, 230, .94);
  box-shadow: 0 10px 30px -24px rgba(20, 33, 28, .6);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--sand);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -.02em;
}
.brand-text em {
  font-style: normal;
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav a {
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.head-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1.6px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn span { transition: transform .2s ease; }
.btn:hover span { transform: translateX(3px); }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 10px 24px -14px rgba(20, 33, 28, .9);
}
.btn-primary:hover { background: var(--terra); box-shadow: 0 14px 28px -14px rgba(189, 79, 44, .8); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(253, 251, 246, .5);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--cream); }

.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-sm { padding: 11px 20px; font-size: .88rem; }

/* ============ Hero ============ */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: min(720px, 90vh);
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--sand) 0%,
    var(--sand) 45%,
    rgba(245, 240, 230, .9) 49%,
    rgba(245, 240, 230, .4) 53%,
    rgba(245, 240, 230, 0) 56%
  );
}

.hero-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 44%;
  background: url("images/hero.jpg") center 42% / cover no-repeat;
  z-index: -2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(20, 33, 28, .38) 0%, rgba(20, 33, 28, 0) 45%);
}

.hero-inner {
  display: grid;
  justify-items: start;
  padding-right: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 22px;
}
.eyebrow.tight { margin-bottom: 10px; }
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 4px rgba(189, 79, 44, .16);
}

.hero h1 {
  font-size: clamp(2.55rem, 4.2vw, 3.6rem);
  max-width: 620px;
  line-height: 1.0;
  letter-spacing: -.035em;
  font-weight: 400;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 300;
  color: var(--terra);
}

.lede {
  margin-top: 26px;
  max-width: 31rem;
  font-size: 1.075rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.micro {
  margin-top: 22px;
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .01em;
}

.hero-card {
  position: absolute;
  right: max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
  bottom: 44px;
  width: 282px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(253, 251, 246, .93);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: floatIn .9s .35s both cubic-bezier(.2, .7, .3, 1);
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-card img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 13px;
}
.hero-card-body { padding: 14px 6px 6px; }
.tag {
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
}
.hero-card h2 {
  font-size: 1.32rem;
  margin: 7px 0 4px;
  letter-spacing: -.02em;
}
.hero-card p { font-size: .82rem; color: var(--muted); }
.hero-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.hero-price strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.hero-price span { font-size: .76rem; color: var(--muted); }

/* ============ Stats ============ */

.stats {
  background: var(--ink);
  color: var(--sand);
  padding: 26px 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stats-inner > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-left: 22px;
  border-left: 1px solid rgba(245, 240, 230, .18);
}
.stats-inner > div:first-child { border-left: 0; padding-left: 0; }
.stats-inner strong {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: -.03em;
  color: #fff;
}
.stats-inner span {
  font-size: .82rem;
  color: rgba(245, 240, 230, .68);
  line-height: 1.35;
}

/* ============ Sections ============ */

section[id] { scroll-margin-top: 94px; }

.section { padding: 104px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(239, 232, 219, .55), rgba(239, 232, 219, .82));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 3.5vw, 2.95rem); }
.section-lede {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.03rem;
  max-width: 36rem;
}

/* ============ AI planner ============ */

.ai-section { position: relative; }
.ai-head { max-width: 660px; margin-bottom: 42px; }
.ai-head h2 { font-size: clamp(2rem, 3.5vw, 2.95rem); }

.ai-grid {
  display: grid;
  grid-template-columns: 1.55fr .75fr;
  gap: 26px;
  align-items: start;
}

.chat {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.ai-id { display: flex; align-items: center; gap: 12px; }
.ai-avatar {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--sage), var(--ink));
  color: #f4efe3;
  flex: 0 0 42px;
}
.ai-avatar svg { width: 21px; height: 21px; }
.ai-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -.015em;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  color: var(--muted);
  margin-top: 2px;
}
.status i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4b9068;
  box-shadow: 0 0 0 3px rgba(75, 144, 104, .16);
}
.chat-reset {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: .76rem;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
}
.chat-reset:hover { border-color: var(--ink); color: var(--ink); }

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 6px 6px 2px;
  min-height: 260px;
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 33, 28, .2) transparent;
}
.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-thumb { background: rgba(20, 33, 28, .16); border-radius: 99px; }

.msg {
  font-size: .92rem;
  line-height: 1.6;
  max-width: 88%;
  animation: msgIn .35s ease both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
.msg.ai {
  background: #f4eee1;
  border: 1px solid var(--line-soft);
  border-radius: 4px 16px 16px 16px;
  padding: 13px 16px;
  color: var(--ink);
}
.msg.user {
  align-self: flex-end;
  background: var(--ink);
  color: #f6f1e7;
  border-radius: 16px 16px 4px 16px;
  padding: 11px 16px;
  max-width: 80%;
}
.msg.user .m-you { display: none; }

.typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
}
.typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-soft);
  opacity: .45;
  animation: blink 1.1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .16s; }
.typing span:nth-child(3) { animation-delay: .32s; }
@keyframes blink {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: .9; transform: translateY(-2px); }
}

.plan-msg {
  width: 100%;
  max-width: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-sm);
  animation: msgIn .45s ease both;
}
.plan-msg .plan-kicker {
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
}
.plan-msg h4 {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 6px 0 2px;
}
.plan-msg .plan-sub { font-size: .8rem; color: var(--muted); }
.plan-money {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 2px;
}
.plan-money strong {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -.02em;
}
.plan-money span { font-size: .76rem; color: var(--muted); }
.plan-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.plan-list li {
  position: relative;
  padding-left: 18px;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.plan-list li::before {
  content: "→";
  position: absolute;
  left: 0; top: 0;
  color: var(--terra);
  font-size: .8rem;
}
.plan-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: .76rem;
  color: var(--muted);
}
.plan-foot .link-btn { font-size: .8rem; }

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
}
.chat-chips button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .77rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.chat-chips button:hover {
  border-color: var(--terra);
  color: var(--terra);
  background: rgba(189, 79, 44, .05);
}

.chat-form { display: flex; gap: 8px; }
.chat-form input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: .92rem;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #faf7f0;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.chat-form input::placeholder { color: #9aa79f; }
.chat-form input:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(189, 79, 44, .12);
}
.chat-send {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.chat-send svg { width: 19px; height: 19px; }
.chat-send:hover { background: var(--terra); transform: translateX(2px); }
.chat-fine {
  margin-top: 10px;
  font-size: .71rem;
  line-height: 1.5;
  color: var(--muted);
}

.ai-side { display: grid; gap: 16px; position: sticky; top: 100px; }
.ai-side-card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 24px;
}
.ai-side-card h3 { font-size: 1.25rem; margin-bottom: 14px; }
.ai-quote {
  background: var(--ink);
  color: var(--sand);
  border-radius: 20px;
  padding: 24px;
  background-image: radial-gradient(500px 200px at 90% 0%, rgba(189, 79, 44, .35), transparent 65%);
}
.ai-quote p {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.42;
  letter-spacing: -.01em;
}
.ai-quote span {
  display: block;
  margin-top: 14px;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, .55);
}

/* ============ Planner ============ */

.planner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.planner-copy h2 {
  font-size: clamp(1.95rem, 3.2vw, 2.75rem);
  margin-bottom: 18px;
}

.steps { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 26px; }
.steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.step-num {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--terra);
  padding-top: 3px;
  letter-spacing: .04em;
}
.steps h3 { font-size: 1.22rem; margin-bottom: 6px; letter-spacing: -.015em; }
.steps p { color: var(--ink-soft); font-size: .95rem; }

.calc {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}
.calc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.calc-head h3 { font-size: 1.75rem; letter-spacing: -.025em; }
.pill {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(47, 93, 78, .1);
  color: var(--sage);
  white-space: nowrap;
}

.calc-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span {
  display: flex;
  justify-content: space-between;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field output { color: var(--terra); font-variant-numeric: tabular-nums; }

select, input[type="range"] {
  width: 100%;
  font-family: inherit;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 40px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #faf7f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234d6157' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-size: .94rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
select:hover { border-color: rgba(20, 33, 28, .25); }
select:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(189, 79, 44, .14); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 26px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terra) var(--fill, 20%), rgba(20, 33, 28, .12) var(--fill, 20%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  margin-top: -7.5px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--terra);
  box-shadow: 0 2px 8px rgba(20, 33, 28, .22);
}
input[type="range"]::-moz-range-track { height: 5px; border-radius: 999px; background: rgba(20, 33, 28, .12); }
input[type="range"]::-moz-range-progress { height: 5px; border-radius: 999px; background: var(--terra); }
input[type="range"]::-moz-range-thumb {
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--terra);
}

.field-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 2px 0 0;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #f3ede2;
  border: 0;
}
.segmented legend {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0;
  margin-bottom: 8px;
}
.segmented label { position: relative; cursor: pointer; }
.segmented input {
  position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer;
}
.segmented span {
  display: block;
  text-align: center;
  padding: 9px 6px;
  border-radius: 10px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.segmented input:checked + span {
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.segmented input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }

.calc-result {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}
.result-label { font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.result-total {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}
.result-sub { font-size: .87rem; color: var(--ink-soft); }
.result-sub strong { color: var(--ink); font-weight: 600; }

.bars { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.bars li {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: .82rem;
}
.bar-label { color: var(--ink-soft); }
.bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(20, 33, 28, .08);
  overflow: hidden;
}
.bar-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--sage);
  transition: width .55s cubic-bezier(.3, .8, .3, 1);
}
.bars li:nth-child(1) .bar-track i { background: var(--terra); }
.bars li:nth-child(2) .bar-track i { background: var(--sage); }
.bars li:nth-child(3) .bar-track i { background: var(--gold); }
.bars li:nth-child(4) .bar-track i { background: #6f8f7e; }
.bars li:nth-child(5) .bar-track i { background: #b9a17c; }
.bar-val { font-variant-numeric: tabular-nums; font-weight: 500; }
.calc-note {
  margin-top: 18px;
  font-size: .76rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ============ Itineraries ============ */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.trip-card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.trip-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.trip-media { overflow: hidden; aspect-ratio: 4 / 3.4; }
.trip-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .3, 1);
}
.trip-card:hover .trip-media img { transform: scale(1.05); }
.trip-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(20, 33, 28, .055);
  padding: 5px 10px;
  border-radius: 999px;
}
.trip-body h3 { font-size: 1.42rem; letter-spacing: -.02em; }
.trip-body p { font-size: .92rem; color: var(--ink-soft); flex: 1; }
.trip-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  margin-top: 4px;
}
.price { font-size: .78rem; color: var(--muted); }
.price strong { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); font-weight: 500; }
.link-btn {
  background: none;
  border: 0;
  padding: 4px 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--terra);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, gap .2s ease;
}
.link-btn:hover { border-color: currentColor; gap: 10px; }

.plan-panel {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 44px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.plan-aside h3 { font-size: 1.85rem; letter-spacing: -.025em; }
.plan-aside > p#planMeta { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.plan-facts {
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.plan-facts div { display: grid; gap: 2px; }
.plan-facts dt {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.plan-facts dd { margin: 0; font-size: .93rem; }
.plan-tip {
  margin-top: 18px;
  font-size: .86rem;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 63px; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--line);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 0 0 26px;
  opacity: 0;
  transform: translateY(8px);
  animation: dayIn .5s forwards cubic-bezier(.2, .7, .3, 1);
}
.timeline li:last-child { padding-bottom: 0; }
@keyframes dayIn { to { opacity: 1; transform: none; } }
.tl-day {
  position: relative;
  z-index: 1;
  align-self: start;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terra);
  background: var(--cream);
  padding: 4px 0 4px 0;
  width: 64px;
}
.tl-day::before {
  content: "";
  position: absolute;
  right: -4px; top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 4px rgba(189, 79, 44, .12);
}
.tl-body h4 { font-family: var(--sans); font-size: .99rem; font-weight: 600; letter-spacing: -.005em; margin-bottom: 3px; }
.tl-body p { font-size: .89rem; color: var(--ink-soft); }
.tl-cost {
  display: inline-block;
  margin-top: 8px;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--sage);
  background: rgba(47, 93, 78, .09);
  padding: 3px 9px;
  border-radius: 999px;
}

/* ============ Budget table ============ */

.table-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  background: var(--cream);
}
.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.budget-table thead th {
  background: var(--ink);
  color: rgba(245, 240, 230, .92);
  text-align: left;
  padding: 15px 18px;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
}
.budget-table tbody th,
.budget-table tbody td {
  padding: 18px;
  text-align: left;
  border-top: 1px solid var(--line-soft);
  vertical-align: top;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.budget-table tbody tr:nth-child(even) { background: rgba(239, 232, 219, .35); }
.budget-table .tier {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
}
.budget-table small { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; }
.budget-table .total { color: var(--terra); font-weight: 600; }

.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.note-card {
  background: rgba(253, 251, 246, .7);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 24px;
}
.note-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.note-card p { font-size: .9rem; color: var(--ink-soft); }

/* ============ Trip kit ============ */

.kit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.kit-card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
}
.kit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.kit-head h3 { font-size: 1.35rem; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 0;
  font-size: .89rem;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  transition: color .2s ease;
}
.checklist li:last-child label { border-bottom: 0; }
.checklist input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  border: 1.5px solid rgba(20, 33, 28, .3);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: background .18s ease, border-color .18s ease;
}
.checklist input:checked { background: var(--sage); border-color: var(--sage); }
.checklist input:checked::after {
  content: "";
  position: absolute;
  left: 5.5px; top: 2px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }

.progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(20, 33, 28, .08);
  margin-top: 18px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--sage);
  border-radius: inherit;
  transition: width .35s ease;
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: .89rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 7px;
  border-left: 1.6px solid var(--sage);
  border-bottom: 1.6px solid var(--sage);
  transform: rotate(-45deg);
}

.seasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.seasons li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.seasons li:last-child { border-bottom: 0; }
.season-name { font-size: .9rem; font-weight: 600; }
.season-when { font-size: .78rem; color: var(--terra); font-weight: 500; white-space: nowrap; }
.season-why { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); }

/* ============ FAQ ============ */

.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.14rem;
  letter-spacing: -.01em;
  transition: color .2s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--terra); }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 11px; height: 11px;
  margin-top: -7px;
  border-right: 1.6px solid var(--ink-soft);
  border-bottom: 1.6px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list p {
  padding: 0 44px 22px 0;
  font-size: .93rem;
  color: var(--ink-soft);
  max-width: 46rem;
}

/* ============ CTA ============ */

.cta-band {
  background:
    radial-gradient(900px 400px at 85% 20%, rgba(189, 79, 44, .3), transparent 60%),
    var(--ink);
  color: var(--sand);
  padding: 74px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); color: #fff; }
.cta-inner p { margin-top: 10px; color: rgba(245, 240, 230, .68); font-size: .98rem; }

/* ============ Footer ============ */

.site-foot {
  background: var(--sand-2);
  padding: 60px 0 34px;
  border-top: 1px solid var(--line-soft);
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-brand { max-width: 340px; }
.foot-brand p { margin-top: 16px; font-size: .88rem; color: var(--ink-soft); }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-soft); }
.foot-links a { transition: color .2s ease; }
.foot-links a:hover { color: var(--terra); }
.foot-fine {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: .76rem;
  color: var(--muted);
}
.foot-fine p { max-width: 640px; line-height: 1.6; }

/* ============ Reveal ============ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.force { opacity: 1; transform: none; }

/* ============ Responsive ============ */

@media (max-width: 1080px) {
  .hero-media { width: 62%; opacity: .95; }
  .planner-grid { gap: 40px; }
  .calc { padding: 24px; }
  .plan-panel { grid-template-columns: 290px 1fr; gap: 30px; padding: 28px; }
  .faq-grid { gap: 40px; }
}

@media (max-width: 900px) {
  .section { padding: 76px 0; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 18px 8px; }
  .stats-inner > div:nth-child(3) { border-left: 0; padding-left: 0; }

  .hero { padding: 48px 0 0; display: flex; flex-direction: column; }
  .hero-inner { max-width: 100%; order: 1; }
  .hero::before { display: none; }
  .hero-media {
    position: relative;
    order: 2;
    width: calc(100% - 56px);
    height: 320px;
    margin: 34px 28px 44px;
    border-radius: 20px;
    z-index: 0;
  }
  .hero-media::after {
    background: linear-gradient(0deg, rgba(20, 33, 28, .35) 0%, rgba(20, 33, 28, 0) 50%);
  }
  .hero-card { display: none; }

  .planner-grid, .faq-grid, .cards, .kit-grid, .notes { grid-template-columns: 1fr; }
  .calc { position: static; }
  .faq-grid .section-head { position: static; }
  .ai-grid { grid-template-columns: 1fr; gap: 18px; }
  .ai-side { position: static; grid-template-columns: 1fr 1fr; }
  .trip-media { aspect-ratio: 16 / 10; }
  .plan-panel { grid-template-columns: 1fr; gap: 26px; }
  .cards { gap: 20px; }
  .kit-grid { gap: 18px; }
}

@media (max-width: 820px) {
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 8px 28px 20px;
    background: rgba(245, 240, 230, .98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
    display: none;
    box-shadow: 0 20px 30px -24px rgba(20, 33, 28, .5);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .head-actions { margin-left: auto; }
  .head-actions .btn-sm { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .head-inner { min-height: 68px; gap: 14px; }
  .brand-text em { display: none; }

  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.1rem); }
  .lede { font-size: 1rem; margin-top: 20px; }
  .hero-cta { margin-top: 26px; }
  .hero-cta .btn { width: 100%; }
  .hero-media { height: 250px; width: calc(100% - 40px); margin: 26px 20px 36px; }
  .micro { font-size: .74rem; }

  .stats { padding: 22px 0; }
  .stats-inner strong { font-size: 1.7rem; }
  .stats-inner span { font-size: .74rem; }

  .section-head { margin-bottom: 32px; }
  .calc { padding: 20px; border-radius: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .calc-head h3 { font-size: 1.5rem; }

  .chat { padding: 16px; border-radius: 20px; }
  .chat-log { max-height: 380px; padding-top: 14px; min-height: 220px; }
  .ai-side { grid-template-columns: 1fr; }
  .chat-chips button { font-size: .73rem; padding: 7px 10px; }
  .chat-form input { font-size: .88rem; padding: 12px 15px; }
  .chat-send { flex-basis: 44px; width: 44px; height: 44px; }

  .plan-panel { padding: 22px; border-radius: 20px; }
  .timeline li { grid-template-columns: 60px 1fr; gap: 12px; }
  .timeline::before { left: 41px; }
  .tl-day { width: 46px; }
  .tl-day::before { right: 0; }

  .budget-table { font-size: .8rem; }
  .budget-table thead th, .budget-table tbody th, .budget-table tbody td { padding: 12px 10px; }
  .budget-table .tier { font-size: 1rem; }
  .budget-table small { display: none; }
  .table-wrap { overflow-x: auto; }
  .budget-table { min-width: 560px; }

  .cta-band { padding: 56px 0; }
  .cta-inner .btn { width: 100%; }
  .foot-fine { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Generated plan message sits flush inside the chat log */
.msg.plan-wrap {
  max-width: 100%;
  padding: 0;
  background: none;
  border: 0;
}
