/* ==========================================================================
   Scotty Inu — launch.css
   Page styles for the two-page launch site: the stage (landing) and the
   booking page. Everything here assumes scotty.css is already loaded.
   ========================================================================== */

/* ==========================================================================
   1. THE STAGE — landing page
   ========================================================================== */
.stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.stage__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Bottom padding leaves room for the mascot without pushing the page into
     a scroll on a laptop screen. */
  padding: clamp(3rem, 9vh, 6rem) var(--gut) clamp(4rem, 11vh, 7rem);
  gap: 0;
}

/* ---- Print register frame ---- */
.register {
  position: fixed; inset: clamp(14px, 2.2vw, 26px);
  border: 1px solid rgba(22,19,15,.13);
  pointer-events: none; z-index: 3;
}
.register__tick { position: absolute; width: 13px; height: 13px; }
.register__tick::before,
.register__tick::after {
  content: ''; position: absolute; background: var(--sage);
}
.register__tick::before { width: 13px; height: 1.5px; top: 0; }
.register__tick::after  { width: 1.5px; height: 13px; left: 0; }
.register__tick--tl { top: -1px; left: -1px; }
.register__tick--tr { top: -1px; right: -1px; transform: scaleX(-1); }
.register__tick--bl { bottom: -1px; left: -1px; transform: scaleY(-1); }
.register__tick--br { bottom: -1px; right: -1px; transform: scale(-1); }

@media (max-width: 560px) { .register { inset: 10px; } }

/* ---- Kicker ---- */
.stage__kicker {
  margin-bottom: clamp(2rem, 5vh, 3.25rem);
  font-size: .68rem;
  letter-spacing: .26em;
}
.dot { opacity: .5; padding-inline: .35em; }

/* ---- Wordmark ----
   The logo PNG already carries a pale outline, which reads as a soft
   letterpress edge against bone. A very low, very wide drop shadow under it
   lifts it off the sheet without turning into a glow. */
.mark {
  width: min(78vw, 680px);
  margin-bottom: clamp(1.5rem, 4vh, 2.75rem);
}
.mark img {
  width: 100%;
  /* The swoosh is solid ink now, so it needs only the faintest lift off the
     sheet — a heavier shadow would read as a sticker. */
  filter: drop-shadow(0 10px 20px rgba(64,48,36,.12));
}

/* ---- Tagline ---- */
.stage__tag {
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  color: var(--ink-2);
  max-width: 30ch;
  margin: 0 0 clamp(2.75rem, 7vh, 4.5rem);
  line-height: 1.45;
}

/* ---- Big links ---- */
.stage__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 7vw, 5rem);
  margin-bottom: clamp(3rem, 8vh, 5rem);
}
.stage__sep {
  width: 1px; height: clamp(26px, 4vw, 40px);
  background: var(--line-2);
  transform: skewX(var(--skew));
}

