/* Comuna website. Components and tokens come straight from the app (third-space-app/index.html);
   class names match the app's so the two stay easy to keep in sync. */

:root {
  --paper: #F3E7D1; --paper-2: #EFE2C8; --card: #FBF6EA; --ink: #26251F; --muted: #6B675A; --line: #E2D5BC;
  --line-2: #DCCDAE; --ghost: #CDBF9F;
  --green: #244D3A; --red: #C9533D; --sun: #D6A638; --blue: #4B66A8;
  --cream-muted: #DDD1B8; --ink-muted: #B9AE97; --ink-card: #34322A;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --wrap: 1160px;
  --navh: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: var(--paper); padding: 10px 16px; border-radius: 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- app type ---------- */
.wm { font-family: var(--display); font-weight: 900; letter-spacing: .04em; line-height: 1; display: inline-flex; align-items: center; color: var(--green); text-decoration: none; }
.wm svg { margin-left: .09em; flex: none; }
.big { font-family: var(--display); font-weight: 900; line-height: .9; text-transform: uppercase; margin: 0; font-size: clamp(60px, 9vw, 128px); text-wrap: balance; }
.h1 { font-family: var(--display); font-weight: 800; line-height: .95; text-transform: uppercase; letter-spacing: .2px; margin: 6px 0 4px; font-size: clamp(44px, 5.6vw, 76px); color: var(--green); text-wrap: balance; }
.h1.sm { font-size: clamp(34px, 3.4vw, 44px); }
.h2 { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; margin: 30px 0 12px; color: var(--green); letter-spacing: .3px; line-height: 1; }
.k { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin: 0; }
.sub { color: var(--muted); font-size: 16px; margin: 0; }
.lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; margin: 16px 0 0; max-width: 32em; }
.hand { font-family: var(--hand); font-weight: 700; line-height: 1.1; }
.note { font-family: var(--hand); font-weight: 700; font-size: 26px; color: var(--red); line-height: 1.15; }
.demo-tag { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- app controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; border-radius: 14px; padding: 15px 26px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: none; }
.btn.primary { background: var(--red); color: #fff; }
.btn.green { background: var(--green); color: var(--paper); }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.ghost { border: 1.5px solid currentColor; }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border-radius: 30px; padding: 8px 14px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); }
.betapill { font-size: 13px; font-weight: 600; color: var(--muted); padding: 5px 4px; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ghost); }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); }
.chip { flex: none; border: 1.5px solid var(--ink); border-radius: 30px; padding: 6px 13px; font-size: 13px; font-weight: 500; }
.chip.on { background: var(--ink); color: var(--paper); }
.fbtn { display: flex; align-items: baseline; gap: 6px; min-width: 0; border: 1px solid var(--line-2); border-radius: 20px; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--card); white-space: nowrap; }
.fbtn i { margin-left: 14px; font-style: normal; font-size: 11px; color: var(--muted); }
.fbtn.set::before { content: ''; flex: none; align-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(243, 231, 209, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: box-shadow .2s ease; }
.topbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 12px; }
.topbar .wm { font-size: 30px; }
.topbar .right { display: flex; align-items: center; gap: 12px; }
.topbar.on-green { background: rgba(36, 77, 58, .92); }
.topbar.on-green .wm { color: var(--paper); }
.topbar.on-green .betapill { color: var(--cream-muted); text-decoration-color: rgba(221, 209, 184, .5); }
.topbar.on-ink { background: rgba(38, 37, 31, .92); }
.topbar.on-ink .wm { color: var(--paper); }
.topbar.on-ink .betapill { color: var(--ink-muted); }

