/* ==========================================================================
   KAZE — Electric day rides in Japan
   ========================================================================== */

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

/* ----------------------------------------------------------------- tokens */
:root {
  --ink:        #0a1a22;
  --ink-2:      #12303c;
  --ink-soft:   #47646f;
  --ink-faint:  #7b939c;

  --paper:      #ffffff;
  --paper-2:    #f4f8f8;
  --paper-3:    #e9f1f1;
  --line:       #dbe6e7;
  --line-soft:  #eaf1f2;

  --teal:       #00b8a9;
  --teal-deep:  #018e83;
  --teal-dark:  #046b63;
  --teal-glow:  #2de0ce;
  --teal-wash:  #e7fbf8;

  --vermilion:  #e2451c;
  --vermilion-wash: #fff0eb;
  --amber:      #b4700a;
  --amber-wash: #fff7e6;
  --green:      #1a7f4b;
  --green-wash: #e8f7ee;

  --focus:      #00b8a9;

  --shadow-sm:  0 1px 2px rgba(10, 26, 34, .06), 0 2px 8px rgba(10, 26, 34, .05);
  --shadow-md:  0 2px 6px rgba(10, 26, 34, .07), 0 12px 28px rgba(10, 26, 34, .09);
  --shadow-lg:  0 8px 20px rgba(10, 26, 34, .10), 0 30px 60px rgba(10, 26, 34, .16);

  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 30px;
  --wrap: 1200px;
  --gut: clamp(1rem, 4vw, 2.5rem);

  --sans: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Archivo", "Outfit", "Segoe UI", system-ui, sans-serif;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); letter-spacing: -.018em; }
h4 { font-size: 1.08rem; letter-spacing: -.01em; font-weight: 700; }
p { text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gut), 780px); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.tiny { font-size: .82rem; line-height: 1.5; }
.small { font-size: .92rem; }
.hide { display: none !important; }
.stack > * + * { margin-top: 1rem; }

.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal-deep); display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--teal); border-radius: 2px; }
.eyebrow.is-center { justify-content: center; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 62ch; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .97rem;
  letter-spacing: -.005em; text-decoration: none; border: 2px solid transparent;
  transition: transform .16s cubic-bezier(.2,.8,.3,1), box-shadow .16s, background-color .16s, color .16s, border-color .16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; transform: none; }

.btn-primary { background: var(--teal); color: #00312d; box-shadow: 0 4px 14px rgba(0, 184, 169, .35); }
.btn-primary:hover { background: var(--teal-glow); box-shadow: 0 8px 24px rgba(0, 184, 169, .45); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .87rem; }
.btn-block { width: 100%; }
.btn-link { color: var(--teal-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 0; }

/* ------------------------------------------------------------------ badge */
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem;
  border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  background: var(--paper-3); color: var(--ink-2);
}
.chip-teal   { background: var(--teal-wash);      color: var(--teal-dark); }
.chip-red    { background: var(--vermilion-wash); color: var(--vermilion); }
.chip-amber  { background: var(--amber-wash);     color: var(--amber); }
.chip-green  { background: var(--green-wash);     color: var(--green); }
.chip-glass  { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px); }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1.6rem; height: 72px; }

.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--teal-glow), var(--teal-deep));
  display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,184,169,.4);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.04em; }
.logo-text span { color: var(--teal-deep); }
.logo-sub { display: block; font-size: .58rem; font-weight: 700; letter-spacing: .22em; color: var(--ink-faint); text-transform: uppercase; margin-top: -3px; }

.nav { display: flex; gap: .3rem; margin-left: auto; }
.nav a {
  padding: .5rem .8rem; border-radius: 999px; text-decoration: none; font-size: .93rem;
  font-weight: 600; color: var(--ink-soft); transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a.is-active { color: var(--teal-dark); background: var(--teal-wash); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.cart-btn { position: relative; display: flex; align-items: center; gap: .5rem; padding: .55rem .95rem; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; font-size: .9rem; transition: border-color .15s; }
.cart-btn:hover { border-color: var(--teal); }
.cart-count {
  min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--vermilion);
  color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center;
}
.cart-count.is-zero { background: var(--line); color: var(--ink-faint); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; border: 2px solid var(--line); place-items: center; }

@media (max-width: 1040px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--paper); flex-direction: column;
    padding: 1rem var(--gut) 1.6rem; gap: .2rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .28s cubic-bezier(.3,.9,.3,1);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: .8rem 1rem; font-size: 1.02rem; }
  .menu-toggle { display: grid; order: 3; }
  .header-inner { gap: .6rem; }
}