/* ---- Social ---- */
.stage__social .eyebrow { margin-bottom: .85rem; font-size: .66rem; letter-spacing: .24em; }
.social {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: .5rem; justify-content: center;
}
.social a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: all var(--t-fast) var(--ease);
}
.social a:hover {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ---- Mascot ----
   Sits inside the register frame, not across it, so the printed border stays
   unbroken. He is the one warm, hand-drawn thing on an otherwise austere page. */
.peek {
  position: fixed;
  right: clamp(26px, 4vw, 68px);
  bottom: clamp(24px, 3.2vw, 40px);
  width: clamp(84px, 11vw, 160px);
  z-index: 2;
  pointer-events: none;
  opacity: .95;
  animation: drift 9s var(--ease) infinite;
}
.peek img { filter: drop-shadow(0 10px 18px rgba(64,48,36,.16)); }

@keyframes drift {
  0%, 100% { transform: translateY(0)   rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(-1.6deg); }
}
@media (prefers-reduced-motion: reduce) { .peek { animation: none; } }

/* On a phone the footer line runs the full width, so the mascot lifts clear
   of it rather than sitting on top of the type. */
@media (max-width: 600px) {
  .peek { width: 78px; right: 18px; bottom: 74px; opacity: .9; }
}

/* ---- Footer ---- */
.stage__foot {
  padding: 0 var(--gut) clamp(1.5rem, 4vh, 2.5rem);
  text-align: center;
}
.stage__foot p {
  font-family: var(--ff-ui);
  font-size: .72rem;
  letter-spacing: .09em;
  color: var(--ink-3);
  margin: 0;
}

/* ==========================================================================
   2. BOOKING PAGE
   ========================================================================== */
.bk { padding-bottom: clamp(4rem, 10vw, 7rem); }

/* ---- Slim top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(242,235,229,.88);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__in {
  max-width: var(--wrap); margin-inline: auto;
  padding: .85rem var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar__logo { display: block; width: clamp(112px, 17vw, 158px); }
.topbar__logo img { width: 100%; }
.topbar__back {
  font-family: var(--ff-ui); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: color var(--t-fast) var(--ease);
}
.topbar__back:hover { color: var(--ink); }
.topbar__back svg { flex: 0 0 auto; }

/* ---- Header ---- */
.bk__head {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.bk__head .h1 { margin-bottom: 1.1rem; }
.bk__head .lead { max-width: 46ch; margin-inline: auto; }

/* One measure for the whole page, so the header, the policy row and the form
   all share a left and right edge. The form itself is held narrower inside it,
   because a form is read in a single column. */
.bkwrap { max-width: 1060px; }
.bkwrap .form,
.bkwrap .done,
.bkwrap .formmsg { max-width: 840px; margin-inline: auto; }

/* ---- Policy cards ---- */
.policies {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
@media (max-width: 880px) { .policies { grid-template-columns: 1fr; } }
.policy {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem 1.5rem;
}
.policy h3 {
  font-size: 1rem; letter-spacing: .07em;
  margin-bottom: .85rem; color: var(--ink);
}
.policy h3 .lean { transform: skewX(var(--skew)); }
.policy p { font-size: .95rem; line-height: 1.6; color: var(--ink-2); margin-bottom: .8rem; }
.policy p:last-child { margin-bottom: 0; }
.policy__num {
  display: block;
  font-family: var(--ff-display);
  font-size: 2.1rem; line-height: 1;
  color: var(--sage);
  margin-bottom: .6rem;
  transform: skewX(var(--skew));
  transform-origin: 0 100%;
}

/* ---- Form shell ---- */
.form {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 30px 60px -44px rgba(64,48,36,.5);
}

.fset { border: 0; margin: 0 0 2.5rem; padding: 0; }
.fset:last-of-type { margin-bottom: 1.75rem; }
.fset__head {
  display: flex; align-items: baseline; gap: .9rem;
  margin-bottom: 1.5rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--line);
}
.fset__n {
  font-family: var(--ff-display);
  font-size: .95rem; color: var(--sage-ink);
  letter-spacing: .1em;
  flex: 0 0 auto;
}
.fset__t {
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 2.3vw, 1.5rem);
  letter-spacing: .03em; text-transform: uppercase;
  margin: 0;
}

.grid-2 { display: grid; gap: 0 1.25rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.hint {
  font-family: var(--ff-ui); font-size: .82rem;
  color: var(--ink-3); margin: .45rem 0 0;
}

/* ---- Submit row ---- */
.submit-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.submit-row .btn { padding-inline: 2.5rem; }
.submit-note {
  font-family: var(--ff-ui); font-size: .82rem;
  color: var(--ink-3); margin: 0; flex: 1 1 16rem;
}

/* Spinner shown while the request is in flight */
.btn .spin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(244,239,233,.35);
  border-top-color: var(--ink-inv);
  animation: spin .7s linear infinite;
  display: none;
}
.btn.is-busy .spin { display: block; }
.btn.is-busy { pointer-events: none; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Form-level status ---- */
.formmsg {
  display: none;
  border-radius: var(--r-md);
  padding: 1rem 1.15rem;
  font-family: var(--ff-ui); font-size: .92rem;
  margin-bottom: 1.5rem;
}
.formmsg.is-on { display: block; }
.formmsg--err { background: rgba(154,59,46,.09); border: 1px solid rgba(154,59,46,.32); color: #7d2f23; }
.formmsg--warn { background: var(--sage-tint); border: 1px solid var(--sage-ring); color: var(--sage-deep); }

/* ---- Success panel ---- */
.done {
  display: none;
  text-align: center;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 30px 60px -44px rgba(64,48,36,.5);
}
.done.is-on { display: block; }
.done__mark {
  width: 62px; height: 62px; margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage-deep); color: #f4f6f1;
}
.done .h2 { margin-bottom: 1rem; }
.done p { max-width: 44ch; margin-inline: auto; color: var(--ink-2); }
.done__next {
  list-style: none; margin: 2rem auto 0; padding: 0;
  max-width: 34rem; text-align: left;
}
.done__next li {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: .85rem 0; border-top: 1px solid var(--line);
  font-family: var(--ff-ui); font-size: .92rem; color: var(--ink-2);
}
.done__next li b {
  font-family: var(--ff-display); font-weight: 400;
  color: var(--sage-ink); flex: 0 0 auto;
}

/* ---- Footer ---- */
.bkfoot {
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-block: 2rem;
  text-align: center;
}
.bkfoot p {
  font-family: var(--ff-ui); font-size: .78rem;
  letter-spacing: .08em; color: var(--ink-3); margin: 0 0 .6rem;
}
.bkfoot a { color: var(--ink-2); }
