/* Daichii homepage. Builds on base.css + site.css. */

/* ---------- Hero slider ----------
   Each slide = one <picture>: mobile image (1080 x 1350, 4:5) below 768px,
   desktop image (1920 x 800, 12:5) from 768px. The box ratio switches at the same
   breakpoint as the <source>, so nothing is ever cropped. Video slides use the same box. */
.hero { position: relative; max-width: 1920px; margin-inline: auto; background: var(--ice); }
.hero__track { position: relative; aspect-ratio: 1000 / 1458; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms var(--ease-ui), visibility 0s linear 700ms;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 700ms var(--ease-ui), visibility 0s; z-index: 1; }
.slide picture, .slide img, .slide video { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.slide img, .slide video { transform: scale(1.035); transition: transform 1600ms var(--ease-out); }
.slide.is-active img, .slide.is-active video { transform: none; }
.slide:focus-visible { outline-offset: -6px; }

.hero__ctrl {
  position: relative;
  padding: 12px 0 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}
.hero__ctrl > * { pointer-events: auto; }
.hero__arrow {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-deep);
  box-shadow: 0 8px 18px -10px rgba(11, 42, 85, 0.6);
  cursor: pointer;
  transition: background-color 140ms var(--ease-ui), color 140ms var(--ease-ui);
}
.hero__arrow:hover { background: var(--blue-deep); color: var(--white); }
.hero__dots { display: flex; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--white); }
.hero__dot {
  position: relative;
  width: 28px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 77, 168, 0.22);
  overflow: hidden;
  cursor: pointer;
}
.hero__dot::before { content: ""; position: absolute; inset: -12px -4px; }
.hero__dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--blue-deep); transform-origin: 0 50%; transform: scaleX(0); }
.hero__dot[aria-current="true"]::after { transform: scaleX(1); }
.hero.is-playing .hero__dot[aria-current="true"]::after { animation: dot-fill var(--slide-ms, 6000ms) linear both; }
.hero.is-paused .hero__dot[aria-current="true"]::after { animation-play-state: paused; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 768px) {
  .hero__track { aspect-ratio: 4000 / 1458; }
  .hero__ctrl { position: absolute; left: 0; right: 0; bottom: 18px; padding: 0; }
  .hero__dots { background: rgba(255, 255, 255, 0.88); }
  .hero__arrow { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active { transition: none; }
  .slide img, .slide video { transform: none; transition: none; }
}

/* ---------- Categories ---------- */
.cats { display: grid; gap: 14px; }
.cat__link {
  display: grid;
  grid-template-columns: 96px 1fr 28px;
  align-items: center;
  gap: 16px;
  padding: 14px 16px 14px 14px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 200ms var(--ease-ui), transform 200ms var(--ease-ui);
}
.cat__link:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.cat__media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1 / 1.25;
  overflow: hidden;
  padding: 8px 8px 4px;
  border-radius: 12px;
  background: radial-gradient(70% 55% at 50% 92%, rgba(4, 110, 209, 0.16), transparent 70%), linear-gradient(180deg, #F7FBFF, var(--ice));
}
.cat__media img { height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(15, 77, 168, 0.18)); transition: transform 260ms var(--ease-out); }
.cat__link:hover .cat__media img { transform: translateY(-3px); }
.cat__body { display: grid; gap: 6px; min-width: 0; }
.cat__name { font: 800 1.2rem/1.1 var(--display); color: var(--blue-deep); letter-spacing: -0.02em; }
.cat__for { font-size: 0.86rem; color: var(--ink-2); }
.cat__meta { font-size: 0.82rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cat__meta b { color: var(--blue-deep); }
/* mini tank gauge: a true 0-280 L axis; the water marks this category's tank range */
.cat__gauge {
  position: relative;
  display: block;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: #F2F7FD;
  box-shadow: inset 0 1px 2px rgba(15, 77, 168, 0.18);
  outline: 1px solid rgba(4, 110, 209, 0.18);
  overflow: hidden;
}
.cat__water {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: var(--l);
  width: var(--w);
  min-width: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), var(--blue));
  transform-origin: 0 50%;
}
.cat__go { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ice); color: var(--blue-deep); transition: background-color 160ms var(--ease-ui), color 160ms var(--ease-ui); }
.cat__go .icon { width: 16px; height: 16px; }
.cat__link:hover .cat__go { background: var(--blue-deep); color: var(--white); }

