/* Bounded Companion · boundeduncertainty.com/bc/ · 29 Oct 2026. Built on João's original design: the living halo, Lora italic, black pills. */

/* Layout: João's Bounded Companion (white page, the living halo, Lora italic, black pills), one centred column; a small guide pill drives the prototype.
   One deliberate light look, as in the original app. */
:root {
  --bg: #ffffff; --ink: #111111; --ink2: rgba(0,0,0,.72); --muted: rgba(0,0,0,.58); --faint: rgba(0,0,0,.56);
  --field: #f6f7f9; --line: rgba(0,0,0,.08); --btn: #111111; --onbtn: #ffffff;
  --blue: #4588d3; --blue-soft: #e4eefa; --peach: #f0a07c; --peach-soft: #fdebe2;
  --cyan: #e7f6f9; --cyan-ink: #0d6a7a; --amber: #fff3e0; --amber-ink: #8a4b00;
  --serif: Lora, Georgia, serif; --sans: Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.32,.72,0,1); --spring: cubic-bezier(.3,1.25,.4,1);
  --halo: clamp(620px, 86.25vw, 1242px);
  --card: #ffffff; --card-a: rgba(255,255,255,.82); --glassy: rgba(255,255,255,.7); --sheet: #ffffff; --scrim: rgba(10,14,22,.3);
  --halo-core: #f3f7fc; --halo-1: #deeaf7; --halo-2: rgba(188,212,240,.88); --halo-3: rgba(141,183,232,.46); --halo-4: rgba(104,159,222,.16);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d1117; --ink: #f2f4f8; --ink2: rgba(242,244,248,.78); --muted: rgba(242,244,248,.6); --faint: rgba(242,244,248,.6);
  --field: #1a212c; --line: rgba(255,255,255,.09); --btn: #f2f4f8; --onbtn: #0d1117;
  --blue: #6aa8ec; --blue-soft: #1a2c44; --peach: #f4b08f; --peach-soft: #3a2a24; --cyan: #12313a; --cyan-ink: #8fdbe8; --amber: #33281a; --amber-ink: #f5c983;
  --card: #161c26; --card-a: rgba(22,28,38,.82); --glassy: rgba(22,28,38,.7); --sheet: #161c26; --scrim: rgba(0,0,0,.55);
  --halo-core: #22334d; --halo-1: #1d3150; --halo-2: rgba(40,74,120,.85); --halo-3: rgba(46,90,150,.45); --halo-4: rgba(60,110,180,.15);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { margin: 0; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }

/* ---------- the halo (João's, alive) ---------- */
.halo-well { position: fixed; top: 0; left: 0; right: 0; height: 100vh; overflow: hidden; pointer-events: none; z-index: 0; }
.halo { position: absolute; left: calc(50% - var(--halo) / 2); top: calc(var(--halo) * -.697); width: var(--halo); height: var(--halo);
  background: radial-gradient(70% 46% at 64% 72%, rgba(255,196,160,.30) 0%, rgba(255,196,160,0) 55%),
              radial-gradient(58% 40% at 33% 66%, rgba(255,180,144,.22) 0%, rgba(255,180,144,0) 52%),
              radial-gradient(circle closest-side, var(--halo-core) 0%, var(--halo-1) 22%, var(--halo-2) 46%, var(--halo-3) 72%, var(--halo-4) 88%, rgba(69,136,211,0) 100%);
  border-radius: 52% 48% 51% 49% / 50% 52% 48% 50%;
  animation: haloMorph 18s ease-in-out infinite, haloDrift 14s ease-in-out infinite alternate;
  transition: top 1.4s var(--ease), filter 1.2s var(--ease), opacity 1s; will-change: border-radius, transform; }
.halo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity 1.2s var(--ease);
  background: radial-gradient(60% 40% at 50% 74%, rgba(255,176,138,.55), rgba(255,176,138,0) 60%); }
@keyframes haloMorph { 0%,100% { border-radius: 52% 48% 51% 49% / 50% 52% 48% 50%; } 25% { border-radius: 48% 52% 49% 51% / 52% 49% 51% 48%; } 50% { border-radius: 50% 50% 52% 48% / 48% 51% 49% 52%; } 75% { border-radius: 51% 49% 50% 50% / 51% 48% 52% 49%; } }
@keyframes haloDrift { from { transform: translateY(0) scale(1); } to { transform: translateY(26px) scale(1.05); } }
body.listen .halo { filter: brightness(1.04) saturate(1.25); }
body.rec .halo { animation: haloMorph 4s ease-in-out infinite, haloRec 1.1s ease-in-out infinite alternate; }
@keyframes haloRec { from { transform: scale(1); } to { transform: scale(1.06); } }
body.thinking .halo { top: calc(50vh - var(--halo) * .5); animation: haloMorph 5s ease-in-out infinite, haloThink 2.6s ease-in-out infinite alternate; filter: saturate(1.35); }
@keyframes haloThink { from { transform: scale(.42) rotate(0deg); } to { transform: scale(.5) rotate(20deg); } }
body.warm .halo::after { opacity: 1; }
body.dim .halo { opacity: .55; }

/* ---------- page ---------- */
.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); padding-block: 0 120px; }
.top { width: 100%; max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); margin-right: auto; border: 0; background: none; padding: 0; }
.brand svg { width: 30px; height: 30px; }
.brand span { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; letter-spacing: -.01em; }
.qbtn { white-space: nowrap; border: 0; background: var(--glassy); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 999px; padding: 8px 14px; font-size: .875rem; font-weight: 600; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); }
.qbtn[aria-current="page"] { background: var(--btn); color: var(--onbtn); box-shadow: none; }
.col { width: 100%; max-width: 640px; margin: 0 auto; }
.view { animation: vin .7s var(--ease) both; }
@keyframes vin { from { opacity: 0; transform: translateY(10px); } }
.below { margin-top: max(24px, calc(var(--halo) * .303 - 150px)); }
.center { text-align: center; }
h1, .h1 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 5vw, 2.55rem); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
h2 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.6rem; line-height: 1.2; }
.w { display: inline-block; animation: wrise .9s var(--ease) both; animation-delay: calc(var(--w) * 60ms + 120ms); }
@keyframes wrise { from { opacity: 0; transform: translateY(.45em); filter: blur(5px); } }
.lede { margin: 14px auto 0; color: var(--muted); max-width: 32rem; }
.hello { margin: 0 0 10px; color: var(--muted); font-size: .9375rem; }
.cap { margin: 0 0 8px; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--btn); color: var(--onbtn); font-weight: 600; font-size: 1rem; transition: transform .25s var(--spring), opacity .2s; }
.pill:active { transform: scale(.97); }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.16); }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rise { animation: rise .7s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 150ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.foot { margin-top: auto; padding-top: 56px; text-align: center; font-size: .8125rem; color: var(--faint); }

/* ---------- the chatbox ---------- */
.box { margin-top: 26px; border-radius: 26px; background: var(--card-a); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line), 0 18px 50px -24px rgba(45,98,170,.35); padding: 16px 16px 12px; transition: box-shadow .4s; }
.box:focus-within { box-shadow: inset 0 0 0 1px rgba(0,0,0,.22), 0 22px 60px -24px rgba(45,98,170,.45); }
.box textarea { width: 100%; min-height: 84px; max-height: 42vh; overflow-y: auto; border: 0; background: transparent; resize: none; outline: none; font-size: 1.0625rem; line-height: 1.55; padding: 4px 4px 8px; }
.box textarea::placeholder { color: var(--faint); }
.box .bar { display: flex; align-items: center; gap: 8px; }
.ibtn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--field); color: var(--ink); position: relative; flex: none; }
.ibtn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ibtn.send { background: var(--btn); color: var(--onbtn); margin-left: auto; transition: transform .3s var(--spring), opacity .2s; }
.ibtn.send:disabled { opacity: .25; cursor: default; }
.ibtn.rec { background: var(--btn); color: var(--onbtn); }
.ibtn.rec::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--blue); animation: ring 1.2s ease-out infinite; }
@keyframes ring { from { opacity: .9; transform: scale(.9); } to { opacity: 0; transform: scale(1.45); } }
.link { border: 0; background: none; padding: 6px 4px; color: var(--ink2); font-weight: 600; font-size: .9rem; text-decoration: underline; text-decoration-color: rgba(0,0,0,.2); text-underline-offset: 3px; }
.note { margin: 10px 4px 0; font-size: .8125rem; color: var(--faint); }