/* ------------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(92vh, 820px); display: grid; align-items: end; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroDrift 26s ease-in-out infinite alternate; }
@keyframes heroDrift { from { transform: scale(1.06) translate3d(0,0,0); } to { transform: scale(1.15) translate3d(-1.5%, -1.5%, 0); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,26,34,.72) 0%, rgba(10,26,34,.28) 32%, rgba(10,26,34,.86) 88%),
    radial-gradient(120% 70% at 15% 100%, rgba(0,184,169,.4), transparent 60%);
}
.hero-inner { position: relative; padding: 7rem 0 clamp(3rem, 6vw, 5rem); color: #fff; }
.hero h1 { color: #fff; max-width: 22ch; text-shadow: 0 4px 40px rgba(0,0,0,.4); text-wrap: balance; font-size: clamp(2.4rem, 7vw, 5rem); }
.hero h1 em { font-style: normal; color: var(--teal-glow); display: block; }
.hero-lede { color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 52ch; margin-top: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }

.speedlines { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: .5; }
.speedlines i {
  position: absolute; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-glow), transparent);
  animation: dash linear infinite;
}
@keyframes dash { from { transform: translateX(-30vw); opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } to { transform: translateX(130vw); opacity: 0; } }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3.4rem); margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.2); }
.hero-stat b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; color: var(--teal-glow); }
.hero-stat span { font-size: .82rem; color: rgba(255,255,255,.72); letter-spacing: .04em; }

/* -------------------------------------------------------- home calendar */
.home-cal-layout { max-width: 560px; }
.cal-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.cal-tab {
  flex: 1; min-width: 140px; padding: .75rem 1rem; border-radius: var(--r-md);
  border: 2px solid var(--line); background: var(--paper); font-weight: 700; font-size: .98rem;
  display: flex; align-items: baseline; justify-content: center; gap: .5rem;
  transition: border-color .15s, background .15s, color .15s;
}
.cal-tab span { font-size: .84rem; font-weight: 600; color: var(--ink-faint); }
.cal-tab:hover { border-color: #b9cccd; }
.cal-tab.is-on { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-dark); }
.cal-tab.is-on span { color: var(--teal-deep); }
#homeCal .cal { background: var(--paper); }

/* --------------------------------------------------------- passport alert */
.passport-alert {
  display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.3rem 1.5rem;
  border-radius: var(--r-md); background: var(--vermilion-wash);
  border: 2px solid var(--vermilion); box-shadow: 0 6px 20px rgba(226,69,28,.14);
}
.passport-alert .pa-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--vermilion);
  color: #fff; display: grid; place-items: center;
}
.passport-alert .pa-icon svg { width: 24px; height: 24px; }
.passport-alert h4 { color: var(--vermilion); font-size: 1.05rem; letter-spacing: .01em; text-transform: uppercase; font-weight: 800; }
.passport-alert p { font-size: .95rem; margin-top: .3rem; color: #6d2711; }
.passport-alert strong { color: var(--vermilion); }
.passport-banner { background: var(--ink); color: #fff; padding: .7rem 0; font-size: .88rem; font-weight: 600; }
.passport-banner .wrap { display: flex; align-items: center; justify-content: center; gap: .7rem; text-align: center; flex-wrap: wrap; }
.passport-banner svg { width: 18px; height: 18px; color: var(--teal-glow); flex-shrink: 0; }

/* --------------------------------------------------------------- features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.6rem 2.4rem; }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; background: var(--paper-2);
  display: grid; place-items: center; color: var(--ink-2); border: 1px solid var(--line-soft);
}
.feature-icon svg { width: 23px; height: 23px; }
.feature h4 { margin-bottom: .15rem; }
.feature p { font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }

/* ------------------------------------------------------------ tour cards */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 2rem; }
.tour-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--paper);
  box-shadow: var(--shadow-md); transition: transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tour-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.tour-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.tour-card:hover .tour-card-media img { transform: scale(1.06); }
