/* HeyRua feedback: shared styles, matched to heyrua.ie (Nunito, sky hero, ink + orange). */
:root {
  --sky: #B9E4FA; --sky-deep: #96CDEC; --cloud: rgba(255,255,255,.75);
  --ink: #181D27; --grey: #7A7A7A; --faint: #A9A9A9; --line: #ECECEC; --soft: #FAFAFA; --bg: #FFFFFF;
  --orange: #FF8D28; --orange-dark: #E9781A; --orange-soft: #FFF1E6;
  --green: #2FCB6B; --green-dark: #24B25B; --green-soft: #E6F8EC;
  --red: #F04444; --red-soft: #FEECEC;
  --blue: #1B9BE0; --blue-soft: #E6F4FC;
  --purple: #6C5CE7; --purple-soft: #EEEBFD;
  --radius: 20px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.5; font-weight: 500; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--orange); text-decoration: none; font-weight: 700; }
h1 { font-size: 30px; line-height: 1.1; font-weight: 900; color: var(--ink); margin: 0 0 8px; letter-spacing: -.02em; }
h2 { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--grey); font-weight: 500; }
.small { font-size: 14px; }

/* Sky hero band, like the top of heyrua.ie */
.sky { position: relative; background: var(--sky); padding: calc(18px + var(--safe-t)) 16px 0; overflow: hidden; }
.sky .inner { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 44px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { height: 52px; width: auto; display: block; }
.sky h1 { margin-top: 10px; margin-bottom: 4px; }
.sky .sub { color: #3D5566; font-weight: 600; font-size: 15px; max-width: 340px; }
.cloud { position: absolute; background: var(--cloud); border-radius: 999px; z-index: 0; }
.cloud.a { width: 92px; height: 30px; left: -20px; top: 44px; } .cloud.a::after { content: ""; position: absolute; width: 44px; height: 44px; border-radius: 50%; background: inherit; left: 26px; top: -20px; }
.cloud.b { width: 70px; height: 24px; right: -14px; top: 26px; } .cloud.b::after { content: ""; position: absolute; width: 34px; height: 34px; border-radius: 50%; background: inherit; left: 18px; top: -16px; }

/* Page below the sky */
.page { max-width: 560px; margin: 0 auto; padding: 0 16px calc(24px + var(--safe-b)); display: flex; flex-direction: column; }
.wide { max-width: 1120px; }
.sheet { background: var(--bg); border-radius: 26px 26px 0 0; margin-top: -28px; position: relative; z-index: 3; padding-top: 6px; }

/* Buttons: flat, orange, soft glow, springy press */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 0 22px; border-radius: 16px; font-weight: 800; font-size: 17px; color: #fff; background: var(--orange); box-shadow: 0 8px 22px rgba(255,141,40,.32); transition: transform .12s cubic-bezier(.2,.9,.3,1.4), box-shadow .12s, opacity .2s, background .15s; user-select: none; -webkit-user-select: none; touch-action: manipulation; white-space: nowrap; }
.btn:active { transform: scale(.97); box-shadow: 0 3px 10px rgba(255,141,40,.25); }
.btn[disabled] { opacity: .4; box-shadow: none; pointer-events: none; }
.btn.green { background: var(--green); box-shadow: 0 8px 22px rgba(47,203,107,.32); }
.btn.green:active { box-shadow: 0 3px 10px rgba(47,203,107,.25); }
.btn.ghost { background: var(--soft); color: var(--ink); box-shadow: none; border: 1.5px solid var(--line); }
.btn.ghost:active { background: #F1F1F1; }
.btn.sm { min-height: 44px; font-size: 15px; padding: 0 16px; width: auto; border-radius: 12px; box-shadow: 0 4px 12px rgba(255,141,40,.25); }
.btn.sm.green { box-shadow: 0 4px 12px rgba(47,203,107,.25); }
.btn.sm.ghost { box-shadow: none; }
.btn.danger { background: transparent; color: var(--red); box-shadow: none; }
.btn.danger:active { transform: none; opacity: .7; }
.btn .spin { display: inline-block; width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards */
.card { background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.pill.bug { background: var(--red-soft); color: #D63A3A; }
.pill.idea { background: var(--purple-soft); color: var(--purple); }
.pill.other { background: var(--blue-soft); color: var(--blue); }
.pill.review { background: var(--soft); color: var(--grey); border: 1px solid var(--line); }
.pill.planned { background: var(--blue-soft); color: var(--blue); }
.pill.progress { background: var(--orange-soft); color: var(--orange-dark); }
.pill.done { background: var(--green-soft); color: var(--green-dark); }

/* Tabs / segmented */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 16px; margin: 0 -16px; scroll-padding-inline: 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 800; font-size: 15px; color: var(--grey); transition: background .15s, color .15s, border-color .15s, transform .12s; }
.tab:active { transform: scale(.97); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab .n { font-size: 12px; background: rgba(127,127,127,.14); padding: 1px 7px; border-radius: 999px; font-weight: 800; }
.tab[aria-selected="true"] .n { background: rgba(255,255,255,.22); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 800; font-size: 15px; box-shadow: 0 10px 30px rgba(24,29,39,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.empty { text-align: center; padding: 44px 16px; color: var(--grey); }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.fade-in { animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.foot-brand { text-align: center; color: var(--faint); font-size: 13px; font-weight: 700; padding: 28px 0 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Screenshot thumbnails and full-size viewer */
.thumb { display: block; margin-top: 10px; width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1.5px solid var(--line); background: var(--soft); cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(24,29,39,.92); display: none; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 32px); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .x { position: absolute; top: calc(12px + var(--safe-t)); right: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 22px; font-weight: 800; display: grid; place-items: center; }

/* Small category artwork inside pills */
.pico { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; display: inline-block; }

/* Recording links and Asana row (inbox + board) */
.vid { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 800; color: var(--orange); }
.vid .thumb { margin-top: 0; cursor: pointer; }
.vid .play { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; }
.asana { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding-top: 10px; border-top: 1.5px solid var(--line); font-size: 14px; font-weight: 700; color: var(--grey); }
.asana a { color: var(--orange); }
.asana input { flex: 1 1 200px; font: inherit; font-weight: 600; padding: 8px 10px; border: 1.5px solid var(--orange); border-radius: 10px; outline: none; min-width: 0; }
.asana .btn.sm { min-height: 36px; font-size: 14px; }
.panel { display: flex; flex-direction: column; gap: 12px; }
.panel .row2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); margin-right: 6px; }
.dot.on { background: var(--green); }
