/* ─────────────────────────────────────────────────────────────────────────────
   White, iMessage-native theme. Active when <html class="theme-ios">
   (set by the small script in index.html for /ios or ?theme=ios).
   Everything here only overrides styles.css; the sky theme is untouched.
   ───────────────────────────────────────────────────────────────────────────── */

.h1-cup { display: none; }

.theme-ios {
  --ios-bg: #FFFFFF;
  --ios-gray: #E9E9EB;     /* iMessage incoming bubble */
  --ios-label-2: #8A8A8E;  /* secondary label */
  --ios-sep: rgba(60, 60, 67, .14);
  --gray-bub: var(--ios-gray);
}
.theme-ios body { background: var(--ios-bg); color: var(--ink); }

/* No sky, clouds, hills or floating emojis: just white */
.theme-ios .scene { display: none; }

/* ── Nav: translucent white bar with a hairline, like an iOS navigation bar ── */
.theme-ios .nav { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: none; border-bottom: .5px solid transparent; transition: border-color .2s; }
.theme-ios .nav.scrolled { background: rgba(255, 255, 255, .82); box-shadow: none; border-bottom-color: var(--ios-sep); }
/* Logo: the plain PNG, no white pill around it */
.theme-ios .brand { background: none; box-shadow: none; padding: 4px 0; border-radius: 0; }
.theme-ios .brand-full { height: 26px; }
.theme-ios .brand-mark { width: 34px; height: 34px; border-radius: 0; }
.theme-ios .nav-bubble { box-shadow: none; }

/* ── Hero: black SF Pro large title with a 🏆 ── */
.theme-ios .hero { color: var(--ink); text-align: center; padding-top: 10px; }
.theme-ios .hero h1 { font-family: var(--font); font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  font-size: clamp(30px, 8.6vw, 60px); color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; margin-bottom: 10px; }
.theme-ios .hero h1 span { color: inherit; }
.theme-ios .h1-cup { display: inline; }
.theme-ios .hero .sub { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; border-radius: 0;
  color: var(--ios-label-2); font-size: 17px; font-weight: 400; max-width: 520px; text-shadow: none; }
.theme-ios .hero .sub b { color: var(--ink); font-weight: 600; }