.tour-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,26,34,.6)); }
.tour-card-city {
  position: absolute; left: 1.1rem; bottom: 1rem; z-index: 2; color: #fff;
  font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em;
}
.tour-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.tour-card-body h3 a { text-decoration: none; }
.tour-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.tour-card-foot { margin-top: auto; padding-top: .4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.price-from { font-size: .8rem; color: var(--ink-faint); }
.price-from b { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--ink); letter-spacing: -.03em; }

/* ------------------------------------------------------------ tour detail */
.tour-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.tour-hero-media { position: absolute; inset: 0; }
.tour-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.tour-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,34,.6), rgba(10,26,34,.92)); }
.tour-hero-inner { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.tour-hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 4rem); }
.tour-hero .kicker { color: var(--teal-glow); font-size: clamp(1rem, 1.7vw, 1.25rem); font-weight: 600; margin-top: .9rem; max-width: 46ch; }

.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 3rem; align-items: start; }
@media (max-width: 1040px) { .booking-layout { grid-template-columns: 1fr; gap: 2.2rem; } }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 2rem); }
.panel + .panel { margin-top: 1.5rem; }
.panel-flat { border: 0; background: var(--paper-2); }
.panel h3 { margin-bottom: 1rem; }

.booking-box {
  position: sticky; top: 92px; border-radius: var(--r-lg); background: var(--paper);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
}
@media (max-width: 1040px) { .booking-box { position: static; } }
.booking-box-head { padding: 1.3rem 1.5rem; background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: #fff; }
.booking-box-head .price { font-family: var(--display); font-size: 2.5rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.booking-box-head .price small { font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.7); letter-spacing: 0; }
.booking-box-body { padding: 1.5rem; display: grid; gap: 1.3rem; }

/* -------------------------------------------------------------- calendar */
.cal { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: .7rem .8rem; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.cal-title { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.cal-nav { display: flex; gap: .3rem; }
.cal-nav button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; transition: border-color .15s, background .15s; }
.cal-nav button:hover:not(:disabled) { border-color: var(--teal); background: var(--teal-wash); }
.cal-nav button:disabled { opacity: .35; cursor: not-allowed; }
.cal-nav svg { width: 15px; height: 15px; }

.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); padding: .5rem .4rem .2rem; }
.cal-dow span { text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-faint); text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: .4rem; }

.cal-day {
  position: relative; aspect-ratio: 1; border-radius: 9px; border: 1px solid transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: .93rem; font-weight: 600; transition: background .14s, border-color .14s, transform .14s;
}
.cal-day .dot { width: 5px; height: 5px; border-radius: 50%; }
.cal-day.is-blank { visibility: hidden; }

