/* Trade show kiosk — tablet-first, touch-friendly (FluidityIQ shell) */

/* HSL tuples match www.fluidityiq.com Squarespace theme :root */
:root {
  --tap-min: 48px;
  --gap: 12px;
  --radius: 12px;

  --fiq-ink: 225, 12.77%, 18.43%;
  --fiq-paper: 0, 0%, 100%;
  --fiq-accent: 196.79, 82.35%, 60%;
  --fiq-light-accent: 206.4, 24.27%, 79.8%;
  --fiq-dark-accent: 221.38, 15.51%, 36.67%;

  /* Dark booth shell — page bg matches production https://inta-kiosk.vercel.app/ */
  --fiq-bg: #0d1b2e;
  --fiq-surface: #132338;
  --fiq-surface-2: #182941;
  --fiq-text: hsla(var(--fiq-paper), 0.96);
  --fiq-text-muted: hsla(var(--fiq-paper), 0.82);
  --fiq-border: hsla(var(--fiq-paper), 0.14);
  --fiq-focus-ring: hsla(var(--fiq-accent), 0.95);

  /* Landing (tuned to match Squarespace demo: wide CTAs, stadium caps, one-line hero on tablet+) */
  --landing-bg-image: url("Assets/Backgrounds/2026_OceanShoreLine.webp");
  --landing-accent: #4dc6f2;
  --landing-title: var(--landing-accent);
  --landing-cta: var(--landing-accent);
  --landing-cta-hover: #3aaee0;
  --landing-cta-radius: 9999px; /* full stadium / pill — clear rounding on wide, short buttons */

  --border: 1px solid var(--fiq-border);
  --surface: var(--fiq-surface);
  --surface-2: var(--fiq-surface-2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: var(--fiq-bg);
  color: var(--fiq-text);
  -webkit-tap-highlight-color: transparent;
}

body {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

#landing-view,
#slide-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--fiq-bg);
  /* Darker scrim so light/cyan type stays legible on bright wave highlights */
  background-image: linear-gradient(
      180deg,
      hsla(213, 44%, 4%, 0.78) 0%,
      hsla(210, 38%, 5%, 0.65) 45%,
      hsla(210, 32%, 3%, 0.8) 100%
    ),
    var(--landing-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

#landing-view[hidden],
#slide-shell[hidden] {
  display: none !important;
}

/* Floated top chrome — not in document flow; hero / slide stage use full viewport */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: clamp(12px, 3vw, 20px) clamp(16px, 4vw, 28px);
  background: transparent;
  pointer-events: auto;
}

.site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
}

.site-logo-link {
  flex: 0 1 auto;
  min-width: 0;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.site-logo {
  display: block;
  height: clamp(40px, 8.5vw, 62px);
  width: auto;
  max-width: min(100%, 380px);
}

.site-logo-link:focus-visible {
  outline: 3px solid var(--fiq-focus-ring);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: var(--gap);
  flex-shrink: 0;
}

/* Fullscreen: landing only — hide header actions while slideshow is open */
body:has(#slide-shell:not([hidden])) .site-header-actions {
  display: none !important;
}

.btn-fullscreen-icon {
  appearance: none;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  display: grid;
  place-items: center;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  line-height: 0;
  letter-spacing: 0;
  border-radius: var(--radius);
  border: var(--border);
  background: transparent;
  color: var(--fiq-text);
  cursor: pointer;
}

.btn-fullscreen-icon-svg {
  grid-area: 1 / 1;
  display: block;
  margin: 0;
  flex-shrink: 0;
}

.btn-fullscreen-icon-svg--exit {
  display: none;
}

.btn-fullscreen-icon[aria-pressed="true"] .btn-fullscreen-icon-svg--enter {
  display: none;
}

.btn-fullscreen-icon[aria-pressed="true"] .btn-fullscreen-icon-svg--exit {
  display: block;
}

.btn-fullscreen-icon:focus-visible {
  outline: 3px solid var(--fiq-focus-ring);
  outline-offset: 2px;
}

.btn-fullscreen-icon:active {
  transform: scale(0.98);
}

/* Header: fullscreen — icon only, fixed square tap target */
.site-header .btn-fullscreen-icon {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0;
}

.landing-main {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Fills #landing-view so content is centered in the full area (header is overlaid) */
  padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px) clamp(28px, 6vw, 48px);
  background: transparent;
}

.landing-hero {
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.25rem, 3.5vw, 2rem);
  padding: 0 clamp(4px, 1vw, 8px);
}

