/* Land of Adventures kiosk.
   Frames borrow the hero mockups' materials so the two read as one family; the
   difference is that these ones scroll. Temporary file for index_feature.html —
   folds into styles.css when the layout is settled. */

.kiosk {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  container-type: inline-size;
}

.kiosk-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: clamp(260px, calc((100cqi + 34px) / 2.15), 620px);
  user-select: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.kiosk.is-ready .kiosk-pair { opacity: 1; }

/* ---- phone ------------------------------------------------------------ */

.kiosk-phone {
  height: 100%;
  padding: 5px;
  box-sizing: border-box;
  background:
    linear-gradient(145deg,
      #F6F6F4 0%, #C8C8C4 10%, #7A7A76 24%, #ECECEA 40%,
      #4E4E4C 55%, #B8B8B4 72%, #2E2E2C 88%, #D8D8D4 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 1px rgba(0, 0, 0, 0.42),
    inset 1px 0 0 rgba(255, 255, 255, 0.28),
    inset -1px 0 1px rgba(0, 0, 0, 0.3),
    0 22px 40px -12px rgba(var(--shadow-color), 0.3);
  display: flex;
  flex-shrink: 0;
}

/* ---- browser ---------------------------------------------------------- */

.kiosk-browser {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px -14px rgba(var(--shadow-color), 0.22);
  flex-shrink: 0;
}
.kiosk-chrome {
  width: 100%;
  height: 40px;
  background: var(--bg-tint-neutral);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
  flex-shrink: 0;
}
.kiosk-chrome i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.kiosk-chrome i:nth-child(1) { background: #E2B199; }
.kiosk-chrome i:nth-child(2) { background: #E8D9A9; }
.kiosk-chrome i:nth-child(3) { background: #B9D3C0; }
.kiosk-addr {
  margin-left: 10px;
  flex: 1;
  height: 26px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  box-sizing: border-box;
  overflow: hidden;
}
.kiosk-addr svg { flex-shrink: 0; width: 11px; height: 11px; color: var(--ink-400); }
.kiosk-addr a {
  font-size: 13px;
  color: var(--ink-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.kiosk-addr a:hover { color: var(--accent-strong); text-decoration: underline; }

/* ---- the scrolling viewport ------------------------------------------- */

/* Real overflow, scrolled by the browser. No timer, no transforms: wheel,
   trackpad, touch and keyboard all work, and the work happens on the
   compositor rather than in script. */
.kiosk-screen {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-raised);
  transition: opacity 0.24s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--shadow-color), 0.3) transparent;
}
.kiosk-screen[data-screen="desktop"] {
  height: calc(100% - 40px);
  aspect-ratio: 16 / 10;
}
.kiosk-screen[data-screen="mobile"] {
  height: 100%;
  aspect-ratio: 390 / 844;
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.38);
  scrollbar-width: none;
}
.kiosk.is-turning .kiosk-screen { opacity: 0; }

.kiosk-screen::-webkit-scrollbar { width: 9px; }
.kiosk-screen::-webkit-scrollbar-track { background: transparent; }
.kiosk-screen::-webkit-scrollbar-thumb {
  background: rgba(var(--shadow-color), 0.28);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 5px;
}
.kiosk-screen::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--shadow-color), 0.45);
  background-clip: padding-box;
}
/* A phone would not show one. */
.kiosk-screen[data-screen="mobile"]::-webkit-scrollbar { width: 0; height: 0; }

.kiosk-pan {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}

/* Pointer devices can also grab the page and pull it. */
@media (hover: hover) and (pointer: fine) {
  .kiosk-screen { cursor: grab; }
  .kiosk.is-grabbing .kiosk-screen { cursor: grabbing; }
}

/* ---- "scroll me" cue, over the frame until first use ------------------- */

.kiosk-browser { position: relative; }
.kiosk-cue {
  position: absolute;
  right: 22px;              /* clear of the scrollbar, off the focal content */
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(27, 33, 48, 0.86);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.55);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.kiosk.is-touched .kiosk-cue {
  opacity: 0;
  transform: translateY(8px);
}

/* ---- labelled tab strip ----------------------------------------------- */

.kiosk-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.kiosk-tabs button {
  appearance: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--ink-700);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.kiosk-tabs button:hover { border-color: var(--accent); color: var(--accent-strong); }
.kiosk-tabs button.is-on {
  background: var(--forest);
  border-color: var(--forest);
  color: #FFFFFF;
}
.kiosk-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.kiosk-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 660px;
  margin: 16px auto 0;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-tint-green);
  color: var(--ink-700);
  font-size: 14.5px;
  line-height: 1.45;
}
.kiosk-hint svg { flex-shrink: 0; color: var(--forest); }
.kiosk-hint strong { color: var(--ink-900); }

/* ---- narrow screens ---------------------------------------------------- */

/* Narrow: drop the phone and flip the sizing model. Above this width the frame
   takes its width from a fixed height; here that would overflow, so width leads
   and the 16:10 screen sets its own height. */
