/* Screen-specific pieces that sit on top of the system in app.css */

/* Welcome */
.ob-hero .hero-mark { width: 96%; top: 47%; }
.hero-note {
  position: absolute; z-index: 4; left: 50%; top: calc(47% + 58px); transform: translateX(-50%);
  width: min(336px, calc(100% - 36px)); border-radius: 22px; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; text-align: left;
}
.hero-note .hn-main { display: grid; min-width: 0; }
.hero-note .hn-t { font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -0.016em; }
.hero-note .hn-s { font-size: 13px; line-height: 17px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-copy .wordmark-sm { height: 24px; width: auto; margin-left: -2px; }
:root[data-theme="dark"] .hero-wordmark { fill: #fff; }

/* How it works scene bits */
.cal-mini { display: grid; place-items: center; width: 52px; height: 44px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 0.5px var(--hairline); font-size: 12px; line-height: 15px; }
.cal-mini b { color: var(--coral-ink); font-weight: 700; } .cal-mini i { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-btn { flex: 1; height: 34px; border-radius: 17px; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: var(--fill); }
.mini-btn.dark { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .mini-btn.dark { background: #EEF1FF; color: #0B1640; }
.pager-leaves { width: 64px; height: 34px; }
.page .pg-step { font-variant-numeric: tabular-nums; }

/* Role cards */
.role-card .rc-art { display: block; }
.rc-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 20px;
  background: var(--surface-2); font-size: 14px; font-weight: 600; letter-spacing: -0.012em; white-space: nowrap;
  box-shadow: 0 6px 16px -10px rgba(16, 24, 56, 0.35), inset 0 0 0 0.5px var(--hairline);
}
.rc-chip .leaves.mini { margin-left: 2px; }
.rc-chip .pill { margin-left: 2px; }

/* Sign-in mail art */
.mail-art { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; color: var(--violet-ink); background: var(--violet-soft); }
.mail-art .icon { width: 40px; height: 40px; stroke-width: 1.5; }

/* Stepper sizes */
.stepper .step-leaves { width: 78px; height: 41px; }

/* Terms */
.terms-list { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; font-size: 15px; line-height: 20px; color: var(--ink-2); letter-spacing: -0.016em; }
.terms-list li::marker { color: var(--ink-3); }
.legal { font-size: 15px; line-height: 21px; letter-spacing: -0.016em; color: var(--ink-2); }
.legal h3 { margin: 18px 0 6px; font-size: 17px; line-height: 22px; color: var(--ink); letter-spacing: -0.024em; }
.legal h3:first-child { margin-top: 0; }
.legal p { margin: 0 0 10px; text-wrap: pretty; }
.legal ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 8px; }
.card.legal { padding: 18px; }

/* Notification pre-prompt */
.notif-demo { height: 250px; position: relative; }
.notif-demo .nd-wall { position: absolute; inset: -10px 0 0; display: grid; place-items: center; }
.notif-demo .nd-mark { width: 92%; opacity: 0.95; }
.notif-demo .banner { position: absolute; left: 0; right: 0; }
.notif-demo .nd-b1 { top: 54px; z-index: 2; }
.notif-demo .nd-b2 { top: 140px; transform: scale(0.94); opacity: 0.92; }

/* Radio rows */
.row[role="radio"] .radio-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); transition: box-shadow 0.2s; }
.row[role="radio"][aria-checked="true"] .radio-dot { box-shadow: inset 0 0 0 7px var(--ink); }

/* Request flow */
.req-progress { padding: 0 var(--gutter) 6px; }
.req-progress .progress-rail { margin: 0; height: 6px; border-radius: 3px; }
.req-progress .pr-fill { background: linear-gradient(90deg, var(--teal), var(--violet) 55%, var(--coral)); border-radius: 3px; transform: none; }
.req-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8px; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.req-steps span:nth-child(2) { text-align: center; }
.req-steps span:nth-child(3) { text-align: right; }
.req-steps .done, .req-steps .now { color: var(--ink); }
.sheet-intro .logo-tile { display: grid; }
.sent { padding: 30px 0 10px; }
.sent-art { display: grid; place-items: center; }
.sent-leaves { width: 210px; height: auto; overflow: visible; }

/* Home */
.first-run .leaves.md { width: 92px; height: 48px; }
.avatar.nav { width: 36px; height: 36px; font-size: 14px; }
.gbtn.avatar-btn .avatar { box-shadow: none; }
.unread-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--tint); margin-top: 7px; }

/* Big progress leaves on detail screens */
.big-leaves { width: 100%; max-width: 230px; height: auto; display: block; margin: 0 auto 16px; overflow: visible; }

/* Mode */
.mode-card .mc-art { width: 54px; height: 30px; }
.mode-art { width: 120px; height: auto; margin: 0 auto; }

/* Compact tab bar while scrolling down (iOS 26 minimise, simplified) */
.tabbar-wrap.compact { transform: translateY(6px) scale(0.92); transform-origin: 50% 100%; }
.tabbar-wrap.compact .tab span { opacity: 0; transition: opacity 0.2s; }
.tabbar-wrap .tab span { transition: opacity 0.2s; }

/* Referrer company */
.co-card-big .strip { padding: 12px 0; }

/* Interactive hover for pointer devices */
@media (hover: hover) and (pointer: fine) {
  button.row:hover, a.row:hover { background: color-mix(in srgb, var(--fill) 50%, transparent); }
  .btn-primary:hover { background: var(--primary-press); }
  .btn-secondary:hover { background: var(--fill-2); }
  .chip:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
  .co-card:hover, .mode-card:hover, .role-card:hover { transform: translateY(-1px); }
  .gbtn:hover, .tab-search:hover { transform: scale(1.06); }
}

/* How it works: one big leaf behind each scene */
.scene .s-blob { position: absolute; left: 50%; top: 50%; height: 104%; width: auto; transform: translate(-50%, -50%); border-radius: 0; opacity: 0.95; }
.scene .s-card { z-index: 1; }
.field.select { width: 100%; text-align: left; }
.upload .u-title, .upload .u-sub { display: block; }
.upload .row-main { display: grid; }
.row .row-title, .row .row-sub { display: block; }
.row .row-main { display: block; }
.slot .cal .m, .slot .cal .d { display: block; }
.slot .s-main { display: block; min-width: 0; }
.mode-wipe .mw-label span { display: inline-block; padding: 10px 20px; border-radius: 26px; background: rgba(255, 255, 255, 0.9); color: var(--navy); font-size: 22px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3); }

/* Welcome card check */
.hero-note .hn-check { margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; }
.hero-note .hn-check .icon { width: 15px; height: 15px; stroke-width: 3; }

/* Share preview */
.share-preview { padding: 6px var(--gutter) 0; perspective: 900px; }
.share-preview img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 22px 44px -20px rgba(16, 37, 97, 0.65); }
