/* Layout: a 3D deck of cards floating over a topographic map of a Vestland fjord.
   The active card is dragged away; the next one rises out of the contour lines behind it. */
:root {
  --ocean: #0F2D4A;
  --ocean-deep: #0A2238;
  --slate: #1E293B;
  --mint: #10B981;
  --mint-ink: #04291D;
  --paper: #F8FAFC;
  --ink: #0F172A;
  --vipps: #FF5B24;
  --line: rgba(248, 250, 252, 0.16);
  --line-ink: #CBD5E1;
  --muted: rgba(248, 250, 252, 0.74);
  --muted-ink: #475569;
  --danger: #FCA5A5;

  --font-ui: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-read: "Newsreader", Georgia, "Times New Roman", serif;

  /* smooth in-out: no hard stop at the end */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.75s;
  /* a leaving card disappears once half of it has left the screen (≈ half the travel) */
  --fade-delay: 0.25s;
  --top: 64px;
  --band: clamp(110px, 19vh, 190px);
  --bottom: 60px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ocean-deep);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

/* ---------- Topographic background ---------- */
.terrain {
  position: fixed;
  inset: -6vh -4vw;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transition: transform var(--dur) var(--ease);
}
.terrain canvas { width: 100%; height: 100%; display: block; }
.terrain.is-dragging { transition: none; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(5, 18, 31, 0.75) 100%);
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: calc(var(--top) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__sub { font-size: 0.8rem; color: var(--muted); }
.topbar__join {
  border: 1px solid var(--line); background: rgba(15, 45, 74, 0.92);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.9rem;
  transition: border-color 0.2s;
}
.topbar__join:hover { border-color: var(--paper); }
.topbar__actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.topbar__login {
  border: 0; background: transparent; color: var(--paper); cursor: pointer;
  padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; opacity: 0.85;
  transition: background 0.2s, opacity 0.2s;
}
.topbar__login:hover { background: rgba(248, 250, 252, 0.1); opacity: 1; }
.topbar__login.is-member::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); margin-right: 8px; vertical-align: 1px; }

