/* =====================================================================
 * Prototype flows: one viewer per portal, styled after Figma / Adobe XD
 * prototype players (toolbar, canvas, device frame, hotspots).
 * ===================================================================== */
.flows { max-width: 1360px; }
.flows .section-sub { margin-bottom: 36px; }

/* Flow index: the four flows in story order */
.flow-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 auto 56px; max-width: 1120px; counter-reset: flow; }
.flow-chip { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--hl); transition: box-shadow .25s, transform .25s var(--ease); }
.flow-chip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-3), var(--hl); }
.flow-chip-n { grid-row: 1 / 3; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--amber); line-height: 1; }
.flow-chip-p { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pc, var(--mint)); }
.flow-chip-t { font-size: 14px; font-weight: 600; line-height: 1.3; }
.flow-chip.is-done::after { content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C2329' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
[data-portal="Author"] { --pc: #F2A93B; }
[data-portal="Manager"] { --pc: #CFE7FF; }
[data-portal="Employee"] { --pc: #7FE3C4; }

/* One flow = a header (title, summary, steps) over a full-width prototype viewer */
.flows-root { display: grid; gap: 88px; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; scroll-margin-top: 96px; }
.flow-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head sum" "title sum" "steps steps"; column-gap: 56px; row-gap: 12px; }
.flow-head { grid-area: head; display: flex; align-items: center; gap: 12px; }
.flow-n { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--amber); }
.flow-portal { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bg); background: var(--pc); padding: 5px 12px; border-radius: var(--r-full); }
.flow-title { grid-area: title; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.03em; line-height: 1.12; margin: 2px 0 0; }
.flow-sum { grid-area: sum; align-self: end; margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.55; }
.flow-steps { grid-area: steps; list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.flow-step { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; min-height: 52px; padding: 8px 12px; border-radius: var(--r-sm); font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s, box-shadow .2s; }
.flow-step:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.flow-step:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.flow-step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .06); color: var(--ink-2); }
.flow-step.is-current { color: var(--ink); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--pc), 0 0 24px -10px var(--pc); }
.flow-step.is-current .flow-step-n { background: var(--pc); color: var(--bg); }
.flow-step.is-done .flow-step-n { background: rgba(127, 227, 196, .16); color: var(--mint); }
.flow-end { display: none !important; margin-top: 8px; padding: 18px; border-radius: var(--r-md); background: rgba(127, 227, 196, .07); box-shadow: inset 0 0 0 1px rgba(127, 227, 196, .3); animation: flowEnd .5s var(--ease-out); }
.flow-end[hidden] { display: none; }
@keyframes flowEnd { from { opacity: 0; transform: translateY(8px); } }
.flow-end-k { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 700; color: var(--mint); }
.flow-end-k svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.flow-end-actions { display: flex; flex-direction: column; gap: 10px; }
.flow-end-actions .btn { justify-content: space-between; gap: 10px; font-size: 14px; padding: 12px 16px; text-align: left; }
.flow-end-actions svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.flow-again { justify-content: center !important; }