/* ---------- floating pill nav (app .nav) ---------- */
.nav {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100% - 32px));
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 40px;
  background: rgba(251, 246, 234, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(220, 205, 174, .8); box-shadow: 0 4px 16px rgba(38, 37, 31, .12);
}
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 0 14px; text-decoration: none; font-size: 11px; font-weight: 700; color: var(--muted); border-radius: 30px; transition: background-color .15s ease; }
.nav a:hover { background: rgba(36, 77, 58, .06); }
.nav svg { stroke: var(--muted); opacity: .75; transition: opacity .15s; }
.nav a[aria-current="page"] { color: var(--green); }
.nav a[aria-current="page"] svg { stroke: var(--green); opacity: 1; }
.nav a[aria-current="page"]::after { content: ''; position: absolute; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* ---------- screens (page sections) ---------- */
.screen { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.screen.onb, .screen.green { background: var(--green); color: var(--paper); }
.screen.onb .h1, .screen.green .h1 { color: var(--paper); }
.screen.onb .lede, .screen.green .lede, .screen.green .sub { color: var(--cream-muted); }
.screen.onb .k, .screen.green .k { color: var(--sun); }
.screen.paper2 { background: var(--paper-2); }
.screen.ink { background: var(--ink); color: var(--paper); }
.screen.ink .h1 { color: var(--paper); }
.screen.ink .sub, .screen.ink .lede { color: var(--ink-muted); }
.screen.ink .k { color: var(--sun); }
.screen.ink .h2 { color: var(--sun); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.cols > * { min-width: 0; }
.cols.top { align-items: start; }
.cols.wide-r { grid-template-columns: .85fr 1.15fr; }
@media (max-width: 900px) { .cols, .cols.wide-r { grid-template-columns: 1fr; } }

/* ---------- onboarding hero ---------- */
.onb { padding-top: clamp(40px, 6vw, 72px); overflow: hidden; }
.onb .lede { font-size: clamp(17px, 1.6vw, 20px); }
.stampfield { position: relative; height: 470px; }
.stampfield > * { position: absolute; }
.stampfield img { filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .1)); }
.stampfield .s1 { left: 0; top: 10px; }
.stampfield .s2 { right: 0; top: 0; }
.stampfield .s3 { left: 50%; top: 210px; margin-left: -105px; }
.stampfield .hand { position: absolute; right: 2%; bottom: 6px; font-size: 26px; color: var(--sun); transform: rotate(-5deg); }
@media (max-width: 900px) {
  .stampfield { height: 300px; order: -1; margin: 0 -6px; }
  .stampfield img { width: 136px; height: 136px; }
  .stampfield .s3 { top: 140px; margin-left: -68px; }
  .stampfield .hand { display: none; }
}
.skiplink { color: var(--cream-muted); font-size: 14px; font-weight: 700; text-decoration: none; align-self: center; padding: 0 10px; }
.skiplink:hover { color: var(--paper); }

/* ---------- map (app home, map mode) ---------- */
.mapwrap { position: relative; height: clamp(520px, 62vh, 640px); border-radius: 26px; overflow: hidden; background: var(--paper-2); margin-top: 30px; box-shadow: 0 1px 0 var(--line); }
.paper-map { position: absolute; inset: 0; }
.paper-map svg { width: 100%; height: 100%; display: block; }
.mapwrap .head { position: absolute; z-index: 6; left: 0; right: 0; top: 0; padding: 14px 14px 26px; display: flex; gap: 8px; flex-wrap: wrap; background: linear-gradient(rgba(239, 226, 200, .95) 55%, rgba(239, 226, 200, 0)); }
.mapwrap .toggle { position: absolute; right: 14px; bottom: 150px; z-index: 6; background: var(--card); border-radius: 30px; display: flex; padding: 3px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.mapwrap .toggle button { padding: 6px 13px; border-radius: 30px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mapwrap .toggle button.on { background: var(--paper-2); color: var(--ink); }
.maphelp { position: absolute; left: 14px; bottom: 150px; z-index: 6; width: 34px; height: 34px; border-radius: 50%; background: var(--card); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); font-family: var(--display); font-weight: 900; font-size: 19px; color: var(--green); display: grid; place-items: center; text-decoration: none; }
.maplabel { position: absolute; left: 58px; bottom: 154px; z-index: 5; font-family: var(--hand); font-size: 22px; font-weight: 700; color: var(--red); pointer-events: none; }
.pin { position: absolute; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; transform: translate(-50%, -50%); box-shadow: 0 3px 8px rgba(0, 0, 0, .28); cursor: pointer; z-index: 3; transition: transform .15s ease; }
.pin:hover, .pin.sel { transform: translate(-50%, -50%) scale(1.15); z-index: 4; }
.pin.big { box-shadow: 0 0 0 2px var(--paper), 0 0 0 5px var(--sun), 0 4px 10px rgba(0, 0, 0, .32); }
.pin.sel { box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 5px var(--ink), 0 6px 14px rgba(0, 0, 0, .35); }
.edot { position: absolute; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--paper); transform: translate(-50%, -50%); opacity: .85; z-index: 2; }
.youare { position: absolute; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; }
.youare::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--red); opacity: 0; animation: youPulse 2.6s ease-out infinite; }
@keyframes youPulse { 0% { transform: scale(1); opacity: .35; } 100% { transform: scale(2.8); opacity: 0; } }
.mapwrap .picks { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; gap: 10px; overflow-x: auto; padding: 10px 14px 26px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mapwrap .picks::-webkit-scrollbar { display: none; }
.mapwrap .picks .pick { flex: 0 0 min(330px, 84%); margin: 0; scroll-snap-align: center; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 14px; border-radius: 14px; box-shadow: 0 10px 24px rgba(38, 37, 31, .26), 0 2px 6px rgba(38, 37, 31, .12); cursor: pointer; }
.mapwrap .picks .pick .n { width: 30px; height: 30px; }
.mapwrap .picks .pick .when, .mapwrap .picks .pick .m, .mapwrap .picks .pick .dist { display: none; }
.mapwrap .picks .pick .t { -webkit-line-clamp: 1; font-size: 15.5px; margin: 0; }
.mapwrap .picks .pick .m2 { display: block; }
.mapwrap .picks .pick.hot { outline: 2.5px solid var(--green); outline-offset: -2.5px; }
/* list mode */
.mapwrap.list { height: auto; background: none; box-shadow: none; overflow: visible; }
.mapwrap.list .paper-map, .mapwrap.list .maphelp, .mapwrap.list .maplabel { display: none; }
.mapwrap.list .head { position: static; background: none; padding: 0 0 6px; }
.mapwrap.list .toggle { position: absolute; top: 10px; right: 0; bottom: auto; }
.mapwrap.list .picks { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; overflow: visible; }
.mapwrap.list .picks .pick { flex: none; box-shadow: none; grid-template-columns: 44px 1fr auto; gap: 12px; padding: 12px 14px; border-radius: 16px; }
.mapwrap.list .picks .pick .n { width: 44px; height: 44px; }
.mapwrap.list .picks .pick .when, .mapwrap.list .picks .pick .m, .mapwrap.list .picks .pick .dist { display: block; }
.mapwrap.list .picks .pick .m2 { display: none; }
.mapwrap.list .picks .pick .t { -webkit-line-clamp: 2; }
@media (max-width: 700px) {
  .mapwrap { height: 560px; border-radius: 22px; margin-left: -6px; margin-right: -6px; }
  .mapwrap.list .picks { grid-template-columns: 1fr; }
  .mapwrap.list .toggle { position: static; align-self: flex-start; margin-left: auto; }
  .mapwrap.list { display: flex; flex-direction: column; }
}

/* ---------- pick cards ---------- */
.pick { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; background: var(--card); border-radius: 16px; padding: 12px 14px; margin-top: 10px; width: 100%; text-align: left; color: var(--ink); }
.pick > div { min-width: 0; }
.pick .n { width: 44px; height: 44px; position: relative; display: grid; place-items: center; }
.pick .when { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--red); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .t { font-weight: 700; font-size: 15px; margin: 2px 0 1px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick .m { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .m2 { display: none; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.pick .m2 b { color: var(--red); font-weight: 700; }
.pick .dist { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--green); text-align: right; line-height: 1; }
.pick .dist small { display: block; font-family: var(--sans); font-weight: 500; font-size: 10.5px; color: var(--muted); }
.catdot { display: grid; place-items: center; border-radius: 50%; flex: none; }
.vcheck { display: inline-block; vertical-align: -0.12em; margin-left: 5px; }
.endnote { text-align: center; margin: 22px 0 4px; font-family: var(--hand); font-weight: 700; font-size: 24px; color: var(--muted); }

/* the "Picked for you today" sheet */
.box { background: var(--paper); border-radius: 26px; padding: 26px 22px 22px; box-shadow: 0 30px 60px rgba(38, 37, 31, .18); max-width: 520px; }
.box .h1 { font-size: 40px; }
.box .grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: -10px auto 16px; }

/* map key (app legend) */
.legend { margin-top: 18px; }
.lgrow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.lgrow b { display: block; font-size: 16px; }
.lgrow span.d { display: block; font-size: 14px; color: var(--muted); }
.lgico { width: 36px; display: grid; place-items: center; flex: none; position: relative; }
.lgico .pin { position: relative; transform: none; cursor: default; }
.lgcats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 14.5px; margin-top: 12px; }
.lgcats > span { display: inline-flex; align-items: center; gap: 9px; }

/* ---------- interests (onboarding 3) ---------- */
.interests { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 0; }
.interests button { width: 100%; text-align: left; border: 1.5px solid var(--ink); border-radius: 16px; padding: 14px 16px; font-size: 16px; font-weight: 700; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; transition: background-color .15s ease; }
.interests button:hover { background: rgba(38, 37, 31, .04); }
.interests small { display: block; font-size: 13px; font-weight: 400; opacity: .75; margin-top: 2px; }
.interests button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--paper); }
@media (max-width: 560px) { .interests { grid-template-columns: 1fr; } }

