/* Vizanam: the public site (front page, ordering, the terms). Same paper,
   jade and lantern gold as the form, with room to breathe on a wide screen. */

@font-face {
  font-family: 'Secular One';
  src: url('fonts/secular-one-hebrew.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: 'Secular One';
  src: url('fonts/secular-one-latin.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2605;
}

@font-face {
  font-family: 'Assistant';
  src: url('fonts/assistant-hebrew.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: 'Assistant';
  src: url('fonts/assistant-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --page: #faf4e8;
  --surface: #fffdf8;
  --sunken: #f3ead8;
  --text: #1c2a2d;
  --muted: #55615f;
  --line: #e2d8c4;
  --accent: #0f7b6c;
  --accent-strong: #0a5c51;
  --accent-text: #ffffff;
  --accent-soft: #dcf0e9;
  --lantern: #f2a93b;
  --lantern-soft: #fdeecf;
  --lantern-text: #7a4a00;
  --coral: #b5381f;
  --danger: #b3261e;
  --night: #0d2a36;
  --on-night: #fff6e2;
  --shadow: 0 1px 2px #3a2a0a12, 0 14px 36px #3a2a0a14;
  --display: 'Secular One', 'Assistant', 'Segoe UI', Arial, sans-serif;
  --body: 'Assistant', 'Segoe UI', 'Heebo', system-ui, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.5, 0.5, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d181c;
    --surface: #15252a;
    --sunken: #101e22;
    --text: #eef1ea;
    --muted: #a3b4b1;
    --line: #2a3d41;
    --accent: #4cc9b0;
    --accent-strong: #7fdcc8;
    --accent-text: #05211b;
    --accent-soft: #123a35;
    --lantern: #f6b955;
    --lantern-soft: #3a2c10;
    --lantern-text: #f6c877;
    --coral: #ff8f76;
    --danger: #ff8a80;
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 500 1.125rem/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Things that fly in from the side must not make the page scroll sideways. */
main {
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

.narrow {
  max-width: 780px;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 20;
  padding: 8px 14px;
  color: var(--accent-text);
  background: var(--accent);
  border-radius: 10px;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--lantern) 80%, transparent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- top bar --- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: calc(12px + env(safe-area-inset-top)) max(22px, calc((100vw - 1120px) / 2 + 22px)) 12px;
  color: var(--on-night);
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

/* Over the sky the bar is clear; once the page has moved, or on a page with no sky, it is solid. */
.nav.solid,
body:not(.home) .nav {
  background: color-mix(in srgb, var(--night) 94%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px #0d2a3640;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  color: inherit;
  text-decoration: none;
}

.mark {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 4px 10px #0006);
  animation: mark-in 0.7s var(--spring) both;
}

.wordmark {
  font: 1.6rem/1 var(--display);
}

.wordmark b {
  font-weight: inherit;
  color: #ffc45e;
}

.nav-links {
  display: none;
  gap: 26px;
}

.nav-links a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (min-width: 820px) {
  .nav-links {
    display: flex;
  }
}

/* --- buttons --- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 30px;
  font: 800 1.15rem/1.2 var(--body);
  color: #06211c;
  text-decoration: none;
  background: linear-gradient(160deg, #ffd27d, #f2a93b 60%);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 26px #f2a93b55, inset 0 1px 0 #fff8;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s, filter 0.2s;
}

.button::after {
  content: '←';
  transition: transform 0.25s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px #f2a93b70, inset 0 1px 0 #fff8;
}

.button:hover::after {
  transform: translateX(-5px);
}

.button:active {
  transform: scale(0.98);
}

.button.small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 1rem;
  border-radius: 14px;
}

.button.small::after {
  content: none;
}

.button.wide {
  width: 100%;
}

.button:disabled {
  filter: saturate(0.4);
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* --- the sky at the top of the front page --- */

.hero {
  position: relative;
  min-height: min(100svh, 780px);
  overflow: hidden;
  color: var(--on-night);
  background: var(--night);
}

/* The scene sits on the floor of the section at its own proportions; above it the sky simply carries on. */
.scene {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  min-width: 720px;
  height: auto;
  overflow: visible;
  transform: translateX(-50%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(118px + env(safe-area-inset-top)) 22px 0;
}

.eyebrow {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffd27d;
  animation: rise 0.7s var(--ease) 0.1s both;
}

h1 {
  margin-top: 10px;
  font: clamp(2.6rem, 8vw, 4.6rem) / 1.05 var(--display);
  text-wrap: balance;
  text-shadow: 0 4px 30px #0a222c;
  animation: rise 0.8s var(--ease) 0.2s both;
}

.lead {
  max-width: 30em;
  margin-top: 16px;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 600;
  text-shadow: 0 2px 16px #0a222c;
  animation: rise 0.8s var(--ease) 0.32s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 28px;
  animation: rise 0.8s var(--ease) 0.44s both;
}

.price-tag {
  font-weight: 700;
  text-shadow: 0 2px 12px #0a222c;
}

.price-tag strong {
  font: 1.5rem var(--display);
  color: #ffd27d;
}

.star {
  animation: twinkle 3.4s ease-in-out infinite;
}

.star:nth-child(2n) {
  animation-delay: 1.2s;
}

.star:nth-child(3n) {
  animation-delay: 2.1s;
}

.sun-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: breathe 6s ease-in-out infinite;
}

.karst-far {
  animation: drift 26s ease-in-out infinite alternate;
}

.ripple {
  stroke-dasharray: 16 14;
  animation: flow 4.5s linear infinite;
}

.ripple.r2 {
  animation-duration: 6s;
}

.ripple.r3 {
  animation-duration: 3.6s;
}

/* The junk crosses the bay, over and over. */
.sailing {
  animation: sail 80s linear infinite;
}

.boat-bob {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: bob 3.8s ease-in-out infinite;
}

.lantern-fly {
  opacity: 0;
  animation: fly 15s linear infinite;
}

.lantern-fly.l2 {
  animation-duration: 19s;
  animation-delay: 3s;
}

.lantern-fly.l3 {
  animation-duration: 13s;
  animation-delay: 6s;
}

.lantern-fly.l4 {
  animation-duration: 21s;
  animation-delay: 1.5s;
}

.lantern-fly.l5 {
  animation-duration: 16s;
  animation-delay: 8s;
}

.lantern-fly.l6 {
  animation-duration: 18s;
  animation-delay: 10s;
}

.lantern-glow {
  animation: flicker 2.6s ease-in-out infinite;
}

@keyframes sail {
  from {
    transform: translateX(440px);
  }
  to {
    transform: translateX(-60px);
  }
}

@keyframes twinkle {
  50% {
    opacity: 0.25;
  }
}

@keyframes breathe {
  50% {
    transform: scale(1.12);
    opacity: 0.8;
  }
}

@keyframes drift {
  to {
    transform: translateX(-7px);
  }
}

@keyframes flow {
  to {
    stroke-dashoffset: -60;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1.6deg);
  }
  50% {
    transform: translateY(1.6px) rotate(1.8deg);
  }
}

@keyframes fly {
  0% {
    transform: translate(0, 26px);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  50% {
    transform: translate(9px, -90px);
  }
  85% {
    opacity: 0.9;
  }
  100% {
    transform: translate(-7px, -210px);
    opacity: 0;
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.24;
  }
  40% {
    opacity: 0.42;
  }
  60% {
    opacity: 0.2;
  }
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-18deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* --- parts that arrive as the page is scrolled --- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--order, 0) * 90ms);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* --- the strip of facts under the sky --- */

.facts {
  position: relative;
  z-index: 2;
  margin-top: -44px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 820px) {
  .facts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.fact {
  padding: 16px 14px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.fact strong {
  display: block;
  font: 1.55rem/1.2 var(--display);
  color: var(--accent-strong);
}

.fact span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

/* --- sections --- */

.section {
  padding: clamp(64px, 10vw, 112px) 0;
}

.tinted {
  background: var(--sunken);
}

.kicker {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--coral);
}

h2 {
  margin-top: 6px;
  font: clamp(1.9rem, 5vw, 2.9rem) / 1.12 var(--display);
  text-wrap: balance;
}

h3 {
  font: 1.25rem/1.25 var(--display);
}

.icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The four steps hang on one line, like lanterns on a string. */
.steps {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .steps::before {
    content: '';
    position: absolute;
    inset: 22px 8% auto;
    border-top: 2px dashed var(--lantern);
    opacity: 0.6;
  }
}

.step {
  position: relative;
  padding: 58px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.step-number {
  position: absolute;
  top: 0;
  inset-inline-start: 22px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font: 1.3rem var(--display);
  color: #3a2400;
  background: linear-gradient(160deg, #ffd27d, #f2a93b);
  border-radius: 12px 12px 16px 16px;
  box-shadow: 0 0 22px #f2a93b88;
  transform: translateY(-2px);
}

.step .icon {
  position: absolute;
  top: 12px;
  inset-inline-end: 20px;
  opacity: 0.85;
}

.step h3 {
  margin-bottom: 6px;
}

.step p,
.card p {
  color: var(--muted);
}

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

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 340px 1fr;
    gap: 72px;
  }
}

.phone {
  width: min(300px, 78vw);
  margin: 0 auto;
  padding: 10px;
  background: #10202a;
  border-radius: 44px;
  box-shadow: 0 30px 60px #0d2a3655, inset 0 0 0 2px #2a4450;
  transform: rotate(-3deg);
}

.js .phone.reveal {
  transform: translateY(40px) rotate(-8deg);
}

.js .phone.reveal.in {
  transform: rotate(-3deg);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
}

.ticks {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-inline-start: 42px;
  color: var(--muted);
}

.ticks strong {
  color: var(--text);
}

.ticks li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-text);
  background: var(--accent);
  border-radius: 50%;
}

/* --- price --- */

.price-layout {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .price-layout {
    grid-template-columns: 1fr 420px;
    gap: 72px;
  }
}

.price-copy > p:not(.kicker) {
  margin-top: 14px;
  color: var(--muted);
}

.price-copy h3 {
  margin-top: 30px;
}

.plain {
  margin-top: 10px;
  padding-inline-start: 22px;
  color: var(--muted);
}

.plain li + li {
  margin-top: 6px;
}

.ticket {
  position: relative;
  padding: 34px 28px 28px;
  background: var(--surface);
  border: 2px dashed color-mix(in srgb, var(--lantern) 70%, var(--line));
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.ticket-stamp {
  position: absolute;
  top: -34px;
  inset-inline-end: -8px;
  width: 124px;
  height: 124px;
  color: var(--coral);
  transform: rotate(12deg);
}

.js .ticket.reveal .ticket-stamp {
  opacity: 0;
  transform: scale(2.4) rotate(34deg);
}

.js .ticket.reveal.in .ticket-stamp {
  opacity: 0.92;
  transform: rotate(12deg);
  transition: opacity 0.2s 0.5s, transform 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.5s;
}

.ticket-stamp svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.stamp-ring {
  font: 700 9.4px var(--body);
  letter-spacing: 0.16em;
}

.stamp-word {
  font: 17px var(--display);
}

.ticket-label {
  font-weight: 800;
  color: var(--muted);
}

.ticket-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 2px;
}

.ticket-price strong {
  font: 5.2rem/1 var(--display);
  color: var(--accent-strong);
}

.ticket-price span {
  font-size: 1.3rem;
  font-weight: 800;
}

.ticket-also {
  margin-top: 6px;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--lantern-text);
  background: var(--lantern-soft);
  border-radius: 12px;
}

.included {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px dashed var(--line);
}

.included li {
  position: relative;
  padding-inline-start: 30px;
  font-weight: 600;
}

.included li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  font-weight: 800;
  color: var(--accent);
}

.fine {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

/* --- cards --- */

.cards {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

@media (min-width: 820px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 12px 0 6px;
}

/* --- questions --- */

.faq {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq details[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.faq summary {
  position: relative;
  padding: 18px 20px;
  padding-inline-end: 54px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  inset-inline-end: 18px;
  top: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 20px 20px;
  color: var(--muted);
  animation: rise 0.35s var(--ease) both;
}

/* --- the last call, and the foot of the page --- */

.closing {
  padding: clamp(64px, 10vw, 104px) 0;
  text-align: center;
  color: var(--on-night);
  background: radial-gradient(120% 140% at 50% 120%, #d9884a 0%, #1c5560 46%, var(--night) 82%);
}

.closing p {
  margin: 10px 0 28px;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer {
  padding: 44px 0 calc(40px + env(safe-area-inset-bottom));
  color: #c9d6d3;
  background: #081c25;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }
}

.footer .wordmark {
  margin-bottom: 10px;
  color: var(--on-night);
}

.footer nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer a {
  color: #e6efec;
}

.footer address {
  display: grid;
  gap: 4px;
  align-content: start;
  font-style: normal;
}

.footer address strong {
  color: var(--on-night);
}

/* --- inner pages: ordering and the terms --- */

.page {
  padding: calc(104px + env(safe-area-inset-top)) 0 72px;
}

.page h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  text-shadow: none;
}

.page .lead {
  color: var(--muted);
  text-shadow: none;
}

.prose {
  margin-top: 28px;
  padding: clamp(22px, 5vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.prose h2 {
  margin-top: 34px;
  font-size: 1.4rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul,
.prose ol {
  margin-top: 10px;
}

.prose ul,
.prose ol {
  padding-inline-start: 24px;
}

.prose li + li {
  margin-top: 6px;
}

.prose address {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px 16px;
  font-style: normal;
  background: var(--sunken);
  border-radius: 14px;
}

.updated {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- ordering --- */

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}

@media (min-width: 900px) {
  .order-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 36px;
  }
}

.order-side {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .order-side {
    position: sticky;
    top: 92px;
  }
}

.panel {
  padding: clamp(20px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  animation: rise 0.6s var(--ease) both;
}

.panel + .panel,
.order-side .panel {
  animation-delay: 0.1s;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.panel > h2 + .field {
  margin-top: 0;
}

.field {
  margin-top: 22px;
}

.field label,
.label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  line-height: 1.35;
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

input:not([type='checkbox']) {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  color: inherit;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.15s, box-shadow 0.2s;
}

input[dir='ltr'] {
  text-align: left;
}

input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.invalid input {
  border-color: var(--danger);
}

.error {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--danger);
}

.error:empty {
  display: none;
}

.stepper {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  text-align: center;
  background: var(--sunken);
  border: 1.5px solid var(--line);
  border-radius: 18px;
}

.stepper button {
  height: 60px;
  font: 1.9rem/1 var(--body);
  color: var(--accent-strong);
  background: none;
  border: 0;
  cursor: pointer;
}

.stepper button:disabled {
  opacity: 0.3;
  cursor: default;
}

.stepper output {
  font: 2rem var(--display);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  background: var(--sunken);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
}

.consent:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
}

#consent-error {
  margin-top: 10px;
}

#pay {
  margin-top: 18px;
}

.consent input {
  width: 22px;
  height: 22px;
  margin: 4px 0 0;
  flex: none;
  accent-color: var(--accent);
}

/* The kind of visa: two cards, one chosen. */
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.choices legend {
  padding: 0;
  margin-bottom: 8px;
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  width: 1px;
  min-height: 0;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: grid;
  align-content: start;
  gap: 4px;
  height: 100%;
  padding: 16px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.2s, background 0.2s, transform 0.12s var(--ease);
}

.choice:active span {
  transform: scale(0.98);
}

.choice em {
  font: 1.5rem/1.2 var(--display);
  font-style: normal;
  color: var(--accent-strong);
}

.choice strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.choice small {
  margin-top: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 380px) {
  .choices {
    grid-template-columns: minmax(0, 1fr);
  }
}

.choice input:checked + span {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.choice input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--lantern) 80%, transparent);
  outline-offset: 2px;
}

.consent span {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Back from the payment page. */
.result {
  max-width: 560px;
  margin: 28px auto 0;
  text-align: center;
}

.result p {
  margin-top: 8px;
  color: var(--muted);
}

.result .button {
  margin-top: 20px;
}

/* Where to send the money, when it is transferred by hand. */
.transfer {
  margin: 18px 0 4px;
  text-align: start;
  background: var(--accent-soft);
  border-radius: 18px;
}

.transfer div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 16px;
}

.transfer div + div {
  border-top: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
}

.transfer dt {
  color: var(--muted);
}

.transfer dd {
  margin: 0;
  font: 1.35rem/1.2 var(--display);
  color: var(--accent-strong);
}

/* Copying a number goes nowhere: no arrow. */
#bit-copy::after {
  content: none;
}

.link-box {
  padding: 12px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  color: var(--text);
  background: var(--sunken);
  border: 1.5px dashed var(--line);
  border-radius: 14px;
}

.text-button {
  margin-top: 10px;
  padding: 4px 8px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-strong);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.tick {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: var(--accent);
  animation: pop 0.5s var(--spring) both;
}

.tick::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 15px;
  width: 17px;
  height: 32px;
  border: solid var(--accent-text);
  border-width: 0 5px 5px 0;
  border-radius: 2px;
  transform: rotate(45deg);
}

.loader {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 18px;
}

.loader i {
  width: 12px;
  height: 15px;
  border-radius: 5px 5px 6px 6px;
  background: var(--lantern);
  box-shadow: 0 0 12px var(--lantern);
  animation: hop 1s ease-in-out infinite;
}

.loader i:nth-child(2) {
  animation-delay: 0.15s;
}

.loader i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

@keyframes hop {
  50% {
    transform: translateY(-10px);
    opacity: 0.6;
  }
}

.summary-lines {
  margin: 12px 0 0;
}

.summary-lines div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.summary-lines dt {
  color: var(--muted);
}

.summary-lines dd {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 16px 0 18px;
  padding: 14px 16px;
  font-weight: 800;
  background: var(--accent-soft);
  border-radius: 16px;
}

.total strong {
  font: 2.3rem/1 var(--display);
  white-space: nowrap;
  color: var(--accent-strong);
}

.secure {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  line-height: 1.5;
  font-size: 0.875rem;
  color: var(--muted);
}

.secure .icon {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}

.notice {
  margin-top: 16px;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--lantern-text);
  background: var(--lantern-soft);
  border-radius: 16px;
  animation: rise 0.4s var(--ease) both;
}

.next-steps {
  margin-top: 12px;
  padding-inline-start: 22px;
  color: var(--muted);
}

.next-steps li + li {
  margin-top: 8px;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .lantern-fly {
    opacity: 0.9;
  }

  .sailing {
    transform: translateX(250px);
  }
}

/* --- cancelling an order: the link at the foot of every page, and the form on the refunds page --- */

.cancel-box {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 16px;
  font-size: 0.875rem;
}

.footer .cancel-link {
  display: inline-block;
  padding: 8px 18px;
  font-weight: 800;
  color: var(--on-night);
  text-decoration: none;
  border: 1.5px solid #e6efec;
  border-radius: 999px;
}

.footer .cancel-link:hover,
.footer .cancel-link:focus-visible {
  color: #081c25;
  background: #e6efec;
}

.know {
  margin-top: 14px;
  padding-inline-start: 20px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.know li + li {
  margin-top: 6px;
}

.cancel-panel {
  margin-top: 40px;
  scroll-margin-top: 96px;
}

.cancel-panel form {
  margin-top: 4px;
}

.cancel-panel .button {
  margin-top: 24px;
}

textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-weight: 600;
  color: inherit;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  resize: vertical;
}

textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

[aria-invalid='true'] {
  border-color: var(--danger);
}

.notice.ok {
  color: var(--accent-strong);
  background: var(--accent-soft);
}
