/* Buy Me Koko — v1 stylesheet. Apple iOS feel, solid surfaces, no glass. */
:root {
  --cocoa: #6d2f22;
  --cocoa-deep: #4c1f16;
  --gold: #e7ae35;
  --gold-deep: #c98f2b;
  --leaf: #2f6651;
  --cream: #f9f0e2;
  --ink: #2b211c;
  --ink-soft: #6b5d54;
  --paper: #f7f4ef;
  --card: #ffffff;
  --line: #e8e0d5;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
a { color: var(--cocoa); }

/* top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  max-width: 960px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.topnav { display: flex; align-items: center; gap: 14px; }
.topnav a { text-decoration: none; font-weight: 600; }
.inline-form { display: inline; margin: 0; }
.linklike { background: none; border: none; color: var(--ink-soft); font: inherit; cursor: pointer; padding: 0; }

/* page */
.page { max-width: 960px; margin: 0 auto; padding: 8px 20px 60px; }
.narrow { max-width: 560px; margin: 0 auto; }
.center { text-align: center; }
h1 { font-size: 34px; letter-spacing: -0.03em; line-height: 1.12; margin: 18px 0 10px; }
h2 { font-size: 21px; letter-spacing: -0.02em; margin: 0 0 10px; }
h3 { font-size: 16px; margin: 18px 0 8px; }
.lede { font-size: 17px; color: var(--ink-soft); }
.eyebrow { color: var(--leaf); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 26px 0 0; }
.fine { font-size: 13px; color: var(--ink-soft); }
.hint { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* banner */
.banner { max-width: 960px; margin: 0 auto; padding: 12px 20px; border-radius: 0; font-weight: 600; }
.banner-error { background: #fdeceb; color: #a02a1e; border-bottom: 1px solid #f5c6c0; }

/* buttons */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  background: var(--line); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 16px;
  padding: 13px 22px; border-radius: 999px;
}
.btn-primary { background: var(--accent, var(--cocoa)); color: var(--accent-ink, #fff); }
.btn-primary:hover { background: var(--accent, var(--cocoa-deep)); }
.btn-block { display: block; width: 100%; }
.btn-small { font-size: 14px; padding: 9px 16px; }

/* cards */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin: 18px 0;
}

/* hero */
.hero { text-align: center; padding: 30px 0 10px; }
.hero h1 { font-size: 44px; }
.hero-actions { margin: 22px 0 10px; }

/* how it works */
.how, .principles { margin: 34px 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: grid; gap: 2px;
}
.steps li::before { content: "0" counter(step); counter-increment: step; }
.steps { counter-reset: step; }
.steps li strong { display: block; font-size: 16px; }
.steps li span { color: var(--ink-soft); font-size: 14px; }
.principles ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.principles li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.principles li strong { display: block; }
.principles li span { color: var(--ink-soft); font-size: 14px; }

/* forms */
.form label { display: block; margin: 14px 0; font-weight: 600; font-size: 15px; }
.form input[type=text], .form input[type=tel], .form input[type=number],
.form textarea, .form select,
.form-inline input {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px;
}
.form textarea { resize: vertical; }
.form-inline { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.form-inline input { flex: 1; min-width: 140px; margin-top: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* creator page */
.creator-hero { text-align: center; padding: 26px 0 6px; }
.avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff; font-size: 38px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.creator-hero h1 { margin-bottom: 2px; }
.avatar-img { object-fit: cover; }
.avatar-preview img {
  display: block; width: 92px; height: 92px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line); margin-bottom: 12px;
}
.handle { color: var(--ink-soft); margin: 0 0 8px; overflow-wrap: anywhere; }
.bio { max-width: 480px; margin: 0 auto; color: var(--ink-soft); overflow-wrap: anywhere; }
.fine, .lede { overflow-wrap: break-word; }

/* tip picker */
.amount-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.amount input { position: absolute; opacity: 0; pointer-events: none; }
.amount span {
  display: block; text-align: center; cursor: pointer;
  background: var(--paper); border: 2px solid var(--line); border-radius: 14px;
  padding: 12px 6px;
}
.amount span strong { display: block; font-size: 15px; }
.amount span small { color: var(--ink-soft); font-size: 13px; }
.amount input:checked + span { border-color: var(--gold-deep); background: #fdf6e3; }
.amount input:focus-visible + span { outline: 2px solid var(--cocoa); outline-offset: 2px; }
.amount-custom input {
  position: static; opacity: 1; pointer-events: auto;
  width: 100%; margin-top: 6px; font: inherit; font-size: 16px; text-align: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; background: #fff; color: var(--ink);
}
.thanks-bowl { margin: 26px 0 6px; }

/* goal */
.goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.goal-head h2 { min-width: 0; overflow-wrap: anywhere; }
.goal-kicker { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--cocoa); margin: 0 0 10px; }
.goal-pct { color: var(--leaf); font-weight: 700; font-size: 14px; white-space: nowrap; }
.progress { height: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.progress-fill { height: 100%; background: var(--accent, var(--leaf)); border-radius: 999px; transition: width 0.4s; }

/* supporters */
.supporters { margin: 26px 0; }
.supporter { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.supporter:last-child { border-bottom: none; }
.bubble {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--cream); color: var(--cocoa);
  font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.supporter-body strong { font-size: 15px; }
.tip-count { font-size: 13px; color: var(--leaf); font-weight: 700; margin-left: 8px; }
.supporter-body p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; overflow-wrap: anywhere; }

/* dashboard */
.dash-head { padding: 10px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { margin: 0; padding: 16px 18px; }
.stat-label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
.stat strong { font-size: 24px; letter-spacing: -0.02em; }
.list { list-style: none; padding: 0; margin: 0; }
.list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.list li:last-child { border-bottom: none; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.pill.pending { background: #fdf6e3; border-color: var(--gold-deep); color: #8a6414; }
.pill.paid { background: #e9f3ee; border-color: var(--leaf); color: var(--leaf); }
.admin-row { gap: 12px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.flash-ok { background: #e9f3ee; border: 1px solid var(--leaf); color: var(--leaf); border-radius: var(--r-sm); padding: 10px 14px; font-weight: 600; }
.flash-err { background: #fdf0ee; border: 1px solid #c0392b; color: #a93226; border-radius: var(--r-sm); padding: 10px 14px; font-weight: 600; }

/* thanks */
.big-emoji { font-size: 64px; margin: 30px 0 10px; }

/* footer */
.footer { text-align: center; padding: 30px 20px; color: var(--ink-soft); font-size: 13px; border-top: 1px solid var(--line); }

@media (min-width: 720px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 56px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .principles ul { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  h1 { font-size: 28px; }
  .topbar { padding: 12px 16px; }
  .topnav { gap: 10px; }
  .brand-name { font-size: 17px; }
  .row2 { grid-template-columns: 1fr; }
  .form-inline { flex-direction: column; }
  .form-inline .btn { width: 100%; }
  .stat { padding: 14px 12px; border-radius: 16px; min-height: 84px; }
  .stat-label { font-size: 12px; margin-bottom: 6px; }
  .stat strong { font-size: 19px; }
}

#withdraw-max {
  font-weight: 700;
  color: var(--cocoa);
  padding: 6px 14px;
  background: var(--paper);
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--line);
}

/* motion: steaming bowl, scroll reveals, heartbeat CTA */
@keyframes steam-rise {
  0% { transform: translateY(8px); opacity: 0; }
  35% { opacity: .75; }
  100% { transform: translateY(-12px); opacity: 0; }
}
.steam-anim path.steam { animation: steam-rise 2.8s ease-in-out infinite; }
.steam-anim path.steam.s2 { animation-delay: .9s; }
.steam-anim path.steam.s3 { animation-delay: 1.8s; }
.hero-bowl { margin: 10px 0 0; }

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.045); }
  50% { transform: scale(.995); }
}
#tip-submit { animation: heartbeat 2.6s ease-in-out infinite; }

.js .reveal { opacity: 0; transition: opacity .6s ease-in-out; }
.js .reveal-up { opacity: 0; transform: translateY(36px); transition: opacity .6s ease-in-out, transform .5s ease-out; }
.js .reveal.visible, .js .reveal-up.visible { opacity: 1; transform: translateY(0); }
.steps li.reveal-up:nth-child(2), .principles li.reveal-up:nth-child(2) { transition-delay: .08s; }
.steps li.reveal-up:nth-child(3), .principles li.reveal-up:nth-child(3) { transition-delay: .16s; }
.steps li.reveal-up:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-up { opacity: 1; transform: none; transition: none; }
  .steam-anim path.steam, #tip-submit { animation: none; }
  .sticky-tip { transition: none; }
}

/* tip form labels (the tip form doesn't use .form, so it needs its own rules) */
#tip-form > label { display: block; margin: 14px 0; font-weight: 600; font-size: 15px; }
#tip-form > label > input[type=text],
#tip-form > label > textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px;
}
#tip-form > label > textarea { resize: vertical; }
#goal-share { margin-top: 6px; }

/* creator page: two-column layout (tip card in sticky sidebar) */
.creator-top { margin-bottom: 2px; }
.creator-top.has-banner .avatar-overlap { margin-top: -52px; }
.creator-top:not(.has-banner) .creator-idrow { margin-top: 18px; }
.creator-idrow {
  position: relative; display: flex; align-items: flex-start; justify-content: flex-start;
  gap: 14px; margin: 0 6px;
}
.creator-id { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.avatar-overlap {
  width: 104px; height: 104px; margin: 0; border: 5px solid #fff; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(43, 33, 28, 0.18);
}
.creator-names { min-width: 0; padding-top: 14px; }
.creator-names h1 { margin: 0; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.supporter-line { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.supporter-line svg { flex-shrink: 0; }
.creator-tabs {
  display: flex; gap: 22px; margin: 16px 6px 0; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.creator-tabs::-webkit-scrollbar { display: none; }
.creator-tabs a {
  padding: 10px 0 11px; margin-bottom: -1px; white-space: nowrap;
  font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.creator-tabs a.active { color: var(--cocoa); border-bottom-color: var(--cocoa); }
#about, #supporters { scroll-margin-top: 16px; }
.creator-cols { display: flex; flex-direction: column; margin-top: 8px; }
@media (min-width: 900px) {
  .creator-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
  /* The aside stretches to the full grid height; the card inside it sticks. */
  .creator-side {
    align-self: stretch;
  }
  .creator-side .support-card {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
}
@media (max-width: 899px) {
  /* mobile: full-bleed white header, avatar over banner, name stacked underneath */
  .creator-top { margin: 0 -20px; background: #fff; padding-bottom: 0; }
  .creator-top .banner-wrap { margin: 0; border-radius: 0; }
  .creator-idrow { flex-direction: column; gap: 0; margin: 0 16px; }
  .creator-id { flex-direction: column; align-items: flex-start; gap: 0; }
  .creator-top.has-banner .avatar-overlap { margin-top: -46px; width: 92px; height: 92px; }
  .creator-names { padding-top: 10px; }
  .creator-names h1 { font-size: 20px; }
  .creator-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    justify-content: flex-start;
  }
  .creator-actions .btn-small {
    flex: 1;
    max-width: none;
    text-align: center;
  }
  .creator-tabs { margin: 12px 16px 0; }
  .creator-cols { margin-top: 14px; }
  .creator-side { order: -1; }
  .creator-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--card);
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(43, 33, 28, 0.14);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: center;
  }
  .creator-sticky-footer button {
    margin: 0;
    max-width: 480px;
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    font-weight: 700;
  }
  .support-card #tip-submit {
    display: none;
  }
  .page {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 900px) {
  .creator-sticky-footer {
    display: none;
  }
  .creator-sticky-footer.desktop-show {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--card);
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(43, 33, 28, 0.14);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: center;
  }
  .creator-sticky-footer.desktop-show button {
    margin: 0;
    max-width: 480px;
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    font-weight: 700;
  }
}

/* creator page surface: banner, socials */
.banner-wrap { margin: 12px 0 0; border-radius: 16px; overflow: hidden; }
.banner-img { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.banner-preview img { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 12px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.social-pill {
  font-size: 13px; font-weight: 700; color: var(--cocoa); background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; text-decoration: none;
}
.social-pill:hover { border-color: var(--gold-deep); }

/* landing: BMC skeleton, Koko voice */
.display { font-size: clamp(44px, 9vw, 92px); letter-spacing: -0.04em; line-height: 1.02; font-weight: 800; margin: 14px 0 12px; }
.display-sm { font-size: clamp(32px, 5.6vw, 58px); letter-spacing: -0.035em; line-height: 1.06; font-weight: 800; margin: 0 0 14px; }
.display-sm .muted { color: var(--ink-soft); font-weight: 700; }
.btn-large { font-size: 18px; padding: 16px 34px; }

.support-section {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 32px; padding: 56px 24px 64px; margin: 44px 0;
}
.mockup-wrap { position: relative; max-width: 920px; margin: 36px auto 0; min-height: 460px; }
.mockup-card {
  position: relative; z-index: 2; max-width: 340px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 24px; box-shadow: 0 18px 44px rgba(76, 31, 22, 0.10);
}
.mockup-card h3 { margin: 0 0 14px; font-size: 19px; }
.mockup-picker { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; }
.mpick-bowl { display: flex; align-items: center; }
.mpick-x { color: var(--ink-soft); font-weight: 700; font-size: 18px; margin: 0 2px; }
.mpick {
  width: 58px; height: 58px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.mpick strong { font-size: 17px; line-height: 1; }
.mpick small { font-size: 10px; color: var(--ink-soft); }
.mpick.active { background: var(--cocoa); border-color: var(--cocoa); color: #fff; }
.mpick.active small { color: #f3ddd2; }
.mockup-msg {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; color: var(--ink-soft); font-size: 14px; margin-bottom: 14px;
}
.mockup-btn {
  background: var(--cocoa); color: #fff; font-weight: 700; text-align: center;
  border-radius: 999px; padding: 14px;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-card {
  position: absolute; z-index: 1; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 10px 14px; display: flex; gap: 10px; align-items: center;
  box-shadow: 0 10px 28px rgba(76, 31, 22, 0.08); max-width: 230px;
  animation: floaty 5s ease-in-out infinite;
}
.float-card p { margin: 0; font-size: 13.5px; }
.fc-reply { color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }
.fc-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.react {
  position: absolute; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(76, 31, 22, 0.10);
  animation: floaty 4s ease-in-out infinite;
}
.r1 { left: 26%; top: 6px; }
.r2 { right: 24%; top: 52px; animation-delay: 1.4s; }
.fc1 { left: 0; top: 30px; }
.fc2 { left: 24px; bottom: 56px; animation-delay: 1.2s; }
.fc3 { right: 0; top: 96px; animation-delay: 2.1s; }
.fc4 { right: 28px; bottom: 24px; animation-delay: 3s; }

.trust { margin: 64px 0; }
.check-grid { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
.check-grid li { display: flex; gap: 14px; align-items: flex-start; }
.check-grid p { margin: 2px 0 0; font-size: 16px; color: var(--ink-soft); }
.check-grid strong { color: var(--ink); }
.check {
  width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.features { margin: 64px 0; }
.feature-grid { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 30px; grid-template-columns: repeat(3, 1fr); }
.feature-grid h3 { margin: 0 0 6px; font-size: 17px; }
.feature-grid p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.closing { margin: 70px 0 30px; }

@media (max-width: 1023px) {
  .mockup-wrap { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mockup-card { grid-column: 1 / -1; order: -1; width: 100%; }
  .float-card { position: static; animation: none; max-width: none; }
  .react { display: none; }
  .support-section { padding: 40px 16px 44px; border-radius: 24px; }
}
@media (max-width: 719px) {
  .check-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
  .react { animation: none; }
}

/* ---- Apple refinement pass: solid surfaces, no blur, no glass ---- */
:root { --spring: cubic-bezier(.32, .72, 0, 1); --fill: #f3efe8; --tint: rgba(109, 47, 34, .09); --radius: 20px; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; }
body { letter-spacing: -.011em; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif; }
a { text-decoration: none; }
:focus-visible { outline: 3px solid rgba(109, 47, 34, .4); outline-offset: 2px; border-radius: 10px; }

/* Type: large-title rhythm */
h1, .display, .display-sm { text-wrap: balance; }
h1 { font-weight: 700; letter-spacing: -.034em; }
.display { font-weight: 700; letter-spacing: -.045em; line-height: 1.0; }
.display-sm { font-weight: 700; letter-spacing: -.04em; }
h2 { font-weight: 650; letter-spacing: -.024em; }
.lede { font-size: 18px; line-height: 1.45; letter-spacing: -.016em; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; }
.fine, .hint { font-size: 13px; line-height: 1.4; }

/* Buttons: filled, tinted, spring press */
.btn { font-weight: 600; letter-spacing: -.014em; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; text-align: center;
  background: var(--tint); color: var(--cocoa); border-radius: 14px; padding: 0 22px;
  transition: transform .3s var(--spring), opacity .2s, background-color .2s; }
.btn-block { display: flex; }
.btn-primary { background: var(--accent, var(--cocoa)); color: var(--accent-ink, #fff); }
.btn-primary:hover { background: var(--accent, var(--cocoa)); opacity: .94; }
.btn:active { transform: scale(.97); opacity: .85; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 999px; }
.btn-large { min-height: 56px; font-size: 17px; padding: 0 34px; border-radius: 16px; }
.linklike:active, .topnav a:active { opacity: .4; }
.topnav { gap: 16px; }
.topnav a:not(.btn), .linklike { font-weight: 500; font-size: 16px; color: var(--cocoa); }
.topbar { min-height: 56px; }

/* Cards: borderless grouped surfaces */
.card, .steps li, .principles li { border: 0; border-radius: var(--radius); }
.card { padding: 22px; margin: 14px 0; }
.support-section { border: 0; border-radius: 34px; }
.banner-wrap { border: 0; border-radius: 20px; }

/* Inputs: filled fields with a soft focus ring */
.form input[type=text], .form input[type=tel], .form input[type=number], .form textarea, .form select, .form-inline input,
#tip-form > label > input[type=text], #tip-form > label > textarea {
  background: var(--fill); border: 1px solid transparent; border-radius: 12px; padding: 13px 14px; letter-spacing: -.011em;
  transition: box-shadow .2s, border-color .2s, background-color .2s; }
.form input:focus, .form textarea:focus, .form select:focus, .form-inline input:focus,
#tip-form > label > input:focus, #tip-form > label > textarea:focus { outline: 0; border-color: var(--cocoa); box-shadow: 0 0 0 4px rgba(109, 47, 34, .14); background: #fff; }
::placeholder { color: #a99d93; }
#tip-form > label, .form label { font-weight: 600; font-size: 14px; color: var(--ink); }

/* Tip picker: selection with a check badge */
.amount-row { gap: 10px; }
.amount span { position: relative; background: var(--fill); border: 2px solid transparent; border-radius: 14px; padding: 14px 8px;
  transition: transform .3s var(--spring), border-color .2s, background-color .2s; }
.amount span strong { font-size: 15px; font-weight: 650; letter-spacing: -.015em; }
.amount span small { font-size: 13px; font-variant-numeric: tabular-nums; }
.amount:active span { transform: scale(.97); }
.amount input:checked + span { border-color: var(--gold-deep); background: #fdf6e3; }
.amount input:checked + span::after { content: ""; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.8 2.8L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.amount-custom input { background: #fff; border: 0; border-radius: 10px; padding: 9px 6px; }
.amount-custom span { cursor: text; }

/* Progress */
.progress { height: 8px; border: 0; background: #ece6dc; margin: 12px 0 8px; }
.progress-fill { transition: width .8s var(--spring); }
.goal-kicker { font-size: 13px; letter-spacing: -.005em; }
.goal-pct { font-variant-numeric: tabular-nums; }

/* Supporters as an inset grouped list */
.supporters { background: var(--card); border-radius: var(--radius); padding: 20px 18px 8px; margin: 14px 0; }
.supporters h2 { margin-bottom: 6px; }
.supporter { border-bottom: 0; position: relative; padding: 14px 0; }
.supporter + .supporter::before { content: ""; position: absolute; top: 0; left: 56px; right: 0; height: 1px; background: var(--line); opacity: .8; }
.bubble { width: 44px; height: 44px; font-size: 17px; font-weight: 700; }
.supporter-body strong { font-size: 16px; font-weight: 600; letter-spacing: -.014em; }
.supporter-body p { font-size: 15px; line-height: 1.4; }
.tip-count { font-size: 13px; font-weight: 600; margin-left: 6px; }

/* Social pills and tabs */
.social-pill { font-weight: 600; background: var(--fill); border: 0; transition: transform .3s var(--spring), opacity .2s; }
.social-pill:active { transform: scale(.96); opacity: .8; }
.creator-tabs { gap: 26px; border-bottom: 1px solid var(--line); }
.creator-tabs a { font-size: 15px; font-weight: 600; padding: 12px 0 13px; color: var(--ink-soft); transition: color .2s; }
.creator-tabs a.active { color: var(--cocoa); }
.avatar-overlap { box-shadow: none; }
.creator-names h1 { font-size: 24px; font-weight: 700; }
.supporter-line { font-size: 14px; font-weight: 500; }

/* Sticky tip bar: solid, hairline top, spring slide */
.sticky-tip { border-top: 1px solid var(--line); padding: 10px 20px calc(12px + env(safe-area-inset-bottom)); transition: transform .5s var(--spring); }
.sticky-tip-name { font-size: 16px; font-weight: 600; letter-spacing: -.014em; }
.sticky-tip .btn-small { min-height: 44px; padding: 0 24px; }

/* Landing: bento features, soft check badges, calmer mockup */
.feature-grid { gap: 14px; }
.feature-grid li { background: var(--card); border-radius: var(--radius); padding: 22px; }
.feature-grid h3 { font-size: 18px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 8px; }
.feature-grid p { line-height: 1.45; }
.check-grid { gap: 22px 28px; }
.check { border: 0; background: #e3efe9; color: var(--leaf); }
.check-grid p { line-height: 1.45; }
.steps li { padding: 18px 20px; }
.mockup-card { border: 0; border-radius: 28px; padding: 24px; box-shadow: 0 1px 2px rgba(43, 33, 28, .06), 0 20px 44px rgba(76, 31, 22, .10); }
.mockup-msg { background: var(--fill); border: 0; }
.mpick { border: 0; background: var(--fill); }
.mockup-btn { border-radius: 14px; font-weight: 600; padding: 15px; }
.float-card, .react { border: 0; box-shadow: 0 1px 2px rgba(43, 33, 28, .06), 0 10px 26px rgba(76, 31, 22, .09); }
.float-card { border-radius: 18px; }
.footer { border-top: .5px solid var(--line); }

/* Motion: spring reveals, gentler CTA breathing */
.js .reveal { transition: opacity .7s ease-out; }
.js .reveal-up { transform: translateY(24px); transition: opacity .6s ease-out, transform .8s var(--spring); }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018); } }
#tip-submit { animation-duration: 3.4s; }
#tip-submit:active { animation: none; transform: scale(.97); }
@media (max-width: 480px) { .lede { font-size: 17px; } .btn-large { width: 100%; } .hero-actions .btn-large { max-width: 340px; } }
@media (prefers-reduced-motion: reduce) { .btn, .amount span, .social-pill, .sticky-tip, .progress-fill { transition: none; } #tip-form #tip-submit { animation: none; } }

/* Tip picker polish: equal-height tiles, full-width Custom row, smaller check badge */
.amount { display: flex; }
.amount span { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 68px; }
.amount input:checked + span::after { top: 6px; right: 6px; width: 16px; height: 16px; background-size: 11px; }
.amount-custom { grid-column: 1 / -1; }
.amount-custom span { flex-direction: row; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 8px 8px 16px; cursor: text; }
.amount-custom span strong { font-size: 15px; white-space: nowrap; }
.amount-custom input { width: 58%; margin-top: 0; padding: 10px 12px; text-align: right; }
.amount-custom:focus-within span { border-color: var(--cocoa); background: #fff; }

/* ---- Dashboard polish (Apple feel, solid surfaces) ---- */
.dash-head { padding: 14px 0 6px; }
.dash-head h1 { font-size: 36px; margin: 6px 0 6px; }
.dash-head .fine a { font-weight: 600; }
.stat-grid { gap: 10px; margin: 10px 0 4px; }
.stat { margin: 0; padding: 18px; border-radius: 20px; display: flex; flex-direction: column; justify-content: space-between; min-height: 96px; }
.stat-label { font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.stat strong { font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-grid .stat:nth-child(3) { background: var(--cocoa-deep); color: #fff8f2; }
.stat-grid .stat:nth-child(3) .stat-label { color: #e6cbc1; }

.card h2 { font-size: 22px; margin-bottom: 8px; }
.card h3 { margin: 22px 0 4px; font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .035em; color: #8b7d72; }
.card .fine strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.form-inline { gap: 10px; margin: 14px 0 10px; }
.form-inline input { min-height: 50px; }
.form-inline .btn { flex-shrink: 0; }
input[type=file] { padding: 8px; color: var(--ink-soft); font-size: 15px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: 14px; color: var(--cocoa); background: var(--tint); border: 0; border-radius: 999px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
.form textarea { min-height: 92px; line-height: 1.4; }
.form .row2 label, .form > label { margin: 12px 0; }
.form .btn-block, .form > .btn { margin-top: 8px; }

.goal-head strong { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.goal-head .goal-pct { font-size: 14px; }

.list li { padding: 14px 0; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; position: relative; border-bottom: 0; }
.list li + li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); opacity: .8; }
.pill { border: 0; padding: 5px 12px; font-size: 13px; font-weight: 600; text-transform: capitalize; background: var(--fill); }
.pill.pending { background: #fbefc9; color: #8a6414; }
.pill.paid { background: #e3efe9; color: var(--leaf); }

.avatar-preview img { border: 0; width: 88px; height: 88px; }
.banner-preview img { border: 0; border-radius: 16px; }
@media (max-width: 480px) { .dash-head h1 { font-size: 30px; } .stat strong { font-size: 22px; } .form-inline .btn { width: 100%; } }

/* URL / email / password inputs were missing from the form field rules */
.form input[type=url], .form input[type=email], .form input[type=password], .form input[type=search] {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--fill); border: 1px solid transparent; border-radius: 12px; padding: 13px 14px; min-height: 50px; letter-spacing: -.011em;
  transition: box-shadow .2s, border-color .2s, background-color .2s; }
.form input[type=url]:focus, .form input[type=email]:focus, .form input[type=password]:focus, .form input[type=search]:focus {
  outline: 0; border-color: var(--cocoa); box-shadow: 0 0 0 4px rgba(109, 47, 34, .14); background: #fff; }

/* QR sheet: profile icon button + bottom sheet */
.qr-icon-btn {
  margin-left: auto; align-self: center; flex: none;
  width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .3s var(--spring), opacity .2s;
}
.qr-icon-btn:active { transform: scale(.94); opacity: .8; }
.qr-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(24, 14, 8, .5);
  opacity: 0; transition: opacity .25s;
}
.qr-backdrop.show { opacity: 1; }
.qr-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-width: 480px; margin: 0 auto; background: var(--card);
  border-radius: 24px 24px 0 0; padding: 8px 24px calc(28px + env(safe-area-inset-bottom));
  text-align: center; transform: translateY(105%);
  transition: transform .34s var(--spring);
}
.qr-sheet.show { transform: translateY(0); }
.qr-grabber { width: 42px; height: 5px; border-radius: 999px; background: var(--line); margin: 8px auto 12px; }
.qr-sheet-title { font-weight: 700; font-size: 17px; letter-spacing: -.01em; margin: 0 0 12px; }
.qr-sheet-img { width: min(64vw, 240px); height: auto; border-radius: 16px; border: 1px solid var(--line); }
.qr-sheet .fine { margin: 12px 0 16px; }
.qr-sheet .btn-block { width: 100%; }

/* Full page theming: background tint, themed links, selection and labels.
   Cards stay white and body text stays ink so everything stays readable;
   --accent-ink / --accent-deep are contrast derived from the accent. */
.themed-page a { color: var(--accent-deep, var(--cocoa)); }
.themed-page .goal-pct { color: var(--accent-deep, var(--leaf)); }
.themed-page .amount input:checked + span { border-color: var(--accent, var(--gold-deep)); }

/* Bowl icon: used inside amount preset tiles */
.bowl-icon {
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 22px;
}
.amount .bowl-icon {
  width: 24px;
  height: 24px;
  vertical-align: -4px;
  margin-left: 2px;
}

/* Creator page refinements (2026-10-15) */

/* 1. Banner cap: 220px desktop, 160px mobile */
.banner-img {
  max-height: 220px;
}
@media (max-width: 640px) {
  .banner-img { max-height: 160px; }
}

/* 1b. Sticky buy card: .creator-side is already sticky on desktop (see media query).
   Do NOT make .support-card sticky too — nested sticky breaks the parent. */

/* 2. One accent drives all themed elements */
.themed-page .goal-kicker { color: var(--accent-deep, var(--cocoa)); }
.themed-page .creator-tabs a.active {
  color: var(--accent-deep, var(--cocoa));
  border-bottom-color: var(--accent, var(--cocoa));
}
.themed-page .tip-count { color: var(--accent-deep, var(--leaf)); }
.themed-page .goal-card .btn-small {
  background: var(--accent, var(--cocoa));
  color: var(--accent-ink, #fff);
  border: 0;
}

/* 3. Goal first-timer state */
.goal-first {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep, var(--leaf));
  white-space: nowrap;
}

/* 5. Bigger, darker small text */
.amount small {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}
.support-card .fine,
.goal-card .fine {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 6. Handle line + owner actions */
.handle-line {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 2px 0 0;
  font-weight: 500;
}
.creator-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
}
.creator-actions .btn-small {
  white-space: nowrap;
  flex: 1;
  text-align: center;
  max-width: 140px;
}

/* Dashboard uploads: clickable avatar/banner, auto-submit */
.avatar-upload {
  display: inline-block;
  position: relative;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  width: 96px;
  height: 96px;
}
.avatar-upload img,
.avatar-placeholder {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fill);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink-soft);
}
.avatar-change {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 4px 0;
}
.banner-upload {
  display: block;
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  max-height: 120px;
}
.banner-upload img {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
}
.banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: var(--fill);
  color: var(--ink-soft);
  font-weight: 600;
  border-radius: 12px;
}
.banner-change {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Checklist */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
}
.checklist li.done { color: var(--ink-soft); }
.check-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fill);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.checklist li.done .check-step {
  background: #e9f3ee;
  color: var(--leaf);
}

/* Dash head row: proper layout */
.dash-head .fine {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-head .btn-small {
  font-size: 13px;
  padding: 6px 12px;
  min-height: 0;
}

/* Input values regular weight */
input, textarea, select {
  font-weight: 400;
}
.bio-wrap { position: relative; }
.bio-counter {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: right;
  margin-top: 2px;
}

/* Colour swatches */
.swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.swatch.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink);
}
.banner-ok { background: #e9f3ee; color: #2f6651; border-bottom: 1px solid #bfe3d0; }