/* ---------- home lists ---------- */
.sec { margin-top: 38px; }
.running { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 22px; background: var(--cyan); }
.running .dot { flex: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #9fdbe6 60%, #4fb3c4); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.running b { display: block; color: var(--cyan-ink); }
.running p { margin: 2px 0 0; font-size: .9375rem; color: var(--ink2); }
.talks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.talks li { border-bottom: 1px solid var(--line); }
.talks button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 2px; border: 0; background: none; text-align: left; }
.talks .o { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--blue)); }
.talks b { display: block; font-weight: 600; font-size: .98rem; }
.talks span.s { display: block; color: var(--muted); font-size: .8125rem; }
.talks .chev { margin-left: auto; color: var(--faint); }
.learn { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.learn::-webkit-scrollbar { display: none; }
.lc { display: block; padding: 16px; border-radius: 22px; background: var(--field); text-decoration: none; color: var(--ink); transition: transform .3s var(--spring); }
.lc:hover { transform: translateY(-3px); }
.lc svg { width: 64px; height: 38px; display: block; margin-bottom: 10px; }
.lc .a1 { fill: var(--blue); } .lc .a2 { fill: #bcd4f0; } .lc .ln { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; } .lc .dash { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 3 3; }
.lc b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.08rem; line-height: 1.25; }
.lc span { display: block; margin-top: 4px; font-size: .8125rem; color: var(--muted); }

/* ---------- thinking ---------- */
.thinkv { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-top: 90px; }
.thinkv .t { font-family: var(--serif); font-style: italic; font-size: 1.6rem; }
.thinkv .ph { margin-top: 10px; color: var(--muted); min-height: 1.6em; transition: opacity .35s; }

/* ---------- the answer (João's sections) ---------- */
.meta { color: var(--muted); font-size: .875rem; }
.said { margin: 14px 0 0; font-family: var(--serif); font-style: italic; color: var(--ink2); font-size: 1.05rem; line-height: 1.6; padding-left: 16px; box-shadow: inset 2px 0 0 rgba(0,0,0,.12); }
.ans { margin-top: 40px; display: grid; gap: 14px; }
.interp { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.orbw { width: 64px; height: 64px; display: grid; place-items: center; }
.orb { width: calc(var(--s) * 1px); height: calc(var(--s) * 1px); border-radius: 50%; transition: width 1.2s var(--spring), height 1.2s var(--spring); animation: orbm 9s ease-in-out infinite; }
.orb.a { background: radial-gradient(circle at 35% 30%, #f3f7fc, #9cc1ec 55%, #4588d3); box-shadow: 0 8px 24px -8px rgba(69,136,211,.7); }
.orb.b { background: radial-gradient(circle at 35% 30%, #fff6f1, #f7c3aa 55%, #e98a63); box-shadow: 0 8px 24px -8px rgba(233,138,99,.7); animation-delay: -3s; }
@keyframes orbm { 0%,100% { border-radius: 52% 48% 51% 49% / 50% 52% 48% 50%; } 50% { border-radius: 48% 52% 49% 51% / 52% 49% 51% 48%; } }
.interp .k { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.interp h3 { margin: 2px 0 6px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.3rem; line-height: 1.25; }
.interp p { margin: 0; color: var(--ink2); }
.interp .pc { font-variant-numeric: tabular-nums; }
.lean { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.try { margin-top: 10px; display: grid; gap: 14px; }
.try h3 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.3rem; }
.try p { margin: 0; color: var(--ink2); }
.sc { margin: 0 0 3px; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.advice { padding: 18px 18px 14px; border-radius: 22px; background: var(--cyan); }
.advice .sc { color: var(--cyan-ink); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 4px; }
.strip div { padding: 10px 4px 8px; border-radius: 16px; background: var(--card-a); text-align: center; font-size: .75rem; font-weight: 600; color: var(--ink2); }
.strip svg { width: 28px; height: 28px; display: block; margin: 0 auto 4px; fill: none; stroke: var(--cyan-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sw { display: flex; align-items: center; gap: 12px; padding-top: 12px; margin-top: 8px; border-top: 1px solid rgba(13,106,122,.14); font-weight: 600; font-size: .95rem; }
.sw span { flex: 1; }
.toggle { width: 51px; height: 31px; border-radius: 999px; border: 0; padding: 2px; background: rgba(0,0,0,.12); transition: background .25s; }
.toggle i { display: block; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .3s var(--spring); }
.toggle[aria-checked="true"] { background: #34c759; }
.toggle[aria-checked="true"] i { transform: translateX(20px); }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; list-style: none; font-family: var(--serif); font-style: italic; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; margin-left: auto; font-family: var(--sans); font-style: normal; color: var(--muted); font-size: 1.3rem; transition: transform .3s var(--spring); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 8px 0 0; color: var(--ink2); }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- update ---------- */
.opts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.opt { min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--card-a); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); font-weight: 600; transition: transform .3s var(--spring), background .2s, color .2s; }
.opt[aria-pressed="true"] { background: var(--btn); color: var(--onbtn); box-shadow: none; transform: scale(1.04); }
.mini { width: 100%; min-height: 92px; margin-top: 18px; border: 0; border-radius: 20px; padding: 14px 16px; background: var(--field); resize: none; outline: none; }
.reply { margin-top: 30px; padding: 20px 20px 18px; border-radius: 24px; background: var(--card-a); box-shadow: inset 0 0 0 1px var(--line), 0 18px 50px -26px rgba(233,138,99,.5); }
.reply b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.35rem; }
.reply p { margin: 6px 0 0; color: var(--ink2); }

/* ---------- portrait ---------- */
.psec { padding: 20px 0; border-top: 1px solid var(--line); }
.psec h2 { font-size: 1.35rem; margin-bottom: 10px; }
.psec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.psec li { display: flex; gap: 10px; align-items: baseline; }
.psec li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--blue)); transform: translateY(-2px); }
.psec li.new { animation: glow 2s var(--ease); border-radius: 8px; }
@keyframes glow { from { background: var(--blue-soft); } }
.tag { margin-left: 6px; font-size: .6875rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--cyan); color: var(--cyan-ink); white-space: nowrap; }
.tag.p { background: var(--peach-soft); color: #b05a37; }
.empty { color: var(--faint); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo div { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 14px 8px; border-radius: 20px; background: var(--field); }
.duo .orbw { height: 70px; }
.duo b { font-size: .9rem; line-height: 1.3; }
.duo span { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.help { margin-top: 26px; padding: 16px 18px; border-radius: 22px; background: var(--amber); }
.help b { color: var(--amber-ink); }
.help p { margin: 4px 0 0; font-size: .9rem; color: var(--ink2); }

/* ---------- the Bounded team ---------- */
.team { display: grid; gap: 14px; padding: 18px; border-radius: 24px; background: linear-gradient(160deg, var(--blue-soft), var(--peach-soft)); box-shadow: inset 0 0 0 1px var(--line); }
.faces { display: flex; align-items: center; }
.face { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .875rem; color: #fff; border: 3px solid #fff; margin-left: -10px; box-shadow: 0 6px 14px -8px rgba(0,0,0,.4); }
.face:first-child { margin-left: 0; }
.f0 { background: linear-gradient(140deg, #2f74c9, #4588d3); } .f1 { background: linear-gradient(140deg, #e98a63, #f0a07c); } .f2 { background: linear-gradient(140deg, #2a9fb3, #5cc0cf); }
.team b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.2rem; }
.team p { margin: 2px 0 0; color: var(--ink2); font-size: .95rem; }
.team .on { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.team .on i { width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52,199,89,.2); animation: pulse 2.4s ease-in-out infinite; }
.askcard { margin-top: 26px; padding: 18px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 18px 50px -28px rgba(45,98,170,.45); display: grid; gap: 10px; }
.askcard .faces .face { width: 36px; height: 36px; font-size: .75rem; }
.askcard b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.25rem; }
.askcard p { margin: 0; color: var(--ink2); }
.choice { display: grid; gap: 10px; }
.ch { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px; border: 0; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: box-shadow .25s, transform .3s var(--spring); }
.ch[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); transform: scale(1.01); }
.ch .tx { flex: 1; min-width: 0; }
.ch b { display: block; }
.ch span.s { display: block; font-size: .875rem; color: var(--muted); }
.ch .pr { font-size: .8125rem; font-weight: 700; color: var(--ink2); text-align: right; max-width: 40%; }
.ch .rad { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.ch[aria-pressed="true"] .rad { box-shadow: inset 0 0 0 7px var(--ink); }
.checks { display: grid; gap: 4px; }
.chk { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border: 0; background: none; text-align: left; font-size: .98rem; }
.chk i { flex: none; width: 24px; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); display: grid; place-items: center; font-style: normal; color: #fff; font-size: .8rem; font-weight: 700; }
.chk[aria-checked="true"] i { background: var(--ink); box-shadow: none; }
.who2 { display: grid; gap: 8px; }
.who2 .ch .face { margin-left: 0; width: 40px; height: 40px; }
.worth { display: grid; gap: 10px; }
.worth div { position: relative; padding: 16px 16px 16px 54px; border-radius: 20px; background: var(--field); }
.worth .wn { position: absolute; left: 16px; top: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--onbtn); font-size: .75rem; font-weight: 700; }
.worth b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.1rem; }
.worth p { margin: 4px 0 0; color: var(--ink2); font-size: .95rem; }
.bsig { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.bsig .mini { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f3f7fc, #9cc1ec 55%, #4588d3); position: relative; flex: none; animation: orbm 9s ease-in-out infinite; }
.bsig .mini::before, .bsig .mini::after { content: ""; position: absolute; top: 9px; width: 5px; height: 7px; border-radius: 50%; background: #fff; }
.bsig .mini::before { left: 7px; } .bsig .mini::after { right: 7px; }
/* psychologist view */
.psyv { max-width: 980px; }
.pbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: #111; color: #fff; font-size: .8125rem; font-weight: 600; }
.pbar i { width: 8px; height: 8px; border-radius: 50%; background: #34c759; }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; margin-top: 16px; }
.pcard { padding: 18px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; align-content: start; }
.pcard h3 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.2rem; }
.pcard .q { font-family: var(--serif); font-style: italic; color: var(--ink2); font-size: .95rem; padding-left: 12px; box-shadow: inset 2px 0 0 rgba(0,0,0,.12); margin: 0; }
.mhyp { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.mhyp .orb { flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--field); color: var(--ink2); }
.chips span.g { background: var(--cyan); color: var(--cyan-ink); }
.draft { width: 100%; min-height: 280px; border: 0; border-radius: 16px; background: var(--field); padding: 14px 16px; resize: vertical; outline: none; line-height: 1.6; font-size: .95rem; }
.pacts { display: flex; flex-wrap: wrap; gap: 10px; }
/* reply */
.letter { margin-top: 24px; padding: 24px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px -30px rgba(45,98,170,.5); }
.letter .from { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.letter .from .face { margin-left: 0; }
.letter .from b { display: block; }
.letter .from span { font-size: .8125rem; color: var(--muted); }
.letter p { margin: 0 0 12px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.65; color: var(--ink); white-space: pre-line; }
.added { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .875rem; font-weight: 600; color: var(--cyan-ink); background: var(--cyan); padding: 6px 12px; border-radius: 999px; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: .8125rem; font-weight: 600; }
.badge .face { width: 26px; height: 26px; font-size: .625rem; border-width: 0; margin-left: 0; }
.fine2 { margin: 8px 2px 0; font-size: .75rem; color: var(--faint); }
@media (max-width: 760px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- notification and sheets ---------- */
.lock { position: fixed; inset: 0; z-index: 60; display: grid; align-content: start; justify-items: center; padding: max(70px, env(safe-area-inset-top, 0px)) 16px 0; color: #fff; text-align: center;
  background: radial-gradient(600px 500px at 20% 10%, #4a7fc3, transparent 70%), radial-gradient(600px 600px at 90% 95%, #d98a68, transparent 70%), #18202e; animation: fade .5s both; }
@keyframes fade { from { opacity: 0; } }
.lock .clk { font-size: 5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.lock .dt { margin-top: 6px; font-weight: 600; opacity: .85; }
.banner { margin-top: 36px; width: min(420px, 100%); display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border: 0; border-radius: 22px; background: var(--card-a); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #111; animation: drop .8s var(--spring) .6s both; }
@keyframes drop { from { opacity: 0; transform: translateY(-34px) scale(.96); } }
.banner .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--card); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.banner .ic svg { width: 26px; height: 26px; }
.banner small { display: flex; justify-content: space-between; font-size: .75rem; color: rgba(0,0,0,.55); font-weight: 600; }
.banner b { display: block; font-size: .95rem; }
.banner span.t { display: block; font-size: .9rem; color: rgba(0,0,0,.72); }
.lock .tap { margin-top: 16px; font-size: .8125rem; opacity: .7; }
.scrim { position: fixed; inset: 0; z-index: 70; background: var(--scrim); animation: fade .3s both; }
.sheet { position: fixed; z-index: 71; left: 50%; bottom: 0; width: min(560px, 100%); transform: translateX(-50%); max-height: 88vh; overflow-y: auto; border-radius: 28px 28px 0 0; background: var(--card); padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); animation: up .55s var(--ease) both; box-shadow: 0 -20px 60px -30px rgba(0,0,0,.35); }
@keyframes up { from { transform: translate(-50%, 100%); } }
.grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.12); margin: 0 auto 14px; }
.shead { display: flex; align-items: center; margin-bottom: 12px; }
.shead b { flex: 1; font-size: 1.05rem; }
.shead button { border: 0; background: none; font-weight: 700; min-height: 44px; }
.doc { padding: 22px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; }
.doc h3 { margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.doc h5 { margin: 8px 0 0; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.doc p { margin: 0; color: var(--ink2); font-size: .95rem; }
.doc .f { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.tiers { display: grid; gap: 10px; }
.tier { padding: 16px 18px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.tier.on { box-shadow: inset 0 0 0 2px var(--ink); }
.tier .r { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.tier b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.2rem; }
.tier .pr { font-weight: 700; font-variant-numeric: tabular-nums; }
.tier p { margin: 4px 0 0; color: var(--ink2); font-size: .9rem; }
.toast { position: fixed; z-index: 90; left: 50%; top: max(18px, env(safe-area-inset-top, 0px)); transform: translateX(-50%); padding: 11px 18px; border-radius: 999px; background: var(--btn); color: var(--onbtn); font-weight: 600; font-size: .9rem; white-space: nowrap; animation: drop .5s var(--spring) both; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .1s !important; }
}

/* ================= Bounded Companion app (29 Oct 2026) ================= */
.bbf { position: relative; display: inline-block; vertical-align: bottom; flex: 0 0 auto; }
.bbf svg { overflow: visible; }
.bbf__bubble { position: absolute; left: 66%; top: -26%; width: max-content; max-width: 190px; padding: 9px 13px; border-radius: 16px 16px 16px 5px; background: var(--card); color: var(--ink); font: 500 14px/1.35 var(--sans); box-shadow: 0 10px 26px -14px rgba(16,21,31,.5); opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .6s var(--ease); pointer-events: none; z-index: 3; }
.bbf__bubble.is-on { opacity: 1; transform: none; }
.hero-b { display: grid; justify-items: center; margin-bottom: 8px; }
.qrow { display: flex; align-items: flex-end; gap: 14px; }
.qrow h1 { flex: 1; min-width: 0; }
.qrow .bbf { flex: none; margin-bottom: -6px; }
.thinkb { position: fixed; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -62%); pointer-events: none; }
.thinkv { min-height: 72vh; display: grid; place-items: end center; text-align: center; padding-bottom: 8vh; }
.sigb { display: flex; align-items: center; gap: 10px; }
.sigb .bbf { flex: none; }
.form { display: grid; gap: 14px; margin-top: 26px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 52px; border: 0; border-radius: 16px; padding: 12px 16px; background: var(--field); font-size: 1.05rem; outline: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background .2s; }
.field input:focus, .field textarea:focus { background: var(--card); box-shadow: inset 0 0 0 1px var(--faint); }
.field input.code { font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.row2 { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.err { margin: 0; color: #b4321f; font-size: .9rem; }
.ok { margin: 0; color: var(--cyan-ink); font-size: .9rem; }
.pill[disabled] { opacity: .4; cursor: default; }
.pill.wait { position: relative; color: transparent !important; }
.pill.wait::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.pill.ghost.wait::after { border-color: var(--line); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.testnote { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--amber); color: var(--amber-ink); font-size: .8125rem; }
.safetyc { margin-top: 22px; padding: 16px 18px; border-radius: 20px; background: var(--amber); }
.safetyc b { color: var(--amber-ink); }
.safetyc p { margin: 4px 0 0; color: var(--ink2); font-size: .95rem; }
.checkin { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 18px; border-radius: 22px; background: var(--btn); color: var(--onbtn); border: 0; width: 100%; text-align: left; box-shadow: 0 20px 44px -24px rgba(0,0,0,.6); animation: rise .7s var(--ease) both; }
.checkin b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.25rem; }
.checkin span.s { display: block; font-size: .9rem; opacity: .75; }
.checkin .go { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--onbtn); color: var(--btn); display: grid; place-items: center; }
.checkin .go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.replyc { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 16px 18px; border-radius: 22px; background: linear-gradient(140deg, var(--blue-soft), var(--peach-soft)); border: 0; width: 100%; text-align: left; box-shadow: inset 0 0 0 1px var(--line); animation: rise .7s var(--ease) both; }
.replyc b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; }
.replyc span.s { display: block; font-size: .875rem; color: var(--muted); }
.running .mini2 { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.sm { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--card-a); font-weight: 600; font-size: .875rem; color: var(--cyan-ink); box-shadow: inset 0 0 0 1px rgba(13,106,122,.2); }
.learnlinks { display: grid; gap: 8px; margin-top: 12px; }
.ll { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--field); text-decoration: none; color: var(--ink); }
.ll b { font-family: var(--serif); font-style: italic; font-weight: 500; }
.ll span { margin-left: auto; color: var(--muted); }
.empty2 { padding: 26px 18px; border-radius: 22px; background: var(--field); text-align: center; color: var(--muted); }
.list { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border: 0; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--spring), box-shadow .3s; }
.item:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 14px 30px -22px rgba(0,0,0,.4); }
.item .tx { flex: 1; min-width: 0; }
.item b { display: block; }
.item span.s { display: block; font-size: .875rem; color: var(--muted); }
.st { flex: none; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--peach-soft); color: #b05a37; }
.st.done { background: var(--cyan); color: var(--cyan-ink); }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; margin-top: 20px; }
.tl { display: grid; gap: 12px; }
.tli { padding: 16px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tli .d { font-size: .75rem; color: var(--muted); font-weight: 600; }
.tli b { display: block; margin: 2px 0 6px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.1rem; }
.tli p { margin: 0 0 6px; color: var(--ink2); font-size: .95rem; }
.tli .q { font-family: var(--serif); font-style: italic; }
.sticky { position: sticky; top: 16px; }
.sheetform { display: grid; gap: 12px; }
.invl { display: grid; gap: 8px; margin-top: 14px; }
.inv { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--field); font-size: .875rem; }
.inv code { font-size: .8125rem; word-break: break-all; flex: 1; }
.menu { display: grid; gap: 6px; }
.mi { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--field); text-align: left; font-weight: 600; font-size: 1rem; }
.mi span { margin-left: auto; color: var(--muted); font-weight: 500; font-size: .875rem; }
.mi.danger { color: #b4321f; }
.segm { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--field); }
.segm button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .875rem; color: var(--muted); }
.segm button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.who3 { display: flex; align-items: center; gap: 12px; }
.letter .from .face, .badge .face, .faces .face { overflow: hidden; }
.print-only { display: none; }
@media print {
  body * { visibility: hidden; }
  .printdoc, .printdoc * { visibility: visible; }
  .printdoc { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
}
@media (max-width: 760px) { .case { grid-template-columns: minmax(0, 1fr); } .sticky { position: static; } }

@media (max-width: 440px) { .top { gap: 6px; } .brand span { display: none; } .qbtn { padding: 7px 11px; font-size: .8125rem; } }
.ll b { font-size: 1.05rem; }

/* ---------- How it works ---------- */
/* ---------- the plan ---------- */
.plan { max-width: 760px; }
.plan .eb { margin: 0 0 14px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan h1 { font-size: clamp(2.2rem, 5.6vw, 3.4rem); line-height: 1.06; }
.plan .lede { margin-left: 0; font-size: 1.15rem; max-width: 36rem; }
.pl { margin-top: 64px; }
.pl > .cap { margin-bottom: 6px; }
.pl > h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin-bottom: 18px; }
.pl > .sub { margin: -8px 0 20px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mk2 { padding: 22px; border-radius: 26px; background: linear-gradient(160deg, var(--blue-soft), var(--card)); box-shadow: inset 0 0 0 1px var(--line); }
.mk2:nth-child(2) { background: linear-gradient(160deg, var(--peach-soft), var(--card)); }
.mk2 small { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mk2 b { display: block; margin: 6px 0 8px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.35rem; line-height: 1.2; }
.mk2 p { margin: 0; color: var(--ink2); }
.flow { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: linear-gradient(90deg, #9cc1ec, #f0a07c); border-radius: 2px; transform-origin: 0 50%; animation: grow 1.6s var(--ease) .3s both; }
@keyframes grow { from { transform: scaleX(0); } }
.fs { position: relative; text-align: center; }
.fs .o { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: #fff; animation: orbm 9s ease-in-out infinite, pop .7s var(--spring) both; animation-delay: 0s, calc(var(--i) * 140ms + .3s); }
.fs:nth-child(odd) .o { background: radial-gradient(circle at 35% 30%, #f3f7fc, #9cc1ec 55%, #4588d3); }
.fs:nth-child(even) .o { background: radial-gradient(circle at 35% 30%, #fff6f1, #f7c3aa 55%, #e98a63); }
.fs:last-child .o { background: radial-gradient(circle at 35% 30%, #eefbfd, #9fdbe6 55%, #2a9fb3); }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
.fs b { display: block; font-size: .95rem; }
.fs span { display: block; margin-top: 4px; font-size: .8125rem; color: var(--muted); line-height: 1.4; }
.rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rows .n { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--faint); line-height: 1; }
.rows b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.2rem; }
.rows p { margin: 4px 0 0; color: var(--ink2); }
.delights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dl { padding: 20px; border-radius: 24px; background: var(--field); transition: transform .35s var(--spring); }
.dl:hover { transform: translateY(-4px); }
.dl .dot { width: 30px; height: 30px; border-radius: 50%; margin-bottom: 12px; animation: orbm 9s ease-in-out infinite; }
.dl:nth-child(3n+1) .dot { background: radial-gradient(circle at 35% 30%, #f3f7fc, #9cc1ec 55%, #4588d3); }
.dl:nth-child(3n+2) .dot { background: radial-gradient(circle at 35% 30%, #fff6f1, #f7c3aa 55%, #e98a63); }
.dl:nth-child(3n) .dot { background: radial-gradient(circle at 35% 30%, #eefbfd, #9fdbe6 55%, #2a9fb3); }
.dl b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; }
.dl p { margin: 6px 0 0; color: var(--ink2); font-size: .95rem; }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.of { background: var(--card); padding: 22px; border-radius: 26px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; background: #fff; }
.of.mid { background: var(--btn); color: var(--onbtn); box-shadow: 0 24px 50px -24px rgba(0,0,0,.5); transform: translateY(-6px); }
.of b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.25rem; }
.of .pr { font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.of p { margin: 0; font-size: .95rem; color: var(--ink2); }
.of.mid p { color: var(--onbtn); opacity: .78; }
.cuts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cuts li { display: flex; gap: 12px; align-items: baseline; color: var(--ink2); }
.cuts li::before { content: "×"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--field); color: var(--muted); font-weight: 700; font-size: .85rem; transform: translateY(3px); }
.cuts li span { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.steps90 { display: grid; gap: 12px; }
.s90 { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 20px; border-radius: 24px; background: linear-gradient(120deg, var(--blue-soft), var(--peach-soft)); }
.s90 b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; }
.s90 p { margin: 0; color: var(--ink2); }
.closer { margin-top: 56px; padding: 30px; border-radius: 30px; background: var(--btn); color: var(--onbtn); color: #fff; text-align: center; }
.closer p { margin: 0 auto; max-width: 32rem; font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; }
.closer .pill { margin-top: 20px; background: var(--onbtn); color: var(--btn); }
.planbtn { flex: none; border: 0; border-radius: 999px; min-height: 40px; padding: 0 14px; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: .8125rem; }
.planbtn[aria-pressed="true"] { background: #fff; color: #111; }
@media (max-width: 760px) {
  .two, .delights, .offers { grid-template-columns: 1fr; }
  .of.mid { transform: none; }
  .flow { grid-template-columns: 1fr 1fr 1fr; row-gap: 22px; }
  .flow::before { display: none; }
  .s90 { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) { .planbtn { padding: 0 10px; } }


/* ---------- v3: logo, avatar menu, example, Boundy's own words, dark mode (29 Oct 2026) ---------- */
html, body { background: var(--bg); color: var(--ink); }
.logo { display: inline-flex; align-items: center; color: var(--ink); line-height: 0; }
.logo svg { height: 30px; width: auto; display: block; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; font-weight: 700; font-size: .8125rem; color: #fff; background: linear-gradient(140deg, #2f74c9, #4588d3); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line); transition: transform .3s var(--spring); }
.avatar:active { transform: scale(.94); }
.pop { position: fixed; z-index: 72; width: 320px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 8px; border-radius: 20px; background: var(--sheet); box-shadow: 0 0 0 1px var(--line), 0 24px 60px -20px rgba(0,0,0,.35); transform-origin: top right; animation: popin .32s var(--spring) both; }
@keyframes popin { from { opacity: 0; transform: scale(.92) translateY(-6px); } }
.pop .who { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pop .who b { display: block; }
.pop .who span { display: block; font-size: .8125rem; color: var(--muted); }
.pop .mi, .sheet .mi { background: transparent; min-height: 46px; border-radius: 12px; }
.pop .mi:hover, .sheet .mi:hover { background: var(--field); }
.mi .ico { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--field); color: var(--ink2); }
.mi .ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mi.danger .ico { color: #c8473a; }
.msep { height: 1px; background: var(--line); margin: 6px 10px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 46px; font-weight: 600; }
.mrow .segm { margin-left: auto; }
.demo { position: sticky; top: max(10px, env(safe-area-inset-top, 0px)); z-index: 30; display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 10px 12px 10px 16px; border-radius: 999px; background: var(--btn); color: var(--onbtn); font-size: .875rem; font-weight: 600; box-shadow: 0 14px 30px -18px rgba(0,0,0,.6); }
.demo span { flex: 1; min-width: 0; }
.demo button { border: 0; border-radius: 999px; padding: 7px 14px; background: var(--onbtn); color: var(--btn); font-weight: 700; font-size: .8125rem; }
.founder { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--card-a); box-shadow: inset 0 0 0 1px var(--line); text-align: left; font-size: .875rem; color: var(--ink2); text-decoration: none; }
.founder .face { width: 36px; height: 36px; font-size: .75rem; margin: 0; border: 0; }
.founder b { color: var(--ink); }
.say2 { position: absolute; left: calc(50% + 46px); top: -6px; width: max-content; max-width: 220px; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--card); color: var(--ink); font-size: .9375rem; line-height: 1.35; text-align: left; box-shadow: 0 12px 30px -16px rgba(16,21,31,.55), inset 0 0 0 1px var(--line); opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .45s var(--ease), transform .55s var(--spring); pointer-events: none; z-index: 3; }
.say2.on { opacity: 1; transform: none; }
.hero-b { position: relative; }
.qrow .hb2 { position: relative; }
.qrow .say2 { left: auto; right: 64px; top: -40px; border-radius: 18px 18px 6px 18px; }
.trylink { margin-top: 14px; }
@media (max-width: 560px) { .say2 { left: calc(50% + 30px); max-width: 160px; font-size: .875rem; } .pop { left: 12px !important; right: 12px !important; width: auto; } }
:root[data-theme="dark"] .face { border-color: var(--card); }
:root[data-theme="dark"] .lc .a2 { fill: #2b4a72; }
:root[data-theme="dark"] .bbf__bubble { background: var(--card); color: var(--ink); }

/* v3 fixes */
.mi .ico ~ span { margin-left: auto; }
.mi span.ico { margin-left: 0; }
.mico { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--field); color: var(--ink2); }
.mico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mrow { padding: 6px 12px; }
.pop { width: 340px; }
.pop .segm button, .sheet .mrow .segm button { padding: 6px 11px; font-size: .8125rem; }
.pop .who .avatar, .sheet .who .avatar { display: grid; width: 40px; height: 40px; }
.sheet .who { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.sheet .who b { display: block; } .sheet .who span span { display: block; font-size: .8125rem; color: var(--muted); }
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 74px; }
.hrow .hello { margin: 0; }
.hrow .hb2 { position: relative; flex: none; }
.hrow .say2 { left: auto; right: calc(100% + 6px); top: 10px; border-radius: 18px 18px 6px 18px; }
.brand span.logo { display: inline-flex; }
@media (max-width: 440px) { .logo svg { height: 24px; } .hrow .say2 { max-width: 170px; } }

/* v4: menu sections, plan chip, plans page (30 Oct 2026) */
.mh { padding: 14px 12px 4px; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pop .mi, .sheet .mi { min-height: 42px; }
.mi > span:last-child:not(.ico) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%; }
.planchip { display: flex; align-items: center; gap: 10px; width: calc(100% - 8px); margin: 4px 4px 2px; padding: 12px 14px; border: 0; border-radius: 14px; background: linear-gradient(120deg, var(--halo-a, #e8f0fb), var(--halo-b, #fbeee6)); color: var(--ink); text-align: left; font-size: .875rem; }
.planchip span { color: var(--ink2); }
.planchip b { margin-left: auto; font-weight: 700; }
.planchip i { font-style: normal; color: var(--muted); }
:root[data-theme="dark"] .planchip { background: linear-gradient(120deg, #1d2a3d, #2c2421); }
.pop { width: 352px; }
.sheet .menu .who { border-bottom: 0; padding-bottom: 6px; }
.infol { display: grid; gap: 10px; }
.infol > div { padding: 14px 16px; border-radius: 16px; background: var(--field); }
.infol b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.1rem; }
.infol p { margin: 2px 0 0; color: var(--ink2); }
.item[disabled] { cursor: default; opacity: .85; }
.item[disabled]:hover { transform: none; }

.plansv { max-width: 1040px; margin: 0 auto; }
.plansv .lede { margin-left: 0; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; align-items: stretch; }
.plcard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 22px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -30px rgba(0,0,0,.4); transition: transform .35s var(--spring), box-shadow .35s; }
.plcard:hover { transform: translateY(-3px); }
.plcard.rec { background: var(--btn); color: var(--onbtn); box-shadow: 0 26px 50px -26px rgba(0,0,0,.55); }
.plcard.rec .d, .plcard.rec li, .plcard.rec .per, .plcard.rec .alt { color: inherit; opacity: .78; }
.plcard .nm { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.4rem; }
.plcard .prow { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plcard .pr { font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; }
.plcard .per, .plcard .alt { color: var(--muted); font-size: .875rem; }
.plcard .d { margin: 4px 0 2px; color: var(--ink2); }
.plcard ul { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 8px; }
.plcard li { position: relative; padding-left: 26px; color: var(--ink2); font-size: .9375rem; line-height: 1.4; }
.plcard li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 14px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) scale(.8); opacity: .7; }
.plcard .pill { margin-top: auto; width: 100%; }
.plcard.rec .pill { background: var(--onbtn); color: var(--btn); }
.plcard.mine .pill[disabled] { opacity: 1; background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.pbadge { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(120deg, #7fcfdc, #f3b89c); color: #10151f; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ph2 { margin: 46px 0 14px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.6rem; }
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scard { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 22px; background: var(--field); }
.scard .r { display: flex; align-items: baseline; gap: 10px; }
.scard .nm { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; }
.scard .pr { margin-left: auto; font-weight: 700; }
.scard p { margin: 0 0 10px; color: var(--ink2); font-size: .9375rem; }
.scard .sm { margin-top: auto; align-self: flex-start; background: var(--card); }
.forl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.forl > div { padding: 18px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.forl .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--btn); color: var(--onbtn); font-size: .75rem; font-weight: 700; }
.forl b { display: block; margin: 10px 0 4px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; }
.forl p { margin: 0; color: var(--ink2); font-size: .9375rem; }
.plansv .testnote { margin-top: 30px; }
@media (max-width: 820px) { .pgrid, .sgrid, .forl { grid-template-columns: minmax(0, 1fr); } }
.pbadge { top: -11px; right: auto; left: 22px; box-shadow: 0 6px 14px -8px rgba(0,0,0,.4); }
.scard .pr, .plcard .pr { white-space: nowrap; }
.plansv h1 { margin-top: 18px; }

/* v5: Portrait in four areas, the short formulation and its stamp */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.portraitv .sfcard { margin-top: 24px; padding: 22px 22px 18px; border-radius: 26px; background: linear-gradient(135deg, #f1f7fd, #fdf3ee); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .portraitv .sfcard { background: linear-gradient(135deg, #18263a, #2a2220); }
.sfcard .sfh { display: flex; align-items: center; justify-content: space-between; }
.sfcard .cap { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sfcard p { margin: 10px 0 14px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: var(--ink); }
.sfcard.none p { font-family: inherit; font-size: 1rem; color: var(--ink2); }
.seal svg { width: 40px; height: 40px; fill: none; stroke: var(--cyan-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.seal circle { stroke-dasharray: 4 3; }
.stamp { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.stamp .face { width: 34px; height: 34px; font-size: .7rem; margin: 0; }
.stamp b { display: block; font-size: .875rem; }
.stamp span span { display: block; font-size: .75rem; color: var(--muted); }
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.area { padding: 18px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-top: 4px solid var(--c); }
.area h2 { margin: 0 0 10px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.3rem; }
.area ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.area li { display: flex; gap: 8px; align-items: baseline; color: var(--ink2); line-height: 1.4; }
.area li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); transform: translateY(-2px); }
.area li .tag { margin-left: auto; flex: none; }
.area .tag.sf { background: var(--cyan); color: var(--cyan-ink); font-weight: 700; }
.area .empty { margin: 0; color: var(--muted); font-size: .9rem; }
.addf { display: flex; gap: 6px; margin-top: 12px; }
.addf input { flex: 1; min-width: 0; min-height: 40px; border: 0; border-radius: 12px; padding: 0 12px; background: var(--field); color: var(--ink); font-size: .9375rem; }
.addf input:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 1px; }
.sfed { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.sfed h3 { margin: 0 0 4px; }
.sfed label { font-size: .8125rem; font-weight: 700; color: var(--ink2); }
.sfed label span { font-weight: 500; color: var(--muted); }
.sfed textarea { width: 100%; border: 0; border-radius: 12px; padding: 10px 12px; background: var(--field); color: var(--ink); font: inherit; font-size: .9375rem; resize: vertical; }
@media (max-width: 640px) { .areas { grid-template-columns: minmax(0, 1fr); } }

/* v6: home and accessibility (30 Oct 2026) */
.below { margin-top: max(20px, calc(var(--halo) * .24 - 150px)); }
:focus-visible { outline: 2.5px solid var(--cyan-ink); outline-offset: 3px; }
.tag.p { color: #8f4526; }
:root[data-theme="dark"] .tag.p { background: rgba(243,184,156,.16); color: #f3c3ad; }
.sm { min-height: 44px; }
.starts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.starts button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--field); color: var(--ink2); font-weight: 600; font-size: .875rem; transition: transform .25s var(--spring), background .2s; }
.starts button:hover { background: var(--cyan); color: var(--cyan-ink); }
.starts button:active { transform: scale(.96); }
.pprev { display: grid; gap: 14px; width: 100%; padding: 20px; border: 0; border-radius: 24px; text-align: left; color: var(--ink); background: linear-gradient(135deg, #f1f7fd, #fdf3ee); box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--spring); }
:root[data-theme="dark"] .pprev { background: linear-gradient(135deg, #18263a, #2a2220); }
.pprev:hover { transform: translateY(-2px); }
.pp-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-h b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.35rem; margin-right: auto; }
.pp-s { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--cyan-ink); }
.pp-s .seal svg { width: 22px; height: 22px; }
.pp-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pp-g span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--card); font-size: .8125rem; font-weight: 600; color: var(--ink2); border-top: 3px solid var(--c); }
.pp-g i { font-style: normal; font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.pp-go { font-weight: 700; font-size: .875rem; }
@media (max-width: 520px) { .pp-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .starts button, .pprev, .plcard { transition: none; } }
@media (max-width: 440px) { .hrow .say2 { max-width: 140px; font-size: .8125rem; } }

/* v7: voice, thinking aloud, the weights moving, the stamp (30 Oct 2026) */
.box .bar { position: relative; }
.ibtn.mic { width: 52px; height: 52px; background: var(--btn); color: var(--onbtn); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); transition: transform .3s var(--spring); }
.ibtn.mic svg { width: 23px; height: 23px; }
.ibtn.mic:active { transform: scale(.92); }
.ibtn.mic.rec { background: #c8473a; color: #fff; }
.wave { display: none; align-items: center; gap: 4px; height: 26px; margin-left: 4px; }
.wave i { display: block; width: 4px; height: 8px; border-radius: 4px; background: var(--blue); animation: wv .9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .12s; } .wave i:nth-child(3) { animation-delay: .24s; } .wave i:nth-child(4) { animation-delay: .36s; } .wave i:nth-child(5) { animation-delay: .48s; }
@keyframes wv { 0%, 100% { height: 6px; opacity: .5; } 50% { height: 24px; opacity: 1; } }
.box.listening .wave { display: inline-flex; }
.lst { font-size: .875rem; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box.listening { box-shadow: inset 0 0 0 2px rgba(200,71,58,.45), 0 22px 60px -24px rgba(200,71,58,.35); }
.box.tidying textarea { background: linear-gradient(90deg, transparent 0%, rgba(106,168,236,.16) 50%, transparent 100%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.box:not(.listening):not(.tidying) .lst { display: none; }
.rawsw { border: 0; background: none; padding: 6px 8px; font-size: .8125rem; font-weight: 600; color: var(--cyan-ink); text-decoration: underline; text-underline-offset: 3px; }
ul.ph { list-style: none; margin: 14px auto 0; padding: 0; display: grid; gap: 6px; max-width: 420px; }
ul.ph li { color: var(--ink2); opacity: var(--o, 1); font-size: 1rem; transition: opacity .6s; }
ul.ph li.new { animation: thought .7s var(--spring) both; color: var(--ink); }
@keyframes thought { from { opacity: 0; transform: translateY(10px) scale(.97); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.interp .orb { transition: width 1.4s var(--ease), height 1.4s var(--ease), box-shadow 1.4s; }
.interp.gain .orb { box-shadow: 0 0 0 10px rgba(106,168,236,.14), 0 0 40px 6px rgba(106,168,236,.35); }
.interp.gain .pc { color: var(--cyan-ink); font-weight: 800; }
.shift { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink); opacity: 0; transform: translateY(8px); transition: opacity .7s, transform .7s var(--spring); }
.shift.on { opacity: 1; transform: none; }
.sfcard { position: relative; overflow: hidden; }
.sfcard.stamping .seal svg { animation: stampIn 1.1s cubic-bezier(.2,.9,.25,1.2) .5s both; }
.sfcard.stamping::after { content: ""; position: absolute; right: 18px; top: 14px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--cyan-ink); opacity: 0; animation: inkRing 1s ease-out 1.05s both; pointer-events: none; }
.sfcard.stamping .stamp { animation: rise .7s var(--ease) 1.3s both; }
@keyframes stampIn { 0% { transform: scale(2.8) rotate(-24deg); opacity: 0; } 55% { transform: scale(.88) rotate(4deg); opacity: 1; } 75% { transform: scale(1.06) rotate(-1deg); } 100% { transform: none; opacity: 1; } }
@keyframes inkRing { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
.mnote { margin: -4px 12px 6px 54px; font-size: .75rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .wave i, .box.tidying textarea, ul.ph li.new, .sfcard.stamping .seal svg, .sfcard.stamping::after { animation: none; } .interp .orb, .shift { transition: none; } }

/* v8: reminders, consent, delete (30 Oct 2026) */
.remask { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 4px 0 6px; }
.remask p { margin: 0; color: var(--ink2); max-width: 34ch; }
.bell { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: var(--cyan-ink); animation: ring2 2.4s ease-in-out .3s both; }
.bell svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 10%; animation: swing 1.4s ease-in-out .5s 2; }
@keyframes swing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-11deg); } 60% { transform: rotate(7deg); } 80% { transform: rotate(-4deg); } }
@keyframes ring2 { from { transform: scale(.6); opacity: 0; } 50% { transform: scale(1.06); opacity: 1; } to { transform: none; } }
.remask .acts { justify-content: center; margin-top: 10px; }
.cbox { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--field); cursor: pointer; }
.cbox input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--cyan-ink); }
.cbox span { color: var(--ink); font-size: .95rem; line-height: 1.45; }
.pill.danger { background: #b4321f; color: #fff; }
.pill.ghost.danger2 { color: #b4321f; box-shadow: inset 0 0 0 1px rgba(180,50,31,.35); }
:root[data-theme="dark"] .pill.ghost.danger2 { color: #f19a8c; box-shadow: inset 0 0 0 1px rgba(241,154,140,.4); }
@media (prefers-reduced-motion: reduce) { .bell, .bell svg { animation: none; } }

.toast { white-space: normal; width: max-content; max-width: min(92vw, 460px); text-align: center; border-radius: 18px; line-height: 1.35; }

/* v9: Learn surfaced by the thread (30 Oct 2026) */
.lks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); gap: 10px; margin-top: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.lks::-webkit-scrollbar { display: none; }
.lks > * { scroll-snap-align: start; }
.lk { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; padding: 16px; border: 0; border-radius: 22px; text-align: left; color: var(--ink); background: var(--field); cursor: pointer; transition: transform .3s var(--spring); }
.lk:hover { transform: translateY(-3px); }
.lk:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 2px; }
.lk svg { width: 64px; height: 38px; display: block; margin-bottom: 6px; }
.lk .a1 { fill: var(--blue); } .lk .a2 { fill: #bcd4f0; } .lk .a3 { fill: var(--peach); } .lk .ln { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; } .lk .dash { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 3 3; }
:root[data-theme="dark"] .lk .a2 { fill: #2b4a72; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lk .a2 { fill: #2b4a72; } }
.lk-k { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lk-t { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.08rem; line-height: 1.25; }
.lk-w { font-size: .8125rem; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lkr h4 { margin: 18px 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lkr p { margin: 0; color: var(--ink2); line-height: 1.5; }
.lkr-why { padding: 12px 14px; border-radius: 14px; background: var(--cyan); color: var(--cyan-ink) !important; font-weight: 600; margin-bottom: 10px !important; }
.lkr-short { font-family: var(--serif); font-size: 1.15rem; color: var(--ink) !important; }
.lkr-try { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lkr-try li { position: relative; padding: 10px 12px 10px 38px; border-radius: 12px; background: var(--field); color: var(--ink2); line-height: 1.4; }
.lkr-try li::before { content: ""; position: absolute; left: 13px; top: 13px; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--cyan-ink); }

/* v10: the Speak button and recording (30 Oct 2026) */
.mic2 { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--btn); color: var(--onbtn); font-weight: 700; font-size: 1rem; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); transition: transform .25s var(--spring), background .2s; flex: none; }
.mic2 svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mic2:active { transform: scale(.95); }
.mic2.rec { background: #c8473a; color: #fff; animation: recPulse 1.6s ease-in-out infinite; }
@keyframes recPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200,71,58,.45); } 50% { box-shadow: 0 0 0 10px rgba(200,71,58,0); } }
.box.listening .wave i { transition: height .08s linear; }
.box.listening .lst { color: var(--ink2); font-weight: 600; white-space: normal; }
@media (max-width: 420px) { .box .bar { flex-wrap: wrap; } .box.listening .lst { flex-basis: 100%; order: 5; padding: 4px 4px 0; } }
@media (prefers-reduced-motion: reduce) { .mic2.rec { animation: none; } }

/* ---------- v16 (30 Oct 2026): closer to the prototype, made for the phone first ---------- */
/* dark: a deep night sky with a luminous blue moon and a warm edge, like the prototype's halo turned to night */
:root[data-theme="dark"] {
  --bg: #0a0f1a; --field: #172030; --card: #141c2a; --card-a: rgba(20,28,42,.8); --glassy: rgba(20,28,42,.66); --sheet: #141c2a;
  --halo-core: #5c86c0; --halo-1: #4a76b6; --halo-2: rgba(69,136,211,.62); --halo-3: rgba(69,136,211,.3); --halo-4: rgba(69,136,211,.09);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0a0f1a; --field: #172030; --card: #141c2a; --card-a: rgba(20,28,42,.8); --glassy: rgba(20,28,42,.66); --sheet: #141c2a;
  --halo-core: #5c86c0; --halo-1: #4a76b6; --halo-2: rgba(69,136,211,.62); --halo-3: rgba(69,136,211,.3); --halo-4: rgba(69,136,211,.09);
} }
:root[data-theme="dark"] .halo { box-shadow: 0 0 120px 10px rgba(69,136,211,.22); }
:root[data-theme="dark"] .halo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(55% 30% at 62% 86%, rgba(244,176,143,.32), rgba(244,176,143,0) 70%); }
/* the phone: a bigger halo, so it is seen and felt as on the prototype */
@media (max-width: 600px) {
  :root { --halo: 168vw; }
  .halo { top: calc(var(--halo) * -.58); }
  .below { margin-top: max(24px, calc(var(--halo) * .42 - 190px)); }
  h1, .h1 { font-size: 2.05rem; }
}
/* the example: a quiet glass pill at the bottom, as the prototype's guide */
.demo { position: fixed; top: auto; bottom: max(14px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); margin: 0; z-index: 40;
  background: rgba(17,17,17,.84); color: #fff; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); font-size: .8125rem; animation: drop .6s var(--spring) .4s both; }
.demo button { min-height: 36px; background: #fff; color: #111; }
:root[data-theme="dark"] .demo { background: rgba(242,244,248,.92); color: #111; } :root[data-theme="dark"] .demo button { background: #111; color: #fff; }
body:has(.demo) .page { padding-bottom: 96px; }
/* the speak button: light until it listens */
.mic2 { height: 48px; padding: 0 18px 0 14px; background: var(--field); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.mic2:hover { background: var(--cyan); color: var(--cyan-ink); }
.mic2.rec { box-shadow: 0 10px 24px -12px rgba(200,71,58,.7); }
.box.listening { box-shadow: inset 0 0 0 2px rgba(200,71,58,.55), 0 22px 60px -24px rgba(200,71,58,.35); }
.box textarea { transition: height .25s var(--ease); }
/* touch targets of at least 44 points (Apple) */
.starts button { min-height: 44px; }
.qbtn { min-height: 44px; }
/* the lock screen preview */
.lock { gap: 0; z-index: 95; }
.lock.out { animation: fadeOut .38s var(--ease) both; }
@keyframes fadeOut { to { opacity: 0; transform: scale(1.02); } }
.lock .clk { margin-top: 10px; font-variant-numeric: tabular-nums; animation: rise .8s var(--ease) .1s both; }
.lock .dt { animation: rise .8s var(--ease) .2s both; }
.lock .banner { background: rgba(255,255,255,.86); color: #111; cursor: pointer; }
.lock .banner small { color: rgba(0,0,0,.55); }
.lock .banner span.t { color: rgba(0,0,0,.8); font-size: .95rem; }
.lock .banner .ic i { width: 24px; height: 24px; border-radius: 50%; display: block; background: radial-gradient(circle at 35% 30%, #f3f7fc, #9cc1ec 55%, #4588d3); }
.lock .tap { max-width: 22rem; margin: 22px auto 0; font-size: .9375rem; line-height: 1.45; opacity: .85; animation: rise .8s var(--ease) 1.3s both; }
.lock .lgo { margin-top: 18px; background: #fff; color: #111; animation: rise .8s var(--ease) 1.5s both; }
@media (prefers-reduced-motion: reduce) { .demo, .lock .clk, .lock .dt, .lock .tap, .lock .lgo, .lock.out, .box textarea { animation: none; transition: none; } }
.founder .face { flex: none; margin-left: 0; }
.founder { text-align: left; }
/* light: the halo bluer, as on the prototype's first screen */
:root:not([data-theme="dark"]) { --halo-2: rgba(170,202,240,.92); --halo-3: rgba(120,170,230,.56); --halo-4: rgba(90,150,222,.2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --halo-core: #5c86c0; --halo-1: #4a76b6; --halo-2: rgba(69,136,211,.62); --halo-3: rgba(69,136,211,.3); --halo-4: rgba(69,136,211,.09); } }
.lock .banner .ic { background: #fff; }
/* thinking: a soft light breathes around Boundy while he thinks */
.thinkb::before { content: ""; position: absolute; left: 50%; top: 50%; width: 210px; height: 210px; margin: -105px 0 0 -105px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(156,193,236,.45), rgba(240,160,124,.18) 45%, rgba(69,136,211,0) 70%); animation: thinkGlow 2.6s ease-in-out infinite; }
@keyframes thinkGlow { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.12); opacity: 1; } }
.orb.fly { animation: none; will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { .thinkb::before { animation: none; } }

/* ---------- v19: life ---------- */
/* the morning strip: pictures that pop in one after another, joined by a thin line */
.strip { list-style: none; padding: 0; position: relative; grid-template-columns: repeat(var(--n, 4), 1fr); counter-reset: none; }
.strip::before { content: ""; position: absolute; left: 12%; right: 12%; top: 31px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(13,106,122,.0), rgba(13,106,122,.28), rgba(13,106,122,.0)); transform-origin: 0 50%; animation: grow 1.2s var(--ease) .9s both; }
.strip li { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 4px 10px; border-radius: 18px; background: var(--card-a); text-align: center; font-size: .78rem; font-weight: 600; color: var(--ink2); line-height: 1.25; animation: stepPop .7s var(--spring) both; animation-delay: calc(var(--i) * 140ms + 850ms); }
.strip li svg { width: 30px; height: 30px; margin: 0; fill: none; stroke: var(--cyan-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.strip .sn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--cyan-ink); background: var(--cyan); }
@keyframes stepPop { from { opacity: 0; transform: translateY(10px) scale(.86); } }
@keyframes grow { from { transform: scaleX(0); } }
:root[data-theme="dark"] .strip::before { background: linear-gradient(90deg, rgba(143,219,232,0), rgba(143,219,232,.3), rgba(143,219,232,0)); }
/* the Retrato: a line that is new since the last visit glows once, and its dot breathes */
.area li.fresh { animation: freshGlow 2.6s var(--ease) .9s both; border-radius: 10px; }
.area li.fresh::before { animation: dotBreath 1.4s ease-in-out .9s 3; }
@keyframes freshGlow { 0% { background: transparent; } 20% { background: var(--blue-soft); box-shadow: 0 0 0 6px var(--blue-soft); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
@keyframes dotBreath { 50% { transform: translateY(-2px) scale(1.8); } }
/* the halo moves a little with the page, like light behind glass */
.halo-well { transform: translateY(calc(var(--sy, 0px) * -.18)); }
@media (prefers-reduced-motion: reduce) { .strip::before, .strip li, .area li.fresh, .area li.fresh::before { animation: none; } .halo-well { transform: none; } }

/* ---------- v20 ---------- */
/* with a mouse, the Learn cards sit in rows (nothing hidden off to the side); on a phone they still slide */
@media (hover: hover) and (pointer: fine) { .lks { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; } }
/* on a phone, the next card peeks in so it is obvious there are more */
@media (hover: none) { .lks { grid-auto-columns: minmax(196px, 72%); margin-right: -20px; padding-right: 20px; } }
/* up to six pictures: two rows of three when there are more than four */
.strip.many { grid-template-columns: repeat(3, 1fr); }
.strip.many::before { display: none; }
.interp .pc { font-weight: 700; letter-spacing: .04em; }
.duo span { font-size: .8125rem; color: var(--muted); }
.interp .like { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--field); color: var(--muted); }
.interp .like::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.interp .like.more { background: var(--blue-soft); color: var(--blue); }
:root[data-theme="dark"] .interp .like.more { color: #9cc1ec; }

/* ---------- v21: smoother scrolling, a story, a living feel ---------- */
/* the halo moves with transforms only (no repainting while you scroll) */
.halo { animation: haloLive 16s ease-in-out infinite alternate; will-change: transform; }
@keyframes haloLive { 0% { transform: translate3d(0,0,0) rotate(0deg) scale(1); } 50% { transform: translate3d(0,14px,0) rotate(5deg) scale(1.03); } 100% { transform: translate3d(0,26px,0) rotate(-3deg) scale(1.05); } }
body.rec .halo { animation: haloRec 1.1s ease-in-out infinite alternate; }
body.thinking .halo { animation: haloThink 2.6s ease-in-out infinite alternate; }
.halo-well { transform: none; will-change: transform; }
html, body { overscroll-behavior-y: none; }
button, a, .lk, [data-talk] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (hover: none) { .demo { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(17,17,17,.94); } :root[data-theme="dark"] .demo { background: rgba(242,244,248,.96); } }
/* everything you touch answers with a small give */
.pill, .qbtn, .starts button, .lk, .talks button, .ti button, .strip, .kidgo, .mic2, .pprev, .sm { transition: transform .35s var(--spring), background .2s, box-shadow .25s; }
.pill:active, .qbtn:active, .starts button:active, .lk:active, .talks button:active, .ti button:active, .strip:active, .kidgo:active, .pprev:active, .sm:active { transform: scale(.965); transition-duration: .12s; }
/* the greeting, bigger, with the date */
.hello { font-size: 1.1875rem; color: var(--ink); font-weight: 500; line-height: 1.3; }
.hello .dt { display: block; margin-bottom: 3px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* "para amanhã": it can be shown to the child */
.kidgo { display: flex; width: 100%; margin: 6px 0 2px; padding: 0; border: 0; background: none; color: var(--cyan-ink); font-weight: 700; font-size: .875rem; text-align: left; }
.kidgo span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.kidgo svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.strip[data-kid] { cursor: pointer; }
.kidv { position: fixed; inset: 0; z-index: 96; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: max(18px, env(safe-area-inset-top, 0px)) 20px max(28px, env(safe-area-inset-bottom, 0px)); text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, #e7f6f9, #fdf3ee 70%, #fff); color: #111; animation: fade .35s both; }
:root[data-theme="dark"] .kidv { background: radial-gradient(120% 70% at 50% 0%, #12313a, #1a1620 70%, #0a0f1a); color: #f2f4f8; }
.kidv.out { animation: fadeOut .3s both; }
.kidv .kx { position: absolute; right: 14px; top: max(12px, env(safe-area-inset-top, 0px)); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.06); color: inherit; font-size: 1.6rem; line-height: 1; }
.kidv .kdots { display: flex; gap: 8px; margin-top: 18px; }
.kidv .kdots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(13,106,122,.2); transition: transform .4s var(--spring), background .3s; }
.kidv .kdots i.on { background: var(--cyan-ink); transform: scale(1.35); } .kidv .kdots i.done { background: var(--cyan-ink); }
.kidv .kcard { align-self: center; display: grid; justify-items: center; gap: 14px; }
.kidv .kcard.in { animation: kidIn .55s var(--spring) both; }
@keyframes kidIn { from { opacity: 0; transform: translateX(40px) scale(.94); } }
.kidv .kic { width: min(56vw, 240px); height: min(56vw, 240px); border-radius: 44px; display: grid; place-items: center; background: rgba(255,255,255,.75); box-shadow: 0 30px 60px -30px rgba(13,106,122,.45); animation: kidBreath 3.2s ease-in-out infinite; }
:root[data-theme="dark"] .kidv .kic { background: rgba(255,255,255,.08); }
.kidv .kic svg { width: 58%; height: 58%; fill: none; stroke: var(--cyan-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kidv .kic .sn { width: 50%; height: 50%; font-size: 4rem; }
.kidv .kcard b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.1; }
.kidv .kn2 { font-size: .875rem; color: var(--muted); }
.kidv .kn { min-width: 220px; }
.kidv .kdone .kic { background: var(--cyan); animation: kidIn .6s var(--spring) both, kidBreath 3.2s ease-in-out .6s infinite; }
@keyframes kidBreath { 50% { transform: scale(1.035); } }
/* the story */
.storyv h1 { margin-bottom: 0; }
.hleg { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 16px 0 6px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.hleg span { display: inline-flex; align-items: center; gap: 6px; }
.tod { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.tod.m { background: #e9a23b; } .tod.a { background: var(--blue); } .tod.e { background: #7b6fd8; }
.ring { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; box-sizing: border-box; }
.ring.better { background: #2a9fb3; } .ring.same, .ring.skip { box-shadow: inset 0 0 0 2px #2a9fb3; } .ring.worse { background: var(--peach); } .ring.run { box-shadow: inset 0 0 0 2px #2a9fb3; border: 2px dashed transparent; animation: pulse 2.4s ease-in-out infinite; background: radial-gradient(circle, #2a9fb3 0 3px, transparent 3.5px); } .ring.none { box-shadow: inset 0 0 0 2px var(--line); }
.tl { list-style: none; margin: 18px 0 0; padding: 0 0 0 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 18px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, rgba(69,136,211,.35), rgba(240,160,124,.35)); transform-origin: 50% 0; animation: growY 1.4s var(--ease) .3s both; }
@keyframes growY { from { transform: scaleY(0); } }
.tl .wk { position: relative; margin: 22px 0 6px 34px; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 300ms); }
.tl .ti { position: relative; animation: rise .7s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 350ms); }
.tl .ti > button { width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border: 0; background: none; text-align: left; color: inherit; }
.tl .tdot { position: relative; z-index: 1; margin: 5px 6px 0 6px; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 4px var(--bg); animation: dotPop .6s var(--spring) both; animation-delay: calc(var(--i) * 110ms + 450ms); }
@keyframes dotPop { from { transform: scale(0); } }
.tl .tc { flex: 1; min-width: 0; display: grid; gap: 4px; padding: 12px 14px; border-radius: 20px; background: var(--field); }
.tl .tc .d { font-size: .78rem; color: var(--muted); font-weight: 600; }
.tl .tc b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.12rem; line-height: 1.25; }
.tl .rib { width: 100%; height: 64px; margin-top: 4px; clip-path: inset(0 100% 0 0); animation: ribFlow 1.4s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 600ms); }
@keyframes ribFlow { to { clip-path: inset(0 0 0 0); } }
.tl .rib .rmark { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.tl .rl { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--ink2); line-height: 1.3; }
.tl .rl::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.tl .rl.a::before { background: var(--blue); } .tl .rl.b::before { background: var(--peach); }
.tl .tx { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .8125rem; font-weight: 600; color: var(--ink2); }
.tl .chev { align-self: center; color: var(--faint); padding-left: 2px; }
.tl .now .tc { background: none; padding: 6px 2px; } .tl .now .tc b { font-size: 1rem; color: var(--muted); }
.tl .now .tdot { background: var(--ink); animation: dotPop .6s var(--spring) both, pulse 2.4s ease-in-out 1.5s infinite; }
@media (prefers-reduced-motion: reduce) { .halo, .tl::before, .tl .wk, .tl .ti, .tl .tdot, .tl .rib, .kidv, .kidv .kcard.in, .kidv .kic, .ring.run { animation: none !important; clip-path: none; } .pill:active, .qbtn:active, .lk:active { transform: none; } }
/* Boundy's bubble sits above him, so it never covers the date and the greeting */
.hrow .hello { min-width: 0; flex: 1; }
.hrow .say2, .hrow .say2[style] { left: auto; right: 6px; top: auto; bottom: calc(100% + 6px); max-width: 220px; border-radius: 18px 18px 6px 18px; }
@media (max-width: 440px) { .hrow .say2 { max-width: 200px; font-size: .875rem; } }

/* ---------- v22: accessibility and the reminder ---------- */
.pill.ghost { box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.34); }
:root[data-theme="dark"] .pill.ghost { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.42); }
:root[data-theme="dark"] .toggle { background: rgba(255,255,255,.24); }
:root[data-theme="dark"] .mi.danger { color: #ff9b8c; } :root[data-theme="dark"] .mi.danger .ico { color: #ff9b8c; }
:root[data-theme="dark"] .starts button { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
:root[data-theme="dark"] .mic2 { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.mic2 { box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.2); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.box textarea:focus-visible { outline: none; }
:root[data-theme="dark"] :focus-visible { outline-color: #9cc1ec; }
.remset .sw { border-top: 1px solid rgba(13,106,122,.14); }
.remf { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; }
.remf[hidden] { display: none; }
.remf .rf { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--cyan-ink); }
.remf .rf.grow { flex: 1; min-width: 180px; }
.remf input { min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--card-a); color: var(--ink); font: inherit; font-weight: 600; font-size: 1rem; box-shadow: inset 0 0 0 1px rgba(13,106,122,.25); }
.remf input[type=time] { width: 120px; font-variant-numeric: tabular-nums; }
.remf input::placeholder { color: var(--muted); font-weight: 500; }
.remf .remn { flex-basis: 100%; margin: 0; font-size: .8125rem; color: var(--ink2); line-height: 1.4; }
:root[data-theme="dark"] .toggle[aria-checked="true"] { background: #30d158; }
.remf .rf { min-width: 0; }
.remf .rf.grow { flex: 1 1 160px; min-width: 0; }
.remf .rf.grow input { width: 100%; }
.remf input { box-sizing: border-box; max-width: 100%; }

.tryrow { display: flex; padding-top: 14px; }
.tryrow .pill { width: 100%; }
@media (min-width: 600px) { .tryrow .pill { width: auto; min-width: 240px; } }
.mini2 a.sm { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.remf input[type=time] { width: 140px; }
/* boy / girl / rather not say */
.sexf { border: 0; margin: 4px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sexf legend { width: 100%; margin-bottom: 6px; font-size: .875rem; font-weight: 600; color: var(--ink2); }
.sexf label { position: relative; }
.sexf input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.sexf span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--field); font-weight: 600; font-size: .9375rem; box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s, transform .3s var(--spring); }
.sexf input:checked + span { background: var(--btn); color: var(--onbtn); box-shadow: none; }
.sexf input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.sexf label:active span { transform: scale(.96); }
