/* The trip-planning page (plan/). Builds on styles.css: same colours, header and theme. */
body.plan { display: block; height: auto; min-height: 100%; background: var(--page-plane); overflow-x: hidden; }
.plan main { max-width: none; padding: 0; }
.plan .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.plan h1, .plan h2, .plan h3 { letter-spacing: -0.02em; }
.plan section { padding: 88px 0; }
.plan .eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-text); }
.plan .section-title { margin: 0 0 14px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; font-weight: 800; max-width: 18ch; }
.plan .section-lede { margin: 0 0 40px; font-size: 18px; line-height: 1.55; color: var(--text-secondary); max-width: 60ch; }
.plan .tabs a[aria-current="page"] { background: var(--chip-bg); color: var(--text-primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-primary { background: var(--blue-btn); color: #fff; box-shadow: 0 8px 24px -8px rgba(29,111,208,.6); }
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(29,111,208,.7); }
.btn-ghost { background: var(--surface-1); color: var(--text-primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--chip-bg); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Hero */
.hero { position: relative; padding: 72px 0 96px !important; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background:
    radial-gradient(40% 50% at 12% 20%, color-mix(in srgb, var(--blue) 22%, transparent), transparent 70%),
    radial-gradient(35% 45% at 88% 15%, color-mix(in srgb, var(--orange) 20%, transparent), transparent 70%),
    radial-gradient(40% 50% at 70% 95%, color-mix(in srgb, var(--aqua) 22%, transparent), transparent 70%); }
.hero-route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .5; pointer-events: none; }
.hero-route path { fill: none; stroke: var(--text-muted); stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; }
.hero-route circle { fill: var(--surface-1); stroke: var(--orange); stroke-width: 2.5; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 20px; font-size: clamp(42px, 6.4vw, 76px); line-height: .98; font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--blue) 10%, var(--aqua) 55%, var(--orange) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin: 0 0 32px; font-size: 20px; line-height: 1.55; color: var(--text-secondary); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; color: var(--text-secondary); font-size: 15px; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* The phone showing the live sample */
.phone-col { display: flex; justify-content: center; position: relative; }
.phone { position: relative; width: 340px; height: 690px; padding: 12px; border-radius: 52px; background: #0b0b0b;
  box-shadow: 0 0 0 2px #2b2b2b inset, 0 40px 80px -30px rgba(11,11,11,.55), 0 18px 36px -18px rgba(11,11,11,.45); transform: rotate(2deg); }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #0b0b0b; z-index: 2; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 40px; background: #F2F6F4; display: block; }
.phone-tag { position: absolute; z-index: 3; padding: 10px 14px; border-radius: 14px; background: var(--surface-1); border: 1px solid var(--border); box-shadow: 0 12px 30px -12px rgba(11,11,11,.35); font-size: 13px; line-height: 1.3; }
.phone-tag b { display: block; font-size: 17px; }
.phone-tag.t1 { left: -6px; top: 90px; transform: rotate(-3deg); }
.phone-tag.t2 { right: -10px; bottom: 120px; transform: rotate(3deg); }
.phone-tag .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); margin-right: 6px; }
.phone-hint { position: absolute; bottom: -34px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--text-muted); }

/* Feature grid */
.features { background: var(--surface-1); border-block: 1px solid var(--border); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 24px; border-radius: 22px; background: var(--page-plane); border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(11,11,11,.35); }
.feature h3 { margin: 18px 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--text-secondary); line-height: 1.5; }
.art { height: 128px; border-radius: 14px; background: var(--surface-1); border: 1px solid var(--border); padding: 12px; display: grid; gap: 6px; overflow: hidden; }

