/* ============================================================
   BOOTH SKIN
   Loaded after ecoko.css. It only adds the booth chrome — the
   attract screen, the finish form, the thank-you — and trims the
   things a kiosk should not have.
   ============================================================ */

/* no menu, no footer, no way off the page */
.booth-bar .enav-in { justify-content: space-between; gap: 16px; }
.booth-bar .elock { cursor: default; user-select: none; -webkit-user-select: none; }
.booth-ev {
  flex: 1; text-align: center; min-width: 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--slate);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#startOver { flex: none; }
#startOver svg { width: 15px; height: 15px; }

/* the builder loses its page header — the attract screen does that job */
.page-booth .bhead { display: none; }
.page-booth .bbuild { padding-top: 22px; }
/* a kiosk never scrolls to a dead end */
.page-booth { overscroll-behavior-y: none; }

/* ---------------- the attract screen ---------------- */
.welcome {
  position: fixed; inset: 0; z-index: 90; overflow: hidden;
  display: grid; place-items: center; padding: 32px 24px;
  background:
    radial-gradient(120% 90% at 50% 0%, #174a3d 0%, #0d322a 55%, #0a2620 100%);
  animation: wfade 0.35s ease;
}
@keyframes wfade { from { opacity: 0; } to { opacity: 1; } }

/* Two slow lights behind the type. A screen that never moves reads as
   a broken one from across an aisle; this is barely perceptible up
   close and enough to say "awake" at ten paces. */
.welcome-aura { position: absolute; inset: 0; pointer-events: none; }
.welcome-aura i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(80px); opacity: 0.5;
}
.welcome-aura i:nth-child(1) {
  width: 46vw; height: 46vw; left: -8vw; top: -13vw;
  background: #1f6b53; animation: drift1 19s ease-in-out infinite;
}
.welcome-aura i:nth-child(2) {
  width: 34vw; height: 34vw; right: -6vw; bottom: -11vw;
  background: #8a5f12; animation: drift2 23s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(5vw, 4vw, 0) scale(1.12); }
}
@keyframes drift2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-5vw, -3vw, 0) scale(1.1); }
}

.welcome-in { position: relative; max-width: 660px; text-align: center; }

/* The bar behind is covered, so the attract screen carries the mark
   itself — an idle booth should still say whose booth it is. */
.welcome-mark {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--sand); margin-bottom: 30px;
}
.welcome-mark .mark { width: 34px; height: 34px; flex: none; }
.welcome-mark .wm {
  font-family: var(--display); font-size: 23px; font-weight: 700;
  letter-spacing: -0.04em; color: var(--sand);
}
.welcome-mark .wm b { color: var(--amber); font-weight: 700; }

.welcome h1 {
  font-size: clamp(40px, 7.4vw, 72px); line-height: 1.0; letter-spacing: -0.05em;
  color: var(--sand); margin: 0; text-wrap: balance;
}
.welcome .lede {
  font-size: clamp(15px, 2.1vw, 18.5px); line-height: 1.6; margin: 20px auto 0;
  color: rgba(247,245,237,0.72); max-width: 500px; text-wrap: pretty;
}
.btn-big {
  margin-top: 34px; padding: 18px 34px; font-size: 17.5px; border-radius: 999px;
  animation: breathe 3.6s ease-in-out infinite;
}
.btn-big svg { width: 19px; height: 19px; }
/* an invitation to touch, not a flash */
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244,166,42,0.34); }
  70%      { box-shadow: 0 0 0 18px rgba(244,166,42,0); }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-aura i, .btn-big { animation: none; }
}

/* ---------------- the finish form ---------------- */
.finish { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; }
.finish-veil { position: absolute; inset: 0; background: rgba(8,30,24,0.72); backdrop-filter: blur(3px); }
.finish-box {
  position: relative; width: min(620px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--sand); border-radius: 24px; padding: 30px 32px 26px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.42);
  animation: fpop 0.26s cubic-bezier(0.22,1,0.36,1);
}
@keyframes fpop { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
.finish-x {
  position: absolute; top: 14px; right: 16px; width: 36px; height: 36px;
  border: 0; background: transparent; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--slate); border-radius: 50%;
}
.finish-x:hover { background: rgba(15,61,50,0.07); color: var(--forest); }
.finish-box h2 {
  font-size: 29px; letter-spacing: -0.04em; color: var(--forest); margin: 8px 0 0;
}
.finish-sub { font-size: 14px; line-height: 1.55; color: var(--slate); margin: 8px 0 0; }