.landing-title {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  font-family: "Urbanist", system-ui, sans-serif;
  font-size: clamp(1.65rem, 3.1vw, 3.5rem);
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  color: var(--landing-title);
  -webkit-font-smoothing: antialiased;
  word-break: normal;
  overflow-wrap: normal;
  /* One line when it fits; wrap only when the viewport is too narrow */
  white-space: normal;
}

@media (min-width: 36rem) {
  .landing-title {
    white-space: nowrap;
  }
}

.landing-subtitle {
  margin: 0;
  width: 100%;
  min-width: 0;
  /* Use horizontal space so wrapping follows the window, not a narrow max-width */
  max-width: 100%;
  font-size: clamp(0.95rem, 1.8vw, 1.6rem);
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
  text-align: center;
  font-family: "Urbanist", system-ui, sans-serif;
  word-break: normal;
  overflow-wrap: break-word;
  /* Single line on very wide viewports; otherwise wrap at spaces only as needed */
  white-space: normal;
}

/* Long sentence: one line when the viewport is clearly wide enough */
@media (min-width: 90rem) {
  .landing-subtitle {
    white-space: nowrap;
  }
}

.flow-grid {
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1rem, 2.4vw, 1.5rem);
  /* Space between headline/subcopy and topic buttons */
  margin-top: clamp(1.25rem, 3.5vw, 2.75rem);
  padding-top: 0;
  justify-content: center;
}

@media (min-width: 720px) {
  .flow-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1.75rem, 4.5vw, 3.25rem);
  }
}

.flow-tile {
  appearance: none;
  margin: 0;
  /* Demo uses wide, relatively short primary blocks (~300px+ wide) — not tall narrow pills */
  min-height: 64px;
  padding: 0.5rem 1.75rem;
  font: inherit;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  /* Explicit radius — some WebKit builds ignore var() on buttons without a clear fallback */
  border-radius: var(--landing-cta-radius);
  border: none;
  background: var(--landing-cta);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 720px) {
  .flow-tile {
    flex: 0 0 auto;
    min-width: min(320px, 100%);
  }
}

.flow-tile:hover {
  background: var(--landing-cta-hover);
}

.flow-tile:active {
  transform: scale(0.99);
}

.flow-tile:focus-visible {
  outline: 3px solid var(--fiq-focus-ring);
  outline-offset: 3px;
}

.btn {
  appearance: none;
  margin: 0;
  min-height: var(--tap-min);
  padding: 0 18px;
  font: inherit;
  font-weight: 600;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  border-radius: var(--radius);
  border: var(--border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:focus-visible {
  outline: 3px solid var(--fiq-focus-ring);
  outline-offset: 2px;
}

.btn-primary {
  background: hsla(var(--fiq-accent), 1);
  color: hsla(var(--fiq-ink), 1);
  border-color: hsla(var(--fiq-accent), 0.35);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--fiq-text);
}

/* Slideshow bottom nav — outline vs filled; larger than header for booth touch */
.btn-slide-nav {
  appearance: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--landing-cta-radius);
  -webkit-tap-highlight-color: transparent;
}

.btn-slide-nav__icon {
  display: block;
  flex-shrink: 0;
}

.btn-slide-nav:active {
  transform: scale(0.99);
}

.btn-slide-nav:focus-visible {
  outline: 3px solid var(--fiq-focus-ring);
  outline-offset: 3px;
}

.slide-nav--dock .btn-slide-nav {
  min-height: 3.75rem;
  padding: 0 clamp(1.35rem, 4vw, 2.25rem);
  font-size: clamp(1.125rem, 2.2vw, 1.45rem);
}

.slide-nav--dock .btn-slide-nav__icon {
  width: 1.5rem;
  height: 1.5rem;
}

.slide-nav--dock .btn-slide-nav--outline {
  pointer-events: auto;
  background: hsla(213, 44%, 6%, 0.5);
  border-color: var(--landing-cta);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.slide-nav--dock .btn-slide-nav--outline:hover {
  background: hsla(196.79, 82.35%, 60%, 0.14);
  border-color: var(--landing-cta-hover);
}

.slide-nav--dock .btn-slide-nav--filled {
  pointer-events: auto;
  background: var(--landing-cta);
  border-color: var(--landing-cta);
  color: #fff;
}

.slide-nav--dock .btn-slide-nav--filled:hover {
  background: var(--landing-cta-hover);
  border-color: var(--landing-cta-hover);
}

/* Slideshow shell — same full-bleed background as landing; stage is transparent */
.slide-shell {
  flex-direction: column;
}

.slide-main {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Reserve space for overlaid bottom nav + top header overlap */
  padding: clamp(72px, 14vw, 100px) clamp(16px, 4vw, 32px)
    calc(clamp(104px, 22vw, 140px) + env(safe-area-inset-bottom));
  background: transparent;
}

/* Extra vertical room for HTML slides (no image letterboxing) */
#slide-shell:has(#slide-html:not([hidden])) .slide-main {
  padding-bottom: calc(clamp(88px, 17vw, 120px) + env(safe-area-inset-bottom));
}

