/* Wise Scroll web flow: R6 "Riso Print" look (wise-design/boards/b_r2_6.py, theme R6 in _r3.py). */
:root {
  --bg: #FFFFFF; --surface: #F6F2F7; --surface-2: #ECE6EE; --on: #14143C; --muted: #4E4E72;
  --primary: #0078BF; --on-primary: #FFFFFF; --border: #D6D0DA;
  --soft: #FFE0F1; --on-soft: #A0136B; --ink: #1A1A3A;
  --accent: #FF48B0; --on-accent: #14143C;
  --success: #1F8A4C; --success-soft: #DDF5E6; --danger: #C42B3B; --danger-soft: #FCE3E6;
  --r-btn: 6px; --r-card: 8px;
  --display: 'Anton', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 400 16px/1.45 var(--body); color: var(--on); background: var(--surface-2); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* Page: one phone-width column, centered on desktop */
.page { min-height: 100%; display: flex; justify-content: center; align-items: stretch; padding: 0; }
.screen { width: 100%; max-width: 460px; min-height: 100vh; background: var(--bg); display: flex; flex-direction: column;
  position: relative; box-shadow: 0 0 0 1px var(--border); }
@media (min-width: 700px) {
  .page { align-items: center; padding: 32px 16px; }
  .screen { min-height: min(860px, calc(100vh - 64px)); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(20,20,60,.18), 0 0 0 1px var(--border); }
}
.body { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 20px 24px 8px; overflow-y: auto; }
.foot { padding: 12px 24px 24px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.dark { background: var(--ink); color: #fff; }

/* Type */
.display { font: 400 44px/1.0 var(--display); letter-spacing: -.005em; margin: 0; text-transform: none; }
.title { font: 400 32px/1.05 var(--display); margin: 0; }
.subtitle { margin: 6px 0 0; color: var(--muted); }
.label { font-weight: 600; font-size: 14px; margin: 0; }
.caption { font-size: 13px; color: var(--muted); margin: 0; }
.center { text-align: center; }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 18px;
  border: 0; border-radius: var(--r-btn); background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 16px; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.ghost { background: transparent; color: var(--primary); text-decoration: none; }
.btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.light { background: #fff; color: var(--on); }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface); }

/* Steps header */
.steps { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.bars { flex: 1; display: flex; gap: 6px; }
.bars i { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-2); }
.bars i.on { background: var(--primary); }
.steps small { font-size: 12px; color: var(--muted); min-width: 28px; text-align: right; }

/* Hero */
.hero { width: 100%; aspect-ratio: 4/5; max-height: 46vh; object-fit: cover; object-position: 50% 20%; }

/* Chat bubble with the owl */
.bubble { display: flex; gap: 10px; align-items: flex-start; }
.bubble img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.bubble p { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 4px 14px 14px 14px; padding: 10px 12px; font-size: 14px; }

/* Choices */
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: var(--r-card);
  border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 500; }
.choice:hover { border-color: var(--muted); }
.choice .t { flex: 1; }
.choice .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.choice .box { width: 22px; height: 22px; border-radius: 5px; border: 1.5px solid var(--border); background: #fff; display: grid; place-items: center; flex: none; color: transparent; font-size: 13px; }
.choice[aria-pressed="true"] { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 1px var(--primary) inset; }
.choice[aria-pressed="true"] .box { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Cards, rows, chips, badges */
.card { border-radius: var(--r-card); padding: 14px; background: var(--surface); }
.card.outline { background: #fff; border: 1px solid var(--border); padding: 4px 14px; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.lrow + .lrow { border-top: 1px solid var(--border); }
.lrow .t { flex: 1; font-weight: 500; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--on-soft); white-space: nowrap; }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.neutral { background: var(--surface-2); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Apps */
.apps { display: flex; justify-content: space-between; gap: 12px; }
.app { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font-size: 13px; }
.app .tile { position: relative; width: 88px; height: 88px; border-radius: 22px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(20,20,60,.10); font: 400 26px var(--display); }
.app[aria-pressed="true"] .tile::after { content: "✓"; position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 999px;
  background: var(--primary); color: #fff; font: 700 13px/24px var(--body); text-align: center; border: 2px solid #fff; }
.app[aria-pressed="false"] .tile { opacity: .45; }
.feedcard { display: flex; gap: 14px; align-items: center; }
.feedcard img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }

/* Slider + pattern strip */
.slider { display: flex; flex-direction: column; gap: 8px; }
.slider .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.slider .row b { color: var(--primary); font-weight: 600; }
input[type=range] { width: 100%; accent-color: var(--primary); }
.pattern { display: flex; gap: 6px; }
.pattern i { flex: 1; height: 56px; border-radius: 6px; background: var(--ink); }
.pattern i.wise { background: var(--accent); color: var(--ink); font: 600 11px/56px var(--body); text-align: center; font-style: normal; }
.stats { display: flex; justify-content: space-between; align-items: flex-end; margin: 8px 0; }
.big { font: 400 40px/1 var(--display); }
.big small { font: 600 14px var(--body); margin-left: 2px; }

/* Paywall */
.owl-big { width: 160px; height: 160px; border-radius: 40px; object-fit: cover; margin: 0 auto; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.tl:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--soft); }
.tl .dot { width: 36px; height: 36px; border-radius: 999px; background: var(--soft); color: var(--on-soft); display: grid; place-items: center; flex: none; }
.tl b { display: block; }
.plans { display: flex; flex-direction: column; gap: 14px; }
.plan { width: 100%; font: inherit; color: inherit; background: var(--bg); text-align: left; cursor: pointer; min-height: 64px; border: 2px solid var(--primary); border-radius: var(--r-card); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.plan.off { border: 1px solid var(--border); padding: 15px 17px; }
.plan .tag { position: absolute; top: -11px; left: 14px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.plan .price { font: 400 26px var(--display); text-align: right; }
.plan .price small { font: 400 13px var(--body); color: var(--muted); }
.err { color: var(--danger); font-size: 14px; margin: 0; }

/* Demo feed (inside the flow) */
.feed { position: relative; flex: 1; background: #000; overflow: hidden; min-height: 560px; }
.feed .reel { position: absolute; inset: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.feed .reel img { width: 100%; height: 100%; object-fit: cover; }
.feed .reel .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0, transparent 25%, transparent 55%, rgba(0,0,0,.7)); }
.feed .cap { position: absolute; left: 16px; right: 80px; bottom: 26px; color: #fff; font-size: 14px; }
.feed .cap b { display: block; margin-bottom: 4px; }
.feed .tabs { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 6px; z-index: 3; }
.feed .tabs span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); }
.feed .tabs span.on { background: var(--accent); color: var(--on-accent); }
.feed .pill { position: absolute; top: 56px; left: 14px; z-index: 3; padding: 7px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; max-width: calc(100% - 90px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .rail { position: absolute; right: 12px; bottom: 26px; z-index: 3; display: flex; flex-direction: column; gap: 14px; align-items: center; color: #fff; font-size: 12px; }
.feed .next { width: 48px; height: 48px; border-radius: 999px; border: 0; background: var(--accent); color: var(--on-accent); font-size: 22px; cursor: pointer; }
.feed .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); z-index: 3; }
.feed .progress i { display: block; height: 100%; width: 0; background: #fff; }
.owl-fab { position: absolute; right: 12px; top: 38%; z-index: 4; width: 56px; height: 56px; border-radius: 18px; overflow: visible; border: 3px solid #fff; padding: 0; background: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.owl-fab img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.owl-fab em { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 12px/22px var(--body); font-style: normal; text-align: center; border: 2px solid #fff; padding: 0 5px; }
.coach { position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 5; background: #fff; color: var(--on); padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.3); white-space: nowrap; }

/* Dark bottom sheet (quick check, owl sheet) */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--ink); color: #fff; border-radius: 22px 22px 0 0; padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; animation: up .3s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet .eyebrow { color: var(--accent); font-size: 12px; font-weight: 600; }
.sheet h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.3; }
.opt { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
.opt .k { width: 24px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 12px; flex: none; }
.opt.right { border-color: #3FD07A; background: rgba(63,208,122,.16); }
.opt.wrong { border-color: #FF6B7A; background: rgba(255,107,122,.16); }
.sheet .why { font-size: 14px; color: rgba(255,255,255,.8); margin: 0; }
.scrim { position: absolute; inset: 0; background: rgba(10,10,30,.45); z-index: 5; }

/* Install page */
.install-steps { display: flex; flex-direction: column; gap: 12px; }
.istep { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: var(--r-card); background: var(--surface); }
.istep .n { width: 30px; height: 30px; border-radius: 999px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.istep.done .n { background: var(--success); }
.istep .t { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.istep .t p { margin: 0; }
.istep .btn { min-height: 44px; }
.links { display: flex; gap: 8px; flex-wrap: wrap; }
.links a { flex: 1; text-align: center; padding: 10px; border-radius: var(--r-btn); background: #fff; border: 1px solid var(--border); color: var(--on); text-decoration: none; font-weight: 600; font-size: 14px; }
.hidden { display: none !important; }

/* Email sign-in */
.link { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.member { margin: 4px 0 0; }
.field input { width: 100%; min-height: 54px; padding: 0 16px; font: 500 17px var(--body); color: var(--on); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--r-btn); outline: none; }
.field input:focus { border-color: var(--primary); background: var(--bg); }
.field input.code { text-align: center; font: 400 34px/1 var(--display); letter-spacing: .35em; padding-left: .35em; }
