/* Base & Layout — One colour world across the window, no full-height dividers */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--solid); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font: 15px/1.58 var(--font);
  color: var(--ink);
  background: var(--field);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.nw { white-space: nowrap; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; user-select: none; }
img.i3 { object-fit: contain; flex: none; translate: var(--ix, 0%) var(--iy, 0%); scale: var(--isc, 1); }

/* 3D Clay Icon Pop on Tap/Click (v12 squash-and-settle) */
.pop { animation: pop .5s cubic-bezier(.22, 1.35, .36, 1); transform-origin: 50% 72%; }
@keyframes pop {
  0% { transform: scale(1, 1) translateY(0); }
  22% { transform: scale(1.16, .84) translateY(2px); }
  52% { transform: scale(.93, 1.09) translateY(-3px); }
  76% { transform: scale(1.03, .98) translateY(0); }
  100% { transform: scale(1, 1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pop, .hero-stage.bouncing .hero-wrap { animation: none !important; }
}

.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 28px; }
main.wrap { padding-top: 10px; padding-bottom: 34px; display: grid; gap: 28px; align-content: start; }

/* Top Navigation — Calm floating bar in the same colour world, no full-width line */
.topbar { padding: 18px 0 8px; }
.topbar-in {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
  padding: 10px 14px 10px 16px; border-radius: 999px;
  background: var(--layer); box-shadow: var(--panel-rim-shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand b { font: 700 17px/1.1 var(--font-title); letter-spacing: -.015em; white-space: nowrap; }
.brand-sub {
  padding: 3px 9px; border-radius: 999px; background: var(--chip); color: var(--ink-2);
  font-size: 12px; font-weight: 620; white-space: nowrap;
}
.sitenav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sitenav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s;
}
.sitenav a:hover { background: var(--chip); color: var(--ink); }
.sitenav a[aria-current="page"] {
  background: var(--chip-on); color: var(--ink); font-weight: 680;
  box-shadow: inset 0 1px 0 var(--rim-top), inset 0 0 0 1px var(--line-subtle);
}
.top-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 861px) {
  .topbar-in { display: grid; grid-template-columns: 1fr auto 1fr; }
  .brand { justify-self: start; }
  .sitenav { justify-self: center; }
  .top-right { justify-self: end; margin-left: 0; }
}
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line-subtle); }
.seg button {
  min-height: 30px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-2); font-size: 12.5px; font-weight: 650; white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--list-bg); color: var(--ink); box-shadow: 0 1px 3px rgba(8,58,64,.12); }

/* Tactile v12 Gem Buttons & Baked Frosted Panels */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--chip); color: var(--ink); font-size: 14.5px; font-weight: 660;
  text-decoration: none; white-space: nowrap; transition: transform .1s, opacity .15s, background-color .15s;
}
.btn:hover { background: var(--chip-on); color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn.primary {
  background: var(--primary); color: var(--primary-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58), 0 5px 14px rgba(8,72,66,.20);
}
.btn.primary:hover { opacity: .93; color: var(--primary-ink); }
.btn.paid {
  background: linear-gradient(180deg, var(--paid-from) 0%, var(--paid-to) 100%);
  color: var(--paid-ink); font-weight: 720;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 5px 14px rgba(120,54,8,.22);
}
.btn.paid:hover { opacity: .94; color: var(--paid-ink); }
.btn.sec {
  background: #ddf3ef; color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), inset 0 0 0 1.5px rgba(10,98,90,.24);
}
.btn.sec:hover { background: #cdebe5; }
.btn.big { min-height: 48px; padding: 0 24px; font-size: 15.5px; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn[disabled], .btn.disabled { opacity: .62; cursor: default; pointer-events: none; transform: none; }
.btn img.i3 { width: 22px; height: 22px; margin-left: -4px; }

.card { background: var(--layer); border-radius: var(--r-xl); padding: 22px 24px; box-shadow: var(--panel-rim-shadow); min-width: 0; }
.card.list-card { background: var(--list-bg); }
.div-fade { height: 1px; border: 0; margin: 14px 0; background: var(--div-h); }

/* Footer — Calm floating footer inside the same sunlit lagoon world */
.sitefoot { padding: 8px 0 32px; }
.foot-card {
  background: var(--layer); border-radius: var(--r-xl); padding: 20px 24px;
  box-shadow: var(--panel-rim-shadow); display: grid; gap: 12px;
}
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; font-weight: 600; }
.foot-links a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }


