/* kumbo — coming soon page.
   One column, centred, no framework. Colours are tokens so light/dark stay
   in sync. Neutrals match the app's palette; yellow is the app icon's
   background and only ever used as a wash, never for text on white. */

:root {
  --tint: #f8efd4;           /* brand mixed into --bg: the top of the wash, and what Safari paints behind the status bar */
  --brand: #fdc626;          /* app icon background (#FEE66E → #FDC626) */
  --brand-ink: #7a5800;      /* brand colour dark enough for text on white */
  --gold: #b8860b;
  --silver: #a3a8af;
  --fx: #45453f;
  --up: #1e7a46;
  --down: #b23b2e;

  --bg: #f7f7f5;
  --bg-soft: #f0f0ee;
  --surface: #ffffff;
  --ink: #171715;
  --ink-2: #5f5f5a;
  --ink-3: #8a8a84;
  --line: #e4e4e1;
  --shadow: 0 1px 2px rgba(23, 23, 21, .05), 0 12px 32px -12px rgba(23, 23, 21, .16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --tint: #382f15;
    --brand-ink: #f2c94c;
    --gold: #d4af37;
    --silver: #8e949c;
    --fx: #b9b9b2;
    --up: #4caf7d;
    --down: #e2695a;

    --bg: #121212;
    --bg-soft: #262626;
    --surface: #1c1c1c;
    --ink: #f2f2f0;
    --ink-2: #a8a8a2;
    --ink-3: #75756f;
    --line: #333333;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px -12px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }

/* The page colour lives on <html>, not <body>: Safari on iPhone paints
   the status-bar strip (viewport-fit=cover) from the root, and with only
   body coloured that strip stayed white. body stays transparent so layers
   behind it (z-index: -1, like the top wash) still show. */
html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  color: var(--ink);
  font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
}

/* A soft wash of the icon's yellow behind the fold, nothing more. */
/* Soft brand wash behind the fold. It fades down from exactly --tint, the
   colour Safari puts behind the status bar, so the top edge is one colour
   across the full width and runs into the status bar without a seam. */
.wash {
  position: fixed;
  inset: 0 0 auto 0;
  height: 60vh;
  background: linear-gradient(var(--tint), color-mix(in srgb, var(--tint) 45%, transparent) 40%, transparent);
  pointer-events: none;
  z-index: -1;
}

/* Safari 26 on iPhone ignores theme-color. It colours the strip behind the
   status bar from the first position:fixed element it hit-tests 8px inside
   the top edge, reading that element's background-color from style; hidden,
   pointer-events:none and behind-the-page elements are skipped, and with
   nothing to read the strip stays white. This band sits over the status-bar
   area and is hit-testable, but background-clip leaves its colour unpainted:
   the page looks the same, only Safari reads it. */
.status-tint {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 0;
  padding-top: max(12px, env(safe-area-inset-top));
  background-color: var(--tint);
  background-clip: content-box;
}


.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 56px) 0 8px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 55%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}

.appicon {
  display: block;
  margin: 28px auto 20px;
  width: 112px;
  height: 112px;
  border-radius: 25px;         /* ≈ iOS squircle at this size */
  box-shadow: var(--shadow);
}