/* ---------- plans calendar ---------- */
.calhead { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.calhead .m { font-family: var(--display); font-weight: 900; font-size: 40px; text-transform: uppercase; color: var(--green); flex: 1; line-height: 1; }
.calhead button { border: 1.5px solid var(--ink); border-radius: 30px; height: 36px; min-width: 36px; padding: 0 13px; font-size: 13px; font-weight: 700; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; text-align: center; background: var(--card); border-radius: 18px; padding: 12px 8px; }
.calgrid .wd { font-size: 12px; color: var(--muted); font-weight: 700; padding-bottom: 4px; }
.calgrid .day { position: relative; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; }
.calgrid .day span { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.calgrid .day.past { color: var(--muted); opacity: .5; }
.calgrid .day.today span { background: var(--green); color: var(--paper); }
.calgrid .day.mine span { background: var(--red); color: var(--paper); }
.calgrid .day i { position: absolute; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--sun); }
.dayhead { font-size: 20px; font-weight: 700; margin: 20px 0 4px; }
.dayhead span { color: var(--muted); font-weight: 500; }
.dayev { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 16px; padding: 12px; margin-top: 10px; }
.dayev .t { font-weight: 700; font-size: 15.5px; }
.dayev .u { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dayev .tag { font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.empty { text-align: center; padding: 22px 10px 8px; color: var(--muted); font-size: 14.5px; }
.empty .hand { font-size: 28px; color: var(--red); display: block; margin-bottom: 6px; }
.kitsteps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: k; }
.kitsteps li { counter-increment: k; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line-2); font-size: 15.5px; }
.kitsteps li:last-child { border: 0; }
.kitsteps li::before { content: counter(k); width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--green); font-family: var(--display); font-weight: 900; font-size: 19px; display: grid; place-items: center; }
.kitsteps b { display: block; color: var(--ink); }
.kitsteps span { color: var(--muted); font-size: 14.5px; }
.green .kitsteps li, .ink .kitsteps li { border-color: rgba(243, 231, 209, .2); }
.green .kitsteps b, .ink .kitsteps b { color: var(--paper); }
.green .kitsteps span { color: var(--cream-muted); }
.ink .kitsteps span { color: var(--ink-muted); }

