/* /website/ page styles. Shared tokens and the dp-* kit live in styles.css.
   Every demo plays once (JS adds .play when it scrolls in). Hidden start states sit behind
   .js AND prefers-reduced-motion: no-preference, so no-JS and reduced-motion visitors
   always see the finished state. Only transform, opacity and clip-path animate. */

.w-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- shared bits ---------- */
.w-head { text-align: center; }
.w-head .dp-h2, .w-head .dp-sub { margin-inline: auto; }
.w-head--left { text-align: left; }
.w-head--left .dp-h2 { margin-inline: 0; margin-bottom: 40px; max-width: none; }
.w-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 11px; line-height: 1.4;
}
.w-tag--live { border-color: var(--accent); color: var(--accent); }
.w-tag--dark { background: transparent; border-color: #34363C; color: var(--dark-ink-2); }
.w-cap { margin-top: 18px; font-size: 0.88rem; color: var(--ink-2); text-align: center; }
.w-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.w-split--rev > :first-child { order: 2; }

/* real phone renders (cropped from our portfolio). The rounded clip hides the corners of the
   browser that sat behind the phone in the original mockup. */
.w-realphone { display: block; width: 100%; height: auto; border-radius: 16% / 7.8%; clip-path: inset(1.2% 1.5% 0.6% 1.2% round 15% / 7.4%); filter: drop-shadow(0 30px 40px rgba(10, 10, 11, 0.35)); }

/* ---------- 1. hero ---------- */
.w-hero { padding-top: 72px; padding-bottom: 88px; }
.w-hero .dp-eyebrow { margin-inline: auto; }
.w-hero .dp-h1 { max-width: 20ch; font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.6rem); }
.w-stage { position: relative; max-width: 1040px; margin: 48px auto 0; padding: 0 9% 44px 0; }
.w-desk { position: relative; z-index: 1; }
.w-realphone--hero { position: absolute; z-index: 2; right: 0; bottom: 0; width: 21%; }
.w-stage .w-cap { margin-top: 22px; }

/* ---------- 2. range switcher ---------- */
.w-switch { display: none; }
.js .w-switch { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 40px auto 0; padding: 4px; border-radius: 999px; background: #E9E9EC; }
.w-switch button {
  font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--ink-2); background: none; border: 0; cursor: pointer;
  min-height: 44px; padding: 0 20px; border-radius: 999px; transition: color 180ms ease, background 180ms ease;
}
.w-switch button:hover { color: var(--ink); }
.w-switch button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(10, 10, 11, 0.25); }
.w-sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.w-site { min-width: 0; } .w-site figure { margin: 0; }
.w-site figcaption { margin-top: 14px; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); text-align: center; }
.w-work { display: block; width: 100%; height: auto; border-radius: 12px; }
.w-more { margin-top: 28px; text-align: center; }
.w-more .learn-link { align-self: auto; }
/* with JS: one big frame, the three sites stacked in it and crossfaded */
.js .w-sites { grid-template-columns: 1fr; max-width: 960px; margin: 32px auto 0; }
.js .w-site { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 450ms ease, visibility 0s linear 450ms; }
.js .w-site.is-on { opacity: 1; visibility: visible; transition: opacity 450ms ease; }

/* ---------- 3. mobile: the real coach charter site ---------- */
.w-phone-real { margin: 0; justify-self: center; width: min(300px, 78vw); text-align: center; }
.w-phone-real figcaption { margin-top: 22px; }
.w-points { list-style: none; margin-top: 36px; display: grid; gap: 22px; }
.w-points li { padding-left: 26px; position: relative; }
.w-points li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 14px; height: 2px; background: var(--accent-on-dark); }
.w-points h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.w-points p { margin-top: 4px; color: var(--dark-ink-2); }