/* One cell: image and HTML stack; size container drives cq* units for HTML slides */
.slide-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: min(100%, 1400px);
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  margin: 0 auto;
  container-type: size;
  container-name: slide;
}

.slide-stage > .slide-image,
.slide-stage > .slide-html {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}

.slide-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius) - 4px);
  box-shadow: 0 12px 40px hsla(0, 0%, 0%, 0.35);
}

/* Immersive slides (fullscreenImage / fullscreenHtml): true edge-to-edge; chrome floats above */
body.kiosk-immersive-slide {
  padding: 0;
}

body.kiosk-immersive-slide .site-header {
  padding: calc(clamp(12px, 3vw, 20px) + env(safe-area-inset-top, 0px))
    calc(clamp(16px, 4vw, 28px) + env(safe-area-inset-right, 0px))
    clamp(12px, 3vw, 20px)
    calc(clamp(16px, 4vw, 28px) + env(safe-area-inset-left, 0px));
}

body.kiosk-immersive-slide .site-logo-link {
  display: none;
}

body.kiosk-immersive-slide .site-header-row {
  justify-content: flex-end;
}

body.kiosk-immersive-slide #slide-shell {
  min-height: 100dvh;
  flex: 1 1 auto;
  background-image: none;
  background-color: var(--fiq-bg);
}

body.kiosk-immersive-slide #slide-shell .slide-main {
  padding: 0;
  justify-content: flex-start;
  align-items: stretch;
}

body.kiosk-immersive-slide #slide-shell:has(#slide-html:not([hidden])) .slide-main {
  padding-bottom: 0;
}

body.kiosk-immersive-slide #slide-shell .slide-stage {
  max-width: none;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}

body.kiosk-immersive-slide #slide-shell .slide-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}

body.kiosk-immersive-slide #slide-shell .slide-html {
  align-self: stretch;
  justify-self: stretch;
}

body.kiosk-immersive-slide #slide-shell .slide-stage .slide-html-inner {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.kiosk-immersive-slide .slide-nav--dock {
  padding-left: calc(clamp(16px, 4vw, 28px) + env(safe-area-inset-left, 0px));
  padding-right: calc(clamp(16px, 4vw, 28px) + env(safe-area-inset-right, 0px));
  z-index: 4;
}

.slide-image[hidden] {
  display: none !important;
}

/* HTML slides — transparent; single overflow context */
.slide-html {
  width: 100%;
  height: 100%;
  max-height: 100%;
  align-self: stretch;
  justify-self: stretch;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.slide-html[hidden] {
  display: none !important;
}

.slide-html-inner {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  min-width: 0;
  /* Title row + list row — never stack on top of each other */
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: clamp(0.45rem, 1.2vmin + 0.5vh, 2rem);
  padding: clamp(0.35rem, 0.75vh + 0.5rem, 2.25rem) clamp(1rem, 3.5vw, 2.75rem);
}

.slide-stage .slide-html-inner {
  gap: clamp(0.45rem, 0.35rem + 1.2cqh, min(2rem, 3.5cqh + 0.35rem));
  padding-top: clamp(0.35rem, 0.5rem + 1cqh, min(2.25rem, 4cqh + 0.5rem));
  padding-bottom: clamp(0.35rem, 0.5rem + 1cqh, min(2.25rem, 4cqh + 0.5rem));
}

.slide-html-inner--img-bullets {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: clamp(0.85rem, 1.8vmin + 1.2vh, 2.75rem);
}

.slide-stage .slide-html-inner.slide-html-inner--img-bullets {
  gap: clamp(0.85rem, 0.55rem + 1.8cqh, min(2.75rem, 5cqh + 0.85rem));
}

.slide-html-subtitle {
  margin: 0 auto;
  max-width: min(52rem, 92vw);
  text-align: center;
  font-size: clamp(0.88rem, 0.68rem + 1.85vw + 0.85vh, 2.4rem);
  line-height: 1.3;
  font-weight: 600;
  color: var(--landing-accent);
}

.slide-stage .slide-html-subtitle {
  max-width: min(52rem, 94cqw);
  font-size: clamp(
    0.85rem,
    0.52rem + 1.25cqw + 0.55cqh,
    min(2.45rem, 4.25cqh + 0.55rem)
  );
}

.slide-html-title {
  text-align: center;
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--fiq-text);
  font-size: clamp(1.15rem, 0.72rem + 2.8vw + 1.5vh, 4.5rem);
}