/* Feature art: mini calendar */
.art-cal { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(6, 1fr); }
.art-cal i { border-radius: 6px; }
.art-cal .k-fl { background: #4B4FC9; grid-row: 1 / 3; }
.art-cal .k-bus { background: #C98A00; grid-row: 2 / 4; grid-column: 2; }
.art-cal .k-hike { background: #C2412D; grid-row: 1 / 5; grid-column: 3; }
.art-cal .k-boat { background: #0A8FB0; grid-row: 3 / 6; grid-column: 4; }
.art-cal .k-food { background: #8A7F6E; grid-row: 4 / 5; grid-column: 1; }
.art-cal .k-free { border: 1.5px dashed var(--text-muted); grid-row: 5 / 7; grid-column: 1 / 3; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.art-cal .k-sh { background: #2E9A55; grid-row: 5 / 7; grid-column: 3; }
/* Cost bars */
.art-cost { align-content: center; gap: 9px; }
.art-cost div { display: grid; grid-template-columns: 74px 1fr 46px; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); }
.art-cost span { height: 10px; border-radius: 5px; background: var(--blue); }
.art-cost div:nth-child(2) span { background: var(--aqua); }
.art-cost div:nth-child(3) span { background: var(--orange); }
.art-cost b { font-variant-numeric: tabular-nums; text-align: right; color: var(--text-primary); }
.art-cost .w62 { width: 62%; } .art-cost .w38 { width: 38%; } .art-cost .w80 { width: 80%; }
.art-cost .tot { border-top: 1px solid var(--border); padding-top: 7px; font-weight: 700; color: var(--text-primary); }
/* Hotel tiers */
.art-tiers { grid-template-columns: repeat(3, 1fr); align-items: end; }
.art-tiers div { border-radius: 10px; border: 1px solid var(--border); padding: 8px; text-align: center; font-size: 12px; color: var(--text-secondary); background: var(--page-plane); }
.art-tiers div b { display: block; font-size: 17px; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.art-tiers .on { border: 2px solid var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--surface-1)); padding-block: 18px; }
/* Book list */
.art-book { align-content: center; gap: 8px; font-size: 13px; }
.art-book div { display: flex; align-items: center; gap: 8px; }
.art-book em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; }
.art-book .paid { background: #15803D; } .art-book .booked { background: #2563EB; } .art-book .todo { background: #B45309; }
/* Phone + swipe */
.art-swipe { grid-template-columns: repeat(3, 1fr); align-items: center; justify-items: center; }
.art-swipe .mini { width: 52px; height: 96px; border-radius: 12px; border: 2px solid var(--text-primary); padding: 6px 5px; display: grid; gap: 4px; align-content: start; background: var(--page-plane); }
.art-swipe .mini i { height: 10px; border-radius: 3px; background: var(--grid); }
.art-swipe .mini i:nth-child(2) { background: var(--blue); height: 22px; }
.art-swipe .mini i:nth-child(3) { background: var(--orange); height: 14px; }
.art-swipe .mid { transform: scale(1.12); box-shadow: 0 10px 24px -12px rgba(11,11,11,.4); }
.art-swipe .side { opacity: .45; }
/* Checked */
.art-check { place-items: center; text-align: center; font-size: 13px; color: var(--text-secondary); }
.art-check .seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--aqua) 16%, var(--surface-1)); border: 2px solid var(--aqua); color: var(--aqua); font-size: 30px; font-weight: 800; }

/* Sample */
.sample-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-1); box-shadow: 0 30px 60px -40px rgba(11,11,11,.5); }
.sample-card + .sample-card { margin-top: 28px; }
.sample-card.flip .sample-art { order: 2; }
.art-vn { background: linear-gradient(180deg, #CFE6E0 0%, #E9F1DC 45%, #F6E3C0 100%) !important; }
.sample-art { position: relative; min-height: 360px; background: linear-gradient(180deg, #FFB86B 0%, #F27A54 38%, #6E4A8C 70%, #22305C 100%); overflow: hidden; }
.sample-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sample-flags { position: absolute; left: 20px; top: 20px; display: flex; gap: 8px; }
.sample-flags span { font-size: 28px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.sample-body { padding: 36px; }
.sample-body h3 { margin: 0 0 8px; font-size: 30px; font-weight: 800; }
.sample-body > p { margin: 0 0 22px; color: var(--text-secondary); line-height: 1.55; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 22px; }
.stats div { padding: 12px; border-radius: 14px; background: var(--page-plane); border: 1px solid var(--border); }
.stats b { display: block; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--text-muted); }
.route { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; font-size: 14px; }
.route li { padding: 4px 10px; border-radius: 999px; background: var(--chip-bg); }
.route li + li::before { content: "→ "; color: var(--text-muted); }
.try { margin: 14px 0 0; font-size: 14px; color: var(--text-muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; left: 26px; right: 12%; border-top: 2px dashed var(--border); z-index: 0; }
.steps li { position: relative; z-index: 1; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 16px; font-size: 20px; font-weight: 800; color: #fff; background: var(--blue); box-shadow: 0 0 0 6px var(--page-plane); }
.steps li:nth-child(2)::before { background: var(--aqua); }
.steps li:nth-child(3)::before { background: var(--orange); }
.steps li:nth-child(4)::before { background: var(--text-primary); color: var(--page-plane); }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--text-secondary); line-height: 1.5; }

/* Prices */
.pricing { background: var(--surface-1); border-block: 1px solid var(--border); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 24px; border: 1px solid var(--border); background: var(--page-plane); }
.price.pop { border: 2px solid var(--blue); background: color-mix(in srgb, var(--blue) 5%, var(--page-plane)); box-shadow: 0 30px 60px -36px rgba(29,111,208,.55); }
.price .badge-pop { position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--blue-btn); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.price h3 { margin: 0 0 4px; font-size: 20px; }
.price .for { margin: 0 0 18px; color: var(--text-muted); font-size: 14px; }
.price .amt { margin: 0 0 20px; font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .amt small { font-size: 15px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.price ul { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 10px; flex: 1; }
.price li { display: flex; gap: 10px; line-height: 1.4; }
.price li::before { content: "✓"; color: var(--aqua); font-weight: 800; }
.price .btn { justify-content: center; }
.launch { margin: 28px auto 0; max-width: 720px; padding: 14px 18px; border-radius: 16px; text-align: center; background: var(--warn-bg); color: var(--warn-text); font-weight: 500; }
.small-print { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--text-muted); }

/* Not included */
.honest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.honest .card { padding: 28px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface-1); }
.honest h3 { margin: 0 0 12px; font-size: 20px; }
.honest ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-secondary); line-height: 1.5; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-size: 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; color: var(--text-muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--text-secondary); line-height: 1.6; }

/* Brief form */
.start { position: relative; overflow: hidden; isolation: isolate; }
.start::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 60% at 0% 0%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%),
              radial-gradient(50% 60% at 100% 100%, color-mix(in srgb, var(--orange) 14%, transparent), transparent 70%); }
.brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; padding: 32px; border-radius: 28px; background: var(--surface-1); border: 1px solid var(--border); box-shadow: 0 30px 60px -40px rgba(11,11,11,.5); }
.brief { align-items: end; }
.brief label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.brief label span { font-weight: 400; color: var(--text-muted); }
.brief .full { grid-column: 1 / -1; }
.brief input, .brief select, .brief textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--page-plane); color: var(--text-primary); width: 100%; box-sizing: border-box; }
.brief select { height: auto; min-height: 50px; line-height: 1.3; appearance: auto; }
.brief textarea { min-height: 96px; resize: vertical; }
.brief input:focus, .brief select:focus, .brief textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.brief .chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.brief .chips legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.brief .chips label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--page-plane); font-weight: 500; cursor: pointer; }
.brief .chips input { width: auto; padding: 0; margin: 0; accent-color: var(--blue); }
.brief .chips label:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, var(--surface-1)); }
.brief-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 6px; }
.quote { margin-right: auto; font-size: 15px; color: var(--text-secondary); }
.quote b { font-size: 28px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; margin-right: 4px; }
.brief-msg { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--aqua) 14%, var(--surface-1)); }

.plan-footer { padding: 40px 0 calc(env(safe-area-inset-bottom) + 48px); border-top: 1px solid var(--border); color: var(--text-muted); font-size: 14px; }
.plan-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.plan-footer a { color: inherit; }

/* Reveal on scroll (plan.js adds .in); without JS everything simply shows */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature { transition: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .steps::before { display: none; }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .sample-card { grid-template-columns: 1fr; }
  .sample-art { min-height: 220px; }
  .sample-card.flip .sample-art { order: 0; }
}
@media (max-width: 640px) {
  .plan section { padding: 64px 0; }
  .hero { padding: 40px 0 80px !important; }
  .hero .lede { font-size: 18px; }
  .feature-grid, .steps, .honest, .brief { grid-template-columns: 1fr; }
  .brief, .sample-body { padding: 22px; }
  .phone { width: 300px; height: 610px; transform: none; }
  .phone-tag { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
}