/* Viewer: toolbar + canvas + caption, like a prototype player */
.proto { position: relative; display: flex; flex-direction: column; border-radius: var(--r-xl); background: #10191C; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-xl); overflow: hidden; outline: none; }
.proto:focus-visible { box-shadow: inset 0 0 0 2px var(--mint), var(--shadow-xl); }
.proto-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; height: 52px; padding: 0 10px 0 16px; background: #182326; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.proto-bar-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.proto-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 10px var(--pc); }
.proto-name { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proto-pick select { font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); background: rgba(255, 255, 255, .06); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 8px; padding: 7px 30px 7px 12px; min-height: 36px; appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B4C9C6' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 14px; max-width: 280px; }
.proto-pick select:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.proto-pick option { background: #182326; color: var(--ink); }
.proto-bar-r { display: flex; align-items: center; gap: 2px; }
.proto-btn { all: unset; box-sizing: border-box; cursor: pointer; width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); transition: background .15s, color .15s; }
.proto-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.proto-btn:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
.proto-btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; }
.proto-btn:disabled { opacity: .3; cursor: default; background: none; }
.proto-btn[hidden] { display: none; }
.proto-btn[aria-pressed="true"] { color: #6CC4FF; background: rgba(13, 153, 255, .14); }

/* Canvas: neutral dotted board the device sits on */
.proto-canvas { position: relative; display: grid; place-items: center; padding: clamp(14px, 2vw, 28px); background: radial-gradient(55% 65% at 50% 55%, color-mix(in srgb, var(--pc) 16%, transparent), transparent 72%), radial-gradient(circle at 50% 0%, rgba(127, 227, 196, .06), transparent 60%), radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 22px 22px, #121B1E; }
.proto.is-loading .proto-canvas::after { content: ""; position: absolute; right: 18px; top: 16px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--mint); animation: protoSpin .8s linear infinite; }
@keyframes protoSpin { to { transform: rotate(360deg); } }

.proto-device { position: relative; width: 100%; }
.proto-device.browser { max-width: max(640px, calc((100vh - 280px) * var(--ar, 1.773))); border-radius: 14px; background: #0A1215; box-shadow: 0 0 0 1px color-mix(in srgb, var(--pc) 45%, rgba(255, 255, 255, .1)), 0 30px 90px -24px color-mix(in srgb, var(--pc) 32%, transparent), 0 40px 80px -30px rgba(0, 0, 0, .85); overflow: hidden; }
.proto-chrome { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 14px; background: #1A2528; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.proto-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #3A4649; }
.proto-chrome i:nth-child(1) { background: #FF5F57; } .proto-chrome i:nth-child(2) { background: #FEBC2E; } .proto-chrome i:nth-child(3) { background: #28C840; }
.proto-chrome b { flex: 1; display: flex; justify-content: center; }
.proto-chrome b span { font-size: 11.5px; font-weight: 500; color: #8FA7A3; background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 3px 14px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proto-device.phone { width: 300px; padding: 11px; border-radius: 46px; background: linear-gradient(145deg, #3B4548, #1B2224 40%, #2C3437); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 40px 80px -30px rgba(0, 0, 0, .9); }
.proto-device.phone .proto-screen { border-radius: 36px; }
.proto-island { position: absolute; z-index: 3; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 12px; background: #050A0B; }

.proto-screen { position: relative; overflow: hidden; aspect-ratio: var(--ar, 1.887); background: #F3F4F1; }
.proto.is-mobile .proto-screen { aspect-ratio: var(--ar, .53); background: #0C2329; }
.proto-slide { position: absolute; inset: 0; visibility: hidden; transform: translateX(0); }
.proto-slide.is-active { visibility: visible; z-index: 2; transition: transform .52s cubic-bezier(.32, .72, 0, 1); }
.proto-slide.enter-r { visibility: visible; z-index: 2; transform: translateX(100%); transition: none; }
.proto-slide.enter-l { visibility: visible; z-index: 2; transform: translateX(-100%); transition: none; }
.proto-slide.leave-l { visibility: visible; z-index: 1; transform: translateX(-100%); transition: transform .52s cubic-bezier(.32, .72, 0, 1); }
.proto-slide.leave-r { visibility: visible; z-index: 1; transform: translateX(100%); transition: transform .52s cubic-bezier(.32, .72, 0, 1); }
.proto-shot { --k: 1; position: relative; width: 100%; aspect-ratio: 1470 / 779; transform-origin: 0 0; transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); }
/* Camera: in zoom mode a screen first sits whole in the frame, then glides in on its action */
.proto.is-zoomed .proto-screen { background: #0E1719; touch-action: pan-y; }
.proto.is-zoomed .proto-shot { transform: translate(0px, var(--oy, 0px)) scale(1); }
.proto.is-zoomed .proto-shot.is-focused { --k: var(--z, 1); transform: translate(var(--cx, 0px), var(--cy, 0px)) scale(var(--z, 1)); cursor: grab; }
.proto.is-panning .proto-shot { transition: none; cursor: grabbing; }
.proto-tip { position: absolute; z-index: 4; left: 50%; bottom: 12px; transform: translate(-50%, 6px); padding: 7px 13px; border-radius: var(--r-full); font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(8, 16, 18, .82); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; white-space: nowrap; }
.proto-tip.is-on { opacity: 1; transform: translate(-50%, 0); }
.proto.is-mobile .proto-shot { aspect-ratio: 736 / 1387; }
.proto-shot img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.proto-shot.is-missing::before { content: "Screen coming soon"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); background: #0C2329; font-size: 14px; }

/* Hotspots: a soft pulse while hints are on; a blue flash on a missed click */
.proto-hot { position: absolute; z-index: 2; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 10px; background: transparent; outline: none; }
.proto-hot::before { content: ""; position: absolute; inset: -12px; }
.proto-hot::after { content: ""; position: absolute; inset: calc(-5px / var(--k)); border-radius: calc(12px / var(--k)); box-shadow: 0 0 0 calc(2.5px / var(--k)) rgba(242, 169, 59, 1), 0 0 0 calc(7px / var(--k)) rgba(242, 169, 59, .25), 0 0 calc(30px / var(--k)) calc(6px / var(--k)) rgba(242, 169, 59, .45); opacity: 0; transition: opacity .3s; }
.proto:not(.hints-off) .proto-slide.is-active .proto-hot::after { opacity: .6; animation: hotPulse 2s .5s ease-in-out infinite; }
.proto-hot:hover::after { opacity: 1 !important; animation: none !important; }
.proto-hot:focus-visible::after { opacity: 1; animation: none; box-shadow: 0 0 0 3px var(--mint), 0 0 0 7px rgba(127, 227, 196, .25); }
@keyframes hotPulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.proto.is-flash .proto-slide.is-active .proto-hot { background: rgba(13, 153, 255, .26); box-shadow: 0 0 0 calc(2px / var(--k)) #0D99FF; animation: hotFlash .9s ease-out forwards; }
@keyframes hotFlash { 0% { opacity: 0; } 15%, 60% { opacity: 1; } 100% { opacity: 0; } }
.proto.is-finished .proto-device { animation: protoDone .7s var(--ease-out); }
@keyframes protoDone { 40% { box-shadow: 0 0 0 3px rgba(127, 227, 196, .7), 0 40px 80px -30px rgba(0, 0, 0, .85); } }

/* Caption */
.proto-cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: #182326; border-top: 1px solid rgba(255, 255, 255, .07); min-height: 64px; }
.proto-cap-t { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.proto-cap-t b { color: var(--ink); font-weight: 700; margin-right: 8px; }
.proto-step { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: 6px; }
.proto-hint { flex: none; margin: 0; font-size: 13px; color: var(--ink-2); padding: 7px 12px; border-radius: var(--r-full); background: rgba(242, 169, 59, .1); box-shadow: inset 0 0 0 1px rgba(242, 169, 59, .3); }
.proto-hint-k { font-weight: 700; color: var(--amber); }
.proto-hint-a { font-weight: 600; color: var(--ink); }
.is-done .proto-hint { background: rgba(127, 227, 196, .1); box-shadow: inset 0 0 0 1px rgba(127, 227, 196, .3); }

/* Present mode: the viewer fills the window, like "Present" in a prototype tool */
.proto-exit { display: none; }
html.proto-open, html.proto-open body { overflow: hidden; }
.proto.is-presenting { position: fixed; inset: 0; z-index: 200; border-radius: 0; }
.proto.is-presenting .proto-canvas { flex: 1; min-height: 0; padding: 28px; }
.proto.is-presenting .proto-device.browser { max-width: min(1400px, calc((100vh - 230px) * var(--ar, 1.887))); }
.proto.is-presenting .proto-device.phone { width: min(420px, calc((100vh - 220px) * var(--ar, .53) + 22px)); }
.proto.is-presenting .proto-exit { all: unset; box-sizing: border-box; position: absolute; top: 8px; right: 60px; z-index: 5; display: none; }
.proto.is-presenting .proto-btn[data-act="present"] { color: #6CC4FF; background: rgba(13, 153, 255, .14); }

/* Laptop and desktop: text column beside the viewer, and the whole flow fits in one window,
   so it can be shown on a call without scrolling. 256px = site bar 64 + gap 16 + toolbar 48
   + canvas 32 + frame bar 24 + caption 64 + 8 spare. */
@media (min-width: 1100px) {
  .flows { max-width: 1760px; }
  .flow { grid-template-columns: 290px auto; justify-content: center; align-items: start; gap: 32px; scroll-margin-top: 80px; }
  .flow-info { display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
  .flow-n { font-size: 38px; }
  .flow-title { font-size: clamp(24px, 1.9vw, 30px); }
  .flow-sum { font-size: 15.5px; line-height: 1.5; }
  .flow-steps { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 6px; }
  .flow-step { min-height: 44px; padding: 7px 12px; }
  .proto { width: min(1400px, calc(100vw - 400px), calc((100vh - 256px) * var(--ar, 1.773) + 32px)); }
  .proto-bar { height: 48px; }
  .proto-chrome { height: 24px; }
  .proto.is-presenting { width: auto; }
  /* Phone flows: a wider viewer for the toolbar, and a phone sized to the window height
     (286px = the 256px above, plus the phone's bezel and status bar) */
  .proto.is-mobile { width: min(calc(100vw - 400px), 680px); }
  .proto.is-mobile:not(.is-presenting) .proto-device.phone { width: min(420px, max(200px, calc((100vh - 286px) * var(--ar, .53) + 22px))); }
  .proto-canvas { padding: 16px; }
  .proto-device.browser { max-width: none; }
  .proto-cap { height: 64px; min-height: 0; padding-block: 0; }
  .proto-cap-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 1000px) {
  .flow { gap: 20px; }
  .flow-info { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "title" "sum" "steps"; }
  .flow-sum { align-self: start; }
  .flow-steps { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
}
@media (max-width: 700px) {
  .flow-index { gap: 8px; margin-bottom: 40px; }
  .flow-chip { padding: 12px 10px; column-gap: 8px; }
  .flow-chip-n { font-size: 22px; }
  .flow-chip-p { font-size: 10.5px; letter-spacing: .08em; }
  .flow-chip-t { display: none; }
  .flow-steps { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 4px; }
  .flow-steps::-webkit-scrollbar { display: none; }
  .flow-steps > li { flex: none; scroll-snap-align: start; }
  .flow-step { width: auto; white-space: nowrap; min-height: 44px; padding: 8px 14px 8px 10px; font-size: 14px; }
  .flows-root { gap: 56px; }
  .flow-n { font-size: 36px; }
  .proto { border-radius: var(--r-lg); margin-inline: -4px; }
  .proto-bar { grid-template-columns: minmax(0, 1fr) auto; height: auto; padding: 8px 8px 8px 12px; row-gap: 6px; }
  .proto-pick { grid-column: 1 / -1; grid-row: 2; }
  .proto-pick select { width: 100%; max-width: none; }
  .proto-name { font-size: 12.5px; }
  .proto-btn { width: 44px; height: 44px; }
  .proto-btn[data-act="restart"], .proto-btn[data-act="hints"] { display: none; }
  .proto-device.browser { max-width: none; }
  .proto.is-zoomed:not(.is-presenting) .proto-screen { aspect-ratio: 4 / 5; }
  .proto-chrome { display: none; }
  .proto-canvas { padding: 10px; }
  .proto-device.browser { border-radius: 10px; }
  .proto-chrome { height: 24px; padding: 0 9px; gap: 5px; }
  .proto-chrome i { width: 7px; height: 7px; }
  .proto-chrome b span { font-size: 9.5px; padding: 1px 8px; }
  .proto-device.phone { width: min(280px, 78vw); }
  .proto-cap { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 14px; }
  .proto-hot::before { inset: -16px; }
}
@media (prefers-reduced-motion: reduce) {
  .proto-slide, .proto-slide.is-active { transition: none !important; }
  .proto-shot { transition: none !important; }
  .proto-hot::after { animation: none !important; opacity: .8 !important; }
  .flow-end { animation: none; }
}

/* =====================================================================
 * Advisors: framed portrait, brand logo (or name), larger two-liner
 * ===================================================================== */
.adv-grid { grid-template-columns: repeat(3, minmax(0, 360px)); gap: 28px; }
.adv { padding: 12px; border-radius: var(--r-2xl); background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px var(--line-2), var(--hl), var(--shadow-lg); }
.adv-frame { position: relative; border-radius: calc(var(--r-2xl) - 10px); padding: 3px; background: linear-gradient(150deg, rgba(242, 169, 59, .75), rgba(127, 227, 196, .35) 45%, rgba(255, 255, 255, .08) 75%); }
.adv-photo { aspect-ratio: 1 / 1.08; border-radius: calc(var(--r-2xl) - 13px); }
.adv-photo::after { display: none; }
.adv-body { margin-top: 0; padding: 22px 14px 14px; }
.adv-body h3 { font-size: 26px; }
.adv-brand { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; }
.adv-brand-k { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.adv-brand-plate { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 12 / 5; padding: 10px 14px; border-radius: var(--r-md); background: #ECF0F1; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.adv-brand-plate.is-fill { padding: 0; }
.adv-brand-plate.is-fill .adv-brand-logo { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.adv-brand-plate.is-dark { padding: 8px; background: radial-gradient(60% 75% at 50% 50%, #2A2112 0%, #0B0905 55%, #000 100%); }
.adv-brand-plate.is-green { padding: 8px; background: radial-gradient(60% 75% at 50% 50%, #0A6466 0%, #015557 60%, #01484A 100%); }
.adv-brand-logo { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.adv-body .adv-bio { font-size: 17.5px; line-height: 1.5; color: var(--ink); margin: 16px 0 0; letter-spacing: -.005em; }
.adv-chips { margin-top: 18px; }
.adv-chips li { font-size: 12.5px; }
@media (max-width: 1000px) { .adv-grid { grid-template-columns: repeat(2, minmax(0, 360px)); } }
@media (max-width: 700px) {
  .adv-grid { grid-template-columns: minmax(0, 420px); }
  .adv-body .adv-bio { font-size: 17px; }
}

/* Phone status bar (keeps the notch off the app's own header) */
.proto-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 22px 0 26px; margin-bottom: 2px; color: #E8EFEE; font-size: 12px; font-weight: 700; }
.proto-status .proto-island { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 78px; height: 22px; border-radius: 12px; background: #050A0B; }
.proto-batt { display: flex; align-items: flex-end; gap: 2px; }
.proto-batt i { width: 3px; background: #E8EFEE; border-radius: 1px; }
.proto-batt i:nth-child(1) { height: 5px; } .proto-batt i:nth-child(2) { height: 7px; } .proto-batt i:nth-child(3) { height: 9px; }
.proto-batt b { width: 20px; height: 10px; margin-left: 5px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #E8EFEE; background: linear-gradient(90deg, #E8EFEE 70%, transparent 70%) 2px 2px / calc(100% - 4px) calc(100% - 4px) no-repeat; }
.proto-device.phone { background: linear-gradient(145deg, #3B4548, #1B2224 40%, #2C3437); }
.proto-device.phone .proto-screen { border-radius: 0 0 34px 34px; }
.proto-device.phone::before { content: ""; position: absolute; inset: 11px; border-radius: 36px; background: #0C2329; z-index: 0; }
.proto-device.phone > * { position: relative; z-index: 1; }

/* Caption becomes the way on when a flow is finished */
.proto-hint.is-next { padding: 0; background: none; box-shadow: none; }
.proto-next { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-full); font-size: 13.5px; font-weight: 700; color: var(--amber-ink); background: var(--amber-grad); text-decoration: none; box-shadow: 0 8px 22px -8px rgba(242, 169, 59, .6); }
.proto-next svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.proto-next:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
@media (max-width: 1000px) { .flow-end { display: none !important; } }