h1 {
  margin: 0;
  font-size: clamp(40px, 9vw, 56px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
}

.lede {
  margin: 14px auto 0;
  max-width: 34ch;
  color: var(--ink-2);
  font-size: clamp(16px, 4.2vw, 18px);
}

.lede strong { color: var(--ink); font-weight: 600; }

/* ── portfolio card ──────────────────────────────────────── */

.card {
  margin: 36px 0 0;
  padding: 20px 18px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.card p { margin: 0; }

.eyebrow {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.total {
  margin-top: 4px !important;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.delta { margin-top: 4px !important; color: var(--ink-3); font-size: 14px; }
.delta .up { font-weight: 600; }

.up { color: var(--up); }
.down { color: var(--down); }

.spark {
  display: block;
  width: calc(100% + 36px);
  height: 56px;
  margin: 14px -18px 0;
  color: var(--ink);
}

.alloc {
  display: flex;
  gap: 2px;
  height: 4px;
  margin-top: 16px;
  border-radius: 999px;
  overflow: hidden;
}

.alloc i { display: block; width: var(--w); }
.alloc .gold, .dot.gold { background: var(--gold); }
.alloc .silver, .dot.silver { background: var(--silver); }
.alloc .fx, .dot.fx { background: var(--fx); }

.legend {
  margin-top: 8px !important;
  color: var(--ink-3);
  font-size: 12.5px;
}

.legend b { color: var(--ink); font-weight: 500; margin-right: 12px; }

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: 1px;
}

.rows {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.rows li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.mark {
  grid-row: 1 / span 2;
  align-self: center;
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 14px;
  font-weight: 600;
}

/* the app marks metals with a small dot on the badge */
.mark.metal-gold::after,
.mark.metal-silver::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--surface);
}

.mark.metal-gold::after { background: var(--gold); }
.mark.metal-silver::after { background: var(--silver); }

.row-title { grid-column: 2; font-weight: 600; font-size: 15px; }
.row-meta { grid-column: 2; color: var(--ink-3); font-size: 13px; }
.row-value { grid-column: 3; grid-row: 1; text-align: right; font-weight: 600; font-size: 15px; }
.row-pct { grid-column: 3; grid-row: 2; text-align: right; font-size: 13px; font-weight: 500; }

/* ── features ────────────────────────────────────────────── */

.feats {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
}

.feats li {
  padding: 13px 16px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14.5px;
}

.feats b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

@media (min-width: 560px) {
  .feats { grid-template-columns: 1fr 1fr; }
}

/* ── footer ──────────────────────────────────────────────── */

.note {
  margin: 30px auto 0;
  max-width: 36ch;
  color: var(--ink-2);
  font-size: 14.5px;
}

.note a {
  color: var(--brand-ink);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-ink) 35%, transparent);
  white-space: nowrap;
}

.note a:hover { border-bottom-color: currentColor; }

footer {
  margin-top: auto;
  padding: 40px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

/* ── legal & support pages ───────────────────────────────── */

.doc {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(24px, 4vh, 40px) 0 8px;
}

.doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
  text-decoration: none;
}

.home img { width: 32px; height: 32px; border-radius: 8px; }

.doc h1 { margin-top: 36px; font-size: clamp(32px, 7vw, 42px); line-height: 1.1; }

.updated { margin-top: 10px; color: var(--ink-3); font-size: 14px; }

.summary {
  margin: 24px 0 4px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
}

.doc h2 { margin: 34px 0 8px; font-size: 19px; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 8px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); font-weight: 600; }

.doc a, footer a {
  color: var(--brand-ink);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-ink) 30%, transparent);
}

.faq h3 { margin: 22px 0 4px; font-size: 16px; }

footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
footer a { color: var(--ink-3); border-bottom-color: transparent; }
footer a:hover { color: var(--ink-2); }

.doc .home { border: 0; color: var(--ink); }

/* ── the icon moves ───────────────────────────────────────────
   The icon is inline SVG built from the app icon's own layers
   (AppIcon.icon/Assets). On load a coin drops into the jar and the jar
   gives under it; on hover the jar wobbles. The only motion on the site. */

.appicon.live-icon { overflow: hidden; }
.live-icon .k-all,
.live-icon .k-jar { transform-box: fill-box; transform-origin: 50% 100%; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes k-drop {
    0%   { translate: 0 -640px; animation-timing-function: cubic-bezier(.5, 0, 1, .6); }
    55%  { translate: 0 0;      animation-timing-function: cubic-bezier(0, .5, .5, 1); }
    70%  { translate: 0 -70px;  animation-timing-function: cubic-bezier(.5, 0, 1, .6); }
    82%  { translate: 0 0;      animation-timing-function: cubic-bezier(0, .5, .5, 1); }
    91%  { translate: 0 -16px;  animation-timing-function: cubic-bezier(.5, 0, 1, .6); }
    100% { translate: 0 0; }
  }
  @keyframes k-squash { 40% { scale: 1.035 .95; } }
  @keyframes k-wobble { 20% { rotate: -5deg; } 45% { rotate: 4deg; } 70% { rotate: -2deg; } 88% { rotate: 1deg; } }

  .k-coin { animation: k-drop 1.2s .25s both; }
  .k-jar  { animation: k-squash .4s cubic-bezier(.2, .8, .2, 1) .9s; }
  .live-icon:hover .k-all { animation: k-wobble .7s ease-out; }
}