/* ---------- Member dialog ---------- */
.member {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto;
  border: 1px solid var(--line); border-radius: 20px; padding: 0;
  background: var(--slate); color: var(--paper);
  box-shadow: 0 40px 80px -20px rgba(2, 10, 20, 0.85);
}
.member::backdrop { background: rgba(5, 18, 31, 0.7); }
.member__inner { padding: 28px; display: grid; gap: 16px; }
.member__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.member__head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; }
.member__close { border: 0; background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.member__close:hover { color: var(--paper); background: rgba(248, 250, 252, 0.08); }
.member p { margin: 0; color: var(--muted); line-height: 1.5; }
.member .btn { width: 100%; }
.btn--google { background: var(--paper); color: var(--ink); }
.btn--google:hover { background: #E2E8F0; }
.btn--google svg { width: 18px; height: 18px; }
.member__or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.85rem; }
.member__or::before, .member__or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.member__msg { padding: 12px 14px; border-radius: 12px; font-size: 0.92rem; }
.member__msg--ok { background: rgba(16, 185, 129, 0.12); color: var(--paper); }
.member__msg--err { background: rgba(252, 165, 165, 0.12); color: var(--paper); }
.member__msg a { color: var(--paper); text-underline-offset: 3px; }
.member__facts { display: grid; gap: 8px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.member__facts div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; }
.member__facts dt { color: var(--muted); font-size: 0.9rem; }
.member__facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.member__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.member__actions .btn { width: auto; flex: 1; padding: 12px 18px; }
.btn--danger-ghost { background: transparent; border: 1px solid rgba(252, 165, 165, 0.45); color: var(--danger); }
.btn--danger-ghost:hover { border-color: var(--danger); }
.btn--danger { background: #DC2626; color: #fff; }
.member--read { width: min(680px, calc(100vw - 32px)); }
.read { display: grid; gap: 1em; }
.read p { margin: 0; color: var(--paper); font-family: var(--font-read); font-size: 1.12rem; line-height: 1.65; overflow-wrap: anywhere; }
.read__meta { font-size: 0.9rem; color: var(--muted); }
.read__note { font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.member__posts { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.member__posts h3 { margin: 0; font-size: 1.15rem; }
.member__posts h4 { margin: 6px 0 0; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.mine { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mine li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.mine__title { font-weight: 600; overflow-wrap: anywhere; }
.mine__date { font-size: 0.8rem; color: var(--muted); grid-column: 1; }
.chip { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(248, 250, 252, 0.1); white-space: nowrap; }
.chip--publisert { background: rgba(16, 185, 129, 0.18); color: var(--mint); }
.chip--avvist { color: var(--muted); }

/* ---------- «Ikke medlem»-ballongen under Logg inn ---------- */
.joinpop {
  position: fixed; z-index: 70; width: min(320px, calc(100vw - 24px));
  background: var(--slate); color: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; display: grid; gap: 12px;
  box-shadow: 0 30px 60px -20px rgba(2, 10, 20, 0.85);
  transform-origin: var(--caret, 85%) 0;
  animation: popIn 0.34s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
.joinpop[hidden] { display: none; }
.joinpop::before {
  content: ""; position: absolute; top: -8px; left: var(--caret, 85%); width: 14px; height: 14px;
  background: var(--slate); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.joinpop.is-leaving { animation: popOut 0.18s ease-in both; pointer-events: none; }
@keyframes popIn { from { opacity: 0; transform: scale(0.4); } }
@keyframes popOut { to { opacity: 0; transform: scale(0.2); } }
.joinpop h2 { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.25; }
.joinpop p { margin: 0; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.joinpop .form { gap: 10px; }
.joinpop .btn { width: 100%; padding: 13px 18px; }
.joinpop input::placeholder { color: var(--muted); opacity: 0.8; }
.joinpop .form__note { font-size: 0.75rem; }
.puff { position: fixed; z-index: 76; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 3px solid var(--mint); pointer-events: none; animation: puff 0.55s ease-out forwards; }
.puff--2 { animation-delay: 0.08s; border-width: 2px; opacity: 0; animation-fill-mode: both; }
@keyframes puff { from { transform: scale(0.3); opacity: 0.95; } to { transform: scale(7); opacity: 0; } }
.balloon-string { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 74; pointer-events: none; overflow: visible; }
.balloon-string path { fill: none; stroke: rgba(248, 250, 252, 0.55); stroke-width: 1.5; stroke-linecap: round; }
.balloon {
  position: fixed; left: 0; top: 0; z-index: 75; pointer-events: none; will-change: transform;
  width: 104px; height: 64px; margin: -32px 0 0 -52px;
}
.balloon__body {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--mint); color: var(--mint-ink); font-weight: 800; font-size: 0.74rem; line-height: 1.15;
  box-shadow: inset -8px -10px 0 rgba(4, 41, 29, 0.1), 0 10px 24px rgba(16, 185, 129, 0.35);
  animation: popIn 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.balloon.is-leaving .balloon__body { animation: popOut 0.25s ease-in both; }
.balloon-string.is-leaving { opacity: 0; transition: opacity 0.25s; }

/* ---------- Deck ---------- */
.deck {
  position: fixed; z-index: 10;
  top: calc(var(--top) + var(--band) + env(safe-area-inset-top, 0px));
  bottom: calc(var(--bottom) + env(safe-area-inset-bottom, 0px));
  left: 0; right: 0;
  perspective: 1200px;
  transform-style: preserve-3d;
  display: grid; place-items: center;
  padding: 8px 56px 24px 24px;
}
.card {
  grid-area: 1 / 1;
  width: min(1080px, 100%);
  height: 100%;
  max-height: 740px;
  border-radius: 22px;
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  transition: transform var(--dur) var(--ease), opacity var(--dur) ease;
  box-shadow: 0 30px 60px -20px rgba(2, 10, 20, 0.7), 0 0 0 1px rgba(248, 250, 252, 0.06) inset;
  will-change: transform, opacity;
}
.card input, .card label, .card a { user-select: text; -webkit-user-select: text; }
.card--active {
  z-index: 40; transform: translate3d(0, 0, 0) scale(1); opacity: 1; cursor: grab;
  /* a card coming back down becomes visible once half of it is on screen */
  transition: transform var(--dur) var(--ease), opacity 0.1s linear var(--fade-delay);
}
.card--stacked { z-index: 30; transform: translate3d(0, 30px, -60px) scale(0.96); opacity: 0.6; pointer-events: none; }
.card--stacked.card--deep { z-index: 20; transform: translate3d(0, 60px, -120px) scale(0.92); opacity: 0.2; }
.card--exited {
  z-index: 50;
  transform: translate3d(var(--exit-x, 0%), var(--exit-y, -120%), 0) rotate(var(--exit-r, -5deg));
  opacity: 0; pointer-events: none;
  /* keeps full opacity while moving, then disappears when half of it is off screen */
  transition: transform var(--dur) var(--ease), opacity 0.1s linear var(--fade-delay);
}
.card.is-dragging, .card.is-dragging .card__inner { transition: none; cursor: grabbing; }
.card--assembling { transition: none !important; transform: translate3d(0, 140px, -260px) scale(0.86) !important; opacity: 0 !important; }

.card--ocean { background: var(--ocean); }
.card--slate { background: var(--slate); }
.card--paper { background: var(--paper); color: var(--ink); }

.card__inner {
  flex: 1; min-height: 0;
  padding: clamp(24px, 4.5vw, 60px);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin;
  touch-action: none;
  transition: opacity var(--dur) ease;
}
/* let the browser scroll long cards; the direction that has nothing left to scroll moves the deck */
.card__inner[data-scroll="mid"] { touch-action: pan-y; }
.card__inner[data-scroll="top"] { touch-action: pan-down; }
.card__inner[data-scroll="bottom"] { touch-action: pan-up; }
.card--stacked .card__inner { opacity: 0; }

.grip {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  width: 44px; height: 4px; border-radius: 4px; background: currentColor; opacity: 0.22;
}
.drag-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 8px;
  white-space: nowrap; pointer-events: none; transition: opacity 0.4s;
}
.drag-hint svg { width: 14px; height: 14px; animation: nudge 1.8s ease-in-out infinite; }
.drag-hint.is-hidden { opacity: 0; }
@keyframes nudge { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-4px); } }

/* ---------- Type ---------- */
.h-hero {
  font-weight: 800;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 17ch;
  margin: 0;
  text-wrap: balance;
}
.h-card {
  font-weight: 800;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}
.label { margin: 0 0 12px; font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.card--paper .label { color: var(--muted-ink); }
.tagline {
  margin: 0;
  font-family: var(--font-read); font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem); line-height: 1.3;
  color: var(--paper);
}
.lede {
  font-family: var(--font-read);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.6;
  max-width: 60ch;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}
.prose { display: grid; gap: 1em; }
.prose p { margin: 0; font-family: var(--font-read); font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.62; color: var(--muted); max-width: 62ch; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 15px 26px; font-weight: 700; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--mint { background: var(--mint); color: var(--mint-ink); }
.btn--mint:hover { background: #34D399; }
.btn--pulse { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); }
.btn--vipps { background: var(--vipps); color: #fff; }
.btn--vipps:hover { background: #E84E1A; }
.btn--vipps[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn--wide { width: 100%; padding: 17px 24px; font-size: 1.05rem; border-radius: 14px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Hero ---------- */
.hero { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 2.6vh, 28px); }
.logo-band {
  position: fixed; z-index: 5; left: 0; right: 0;
  top: calc(var(--top) + env(safe-area-inset-top, 0px));
  height: var(--band);
  pointer-events: none;
}
.logo {
  position: absolute; left: 50%; top: 50%;
  height: calc(var(--band) - 14px);
  color: #E2E8F0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.logo svg { display: block; height: 100%; width: auto; overflow: visible; }
.logo-dot { fill: var(--mint); transition: r 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.3s; }
.logo-dot.is-partial { opacity: 0.6; }
.logo-dot.is-new { transform-box: fill-box; transform-origin: center; animation: dotPop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes dotPop { from { transform: scale(0); } }
.ball {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25), 0 6px 18px rgba(16, 185, 129, 0.45);
  will-change: transform;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }

/* ---------- Text card ---------- */
.textcard { flex: 1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: center; }

/* ---------- Points card ---------- */
.points { flex: 1; display: flex; flex-direction: column; gap: clamp(24px, 4vh, 44px); }
.points__grid { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-ink); }
.point { padding: 24px 24px 0 0; min-width: 0; }
.point + .point { padding-left: 24px; border-left: 1px solid var(--line-ink); }
.point__title { font-weight: 700; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 10px; }
.point__text { margin: 0; color: var(--muted-ink); font-size: 0.98rem; line-height: 1.58; }

/* ---------- Reader posts card ---------- */
.posts { flex: 1; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.posts__head { display: grid; gap: 20px; align-content: start; }
.posts__head .btn { justify-self: start; }
.posts__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post { padding: 18px 4px; border-bottom: 1px solid var(--line); cursor: pointer; display: grid; gap: 6px; }
.post:hover .post__title, .post:focus-visible .post__title { text-decoration: underline; text-underline-offset: 4px; }
.post:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
.post__title { font-weight: 700; font-size: 1.15rem; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.post__meta { font-size: 0.85rem; color: var(--muted); }
.post__excerpt { margin: 0; color: var(--muted); font-family: var(--font-read); font-size: 1.02rem; line-height: 1.55; overflow-wrap: anywhere; }
.posts__empty { padding: 18px 0; color: var(--muted); }
@media (max-width: 900px) { .posts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Engagement card ---------- */
.engage { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.engage__main { display: grid; gap: 20px; }
.contact { display: grid; gap: 10px; margin: 8px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.contact div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; }
.contact dt { color: var(--muted); font-size: 0.9rem; }
.contact dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.contact a { text-underline-offset: 3px; }
.contact--side { margin: 0; padding: 22px 0 0; border-top: 0; border-left: 1px solid var(--line); padding: 4px 0 4px 28px; gap: 16px; }
.contact--side div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
@media (max-width: 900px) { .contact--side { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; } }
.support {
  border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  background: rgba(10, 34, 56, 0.6); display: grid; gap: 14px; justify-items: start;
}
.support h3 { margin: 0; font-size: 1.35rem; letter-spacing: -0.015em; }
.support p { margin: 0; color: var(--muted); }
.support__amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; }
.support__note { font-size: 0.85rem; }
.support hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ---------- Membership card ---------- */
.join { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4.5vw, 56px); align-items: start; }
.join__intro { display: grid; gap: 18px; align-content: start; }
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; }
.types legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.type { position: relative; display: grid; gap: 4px; padding: 16px 16px 16px 16px; border-radius: 14px; border: 1px solid rgba(248, 250, 252, 0.22); cursor: pointer; transition: border-color 0.2s, background 0.2s; background: rgba(248, 250, 252, 0.04); }
.type:hover { border-color: rgba(248, 250, 252, 0.45); }
.type input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.type:has(input:checked) { border-color: var(--mint); background: rgba(16, 185, 129, 0.1); }
.type:has(input:focus-visible) { outline: 3px solid var(--mint); outline-offset: 2px; }
.type__name { font-weight: 700; font-size: 1.05rem; padding-right: 26px; }
.type__price { font-size: 0.9rem; font-weight: 600; color: var(--mint); }
.type__text { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.type__dot { position: absolute; top: 16px; right: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(248, 250, 252, 0.4); }
.type:has(input:checked) .type__dot { border-color: var(--mint); background: radial-gradient(circle, var(--mint) 0 4px, transparent 5px); }
.campaign { margin: 0; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(16, 185, 129, 0.5); font-size: 0.92rem; color: var(--paper); display: grid; gap: 10px; }
.campaign p { margin: 0; }
.counter { display: grid; gap: 6px; }
.counter__bar { height: 6px; border-radius: 6px; background: rgba(248, 250, 252, 0.12); overflow: hidden; }
.counter__bar i { display: block; height: 100%; width: 0; background: var(--mint); border-radius: 6px; transition: width 1.2s var(--ease); }
.counter__text { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.form { display: grid; gap: 13px; position: relative; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1px solid rgba(248, 250, 252, 0.22); background: rgba(248, 250, 252, 0.06);
  font-size: 1rem; transition: border-color 0.2s, background 0.2s;
}
.field input:hover { border-color: rgba(248, 250, 252, 0.4); }
.field textarea { font: inherit; color: inherit; line-height: 1.55; min-height: 220px; resize: vertical; }
.field input[type="text"]:focus, .field input[type="email"]:focus, .field textarea:focus { outline: none; border-color: var(--mint); background: rgba(248, 250, 252, 0.1); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: 0.85rem; color: var(--danger); }
.field__count { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.field__error:empty { display: none; }
.row2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.88rem; line-height: 1.45; font-weight: 500 !important; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--mint); }
.consent small { display: block; color: var(--muted); margin-top: 4px; font-size: 0.8rem; font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 0.8rem; color: var(--muted); margin: 0; }
.form__status { font-size: 0.9rem; color: var(--danger); margin: 0; }
.form__status:empty { display: none; }

.form.is-done { animation: formOut 0.4s ease forwards; pointer-events: none; }
@keyframes formOut { to { opacity: 0; transform: translateY(-8px); } }
.success {
  display: grid; gap: 14px; justify-items: start; align-content: center;
  padding: 28px; border-radius: 18px; border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
  animation: successIn 0.55s var(--ease) both;
}
@keyframes successIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.success svg { width: 56px; height: 56px; color: var(--mint); }
.success circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.6s ease 0.15s forwards; }
.success path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.4s ease 0.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { margin: 0; font-size: 1.6rem; letter-spacing: -0.02em; }
.success p { margin: 0; color: var(--muted); }
.success__extra { display: grid; gap: 10px; justify-items: start; width: 100%; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Navigation ---------- */
.dots {
  position: fixed; z-index: 60; right: 18px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none;
}
.dot { width: 28px; height: 26px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(248, 250, 252, 0.35);
  transition: height 0.4s var(--ease), background 0.2s;
}
.dot:hover::before { background: rgba(248, 250, 252, 0.7); }
.dot[aria-current="true"]::before { height: 22px; border-radius: 6px; background: var(--paper); }

.pager {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 2px; align-items: center;
  opacity: 0.6; transition: opacity 0.2s;
}
.pager:hover, .pager:focus-within { opacity: 1; }
.pill {
  border: 0; cursor: pointer; border-radius: 999px; padding: 7px 12px;
  font-weight: 600; font-size: 0.82rem; background: transparent; color: var(--paper);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.2s, opacity 0.2s;
}
.pill svg { width: 13px; height: 13px; }
.pill:hover:not([disabled]) { background: rgba(248, 250, 252, 0.1); }
.pill[disabled] { opacity: 0.3; cursor: default; }
.pager__count { font-variant-numeric: tabular-nums; font-size: 0.78rem; color: var(--muted); padding: 0 4px; min-width: 3em; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .textcard, .engage, .join { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .points__grid { grid-template-columns: minmax(0, 1fr); }
  .point, .point + .point { padding: 16px 0; border-left: 0; }
  .point + .point { border-top: 1px solid var(--line-ink); }
}
@media (max-width: 600px) {
  :root { --top: 58px; --bottom: 56px; --band: clamp(92px, 16vh, 140px); }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .topbar__join { padding: 7px 13px; font-size: 0.85rem; }
  .topbar__login { padding: 7px 8px; font-size: 0.85rem; }
  .topbar__actions { gap: 2px; }
  .deck { padding: 4px 34px 18px 16px; }
  .dots { right: 4px; }
  .dot { width: 24px; height: 22px; }
  .card { border-radius: 18px; }
  .card__inner { padding: 24px 20px 30px; }
  .pill { padding: 7px 10px; }
  .types { grid-template-columns: minmax(0, 1fr); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .drag-hint { display: none; }

  .support { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0.3s; --fade-delay: 0s; }
  .card--exited { transform: translate3d(0, 0, 0) scale(0.98); }
  .btn--pulse, .drag-hint svg { animation: none; }
}