.cal-day.is-open { background: var(--teal-wash); color: var(--teal-dark); border-color: rgba(0,184,169,.25); }
.cal-day.is-open:hover { background: var(--teal); color: #00312d; transform: scale(1.07); }
.cal-day.is-open .dot { background: var(--teal-deep); }

.cal-day.is-limited { background: var(--amber-wash); color: var(--amber); border-color: rgba(180,112,10,.3); }
.cal-day.is-limited:hover { background: #f3c366; color: #4a2e00; transform: scale(1.07); }
.cal-day.is-limited .dot { background: var(--amber); }

/* Sold out / unavailable — explicitly and visibly disabled */
.cal-day.is-soldout, .cal-day.is-closed, .cal-day.is-past {
  color: var(--ink-faint); background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(123,147,156,.14) 5px 10px);
  cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: .8;
}
.cal-day.is-past { background: none; opacity: .34; text-decoration: none; }
.cal-day.is-soldout { color: var(--vermilion); opacity: .62; }
.cal-day.is-selected { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; transform: scale(1.07); text-decoration: none; }
.cal-day.is-selected .dot { background: var(--teal-glow) !important; }

.cal-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: .7rem .8rem; border-top: 1px solid var(--line); background: var(--paper-2); }
.cal-legend span { display: flex; align-items: center; gap: .4rem; font-size: .74rem; color: var(--ink-soft); font-weight: 600; }
.cal-legend i { width: 13px; height: 13px; border-radius: 4px; display: block; }
.lg-open { background: var(--teal-wash); border: 1px solid var(--teal); }
.lg-limited { background: var(--amber-wash); border: 1px solid var(--amber); }
.lg-sold { background: repeating-linear-gradient(135deg, #fff 0 3px, rgba(226,69,28,.35) 3px 6px); border: 1px solid rgba(226,69,28,.5); }

/* ----------------------------------------------------------------- forms */
.field { display: grid; gap: .35rem; }
.field > label, .field-label { font-size: .84rem; font-weight: 700; letter-spacing: .01em; }
.field-label .req { color: var(--vermilion); }
.field .hint { font-size: .78rem; color: var(--ink-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

/* Expiry month and year stay side by side even on a narrow screen: both are
   short values, and stacking them would waste a full row. */
.exp-pair { display: grid; grid-template-columns: 1.35fr 1fr; gap: .6rem; }

/* Divider between the card button and the PayPal button. The rule is drawn
   with pseudo-elements so the word sits in a gap rather than on top of a line. */
.pay-or { display: flex; align-items: center; gap: .9rem; margin: 1.2rem 0 .55rem; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pay-or span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

/* PayPal's own colours, so the control is recognisable without a label doing
   the work. The two-tone mark needs the light ground to stay legible. */
.btn-paypal { background: #ffc439; color: #253b80; }
.btn-paypal:hover { background: #f0b72f; }
.btn-paypal svg { height: 20px; width: auto; }
.btn-paypal:disabled { opacity: .55; cursor: default; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], select, textarea {
  width: 100%; padding: .72rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); font-size: .97rem; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #c3d3d5; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,184,169,.16);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2347646f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px; padding-right: 2.4rem; }
.is-invalid input, .is-invalid select, .is-invalid textarea, input.is-invalid, select.is-invalid, textarea.is-invalid {
  border-color: var(--vermilion); box-shadow: 0 0 0 3px rgba(226,69,28,.12);
}
.err-msg { font-size: .78rem; color: var(--vermilion); font-weight: 600; display: none; }
.is-invalid .err-msg, .err-msg.is-shown { display: block; }

.phone-group { display: grid; grid-template-columns: 152px 1fr; gap: .5rem; }
.phone-group select { font-size: .95rem; }

.check {
  display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; transition: border-color .15s, background .15s;
}
.check:hover { border-color: #c3d3d5; background: var(--paper-2); }
.check input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--teal-deep); cursor: pointer; }
.check span { font-size: .89rem; line-height: 1.5; }
.check.is-invalid { border-color: var(--vermilion); background: var(--vermilion-wash); }

.radio-cards { display: grid; gap: .7rem; }
.radio-card {
  display: flex; gap: .85rem; align-items: center; padding: 1rem 1.1rem; border: 2px solid var(--line);
  border-radius: var(--r-md); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.radio-card:hover { border-color: #b9cccd; }
.radio-card input { flex-shrink: 0; width: 20px; height: 20px; accent-color: var(--teal-deep); cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--teal); background: var(--teal-wash); box-shadow: 0 0 0 3px rgba(0,184,169,.12); }
.radio-card-main { flex: 1; min-width: 0; }
.radio-card-main b { display: block; font-size: .96rem; }
.radio-card-main span { font-size: .82rem; color: var(--ink-soft); }
.radio-card img { height: 40px; width: auto; object-fit: contain; }
.pay-logos { display: flex; gap: .4rem; align-items: center; }
.pay-logos svg { height: 24px; width: auto; }

.stepper { display: flex; align-items: center; gap: .8rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .35rem .5rem; width: fit-content; }
.stepper button { width: 34px; height: 34px; border-radius: 8px; background: var(--paper-2); font-size: 1.2rem; font-weight: 700; display: grid; place-items: center; transition: background .15s; }
.stepper button:hover:not(:disabled) { background: var(--teal-wash); color: var(--teal-dark); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 2.2ch; text-align: center; font-weight: 700; font-size: 1.05rem; }

/* ------------------------------------------------------------------ cart */
.cart-scrim { position: fixed; inset: 0; background: rgba(10,26,34,.5); backdrop-filter: blur(3px); z-index: 300; opacity: 0; pointer-events: none; transition: opacity .25s; }
.cart-scrim.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: var(--paper); z-index: 310;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.3,.9,.3,1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; display: grid; gap: 1rem; align-content: start; }
.cart-drawer-foot { padding: 1.2rem 1.4rem; border-top: 1px solid var(--line); background: var(--paper-2); display: grid; gap: .9rem; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; transition: background .15s; }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 20px; height: 20px; }

.cart-item { display: grid; grid-template-columns: 78px 1fr; gap: .9rem; padding: .9rem; border: 1px solid var(--line); border-radius: var(--r-md); }
.cart-item img { width: 78px; height: 78px; border-radius: 9px; object-fit: cover; }
.cart-item h4 { font-size: .97rem; }
.cart-item dl { display: grid; gap: .1rem; margin: .35rem 0; font-size: .8rem; color: var(--ink-soft); }
.cart-item dl div { display: flex; gap: .35rem; }
.cart-item dt { font-weight: 600; }
.cart-item-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; }
.cart-item-price { font-weight: 800; font-family: var(--display); font-size: 1.05rem; }
.link-danger { font-size: .8rem; font-weight: 700; color: var(--vermilion); text-decoration: underline; text-underline-offset: 2px; }

.total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .92rem; }
.total-row.is-grand { font-size: 1.05rem; font-weight: 700; padding-top: .7rem; border-top: 1px solid var(--line); }
.total-row.is-grand b { font-family: var(--display); font-size: 1.8rem; letter-spacing: -.03em; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.empty-state svg { width: 56px; height: 56px; margin: 0 auto 1rem; color: var(--line); }

/* -------------------------------------------------------------- checkout */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2.5rem; align-items: start; }
@media (max-width: 980px) { .checkout-layout { grid-template-columns: 1fr; } }
.summary-box { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 980px) { .summary-box { position: static; } }
.summary-head { padding: 1rem 1.3rem; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; }
.summary-body { padding: 1.3rem; display: grid; gap: 1rem; background: var(--paper); }

.steps { display: flex; gap: .4rem; margin-bottom: 2rem; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: .55rem; padding: .5rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--ink-faint); background: var(--paper-2); }
.step b { width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--paper); display: grid; place-items: center; font-size: .74rem; }
.step.is-active { color: var(--teal-dark); background: var(--teal-wash); }
.step.is-active b { background: var(--teal-deep); color: #fff; }
.step.is-done { color: var(--green); background: var(--green-wash); }
.step.is-done b { background: var(--green); color: #fff; }

.fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
.fieldset legend { font-family: var(--display); font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.1rem; padding: 0; }
.fieldset .field + .field, .fieldset .field-row + .field, .fieldset .field + .field-row,
.fieldset .field-row + .field-row, .fieldset .radio-cards + .field, .fieldset .field + .check, .fieldset .check + .check { margin-top: 1.1rem; }

.card-fields { display: grid; gap: 1rem; padding: 1.2rem; border: 1.5px dashed var(--line); border-radius: var(--r-md); background: var(--paper-2); margin-top: 1rem; }
.card-fields .field-row { grid-template-columns: 1fr 1fr; }
.paypal-note { display: flex; gap: .8rem; align-items: flex-start; padding: 1.2rem; border-radius: var(--r-md); background: #f0f6ff; border: 1.5px solid #cbdcf5; margin-top: 1rem; font-size: .9rem; }
.secure-note { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--ink-faint); }
.secure-note svg { width: 15px; height: 15px; }

/* ----------------------------------------------------------- confirmation */
.confirm-hero { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; }
.confirm-check {
  width: 78px; height: 78px; border-radius: 50%; background: var(--green-wash); color: var(--green);
  display: grid; place-items: center; margin: 0 auto 1.5rem; animation: pop .5s cubic-bezier(.2,1.4,.4,1);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-check svg { width: 40px; height: 40px; }
.ref-box { display: inline-flex; flex-direction: column; gap: .2rem; padding: 1rem 2rem; border-radius: var(--r-md); background: var(--paper-2); border: 1.5px dashed var(--line); }
.ref-box b { font-family: var(--display); font-size: 1.7rem; letter-spacing: .12em; }

/* -------------------------------------------------------------- policy */
.policy-timeline { display: grid; gap: 0; }
.policy-tier { display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .policy-tier { grid-template-columns: 1fr; gap: .6rem; } }
.policy-tier:last-child { border-bottom: 0; }
.policy-when { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.policy-fee { font-family: var(--display); font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.policy-tier.t-free .policy-fee, .policy-tier.t-free .policy-when { color: var(--green); }
.policy-tier.t-half .policy-fee, .policy-tier.t-half .policy-when { color: var(--amber); }
.policy-tier.t-none .policy-fee, .policy-tier.t-none .policy-when { color: var(--vermilion); }

/* --------------------------------------------------------------- affiliate */
.affiliate-band { background: linear-gradient(135deg, var(--ink) 0%, #0d2833 55%, var(--teal-dark) 140%); color: #fff; position: relative; overflow: hidden; }
.affiliate-band .wrap { position: relative; }
.aff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; margin-top: 2rem; }
.aff-card {
  display: flex; gap: 1.1rem; align-items: center; padding: 1.4rem; border-radius: var(--r-md);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); text-decoration: none; color: #fff;
  transition: background .2s, transform .2s, border-color .2s;
}
.aff-card:hover { background: rgba(255,255,255,.13); border-color: var(--teal-glow); transform: translateY(-3px); }
.aff-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--teal); color: #00312d; display: grid; place-items: center; flex-shrink: 0; }
.aff-icon svg { width: 25px; height: 25px; }
.aff-card b { display: block; font-size: 1.02rem; }
.aff-card span { font-size: .85rem; color: rgba(255,255,255,.72); }
.aff-card .arrow { margin-left: auto; color: var(--teal-glow); }

/* ------------------------------------------------------------------ blog */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 2rem; }
.article-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); transition: transform .22s, box-shadow .22s, border-color .22s; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.article-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.article-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.article-card:hover .article-card-media img { transform: scale(1.05); }
.article-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.article-card h3 { font-size: 1.2rem; }
.article-meta { display: flex; gap: .8rem; font-size: .78rem; color: var(--ink-faint); font-weight: 600; margin-top: auto; padding-top: .5rem; }

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.3rem; font-size: 1.06rem; line-height: 1.78; }
.prose p:first-of-type { font-size: 1.18rem; color: var(--ink-2); }
.prose h2 { font-size: 1.6rem; margin: 2.4rem 0 1rem; }
.prose h3 { margin: 2rem 0 .8rem; }
.prose ul, .prose ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.prose li { margin-bottom: .55rem; line-height: 1.7; }
.prose a { color: var(--teal-dark); font-weight: 600; }

/* ----------------------------------------------------------------- scene */
/* A single wide photo dropped between panels. */
.scene {
  margin: 1.5rem 0 0; border-radius: var(--r-lg); overflow: hidden; position: relative;
  aspect-ratio: 16 / 9; box-shadow: var(--shadow-md); background: var(--paper-2);
}
.scene.is-tall { aspect-ratio: 4 / 5; }
.scene img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.3,1); }
.scene:hover img { transform: scale(1.04); }
@media (max-width: 620px) { .scene { aspect-ratio: 3 / 2; } }