.slide-stage .slide-html-title {
  /* cqh pulls type down on short stages so six bullets + title fit without scroll */
  font-size: clamp(
    1.1rem,
    0.58rem + 2.2cqw + 0.95cqh,
    min(4.75rem, 11cqh + 0.65rem)
  );
}

.slide-html-accent {
  color: var(--landing-accent);
}

.slide-html-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: min(52rem, 94cqw);
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(0.28rem, 0.2rem + 0.8vmin, 1.75rem);
}

.slide-stage .slide-html-list {
  gap: clamp(0.28rem, 0.22rem + 0.85cqh, min(1.75rem, 2.8cqh + 0.2rem));
}

.slide-html-list li {
  position: relative;
  padding-left: clamp(1rem, 0.55rem + 2.5vw, 2.35rem);
  margin-bottom: 0;
  line-height: 1.3;
  color: var(--fiq-text);
  font-size: clamp(0.88rem, 0.68rem + 1.85vw + 0.85vh, 2.4rem);
}

.slide-stage .slide-html-list li {
  font-size: clamp(
    0.85rem,
    0.52rem + 1.25cqw + 0.55cqh,
    min(2.45rem, 4.25cqh + 0.55rem)
  );
}

.slide-html-list li:last-child {
  margin-bottom: 0;
}

.slide-html-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--landing-accent);
  box-shadow: 0 0 0 2px hsla(var(--fiq-paper), 0.2);
}

.slide-html-lead {
  color: var(--landing-accent);
  font-weight: 600;
}

.slide-html-placeholder {
  flex: 1 1 auto;
  margin: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(1rem, 0.82rem + 2.4vw + 1.2vh, 2.35rem);
  color: var(--fiq-text-muted);
  padding: clamp(1rem, 2.5vh, 2rem) clamp(1rem, 4vw, 2rem);
}

.slide-stage .slide-html-placeholder {
  font-size: clamp(1rem, 0.78rem + 1.75cqw + 0.9cqh, min(2.5rem, 4.5cqh + 0.5rem));
}

/* Patent slide 2 — three icon rows (placeholder art until final assets) */
.slide-html-img-bullets {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: min(52rem, 94cqw);
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 0.45rem + 1.2vmin + 0.9vh, 2rem);
  align-items: stretch;
}

.slide-stage .slide-html-img-bullets {
  gap: clamp(0.65rem, 0.4rem + 1.1cqh, min(2rem, 3.5cqh + 0.35rem));
}

.slide-html-img-bullet {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(0.85rem, 1.2vw + 1vmin, 2rem);
  text-align: left;
}

.slide-stage .slide-html-img-bullet {
  gap: clamp(0.85rem, 1.2vw + 0.65vmin + 0.5cqh, 2rem);
}

@container slide (max-width: 480px) {
  .slide-html-img-bullet {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.slide-html-img-bullet-img {
  display: block;
  flex: 0 0 auto;
  width: clamp(3.25rem, 10cqh + 1.5rem, 5.5rem);
  height: auto;
  max-height: clamp(3.25rem, 10cqh + 1.5rem, 5.5rem);
  object-fit: contain;
  border-radius: 50%;
}

.slide-html-img-bullet-caption {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.88rem, 0.68rem + 1.85vw + 0.85vh, 2.4rem);
  line-height: 1.3;
  color: var(--fiq-text);
  font-weight: 400;
}

.slide-stage .slide-html-img-bullet-caption {
  font-size: clamp(
    0.85rem,
    0.52rem + 1.25cqw + 0.55cqh,
    min(2.45rem, 4.25cqh + 0.55rem)
  );
}

/* Back / Home / Next — floated strip at bottom of slideshow */
.slide-nav--dock {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3.5vw, 2rem);
  justify-content: center;
  align-items: center;
  padding: clamp(12px, 3vw, 20px) clamp(16px, 4vw, 28px)
    calc(clamp(12px, 3vw, 20px) + env(safe-area-inset-bottom));
  background: transparent;
  pointer-events: none;
}