@media (min-width: 640px) { .cats { gap: 18px; } }
@media (min-width: 900px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat__link { grid-template-columns: 1fr; gap: 14px; padding: 14px 14px 18px; position: relative; }
  .cat__media { aspect-ratio: 16 / 11; padding: 14px 14px 6px; }
  .cat__go { position: absolute; right: 14px; top: 14px; background: var(--white); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .cat__water { transform: scaleX(0); transition: transform 1100ms var(--ease-out); transition-delay: calc(200ms + var(--i, 0) * 120ms); }
  .js .cats.is-in .cat__water { transform: none; }
}

/* ---------- Tank finder (the coming-soon gauge, now a working selector) ---------- */
.finder {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, #F4F9FF 55%, var(--ice) 100%);
}
.finder__top { display: grid; gap: 24px; align-items: end; }
.finder__readout { font: 600 1rem var(--text); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.finder__readout b { font: 800 1.6rem var(--display); color: var(--blue-deep); margin-right: 4px; }
.finder__scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 4px; }
.finder__scroll::-webkit-scrollbar { display: none; }
.gauge { position: relative; min-width: 740px; padding-top: 8px; }
.gauge__tube {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #F7FBFF, var(--white));
  box-shadow: inset 0 2px 4px rgba(15, 77, 168, 0.18), 0 1px 0 rgba(255, 255, 255, 0.8);
  outline: 1.5px solid rgba(4, 110, 209, 0.22);
  overflow: hidden;
}
.gauge__water {
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--blue) 70%, var(--blue-deep));
  transform-origin: 0 50%;
  transform: scaleX(var(--fill, 0.36));
  transition: transform 650ms var(--ease-out);
}
.gauge__water::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent) no-repeat;
  background-size: 18% 100%;
  animation: glint 3.2s var(--ease-ui) infinite;
}
@keyframes glint { from { background-position: -30% 0; } to { background-position: 130% 0; } }
.js .gauge.is-waiting .gauge__water { transform: scaleX(0); }
.gauge.is-filling .gauge__water { transition-duration: 1500ms; }

.stops { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: 8px; }
.stop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 14px 0 6px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #55606F;
  font: 800 0.95rem var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms var(--ease-ui), background-color 180ms var(--ease-ui);
}
.stop::before { content: ""; position: absolute; top: 2px; left: 50%; width: 2px; height: 10px; margin-left: -1px; border-radius: 2px; background: currentColor; }
.stop:hover { color: var(--blue); background: rgba(234, 245, 255, 0.8); }
.stop.is-filled { color: var(--blue); }
.stop[aria-checked="true"] { color: var(--white); }
.stop[aria-checked="true"] span { background: var(--blue-deep); border-radius: 999px; padding: 4px 10px; margin-top: -4px; box-shadow: 0 8px 16px -10px rgba(15, 77, 168, 0.8); }

.air { position: absolute; pointer-events: none; overflow: visible; }
.air path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 0.3 0.45; animation: blow 4.6s linear infinite; }
.air path:nth-child(1) { stroke: var(--sky); stroke-width: 2; opacity: 0.6; }
.air path:nth-child(2) { stroke: var(--blue); stroke-width: 1.6; opacity: 0.25; animation-duration: 5.6s; animation-delay: -1.8s; }
.air path:nth-child(3) { stroke: var(--sky); stroke-width: 1.4; opacity: 0.5; animation-duration: 3.9s; animation-delay: -2.6s; }
@keyframes blow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -0.75; } }
.finder .air { display: none; right: 0; top: 40px; width: 48%; height: 140px; }
@media (min-width: 900px) { .finder .air { display: block; } }