/* --------------------------------------------------------- panel heading */
/* Heading with a caveat alongside it: side by side when there is room,
   stacked underneath once the column narrows. */
.panel-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem;
  margin-bottom: 1rem;
}
.panel-head h3 { margin-bottom: 0; flex-shrink: 0; }
.panel-note {
  flex: 1 1 300px; min-width: 0; font-size: .84rem; line-height: 1.55;
  color: var(--ink-soft); border-left: 3px solid var(--teal); padding-left: .8rem;
}
@media (max-width: 700px) { .panel-note { flex-basis: 100%; } }

/* ---------------------------------------------------------------- itinerary */
.itinerary { display: grid; gap: 0; position: relative; }
.itin-item { display: grid; grid-template-columns: 78px 1fr; gap: 1.3rem; padding-bottom: 1.8rem; position: relative; }
.itin-item::before { content: ""; position: absolute; left: 87px; top: 22px; bottom: -4px; width: 2px; background: var(--line); }
.itin-item:last-child { padding-bottom: 0; }
.itin-item:last-child::before { display: none; }
.itin-time { font-family: var(--display); font-weight: 800; font-size: .95rem; color: var(--teal-dark); text-align: right; padding-top: .1rem; position: relative; }
.itin-time::after { content: ""; position: absolute; right: -17px; top: .35em; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--teal); }
.itin-body h4 { margin-bottom: .2rem; }
.itin-body p { font-size: .93rem; color: var(--ink-soft); }
@media (max-width: 560px) {
  .itin-item { grid-template-columns: 1fr; gap: .3rem; padding-left: 1.4rem; }
  .itin-item::before { left: 4px; top: 26px; }
  .itin-time { text-align: left; }
  .itin-time::after { right: auto; left: -21px; }
}