@container (max-width: 620px) {
  .kiosk-phone { display: none; }
  .kiosk-pair { height: auto; }
  .kiosk-browser { width: 100%; height: auto; flex-shrink: 1; }
  .kiosk-screen[data-screen="desktop"] { width: 100%; height: auto; }
}
@media (max-width: 700px) {
  .kiosk-tabs button { font-size: 13px; padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .kiosk-pair, .kiosk-screen { transition: none; }
}

/* ---- placement ---------------------------------------------------------- */

/* .hero .wrap turns pointer events off and hands them back per element. */
.hero .kiosk { pointer-events: auto; }

/* Version B: one column — copy and buttons on top, kiosk running wide below. */
.hero--stacked .wrap { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
/* .hero-copy carries container-type:inline-size above 1400px. Auto margins
   would switch off the grid stretch and, with the contents not contributing an
   intrinsic width, collapse the card to its padding — so give it a real width. */
.hero--stacked .hero-copy {
  width: min(960px, 100%);
  justify-self: center;
  margin: 0;
  text-align: center;
}
.hero--stacked .hero-copy h1 { font-size: clamp(32px, 3.4vw, 46px); }
.hero--stacked .actions { margin-bottom: 46px; }
.hero--stacked .kiosk { max-width: 1180px; margin: 0 auto; }

/* ---- the launch card (version B) ---------------------------------------- */

.loa-intro { padding-top: 0; }
.loa-card {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(28px, 3.4vw, 52px);
  box-shadow: 0 24px 48px -22px rgba(var(--shadow-color), 0.18);
  text-align: center;
}
.loa-card .eyebrow { color: var(--accent-strong); }
.loa-card h2 { margin-top: 6px; }
.loa-card p {
  max-width: 76ch;
  margin: 0 auto;
  color: var(--ink-700);
  line-height: 1.65;
}
.loa-card p + p { margin-top: 14px; }
.loa-card .actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}

@media (max-width: 760px) {
  .loa-card .actions { flex-direction: column; align-items: stretch; }
}

/* Hover must not wash out the selected tab. */
.kiosk-tabs button.is-on:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: #FFFFFF;
}

/* ---- version A: feature card left, kiosk right, agency copy below -------- */

/* Below 1400px styles.css collapses .hero .wrap to one column, so the source
   order — feature card, kiosk, agency copy, buttons — is the stacked order. */
/* The card is sized to the devices beside it. kiosk.js solves two multipliers:
   --fit scales the type, --gap scales every vertical space. Splitting them means
   a short card fills out mostly through breathing room rather than by inflating
   the copy, and a tall one tightens both together. Below 1400px the hero is a
   single column and both stay at 1. */
.hero--feature .loa-feature {
  --fit: 1;
  --gap: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 48px -14px rgba(var(--shadow-color), 0.18);
  padding: calc(32px * var(--gap)) clamp(24px, 2.2vw, 44px);
}
.hero--feature .loa-feature .eyebrow {
  color: var(--accent-strong);
  font-size: calc(13px * var(--fit));
  margin: 0 0 calc(6px * var(--gap));
}
.hero--feature .loa-feature h2 {
  font-size: calc(clamp(25px, 2.1vw, 33px) * var(--fit));
  line-height: 1.25;
  color: var(--forest);
  margin: 0 0 calc(14px * var(--gap));
}
.hero--feature .loa-feature p {
  font-size: calc(16.5px * var(--fit));
  line-height: 1.6;
  color: var(--ink-700);
  margin: 0;
}
.hero--feature .loa-feature p + p { margin-top: calc(13px * var(--gap)); }
.hero--feature .loa-feature p:last-of-type { margin-bottom: calc(26px * var(--gap)); }

.loa-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(12px * var(--gap));
  margin-top: 0;
}
.loa-feature-actions .btn {
  font-size: calc(15px * var(--fit));
  padding: calc(15px * var(--gap)) calc(24px * var(--fit));
}

/* Narrow: the pair stacks, "See More Websites" sitting above. */
@media (max-width: 860px) {
  .loa-feature-actions { flex-direction: column; align-items: stretch; }
}

/* ---- the agency card, now leading the green intro band ----------------- */

/* styles.css only makes .hero-copy a card at 1400px and up; here it is one at
   every width, sitting on the green band rather than the hero. */
.intro .intro-card {
  width: min(1080px, 100%);
  margin: 0 auto clamp(38px, 4vw, 62px);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 28px 54px -20px rgba(0, 0, 0, 0.35);
  padding: clamp(28px, 3vw, 46px) clamp(24px, 3.4vw, 58px);
  text-align: center;
  display: block;
}
.intro .intro-card h1 {
  font-size: clamp(26px, 2.7vw, 38px);
  margin-bottom: 14px;
  /* .intro sets a light colour for the green band; on this white card the
     heading has to go back to the hero's green or it reads as invisible. */
  color: var(--forest);
}
.intro .intro-card p.lede {
  max-width: 74ch;
  margin: 0 auto;
  color: var(--ink-700);
}
.intro-card-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(22px, 2.2vw, 32px);
}

/* ---- "open in a new tab", where a browser would put it ------------------ */

.kiosk-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: 8px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--ink-400);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.kiosk-open:hover { color: var(--accent-strong); border-color: var(--accent); }
.kiosk-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


