/* css/site.css: the landing page. The live harbour, a title, two buttons, live numbers, and one guide. */

body { background: var(--sea-night); }

/* --- top bar ---------------------------------------------------------------------------------------------------- */
.top {
  position: fixed; z-index: 30; top: max(10px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 8px 0 12px; border-radius: 14px;
  background: rgba(8, 34, 41, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(233, 196, 106, .45), 0 10px 26px -14px rgba(0, 0, 0, .8);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #F7E9C6; }
.brand-word { font-family: var(--display); font-size: 1.5rem; letter-spacing: .1em; line-height: 1; }
.brand .chip { margin-left: 4px; }
.top-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top-links a { color: var(--foam); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 10px; border-radius: 10px; }
.top-links a:hover { background: rgba(255, 255, 255, .08); }
.top-x { display: grid; place-items: center; width: 40px; height: 40px; padding: 0 !important; }
@media (max-width: 560px) { .top-links a:not(.top-x) { display: none; } .brand .chip { display: none; } }

/* --- hero: the live harbour ------------------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 84px 16px 132px; }
.hero-stage { position: absolute; inset: 0; z-index: 0; background: var(--sea-deep); }
.hero-poster { position: absolute; inset: 0; background: url('/img/hero.jpg') center 55% / cover no-repeat, linear-gradient(180deg, #9FD0D8 0%, #D9EEE6 40%, #3F8C94 52%, #1B5E6B 100%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; touch-action: pan-y; }
.hero-canvas.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6, 26, 32, .3), transparent 20%, transparent 78%, rgba(6, 26, 32, .5)); }
.hero-in { position: relative; z-index: 2; text-align: center; width: min(640px, 100%); display: grid; justify-items: center; gap: 10px; color: var(--foam);
  padding: 26px 28px 22px; border-radius: 22px; background: rgba(6, 26, 32, .8); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  box-shadow: 0 0 0 1.5px rgba(233, 196, 106, .55), 0 24px 60px -24px rgba(0, 0, 0, .85); }
.hero-title { font-size: clamp(3.6rem, 11vw, 7rem); line-height: 1; margin: 0; letter-spacing: .08em; color: #F7E9C6; text-shadow: 0 3px 0 rgba(122, 85, 24, .9), 0 10px 30px rgba(0, 0, 0, .55); }
.hero-lede { margin: 0; font-size: clamp(1.05rem, 2vw, 1.22rem); font-weight: 500; color: #F4FAF8; max-width: 34em; }
.hero-from { margin: 0; font-size: 1.2rem; color: #F3D27E; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.hero-cta .btn { min-width: 150px; font-size: 1.08rem; }
.btn.ghost.light { color: #F7E9C6; background: rgba(8, 34, 41, .35); }
.hero-free { margin: 0; max-width: 560px; padding: 8px 16px; border-radius: 14px; background: rgba(8, 34, 41, .62); box-shadow: 0 0 0 1px rgba(233, 196, 106, .55); color: #E6F2EE; font-size: .98rem; line-height: 1.4; text-align: center; }
.hero-free b { color: var(--brass-hi); }
.hero-free.on { box-shadow: 0 0 0 1.5px var(--brass-hi); background: rgba(110, 20, 25, .72); }
.hero-free.on b { color: #F7E9C6; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.hero-stats span { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1px rgba(233, 196, 106, .35); font-size: .92rem; color: #D7E8E4; }
.hero-stats b { color: #F7E9C6; font-size: 1.02rem; margin-right: 3px; }
.hero-ca { margin: 4px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: .88rem; color: #D7E8E4; }
.hero-ca span { font-weight: 800; color: var(--brass-hi); }
.hero-ca code { background: rgba(8, 34, 41, .7); padding: 3px 8px; border-radius: 6px; color: #E6F2EE; word-break: break-all; }
.ca-buy { border-radius: 6px; padding: 3px 12px; font-weight: 800; background: var(--wax, #A3242B); color: #FFF6E2; text-decoration: none; }
.ca-buy[hidden] { display: none; }
.ca-copy { border: 0; border-radius: 6px; padding: 3px 9px; font-weight: 800; background: var(--brass); color: var(--ink); }

.hero-bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 12px; pointer-events: none; }
.hero-bottom > * { pointer-events: auto; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; padding: 7px 16px; border-radius: 999px; background: rgba(6, 26, 32, .82); box-shadow: 0 0 0 1px rgba(233, 196, 106, .45); font-size: .9rem; max-width: 100%; }
@media (max-width: 520px) { .hero-foot { font-size: .8rem; padding: 6px 12px; gap: 2px 10px; } }
.hf-co { color: #F7E9C6; font-weight: 700; }


/* --- guide ------------------------------------------------------------------------------------------------------ */
.guide { color: var(--ink); padding: clamp(48px, 7vw, 88px) 16px; }
.guide-in { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 84px; display: grid; gap: 2px; }
.toc-h { font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-lo); margin: 0 0 6px; font-size: .95rem; }
.toc a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .96rem; padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.toc a:hover { background: rgba(43, 29, 18, .06); color: var(--ink); }
.toc a.on { border-left-color: var(--wax); color: var(--ink); background: rgba(43, 29, 18, .05); }
.doc { max-width: 760px; display: grid; gap: 34px; }
.doc article { scroll-margin-top: 84px; }
.doc h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 .4em; letter-spacing: .02em; }
.doc p, .doc li { color: var(--ink-2); font-size: 1.04rem; }
.doc p { margin: 0 0 .7em; }
.doc ul { margin: 0 0 .7em; padding-left: 1.2em; display: grid; gap: 6px; }
.doc b { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 .9em; font-size: .98rem; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(90, 68, 48, .22); }
.doc th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.plain { padding: 10px 14px; border-left: 3px solid var(--wax); background: rgba(163, 36, 43, .05); border-radius: 0 10px 10px 0; }
.chest-now { margin: 6px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chest-now div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 250, 235, .6); border: 1px solid rgba(90, 68, 48, .22); }
.chest-now dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.chest-now dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.doc-chart { margin: 8px 0 0; max-width: 420px; padding: 10px; border-radius: 14px; background: #F7EBCF; box-shadow: inset 0 0 0 1px rgba(90, 68, 48, .3); }
.doc-chart svg { width: 100%; height: auto; }
@media (max-width: 820px) {
  .guide-in { grid-template-columns: 1fr; gap: 18px; }
  .toc { position: sticky; top: 70px; z-index: 5; display: flex; overflow-x: auto; gap: 6px; padding: 8px 0; margin: 0 -16px; padding-inline: 16px; background: linear-gradient(var(--parchment) 80%, transparent); scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc-h { display: none; }
  .toc a { flex: none; border: 1px solid rgba(90, 68, 48, .3); border-radius: 999px; padding: 5px 12px; font-size: .88rem; background: rgba(255, 250, 235, .7); }
  .toc a.on { border-color: var(--wax); }
  .chest-now { grid-template-columns: 1fr; }
}

/* --- footer ----------------------------------------------------------------------------------------------------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); color: #B6D3CE; font-size: .95rem; }
.foot #footCo { color: #F7E9C6; font-weight: 700; }
.foot-chain { display: inline-flex; align-items: center; gap: 7px; color: #E6F2EE; font-weight: 700; }
.foot-chain i { width: 8px; height: 8px; border-radius: 50%; background: #5CC27A; box-shadow: 0 0 0 3px rgba(92, 194, 122, .22); }
.foot a { color: var(--brass-hi); text-decoration: none; font-weight: 700; }