/* ------------------------------------------------------------- inc / exc */
.inc-exc { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .inc-exc { grid-template-columns: 1fr; } }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.tick-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; line-height: 1.55; }
.tick-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.tick-list.is-inc svg { color: var(--green); }
.tick-list.is-exc svg { color: var(--ink-faint); }
.tick-list.is-exc li { color: var(--ink-soft); }

/* ------------------------------------------------------------------- faq */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.2rem 0; text-align: left; font-weight: 700; font-size: 1.04rem; font-family: var(--display);
  letter-spacing: -.01em; transition: color .15s;
}
.faq-q:hover { color: var(--teal-dark); }
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; transition: transform .25s; color: var(--teal-deep); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s cubic-bezier(.3,.9,.3,1); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 1.3rem; color: var(--ink-soft); max-width: 72ch; }

/* -------------------------------------------------------------- statuses */
.notice { display: flex; gap: .85rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: var(--r-md); font-size: .92rem; line-height: 1.55; }
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.notice-info   { background: var(--teal-wash);      color: var(--teal-dark);  border: 1px solid rgba(0,184,169,.3); }
.notice-warn   { background: var(--amber-wash);     color: #7a4c05;           border: 1px solid rgba(180,112,10,.35); }
.notice-danger { background: var(--vermilion-wash); color: #8b3014;           border: 1px solid rgba(226,69,28,.35); }
.notice-ok     { background: var(--green-wash);     color: #145c37;           border: 1px solid rgba(26,127,75,.3); }
.notice b { font-weight: 800; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 { font-family: var(--display); color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; font-size: .92rem; transition: color .15s; }
.site-footer a:hover { color: var(--teal-glow); }
.footer-brand .logo-text { color: #fff; font-size: 1.5rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.13); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.5); }

/* --------------------------------------------------------------- helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.bg-soft { background: var(--paper-2); }
.bg-dark { background: var(--ink); color: rgba(255,255,255,.8); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-dark .eyebrow { color: var(--teal-glow); }
.bg-dark .lede { color: rgba(255,255,255,.75); }

.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 150%); z-index: 400;
  background: var(--ink); color: #fff; padding: .9rem 1.4rem; border-radius: 999px; font-weight: 600;
  font-size: .93rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .6rem;
  transition: transform .35s cubic-bezier(.2,1.2,.4,1); max-width: calc(100% - 2rem);
}
.toast.is-shown { transform: translate(-50%, 0); }
.toast svg { width: 19px; height: 19px; color: var(--teal-glow); flex-shrink: 0; }

/* ----------------------------------------------------------- ride window */
/* Porthole on the tour cover showing the machine you'll be riding.
   Declared AFTER .tour-card-media / .tour-hero so its image rules win the
   cascade — `.tour-card-media img` has equal specificity and would otherwise
   force object-fit:cover and inherit the card's hover zoom. */
.ride-window {
  position: absolute; z-index: 3; right: 1.1rem; bottom: 1rem;
  width: 132px; height: 132px; border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(255,255,255,.92);
  box-shadow: 0 6px 18px rgba(10,26,34,.35);
  background: #fff;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s;
}
/* `contain` keeps the whole machine in frame; the source sits on a white
   ground, so image and disc read as one continuous white field. */
.ride-window img,
.tour-card-media .ride-window img {
  width: 100%; height: 100%; object-fit: contain; padding: 0; transform: none;
}
.tour-card:hover .ride-window { transform: scale(1.06); box-shadow: 0 10px 26px rgba(10,26,34,.42); }
.tour-card:hover .tour-card-media .ride-window img { transform: none; }

/* Inline variant: sits in normal flow inside a notice, not over a cover. */
.ride-window.is-inline {
  position: static; width: 72px; height: 72px; border-width: 2px;
  box-shadow: 0 2px 8px rgba(10,26,34,.18); flex-shrink: 0;
}
.alt-rides { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: .9rem; }
.alt-ride { display: flex; align-items: center; gap: .6rem; font-size: .86rem; }

/* Corner porthole on the home hero. Hidden once the stats row wraps, where
   it would otherwise sit on top of the last stat. */
.ride-window.is-hero-corner {
  right: clamp(1rem, 4vw, 3rem); bottom: clamp(1.2rem, 4vw, 2.6rem);
  width: clamp(110px, 12vw, 150px); height: clamp(110px, 12vw, 150px);
  border-width: 4px; z-index: 4;
}
@media (max-width: 900px) { .ride-window.is-hero-corner { display: none; } }

.ride-window.is-hero {
  right: clamp(1rem, 5vw, 3.5rem); bottom: auto; top: clamp(1.4rem, 5vw, 3rem);
  width: clamp(130px, 17vw, 200px); height: clamp(130px, 17vw, 200px);
  border-width: 4px;
}
@media (max-width: 820px) {
  .ride-window { width: 112px; height: 112px; }
  .ride-window.is-hero { width: 104px; height: 104px; border-width: 3px; }
  /* keep the chip row clear of the porthole */
  .tour-hero .hero-chips { padding-right: 120px; }
}

/* ---------------------------------------------------------- mode banner */
.mode-banner { background: var(--amber); color: #24170a; padding: .7rem 0; font-size: .86rem; line-height: 1.5; }
.mode-banner.is-demo { background: var(--vermilion); color: #fff; }
.mode-banner .wrap { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.mode-banner strong { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

/* Calendar day whose live availability is still loading. */
.cal-day.is-loading { color: var(--ink-faint); opacity: .45; cursor: progress; }

/* ------------------------------------------------------ confirm dialog */
.dlg-scrim {
  position: fixed; inset: 0; z-index: 500; background: rgba(10,26,34,.55); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 1.2rem;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.dlg-scrim.is-open { opacity: 1; pointer-events: auto; }
.dlg {
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  width: min(460px, 100%); max-height: 90vh; overflow-y: auto; padding: 1.6rem;
  transform: scale(.94) translateY(10px); transition: transform .22s cubic-bezier(.2,1.1,.4,1);
}
.dlg-scrim.is-open .dlg { transform: none; }
.dlg h3 { margin-bottom: .7rem; }
.dlg-body { font-size: .94rem; color: var(--ink-soft); line-height: 1.6; }
.dlg-body b { color: var(--ink); }
.dlg-actions { display: flex; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; }
.dlg-actions .btn { flex: 1; min-width: 140px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--ink); color: #fff; padding: .8rem 1.3rem; border-radius: 0 0 var(--r-sm) 0; }
.skip-link:focus { left: 0; }

.route { animation: fadeUp .4s cubic-bezier(.2,.8,.3,1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

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