/* Portalship: shared look for the whole site (light and dark). No libraries, no external requests. */
:root {
  --bg: #F4EDE0; --bg2: #EBE1CC; --card: #FBF7EE; --ink: #2B2638; --muted: #6F6882; --line: rgba(43, 38, 56, .12);
  --accent: #3E63DD; --accent-ink: #fff; --gold: #E3A93B; --sea: #4E9CC4; --plank: #D79A5A; --plank-edge: #8C6239;
  --node: #4A4560; --shadow: 0 30px 60px -20px rgba(60, 40, 20, .35);
  --sea1: color-mix(in srgb, var(--sea) 35%, transparent); --sea2: color-mix(in srgb, var(--sea) 60%, transparent);
  --radius: 28px; --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15131C; --bg2: #1D1A28; --card: #262234; --ink: #F2EBDD; --muted: #A9A2BC; --line: rgba(242, 235, 221, .14); --node: #8E88A8; --shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
  font: 18px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }
section { position: relative; padding: clamp(70px, 11vw, 140px) 0; }
.band { background: var(--bg2); }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.nav.solid { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .06em; color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav .left { display: flex; align-items: center; min-width: 0; }
.crumb { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.crumb:hover { color: var(--ink); }
@media (max-width: 560px) { .crumb { display: none; } }
.brand img { width: 34px; height: auto; display: block; }
@media (prefers-color-scheme: dark) { .brand img, .boat img { filter: invert(1); } }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
.nav .pill { background: var(--ink); color: var(--bg); padding: 7px 16px; border-radius: 999px; font-weight: 600; }
.nav .pill:hover { color: var(--bg); opacity: .85; }
.progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 720px) { .nav nav a:not(.pill) { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: 15px 30px; border-radius: 999px; border: 0; font-size: 1rem; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; box-shadow: 0 10px 24px -10px var(--accent); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px var(--accent); }
.btn.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.alt:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- phone mock-up ---------- */
.phone { --w: 290px; position: relative; width: var(--w); aspect-ratio: 1170 / 2532; border-radius: calc(var(--w) * .16); background: #15131c; padding: calc(var(--w) * .03); box-shadow: var(--shadow), inset 0 0 0 2px #3a3548; flex: none; }
.phone::after { content: ""; position: absolute; top: calc(var(--w) * .05); left: 50%; width: calc(var(--w) * .27); height: calc(var(--w) * .075); transform: translateX(-50%); background: #05050a; border-radius: 999px; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * .13); overflow: hidden; background: #F0E8D8; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .6s ease; }
.tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .15s ease-out; will-change: transform; }
.tilt.leave { transition: transform .6s ease; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- floating planks (decoration) ---------- */
.bit { position: absolute; border-radius: 999px; background: var(--plank); box-shadow: inset 0 0 0 3px var(--plank-edge), 0 14px 24px -12px rgba(0, 0, 0, .4); opacity: .95; will-change: transform; }

/* ---------- the sea footer: waves and the boat ---------- */
.sea { position: relative; margin-top: 60px; overflow: hidden; }
.sea { --T: clamp(60px, 9vw, 100px); }
.sea .crest { position: relative; height: clamp(150px, 17vw, 210px); }
.sea .track { position: absolute; left: 0; bottom: 0; height: var(--T); display: flex; width: 200%; }
.sea .track.back { animation: scroll 24s linear infinite; z-index: 1; }
.sea .track.front { animation: scroll 15s linear infinite; z-index: 3; }
.sea .track svg { width: 50%; height: 100%; flex: none; }
@keyframes scroll { to { transform: translateX(-50%); } }
.sea .back path { fill: var(--sea1); }
.sea .front path { fill: var(--sea2); }
/* the boat WITHOUT its own wave lines rides between the two animated waves, so there is only one sea */
.sea .boat { position: absolute; left: 50%; bottom: calc(var(--T) * .5 - 4px); width: clamp(100px, 13vw, 160px); transform: translateX(-50%); pointer-events: none; z-index: 2; }
.sea .boat img { width: 100%; display: block; transform-origin: 50% 90%; animation: rock 4.2s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .15)); }
@media (prefers-color-scheme: dark) { .sea .boat { filter: invert(1); } .sea .boat img { filter: none; } }
@keyframes rock { 0%, 100% { transform: rotate(-3deg) translateY(1px); } 50% { transform: rotate(3deg) translateY(-6px); } }
.sea .drift { position: absolute; height: 9px; border-radius: 9px; background: var(--plank); box-shadow: inset 0 0 0 2px var(--plank-edge); opacity: .85; animation: drift 38s linear infinite; z-index: 4; }
@keyframes drift { from { transform: translateX(-12vw) rotate(-4deg); } 50% { transform: translateX(50vw) rotate(5deg); } to { transform: translateX(112vw) rotate(-4deg); } }
.sea .body { background: linear-gradient(var(--sea1), var(--sea1)), linear-gradient(var(--sea2), var(--sea2)); padding: 28px 0 46px; }
.sea .body .wrap { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; font-size: .95rem; }
.sea .body a { color: var(--ink); text-decoration: none; opacity: .8; margin-right: 18px; }
.sea .body a:hover { opacity: 1; text-decoration: underline; }
.sea .body .tag { font-weight: 700; letter-spacing: .02em; }

/* ---------- long-form pages (privacy, terms, support) ---------- */
.doc { padding-top: 120px; padding-bottom: 40px; max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.5rem; margin: 38px 0 8px; letter-spacing: -.015em; }
.doc h3 { font-size: 1.1rem; margin: 22px 0 4px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px 28px; box-shadow: 0 1px 0 var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ?static preview: no animation at all (full-page captures, print) */
.static *, .static *::before, .static *::after { transition: none !important; animation: none !important; }
.static .reveal { opacity: 1 !important; transform: none !important; }