.ffields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.ff { display: block; min-width: 0; }
.ff-wide { grid-column: 1 / -1; }
.ff > span {
  display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 6px;
}
.ff > span i { font-style: normal; color: var(--clay, #8a3c28); margin-left: 3px; }
.ff input, .ff textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--forest);
  background: #fff; border: 1px solid var(--hair); border-radius: 12px;
  padding: 13px 14px; outline: none; resize: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.ff input:focus, .ff textarea:focus {
  border-color: var(--sage); box-shadow: 0 0 0 3px rgba(31,93,76,0.12);
}
.ff input.bad { border-color: #b8553c; box-shadow: 0 0 0 3px rgba(184,85,60,0.12); }
.ferr {
  margin: 14px 0 0; font-size: 13px; color: #8a3c28;
  background: #FBEDE8; border-radius: 10px; padding: 10px 13px;
}
.facts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

/* ---------------- the thank-you ---------------- */
.thanks {
  position: fixed; inset: 0; z-index: 96; display: grid; place-items: center;
  padding: 32px; text-align: center;
  background: radial-gradient(120% 90% at 50% 10%, #174a3d 0%, #0d322a 60%, #0a2620 100%);
  animation: wfade 0.3s ease;
}
.thanks-tick {
  width: 56px; height: 56px; color: var(--leaf);
  background: rgba(167,196,143,0.12); border-radius: 50%; padding: 13px;
}
.thanks h2 {
  font-size: clamp(32px, 6vw, 52px); letter-spacing: -0.045em;
  color: var(--sand); margin: 20px 0 0;
}
.thanks p { font-size: 16.5px; color: rgba(247,245,237,0.74); margin: 12px 0 0; }
.thanks-next {
  font-family: var(--mono) !important; font-size: 10.5px !important;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(247,245,237,0.4) !important; margin-top: 26px !important;
}

@media (max-width: 620px) {
  .ffields { grid-template-columns: 1fr; }
  .finish-box { padding: 26px 20px 22px; border-radius: 20px; }
  .facts .btn { flex: 1; justify-content: center; }
  .booth-ev { display: none; }
}

/* ---------------- "preview my build" ----------------
   Sits in the dark summary bar next to "I'm done", so it needs the
   light-on-dark outline the sand-coloured .btn-outline cannot give. */
.btn-ghost {
  background: transparent; color: rgba(247,245,237,0.9);
  border: 1px solid rgba(247,245,237,0.32);
}
.btn-ghost:hover { border-color: var(--leaf); color: var(--leaf); }

/* ---------------- the review sheet ----------------
   The last look before anyone is asked for an email address: both
   screens, every row they turned on, nothing to tap by accident. */
.review { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; }
.review-box {
  position: relative; width: min(820px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--sand); border-radius: 24px; padding: 30px 32px 26px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.42);
  animation: fpop 0.26s cubic-bezier(0.22,1,0.36,1);
  overscroll-behavior: contain;
}
.review-box h2 {
  font-size: 28px; letter-spacing: -0.04em; color: var(--forest); margin: 8px 0 0;
}
.review-box h2 span { color: var(--sage); }

.rsum {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--hair); border: 1px solid var(--hair); border-radius: 14px;
  overflow: hidden; margin-top: 20px;
}
.rsum > div { background: var(--sand-2); padding: 12px 14px; }
.rsum span {
  display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 5px;
}
.rsum b {
  font-family: var(--display); font-size: 17px; letter-spacing: -0.03em;
  color: var(--forest); font-weight: 700;
}

.rcols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px; margin-top: 22px;
}
.rcol h3 {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--hair);
  font-family: var(--mono); font-size: 9.5px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest);
}
.rcol h3 span { color: var(--sage); font-size: 13px; font-family: var(--display); font-weight: 700; }
.rcol ul { list-style: none; margin: 0; padding: 0; }
.rcol li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 13.5px; line-height: 1.35; color: var(--forest);
  padding: 7px 0; border-bottom: 1px solid rgba(15,61,50,0.07);
}
.rcol li em {
  flex: none; font-style: normal; font-family: var(--mono); font-size: 8.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage);
}
.rcol li.r-none { color: var(--slate); border-bottom: 0; }
.rnote { margin: 16px 0 0; font-size: 12px; color: var(--slate); }
.rnote em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------------- the demo calendar ----------------
   Real dates on tiles, grouped under a month so no tile repeats it.
   Then AM or PM — a booth cannot hold someone long enough to agree
   on 2:30, and the team confirms the exact slot by email anyway. */
.ffset { border: 0; padding: 0; margin: 4px 0 0; min-width: 0; }
.ffset legend {
  padding: 0; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 8px;
}

/* A proper month grid: Monday down the left, one square per day, the
   days we cannot take greyed in place. A hole where the 25th should
   be makes a visitor hunt for it; a closed 25th explains itself. */
.cal {
  background: #fff; border: 1px solid var(--hair); border-radius: 16px;
  padding: 10px 12px 12px;
}
.cal-top { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.cal-mo {
  flex: 1; margin: 0; text-align: center;
  font-family: var(--display); font-size: 15.5px; font-weight: 700;
  letter-spacing: -0.025em; color: var(--forest);
}
.calnav {
  flex: none; width: 34px; height: 34px; padding: 0; cursor: pointer;
  font: inherit; font-size: 19px; line-height: 1; color: var(--forest);
  background: transparent; border: 1px solid var(--hair); border-radius: 50%;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.calnav:hover:not(:disabled) { background: rgba(15,61,50,0.06); border-color: var(--sage); }
.calnav:disabled { opacity: 0.26; cursor: default; }

.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-dow span {
  text-align: center; font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.1em; color: var(--slate);
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calpad { display: block; }

.calday {
  display: flex; align-items: center; justify-content: center;
  height: 38px; padding: 0; line-height: 1;
  font-family: var(--display); font-size: 15px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--forest);
  background: transparent; border: 1px solid transparent; border-radius: 10px;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
button.calday { cursor: pointer; }
button.calday:hover { background: rgba(15,61,50,0.06); border-color: var(--sage); }
.calday.on { background: var(--forest); border-color: var(--forest); color: var(--sand); }

.calday.off { color: rgba(107,111,107,0.4); cursor: default; }
.calday.hol { position: relative; color: rgba(107,111,107,0.62); }
.calday.hol::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--amber);
}
.cal-key { margin: 9px 2px 0; font-size: 11px; color: var(--slate); }

.calhalf { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.calhalf-q {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--slate); margin-right: 2px;
}
.chip {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--forest); cursor: pointer;
  background: #fff; border: 1px solid var(--hair); border-radius: 999px;
  padding: 9px 18px; letter-spacing: 0.02em;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.chip:hover { border-color: var(--sage); }
.chip.on { background: var(--forest); border-color: var(--forest); color: var(--sand); }
.calpick {
  flex: 1 1 100%; font-size: 12.5px; color: var(--sage); font-weight: 600;
}

.calskip {
  display: inline-block; margin-top: 12px; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--slate);
  background: transparent; border: 0; border-bottom: 1px solid var(--hair);
  padding: 2px 0;
}
.calskip:hover { color: var(--forest); border-bottom-color: var(--forest); }
.calskip.on { color: var(--forest); font-weight: 600; border-bottom-color: var(--forest); }

@media (max-width: 760px) {
  .rsum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rcols { grid-template-columns: 1fr; gap: 18px; }
  .review-box { padding: 26px 20px 22px; border-radius: 20px; }
}
@media (max-width: 620px) {
  .review-box .facts .btn { flex: 1; justify-content: center; }
}

/* A touch screen gets a bigger target on everything tappable here. */
@media (hover: none) {
  .chip { padding: 12px 22px; }
  .calday { height: 44px; font-size: 16px; }
  .calnav { width: 40px; height: 40px; }
}

/* ---------------- the summary bar, with two buttons in it ----------------
   Adding "Preview build" beside "I'm done" pushed the bar onto a
   second row on a 1024pt iPad, which ate a third of the screen.
   The amber "N add-ons on top" chip was the thing to lose: the bar
   already carries an ADD-ONS count two blocks to its left. */
.sumbar { gap: 8px 16px; padding: 10px 16px; }
.sumbar .warn { display: none; }
.sumbar .btn { padding: 11px 17px; font-size: 14px; }

@media (max-width: 1100px) {
  /* Members is on the slider directly above; the bar can let it go. */
  .sumbar .sblk:nth-of-type(3) { display: none; }
}
@media (max-width: 880px) {
  .sumbar .sblk:nth-of-type(2) { display: none; }   /* "Starting from" */
}

/* A row pulled in by a dependency is not a row they picked, and the
   review has to say which is which or the free base looks bigger
   than it is. */
.rcol li em.r-addon   { color: var(--sage); }
.rcol li em.r-comeswith { color: var(--slate); }

/* ---------------- keep the action row in view ----------------
   The calendar pushed "Save my build" 75px below the fold on a
   1024x768 iPad. A submit button you have to find by scrolling is a
   dropped lead, so both sheets pin their buttons to the bottom and
   let the content scroll underneath. */
.finish-box, .review-box { padding-bottom: 0; }
.finish-box .facts, .review-box .facts {
  position: sticky; bottom: 0; z-index: 2;
  margin-top: 20px; padding: 14px 0 18px;
  background: var(--sand);
  box-shadow: 0 -10px 16px -10px rgba(15,61,50,0.18);
}

/* ---------------- the camera ----------------
   The two screens are photographed for the email from here. It must
   be rendered — not display:none — or there is nothing to photograph,
   so it is parked off the left edge instead. --fit is forced to 1:
   the on-screen preview shrinks itself to the pane it sits in, and a
   photograph should be the device at its natural size. */
.shotpen {
  position: fixed; left: -12000px; top: 0; z-index: -1;
  pointer-events: none; opacity: 1;
}
.shotpen .shot { --fit: 1; transform: none; height: auto; }
.shotpen .handset { width: 330px; }   /* .ephone's own width — no gutter */
.shotpen .desktop { width: 760px; }

/* The drop shadow falls outside the device and photographs as a grey
   smudge in the corner of the picture. */
.shotpen .ephone, .shotpen .dwin { box-shadow: none; }

/* On the stand the browser's bottom chrome is deliberately sliced by
   the edge of the screen, which reads as "this bar carries on". In a
   still picture it just reads as a bad crop, so the preview ends on
   the app's own tab bar and the bezel keeps its rounded corners. */
.shotpen .pbot { display: none; }