.finder__results { display: grid; gap: 12px; margin-top: 28px; }
.frow {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 10px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 22px -18px rgba(15, 77, 168, 0.5);
}
.js .frow { animation: row-in 420ms var(--ease-out) both; animation-delay: calc(var(--k, 0) * 40ms); }
@keyframes row-in { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.frow__media { display: flex; align-items: flex-end; justify-content: center; overflow: hidden; height: 80px; border-radius: 9px; background: linear-gradient(180deg, #F7FBFF, var(--ice)); padding: 6px 4px 2px; }
.frow__media img { height: 100%; width: auto; object-fit: contain; }
.frow__body { display: grid; gap: 2px; min-width: 0; }
.frow h3 { font-size: 1rem; font-weight: 800; }
.frow h3 a { color: var(--blue-deep); text-decoration: none; }
.frow h3 a:hover { color: var(--blue); }
.frow__meta { font-size: 0.8rem; color: var(--ink-2); }
.fprice { font: 800 0.92rem var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.fprice span { font: 600 0.72rem var(--text); color: var(--ink-2); }
.fprice--ask { font: 600 0.82rem var(--text); color: var(--ink-2); }
.frow__cta { display: flex; gap: 6px; }

@media (min-width: 700px) { .finder__results { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .finder__top { grid-template-columns: 1fr auto; }
  .finder__scroll { overflow: visible; margin-inline: 0; padding-inline: 0; -webkit-mask-image: none !important; mask-image: none !important; }
  .gauge { min-width: 0; }
}
@media (min-width: 1100px) { .finder__results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
  .gauge__water::after, .air path { animation: none; }
  .air path { stroke-dasharray: none; }
  .js .frow { animation: none; }
}

/* Horizontal scrollers: edge fades say "more this way"; mouse users can drag them (site.js) */
.finder__scroll[data-edge="start"] { -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); }
.finder__scroll[data-edge="mid"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.finder__scroll[data-edge="end"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%); mask-image: linear-gradient(90deg, transparent, #000 16%); }
.is-draggable { cursor: grab; }
.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; scroll-snap-type: none !important; scroll-behavior: auto !important; }
.is-dragging a, .is-dragging button { pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .pgrid, .finder__scroll { scrollbar-width: thin; scrollbar-color: rgba(4, 110, 209, 0.45) transparent; }
  .pgrid::-webkit-scrollbar, .finder__scroll::-webkit-scrollbar { display: block; height: 6px; }
  .pgrid::-webkit-scrollbar-thumb, .finder__scroll::-webkit-scrollbar-thumb { background: rgba(4, 110, 209, 0.45); border: 0; border-radius: 6px; }
  .pgrid::-webkit-scrollbar-track, .finder__scroll::-webkit-scrollbar-track { background: transparent; }
}

/* ---------- Range tabs ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 0 24px; border-radius: 14px; background: var(--ice); width: max-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font: 700 0.95rem var(--display);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease-ui), color 160ms var(--ease-ui), box-shadow 160ms var(--ease-ui);
}
.tab span { font: 600 0.75rem var(--text); color: var(--blue); background: var(--white); border-radius: 999px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.tab:hover { color: var(--blue-deep); }
.tab[aria-selected="true"] { background: var(--white); color: var(--blue-deep); box-shadow: 0 6px 14px -10px rgba(15, 77, 168, 0.6); }
.tab[aria-selected="true"] span { background: var(--blue-deep); color: var(--white); }
.js .tabpanel { animation: panel-in 320ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0.4; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pgrid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 6px var(--gutter) 22px;
}
.pgrid::-webkit-scrollbar { display: none; }
.pgrid > * { scroll-snap-align: start; }
.tabpanel__all { margin-top: 4px; }
@media (min-width: 560px) { .pgrid { grid-auto-columns: 46%; } }
@media (min-width: 900px) {
  .pgrid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; gap: 20px; }
}
@media (min-width: 1240px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .js .tabpanel { animation: none; } }

/* ---------- What every Daichii has (spec diagram) ---------- */
.why { background: var(--white); }
.why__grid { display: grid; gap: 28px; align-items: center; }
.why__head { margin-bottom: 0; }
.why__list { display: grid; gap: 4px; counter-reset: f; }
.why__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: background-color 160ms var(--ease-ui);
}
.why__item.is-hot { background: var(--ice); }
.why__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--blue-deep);
  font: 800 0.85rem var(--display);
}
.why__num--dot { background: transparent; color: var(--blue); }
.why__num--dot .icon { width: 20px; height: 20px; }
.why__item.is-hot .why__num { background: var(--blue-deep); color: var(--white); }
.why__item h3 { font-size: 1.02rem; font-weight: 800; color: var(--blue-deep); }
.why__item p { font-size: 0.9rem; color: var(--ink-2); margin-top: 2px; }
.why__fig { position: relative; justify-self: center; width: min(100%, 260px); margin: 0 0 8px; }
.why__stage { position: relative; aspect-ratio: 722 / 1447; }
.why__stage img { width: 100%; height: 100%; filter: drop-shadow(0 26px 26px rgba(15, 77, 168, 0.22)); }
.why__floor { position: absolute; left: 10%; right: 6%; bottom: -14px; height: 28px; border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 77, 168, 0.25), transparent); }
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--white);
  font: 800 0.85rem var(--display);
  box-shadow: 0 6px 14px -6px rgba(11, 42, 85, 0.7);
  cursor: pointer;
  transition: transform 180ms var(--ease-ui), background-color 180ms var(--ease-ui);
}
.pin::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(76, 201, 240, 0.7); opacity: 0; transform: scale(0.6); }
.pin.is-hot { background: var(--blue); transform: scale(1.12); }
.pin.is-hot::after { animation: ping 1.2s var(--ease-out) infinite; }
@keyframes ping { from { opacity: 0.9; transform: scale(0.6); } to { opacity: 0; transform: scale(1.3); } }
.why__caption { margin-top: 26px; text-align: center; font-size: 0.82rem; color: var(--ink-2); }
@media (min-width: 900px) {
  .why__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); grid-template-areas: "head fig" "list fig"; column-gap: 56px; row-gap: 24px; }
  .why__head { grid-area: head; align-self: end; }
  .why__list { grid-area: list; align-self: start; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .why__fig { grid-area: fig; align-self: center; width: min(100%, 280px); }
}
@media (prefers-reduced-motion: reduce) { .pin.is-hot::after { animation: none; opacity: 0.6; transform: none; } }