/* ---------- 4. enquiry demo ---------- */
.w-demo { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; max-width: 980px; margin: 56px auto 0; padding: 36px; background: var(--panel); border-radius: 24px; }
.w-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 24px 48px -32px rgba(10, 10, 11, 0.3); display: grid; gap: 16px; }
.w-form-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 1.1rem; }
.w-field { display: grid; gap: 6px; }
.w-lab { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.w-in { display: block; height: 42px; padding: 0 14px; line-height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.95rem; }
.ty { display: inline-block; white-space: nowrap; vertical-align: top; }
.w-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.w-chip { position: relative; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.86rem; font-weight: 500; }
.w-chip.pick::after { content: ''; position: absolute; inset: -1px; border: 2px solid var(--accent); border-radius: inherit; background: rgba(14, 99, 244, 0.08); }
.w-send { position: relative; display: grid; place-items: center; height: 46px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.95rem; }
.w-send > span { grid-area: 1 / 1; }
.b-send { opacity: 0; }
.w-land { display: grid; gap: 16px; }
.w-msg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 20px 40px -28px rgba(10, 10, 11, 0.35); }
.w-msg p { max-width: none; }
.w-msg-top { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; }
.w-msg-top svg { width: 16px; height: 16px; fill: #25D366; }
.w-msg-top span { margin-left: auto; color: var(--ink-2); }
.w-msg-b { margin-top: 10px; padding: 10px 12px; background: #DCF8C6; color: #12351C; border-radius: 12px 12px 12px 4px; font-size: 0.9rem; line-height: 1.5; }
.w-msg-b b { display: block; }
.w-cal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 10px; }
.w-cal-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9rem; margin-bottom: 6px; max-width: none; }
.w-cal-top span { font-size: 0.78rem; color: var(--ink-2); }
.w-cal-row { position: relative; display: grid; grid-template-columns: 48px 1fr; align-items: start; height: 38px; font-size: 0.72rem; color: var(--ink-2); }
.w-cal-row i { margin-top: 0.7em; height: 1px; background: var(--line); }
.w-ev { position: absolute; z-index: 1; left: 52px; right: 0; top: 4px; height: 58px; padding: 7px 10px; border-left: 3px solid var(--accent); border-radius: 6px; background: #E7F0FF; color: var(--ink); font-size: 0.8rem; line-height: 1.35; }
.w-ev b { display: block; }

/* ---------- 5. where enquiries land ---------- */
.w-flow { --ln: #C9CBD1; --gap: 80px; display: grid; grid-template-columns: 1fr auto 1.2fr; column-gap: var(--gap); align-items: center; max-width: 940px; margin: 56px auto 0; }
.w-src, .w-dst { list-style: none; display: grid; gap: 14px; position: relative; }
.w-src li, .w-dst li { position: relative; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }
.w-src li { height: 56px; padding: 0 16px; }
.w-dst li { height: 64px; padding: 0 16px; line-height: 1.3; }
.w-dst small { display: block; font-weight: 400; font-size: 0.82rem; color: var(--ink-2); }
.w-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #EEF3FE; color: var(--accent); }
.w-ico svg { width: 17px; height: 17px; }
.w-ico--wa { background: #E6F9EC; color: #1DA851; } .w-ico--wa svg { fill: currentColor; }
.w-ico--sheet { background: #E6F4EA; color: #188038; }
.w-hub { position: relative; display: grid; justify-items: center; gap: 4px; padding: 20px 26px; background: var(--dark); color: #fff; border-radius: 18px; text-align: center; }
.w-hub .w-tag { background: transparent; border-color: #34363C; color: var(--dark-ink-2); margin-bottom: 6px; }
.w-hub b { font-family: var(--font-head); font-size: 1.15rem; }
.w-hub small { color: var(--dark-ink-2); font-size: 0.82rem; }
/* connectors: stubs + a vertical bus either side of the hub */
.w-src li::after, .w-dst li::before, .w-hub::before, .w-hub::after, .w-src::after, .w-dst::after { content: ''; position: absolute; background: var(--ln); }
.w-src li::after { left: 100%; top: 50%; width: calc(var(--gap) / 2); height: 2px; transform-origin: left; }
.w-src::after { left: calc(100% + var(--gap) / 2 - 1px); top: 28px; bottom: 28px; width: 2px; }
.w-hub::before { right: 100%; top: 50%; width: calc(var(--gap) / 2); height: 2px; transform-origin: left; }
.w-hub::after { left: 100%; top: 50%; width: calc(var(--gap) / 2); height: 2px; transform-origin: left; }
.w-dst::after { right: calc(100% + var(--gap) / 2 - 1px); top: 32px; bottom: 32px; width: 2px; }
.w-dst li::before { right: 100%; top: 50%; width: calc(var(--gap) / 2); height: 2px; transform-origin: left; }
.w-extras { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 620px; margin: 56px auto 0; }
.w-extra { background: #fff; border-radius: 24px; padding: 30px 32px; display: flex; flex-direction: column; }
.w-extra h3, .w-duo h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.w-extra p { margin-top: 8px; color: var(--ink-2); }
.w-extra--agent { background: var(--dark); color: #fff; }
.w-extra--agent p { color: var(--dark-ink-2); }
.w-extra--agent .learn-link { margin-top: 12px; color: var(--accent-on-dark); }

/* ---------- 6. search ---------- */
.w-proof { margin-top: 22px; max-width: 48ch; }
.w-langs { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.w-langs p { font-size: 0.95rem; color: var(--ink-2); }
.w-langs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.w-langs li { padding: 7px 14px; border-radius: 999px; background: var(--panel); font-weight: 600; font-size: 0.92rem; }
.w-serp-wrap { margin: 0; }
.w-serp { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: 0 32px 64px -36px rgba(10, 10, 11, 0.35); }
.w-serp p { max-width: none; }
.w-q { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 2px 8px -4px rgba(10, 10, 11, 0.2); font-size: 1rem; }
.w-q svg { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
.w-res { position: relative; margin-top: 22px; padding: 18px; border-radius: var(--radius); background: #F7F9FF; border: 1px solid #DCE6FB; }
.w-first { position: absolute; top: 14px; right: 14px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.74rem; font-weight: 700; }
.w-site-id { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; line-height: 1.3; }
.w-site-id small { display: block; color: var(--ink-2); font-size: 0.76rem; }
.w-fav { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #F3E7E6; color: #8C5A57; font-family: Georgia, serif; font-size: 0.9rem; }
.w-title { margin-top: 10px; color: #1A47B8; font-size: 1.12rem; font-weight: 500; line-height: 1.3; }
.w-snip { margin-top: 6px; color: var(--ink-2); font-size: 0.88rem; line-height: 1.55; }
.w-res--ghost { background: none; border-color: transparent; padding: 4px 18px 0; display: grid; gap: 9px; }
.w-res--ghost i { height: 9px; border-radius: 5px; background: #EFEFF1; }
.w-res--ghost i:nth-child(1) { width: 40%; } .w-res--ghost i:nth-child(2) { width: 75%; height: 12px; } .w-res--ghost i:nth-child(3) { width: 90%; }
.w-serp-wrap .w-cap { text-align: left; }

/* ---------- 7. speed ---------- */
.w-duo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; max-width: 880px; margin: 72px auto 0; padding-top: 40px; border-top: 1px solid #26272C; }
.w-duo p { margin-top: 8px; color: var(--dark-ink-2); }

/* ---------- 8. grow ---------- */
.w-map { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 1040px; margin: 56px auto 0; }
.w-pg { width: 124px; font-size: 0.86rem; font-weight: 600; text-align: center; }
.w-pg-img { display: grid; align-content: start; gap: 7px; height: 150px; margin-bottom: 10px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 32px -26px rgba(10, 10, 11, 0.4); }
.w-pg-img i { height: 7px; border-radius: 4px; background: #EDEDEF; }
.w-pg-img i:first-child { height: 52px; border-radius: 6px; background: #E4E6EA; }
.w-pg-img i:last-child { width: 60%; }
.w-add { color: var(--accent); }
.w-add .w-pg-img { place-items: center; align-content: center; background: transparent; border: 2px dashed #9DBDF8; box-shadow: none; }
.w-add em { font-style: normal; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; }
.w-add svg { width: 30px; height: 30px; display: block; }

/* ---------- 9. start ---------- */
.w-start .steps-row { margin-top: 0; }

/* ---------- motion: start states only with JS and motion allowed ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes mTap { 50% { transform: scale(0.94); } }

  /* 4. form fills in, sends, lands as a message and a booking */
  .js .w-demo .ty { clip-path: inset(0 100% 0 0); }
  .js .w-demo .pick::after, .js .w-demo .b-sent, .js .w-demo .w-msg, .js .w-demo .w-ev { opacity: 0; }
  .js .w-demo .b-send { opacity: 1; }
  .js .w-demo .w-msg { transform: translateY(14px); }
  .js .w-demo .w-ev { transform: scale(0.94); }
  .js .w-demo.play .ty { animation: wType 600ms steps(var(--n)) 300ms forwards; }
  .js .w-demo.play .ty2 { animation-delay: 1500ms; animation-duration: 450ms; }
  .js .w-demo.play .p1::after { animation: wIn 240ms ease 1050ms forwards; }
  .js .w-demo.play .p2::after { animation: wIn 240ms ease 2200ms forwards; }
  .js .w-demo.play .w-send { animation: mTap 300ms ease 2750ms; }
  .js .w-demo.play .b-send { animation: wOut 200ms ease 3000ms forwards; }
  .js .w-demo.play .b-sent { animation: wIn 250ms ease 3100ms forwards; }
  .js .w-demo.play .w-msg { animation: wIn 480ms var(--ease-sig) 3500ms forwards; }
  .js .w-demo.play .w-ev { animation: wIn 480ms var(--ease-sig) 4200ms forwards; }
  @keyframes wType { to { clip-path: inset(0 0 0 0); } }
  @keyframes wIn { to { opacity: 1; transform: none; } }
  @keyframes wOut { to { opacity: 0; } }

  /* 5. connectors draw left to right */
  .js .w-flow li::after, .js .w-flow li::before, .js .w-hub::before, .js .w-hub::after { transform: scaleX(0); }
  .js .w-src::after, .js .w-dst::after { transform: scaleY(0); }
  .js .w-flow .w-dst li { opacity: 0; transform: translateX(-8px); }
  .js .w-flow.play .w-src li::after { animation: wIn 300ms ease 100ms forwards; }
  .js .w-flow.play .w-src::after { animation: wIn 300ms ease 350ms forwards; }
  .js .w-flow.play .w-hub::before { animation: wIn 250ms ease 600ms forwards; }
  .js .w-flow.play .w-hub::after { animation: wIn 250ms ease 950ms forwards; }
  .js .w-flow.play .w-dst::after { animation: wIn 300ms ease 1150ms forwards; }
  .js .w-flow.play .w-dst li::before { animation: wIn 250ms ease 1400ms forwards; }
  .js .w-flow.play .w-dst li { animation: wIn 380ms var(--ease-sig) 1550ms forwards; }
  .js .w-flow.play .w-dst li:nth-child(2) { animation-delay: 1650ms; }
  .js .w-flow.play .w-dst li:nth-child(3) { animation-delay: 1750ms; }
  .js .w-flow.play .w-dst li:nth-child(4) { animation-delay: 1850ms; }

  /* 6. the query types, the result appears */
  .js .w-serp-wrap .ty { clip-path: inset(0 100% 0 0); }
  .js .w-serp-wrap .w-res, .js .w-serp-wrap .w-first { opacity: 0; transform: translateY(12px); }
  .js .w-serp-wrap.play .ty { animation: wType 650ms steps(var(--n)) 250ms forwards; }
  .js .w-serp-wrap.play .w-res { animation: wIn 520ms var(--ease-sig) 1100ms forwards; }
  .js .w-serp-wrap.play .w-res--ghost { animation-delay: 1300ms; }
  .js .w-serp-wrap.play .w-first { animation: wIn 360ms var(--ease-sig) 1700ms forwards; }


  /* 8. new pages join the site map */
  .js .w-map .w-add { opacity: 0; transform: translateY(12px); }
  .js .w-map.play .w-add { animation: wIn 480ms var(--ease-sig) 500ms forwards; }
  .js .w-map.play .a2 { animation-delay: 750ms; }
  .js .w-map.play .a3 { animation-delay: 1000ms; }
}
@media (prefers-reduced-motion: reduce) {
  .js .w-site, .w-switch button { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .w-split { grid-template-columns: 1fr; gap: 48px; }
  .w-split--rev > :first-child { order: 0; }
  .w-demo { grid-template-columns: 1fr; padding: 24px; }
  .w-flow { grid-template-columns: 1fr; row-gap: 36px; justify-items: center; max-width: 520px; }
  .w-src { grid-template-columns: repeat(3, auto); justify-content: center; gap: 8px; }
  .w-src li { height: 48px; padding: 0 12px 0 8px; gap: 8px; font-size: 0.9rem; }
  .w-dst { grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .w-dst li { height: auto; min-height: 64px; padding: 10px 12px; }
  .w-src li::after, .w-dst li::before, .w-src::after, .w-dst::after { display: none; }
  .w-hub::before, .w-hub::after { left: 50%; width: 2px; height: 36px; margin-left: -1px; transform-origin: top; }
  .w-hub::before { right: auto; top: auto; bottom: 100%; }
  .w-hub::after { top: 100%; }
  .w-extras, .w-duo { grid-template-columns: 1fr; }
  @media (prefers-reduced-motion: no-preference) {
    .js .w-hub::before, .js .w-hub::after { transform: scaleY(0); }
  }
}
@media (max-width: 560px) {
  .w-hero { padding-bottom: 56px; }
  .w-stage { margin-top: 36px; padding: 0 10% 36px 0; }
  .w-realphone--hero { width: 28%; right: -2px; }
  .w-stage .w-cap { text-align: left; }
  .js .w-switch { width: 100%; }
  .w-sites { grid-template-columns: 1fr; }
  .w-switch button { flex: 1; padding: 0 8px; font-size: 0.84rem; }
  .w-demo { padding: 16px; margin-top: 40px; }
  .w-form { padding: 18px; }
  .w-flow { margin-top: 40px; }
  .w-src li { font-size: 0.8rem; padding: 0 10px 0 6px; gap: 6px; }
  .w-src .w-ico { width: 28px; height: 28px; }
  .w-dst li { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 0.92rem; }
  .w-dst small { font-size: 0.78rem; }
  .w-extra { padding: 24px; }
  .w-serp { padding: 14px; border-radius: 18px; }
  .w-res { padding: 14px; }
  .w-first { top: 10px; right: 10px; }
  .w-map { gap: 10px; }
  .w-pg { width: calc(25% - 8px); font-size: 0.72rem; }
  .w-pg-img { height: 104px; padding: 7px; gap: 5px; border-radius: 10px; }
  .w-pg-img i:first-child { height: 36px; }
  .w-add em { font-size: 1.15rem; }
  .w-add svg { width: 22px; height: 22px; }
}