/* ---------- passport ---------- */
.passhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.passhead img { width: 130px; transform: rotate(-8deg) translateY(-2px); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.passcover { background: var(--green); color: var(--paper); border-radius: 22px; padding: 22px 22px 20px; margin-top: 8px; position: relative; overflow: hidden; }
.passcover .k { color: var(--sun); }
.passcover .bigc { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 4.2vw, 54px); line-height: .95; text-transform: uppercase; margin: 6px 0 12px; position: relative; }
.passcover .seal { position: absolute; right: -22px; top: -22px; opacity: .25; }
.bar { height: 8px; border-radius: 4px; background: rgba(243, 231, 209, .2); }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--sun); }
.passstats { display: flex; gap: 22px; margin-top: 14px; font-size: 13px; color: var(--cream-muted); }
.passstats b { font-family: var(--display); font-size: 26px; color: var(--paper); display: block; font-weight: 800; }
.tabs { display: flex; gap: 6px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 9px 15px; border-radius: 10px 10px 0 0; background: var(--paper-2); font-weight: 700; font-size: 14px; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--green); }
.page { background: var(--card); border-radius: 0 18px 18px 18px; padding: 16px 14px 18px; position: relative; min-height: 300px; background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(107, 103, 90, .07) 27px 28px); }
.page .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px 8px; border-bottom: 1.5px dashed var(--line); margin-bottom: 12px; }
.page .ph b { font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--green); text-transform: uppercase; letter-spacing: .5px; }
.page .ph span { font-size: 13px; color: var(--muted); text-align: right; }
.page[hidden] { display: none; }
.pagegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 4px; justify-items: center; align-items: center; }
.pagegrid .slot { text-align: center; padding: 4px 0; font-size: 12px; color: var(--muted); }
.pagegrid img { width: 100%; max-width: 150px; margin: 0 auto; }
.pagegrid img.dim { opacity: .16; filter: grayscale(1); }
.pagegrid.two { grid-template-columns: 1fr 1fr; }
.ghost-stamp { width: 122px; height: 122px; border-radius: 50%; border: 2px dashed var(--ghost); display: grid; place-items: center; font-family: var(--hand); font-size: 20px; color: #A89C82; line-height: 1; padding: 12px; margin: 0 auto; }
.ghost-rect { width: 100%; max-width: 170px; height: 100px; border-radius: 10px; border: 2px dashed var(--ghost); display: grid; place-items: center; font-family: var(--hand); font-size: 20px; color: #A89C82; margin: 4px auto; padding: 8px; line-height: 1; text-align: center; }
.placestamp { width: 100%; max-width: 170px; height: 100px; border-radius: 10px; border: 2.5px solid currentColor; display: grid; place-items: center; text-align: center; padding: 8px; margin: 4px auto; font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1.05; font-size: 17px; letter-spacing: .5px; transform: rotate(-3deg); }
.placestamp small { display: block; font-family: var(--sans); font-weight: 700; font-size: 10px; letter-spacing: .08em; opacity: .8; margin-top: 4px; }
.pagenote { font-family: var(--hand); font-weight: 700; font-size: 21px; color: var(--red); text-align: center; margin-top: 10px; }
.kinds { display: flex; align-items: center; gap: 12px; padding: 2px 4px 12px; flex-wrap: wrap; }
.kinds > span { display: flex; flex-direction: column; align-items: center; gap: 3px; opacity: .3; filter: grayscale(1); }
.kinds > span.on { opacity: 1; filter: none; }
.kinds small { font-size: 11px; font-weight: 700; color: var(--muted); }
.kinds b { margin-left: auto; font-family: var(--hand); font-size: 21px; color: var(--red); font-weight: 700; }
.patches { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; }
.patches::-webkit-scrollbar { display: none; }
.patch { flex: none; text-align: center; width: 136px; font-size: 11.5px; color: var(--muted); }
.patch img { display: block; width: 128px; height: 138px; object-fit: contain; margin: 0 auto 6px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); transition: transform .2s ease; }
.patch:hover img { transform: rotate(-5deg) scale(1.05); }
.patch b { display: block; color: var(--ink); font-size: 12.5px; letter-spacing: .04em; }
.patch.locked img { filter: grayscale(1); opacity: .35; }
.kitpts { display: flex; justify-content: space-between; align-items: center; background: var(--card); border-radius: 14px; padding: 13px 16px; margin-top: 8px; font-size: 15px; }
.kitpts b { font-family: var(--display); font-weight: 900; font-size: 24px; color: var(--red); }
.lb { background: var(--card); border-radius: 18px; padding: 4px 16px; }
.lbrow { display: grid; grid-template-columns: 30px 36px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.lbrow:last-child { border-bottom: 0; }
.lbrow .r { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--muted); }
.lbrow.me { font-weight: 700; }
.lbrow.me .r { color: var(--red); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 16px; }

/* ---------- profile ---------- */
.prof { display: flex; gap: 16px; align-items: center; margin: 14px 0 6px; }
.prof .avatar { width: 76px; height: 76px; font-size: 34px; background: var(--green); color: var(--paper); }
.prof .name { font-weight: 700; font-size: 22px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.stats3 div { background: var(--card); border-radius: 14px; padding: 14px 10px; text-align: center; font-size: 12.5px; color: var(--muted); }
.stats3 b { display: block; font-family: var(--display); font-weight: 900; font-size: 34px; color: var(--green); line-height: 1.1; }
.linkrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; background: var(--card); border-radius: 14px; padding: 16px 18px; margin-top: 8px; font-weight: 700; font-size: 15px; text-align: left; text-decoration: none; color: var(--ink); transition: transform .15s ease; }
.linkrow:hover { transform: translateX(3px); }
.linkrow span { color: var(--muted); font-weight: 500; text-align: right; }
.linkrow.host { background: var(--green); color: var(--paper); }
.linkrow.host span { color: #CFC3AB; }
.card { background: var(--card); border-radius: 18px; padding: 22px 22px 6px; }
.card p { margin: 0 0 16px; }

/* ---------- alerts (support FAQ) ---------- */
.alert { display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: var(--card); border-radius: 16px; padding: 14px 16px; margin-top: 10px; text-align: left; width: 100%; }
.alert .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-size: 20px; }
.alert .t { font-weight: 700; font-size: 15.5px; }
.alert .s { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
details.alert { display: block; padding: 0; }
details.alert summary { list-style: none; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; }
details.alert summary::-webkit-details-marker { display: none; }
details.alert summary::after { content: '+'; font-family: var(--display); font-weight: 900; font-size: 26px; color: var(--green); line-height: 1; }
details.alert[open] summary::after { content: '–'; }
details.alert[open] { box-shadow: inset 3px 0 0 var(--red); }
details.alert .s { padding: 0 18px 16px 74px; margin: 0; }

/* ---------- forms (app .field, feedback sheet) ---------- */
.form { display: grid; gap: 4px; }
.flabel { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 14px; display: block; }
.field { display: block; width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 8px; }
.field:focus { outline: none; border-color: var(--green); }
textarea.field { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.tagpick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tagpick button { font-size: 13.5px; font-weight: 500; padding: 7px 13px; border-radius: 20px; border: 1.5px solid var(--ink); }
.tagpick button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.moods { display: flex; gap: 8px; margin: 10px 0 4px; }
.moods button { flex: 1; font-size: 28px; padding: 10px 0; border-radius: 14px; background: var(--card); border: 2px solid transparent; }
.moods button[aria-pressed="true"] { border-color: var(--green); background: #E4ECDF; }
.form .btn { margin-top: 18px; }
.form-status { font-weight: 700; min-height: 1.5em; margin: 8px 0 0; }
.hp { position: absolute; left: -9999px; }
.ink .field { background: var(--ink-card); border-color: transparent; color: var(--paper); }
.ink .field::placeholder { color: var(--ink-muted); }
.ink .field:focus { border-color: var(--sun); }
.ink .flabel { color: var(--ink-muted); }
.ink .tagpick button { border-color: var(--ink-muted); color: var(--paper); }
.ink .tagpick button[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--ink); }

/* ---------- host portal ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; padding: 6px 0; text-decoration: none; color: inherit; }
.ink .back { color: #CFC3AB; }
.hostbig { background: var(--green); border-radius: 20px; padding: 20px; margin-top: 16px; color: var(--paper); }
.hostbig .k { color: var(--sun); letter-spacing: .06em; }
.hostbig .v { font-family: var(--display); font-weight: 900; font-size: 60px; line-height: 1; margin: 4px 0 2px; }
.hostbig .s { font-size: 14px; color: var(--cream-muted); }
.hostgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.hostgrid div { background: var(--ink-card); border-radius: 14px; padding: 13px; font-size: 12px; color: var(--ink-muted); }
.hostgrid b { display: block; font-family: var(--display); font-weight: 900; font-size: 28px; color: var(--paper); line-height: 1.1; }
.bill { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 16px 18px; margin-top: 12px; }
.bill .line { display: flex; justify-content: space-between; font-size: 14.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.bill .line:last-child { border: 0; font-weight: 700; font-size: 16px; }
.hostrow { display: flex; justify-content: space-between; align-items: center; background: var(--ink-card); border-radius: 14px; padding: 14px 16px; margin-top: 8px; font-size: 15px; color: var(--paper); }
.hostrow small { color: var(--ink-muted); display: block; font-size: 12.5px; margin-top: 2px; }
.portal { background: #1d1c18; border-radius: 28px; padding: 22px 20px 20px; color: var(--paper); box-shadow: 0 30px 60px rgba(0, 0, 0, .28); }
.portal .h1 { color: var(--paper); font-size: 44px; }
.portal .sub { color: var(--ink-muted); }

/* ---------- explore (app desktop stage) ---------- */
.stage { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; gap: 64px; padding: 36px 20px 130px; background: #E9DDC6; }
.aside { max-width: 360px; }
.aside .h1 { font-size: 60px; color: var(--ink); margin: 12px 0 16px; }
.aside p { color: var(--muted); line-height: 1.55; font-size: 15.5px; margin: 0 0 12px; }
.phone { width: 390px; height: 820px; max-height: calc(100vh - 150px); min-height: 640px; background: #1d1c18; border-radius: 52px; padding: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, .28); flex: none; }
.phone .app { width: 100%; height: 100%; border-radius: 41px; overflow: hidden; background: var(--paper); }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) {
  .stage { flex-direction: column; gap: 28px; padding-top: 28px; }
  .phone { width: min(390px, 100%); height: 720px; }
}

/* ---------- sheets (legal) ---------- */
.sheetpage { padding: 28px 0 140px; background: rgba(38, 37, 31, .08); }
.sheet { max-width: 780px; margin: 0 auto; background: var(--paper); border-radius: 26px; padding: 12px clamp(22px, 4vw, 44px) 40px; box-shadow: 0 20px 50px rgba(38, 37, 31, .14); position: relative; }
.sheet .grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 16px; }
.sheet .x { position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--card); color: var(--muted); font-size: 22px; line-height: 1; display: grid; place-items: center; text-decoration: none; }
.sheet .cat { color: var(--red); font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.sheet h1 { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 5vw, 56px); line-height: .95; text-transform: uppercase; margin: 6px 0 6px; color: var(--green); }
.sheet h2 { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; color: var(--green); margin: 34px 0 8px; line-height: 1; }
.sheet h3 { font-size: 16.5px; margin: 20px 0 4px; }
.sheet p, .sheet li { font-size: 16px; }
.sheet ul { padding-left: 1.2em; }
.sheet li { margin: 6px 0; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.badges > span { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 20px; background: var(--card); color: var(--green); border: 1px solid var(--line-2); }
.badges > span.tier { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.draft { background: var(--card); border: 2px dashed var(--red); border-radius: 16px; padding: 14px 16px; margin: 20px 0 8px; font-size: 15px; }
.draft b { color: var(--red); }

/* ---------- stamp modal (404) ---------- */
.stampmodal { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 30px 20px 140px; background: var(--green); color: var(--paper); }
.stampmodal .stampbox { animation: thunk .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes thunk { 0% { transform: scale(2.2) rotate(-18deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(-8deg); } }
.stampmodal h1 { font-family: var(--display); font-weight: 900; font-size: 64px; text-transform: uppercase; margin: 22px 0 6px; line-height: .95; }
.stampmodal p { color: var(--cream-muted); margin: 0 0 24px; font-size: 16px; }
.stampmodal .hand { color: var(--sun); font-size: 26px; margin-bottom: 20px; }

/* ---------- end of page (app endnote + profile rows) ---------- */
.foot { padding: 64px 0 calc(var(--navh) + 40px); background: var(--paper); border-top: 1.5px dashed var(--line); }
.foot .wrap { max-width: 720px; }
.foot .endnote { margin: 0 0 22px; }
.foot .social { display: flex; gap: 8px; margin-top: 8px; }
.foot .social a { flex: 1; justify-content: center; gap: 8px; }
.foot .copy { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 22px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .youare::before, .stampmodal .stampbox { animation: none; }
  .stampmodal .stampbox { transform: rotate(-8deg); }
  html { scroll-behavior: auto; }
}
.tierdot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--green); color: var(--green); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 16px; background: var(--card); }
.onb .cols { grid-template-columns: 1.3fr .7fr; }
.onb .big { font-size: clamp(60px, 7.6vw, 108px); }
@media (max-width: 900px) { .onb .cols { grid-template-columns: 1fr; } }
.topbar.on-green.scrolled { background: rgba(243, 231, 209, .9); }
.topbar.on-green.scrolled .wm { color: var(--green); }
.topbar.on-green.scrolled .betapill { color: var(--muted); text-decoration-color: var(--ghost); }
@media (max-width: 560px) {
  .topbar .betapill { display: none; }
  .topbar .wm { font-size: 26px; }
  .foot .social { flex-direction: column; gap: 0; }
}
/* live Mapbox map (sits on top of the paper map once it has loaded) */
/* .mapwrap prefix outranks mapbox-gl.css (loaded later), whose .mapboxgl-map { position: relative } would collapse the map to 0px tall */
.mapwrap .mbmap { position: absolute; inset: 0; z-index: 1; }
.mapwrap.live .paper-map { visibility: hidden; }
.mapwrap.list .mbmap { display: none; }
.mbmap .pin { position: absolute; transform: none; }
.mbmap .pin.sel { transform: none; }
.youmk { pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
.mapwrap .mapboxgl-ctrl-top-left, .mapwrap .mapboxgl-ctrl-top-right { top: 56px; }
.mapwrap .mapboxgl-ctrl-logo, .mapwrap .mapboxgl-ctrl-attrib { opacity: .6; }