/* ── Bubbles: flat like iMessage (no drop shadows) ── */
.theme-ios .pod .bubble, .theme-ios .msg .bubble, .theme-ios .typing, .theme-ios .chat .bubble { box-shadow: none; }
.theme-ios .pod.p4, .theme-ios .pod.p5 { --bub: var(--ios-gray); --bub-end: var(--ios-gray); }
.theme-ios .pod.p4 .pod-link, .theme-ios .pod.p5 .pod-link { background: #fff; }
.theme-ios .tapback { box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .06); border: 2px solid #fff; }
.theme-ios .tapback::after { box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }

/* Photos: keep the medal rings, soften the glow */
.theme-ios .msg .av, .theme-ios .pod-foot .av { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08); }
.theme-ios .pod.p1 .pod-foot .av { box-shadow: 0 0 0 3px #fff, 0 0 0 7px var(--gold); }
.theme-ios .pod.p2 .pod-foot .av { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--silver); }
.theme-ios .pod.p3 .pod-foot .av { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--bronze); }
@media (min-width: 1100px) {
  .theme-ios .pod.p1 .pod-foot .av { box-shadow: 0 0 0 5px #fff, 0 0 0 12px var(--gold); }
  .theme-ios .pod.p2 .pod-foot .av { box-shadow: 0 0 0 4px #fff, 0 0 0 10px var(--silver); }
  .theme-ios .pod.p3 .pod-foot .av { box-shadow: 0 0 0 4px #fff, 0 0 0 10px var(--bronze); }
}
.theme-ios .av-emoji { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18)); }

/* Small labels under bubbles: iOS secondary grey instead of white-on-sky */
.theme-ios .pod-foot .under, .theme-ios .msg .under { color: var(--ios-label-2); text-shadow: none; font-weight: 500; }

/* Rank numbers: plain grey, no cartoon outline */
.theme-ios .msg .rank { font-family: var(--font); font-weight: 600; color: var(--ios-label-2); -webkit-text-stroke: 0; font-size: 17px; }
@media (min-width: 1100px) { .theme-ios .msg .rank { font-size: 20px; } }
.theme-ios .pod .tapback.num { font-family: var(--font); font-weight: 700; }

/* Divider + Edit my spot: hairlines and a grey pill */
.theme-ios .divider { color: var(--ios-label-2); -webkit-text-stroke: 0; }
.theme-ios .divider::before, .theme-ios .divider::after { height: .5px; background: var(--ios-sep); }
.theme-ios .divider-edit { background: #F2F2F7; color: var(--blue); box-shadow: none; }

/* "That's you?" spot */
.theme-ios .typing-row .rank { font-family: var(--font); font-weight: 700; color: var(--blue); -webkit-text-stroke: 0; font-size: 17px; }
.theme-ios .typing-row .av { background: #F2F2F7; border: 2px dashed #C7C7CC; color: var(--ios-label-2); }
.theme-ios .typing-row .cta { color: var(--blue); text-shadow: none; font-weight: 600; }
.theme-ios .empty { color: var(--ios-label-2); text-shadow: none; }

/* ── How it works ── */
.theme-ios .how-head { color: var(--ink); }
.theme-ios .how-head h2 { font-family: var(--font); font-weight: 800; letter-spacing: -.02em; -webkit-text-stroke: 0; text-shadow: none; color: var(--ink); }
.theme-ios .how-head p { color: var(--ios-label-2); text-shadow: none; font-weight: 400; }
.theme-ios .how-head .founders img { box-shadow: 0 0 0 3px #fff, 0 0 0 3.5px var(--ios-sep); }
.theme-ios .chat .who, .theme-ios .chat .read { color: var(--ios-label-2); text-shadow: none; font-weight: 500; }
.theme-ios .chat .row .av { box-shadow: none; }
.theme-ios .tier { background: #F2F2F7; box-shadow: none; }
.theme-ios .tier:hover { transform: none; background: #EBEBF0; }
.theme-ios .tier .em { background: #fff; }
.theme-ios .tier .t-price { font-family: var(--font); font-weight: 700; }

/* ── Footer ── */
.theme-ios .foot { color: var(--ios-label-2); text-shadow: none; font-weight: 400; }
.theme-ios .foot a { color: var(--blue); }
.theme-ios .foot-edit { background: #F2F2F7; color: var(--blue); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ── Composer: iOS keyboard-bar feel ── */
.theme-ios .composer { background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 .5px var(--ios-sep), 0 4px 20px rgba(0, 0, 0, .08); }

/* Join / edit preview: white like the page instead of a mini sky */
.theme-ios .preview { background: #fff; box-shadow: inset 0 0 0 .5px var(--ios-sep); }
.theme-ios .preview-label { color: var(--ios-label-2); text-shadow: none; }
.theme-ios .preview-label b { color: var(--blue); }
.theme-ios .thread.mini .msg .rank { color: var(--ios-label-2); }

/* Fonts: SF Pro everywhere in this theme (amounts too) */
.theme-ios .pod-amt b, .theme-ios .bubble .b-amt, .theme-ios .amount-field .cur,
.theme-ios .group .amount-field #amountInput, .theme-ios .code-input, .theme-ios .credits-box b {
  font-family: var(--font) !important; font-weight: 700; letter-spacing: -.02em; }

@media (max-width: 600px) {
  .theme-ios .hero h1 { font-size: clamp(27px, 8.2vw, 34px); white-space: nowrap; -webkit-text-stroke-width: 0; text-shadow: none; }
  .theme-ios .hero .sub { font-size: 14.5px; display: block; padding: 0 8px; }
}