/* ---------- Ambassador ---------- */
.amb { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--ice) 0%, #DDEEFF 60%, #CFE6FF 100%); }
.amb__in { display: grid; gap: 8px; align-items: end; padding-top: 48px; }
.amb__copy { display: grid; gap: 14px; padding-bottom: 8px; }
.amb h2 { font-weight: 800; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1; letter-spacing: -0.035em; }
.amb__line { font: 800 clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem) var(--display); color: var(--blue); letter-spacing: -0.01em; }
.amb p { color: var(--ink-2); max-width: 46ch; }
.amb__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
/* White outfit on a pale band disappears, so he stands in a brand-blue arch (the slide's blue) */
.amb__photo { position: relative; isolation: isolate; justify-self: center; width: min(100%, 300px); margin-top: 28px; }
.amb__photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -6%;
  right: -6%;
  top: -5%;
  bottom: 0;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(120% 70% at 50% 18%, var(--sky) 0%, var(--blue) 46%, var(--blue-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.amb__photo img { position: relative; width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 24px rgba(11, 42, 85, 0.35)); }
.amb .air { display: none; left: 30%; top: 30px; width: 40%; height: 160px; }
@media (min-width: 900px) {
  .amb__in { grid-template-columns: 1.1fr 0.9fr; padding-top: 56px; }
  .amb__copy { align-self: center; padding-block: 24px 48px; }
  .amb__photo { align-self: end; }
  .amb__photo { justify-self: end; width: min(100%, 340px); margin-right: 4%; }
  .amb .air { display: block; }
}

/* ---------- How buying works ---------- */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  align-content: start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.step__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ice); color: var(--blue-deep); }
.step__icon .icon { width: 26px; height: 26px; }
.step--wa .step__icon { background: #E7F8EE; color: var(--wa); }
.step__n { font: 800 0.75rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.step h3 { font-size: 1.12rem; font-weight: 800; margin-top: 2px; }
.step p { font-size: 0.92rem; color: var(--ink-2); margin-top: 4px; }
.steps__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .step { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { background: linear-gradient(180deg, var(--white), #F7FBFF); }
.faq__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; } }
