/* Oriel automation map. Phone first, one typeface (Jost 300, 400, 500).
   Same ground, ink and accent as the launch page: Dial #F3EEE4, Strap #211C17, Seconds #E2912F.
   The map itself is one dark band; orange marks only the active node, the buttons and the ticked box. */
:root{
  --dial:#F3EEE4;
  --strap:#211C17;
  --seconds:#E2912F;
  --line:#D6CDBB;
  --muted:#6E655A;
  --on-dark:rgba(243,238,228,.74);
  --dim-dark:rgba(243,238,228,.5);
  --line-dark:rgba(243,238,228,.18);
  --screen:#FAF8F4;
  --bubble:#ECE6DB;
  --quiet:#8A7F72;
  --gutter:16px;
  --sec:80px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--dial);color:var(--strap);font-family:'Jost',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:17px;line-height:1.5;font-weight:400;-webkit-font-smoothing:antialiased;overflow-x:hidden}
p,h1,h2,h3,h4,ul,ol,figure{margin:0;padding:0}
ul,ol{list-style:none}
img,svg{display:block;max-width:100%}
a{color:inherit}
.wrap{width:100%;max-width:430px;margin:0 auto;padding:0 var(--gutter)}
.vh{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.label{font-size:12px;line-height:1.3;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px}
.logo{display:block;height:30px;width:auto;aspect-ratio:182/72;color:var(--strap)}
h1{font-weight:400;font-size:clamp(38px,10.6vw,46px);line-height:1.03;letter-spacing:-.028em;text-wrap:balance}
h2{font-weight:400;font-size:clamp(32px,8.8vw,40px);line-height:1.06;letter-spacing:-.026em;text-wrap:balance}
.lede{font-size:18px;line-height:1.45;color:var(--muted);margin-top:12px;max-width:34ch}
.micro{font-size:14px;line-height:1.45;color:var(--muted);margin-top:12px}
.btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;padding:0 24px;font-size:17px;font-weight:500;letter-spacing:.02em;line-height:1.1;text-align:center;text-decoration:none;color:var(--strap);background:var(--seconds);border:0;border-radius:2px;-webkit-tap-highlight-color:transparent}
.btn:active{filter:brightness(.94)}
.btn:focus-visible{outline:2px solid var(--strap);outline-offset:3px}

/* channel icons, drawn in CSS: envelope, speech bubble, diamond, ring, page, square */
.ic{display:inline-block;position:relative;flex:none;color:inherit;vertical-align:middle}
.ic--email{width:15px;height:11px;border:1.5px solid currentColor;border-radius:2px;overflow:hidden}
.ic--email::before{content:"";position:absolute;left:50%;top:-5.6px;width:9px;height:9px;border:1.5px solid currentColor;transform:translateX(-50%) rotate(45deg)}
.ic--text{width:15px;height:11px;border:1.5px solid currentColor;border-radius:4px;margin-bottom:2px}
.ic--text::after{content:"";position:absolute;left:1px;bottom:-4.5px;border-style:solid;border-width:4px 4px 0 0;border-color:currentColor transparent transparent transparent}
.ic--decision{width:9px;height:9px;border:1.5px solid currentColor;transform:rotate(45deg);margin:0 2px}
.ic--rule{width:11px;height:11px;border:1.5px dashed currentColor;border-radius:50%;margin:0 1px}
.ic--page{width:11px;height:14px;border:1.5px solid currentColor;border-radius:2px;margin:0 2px}
.ic--page::before{content:"";position:absolute;left:1.5px;right:1.5px;top:2.5px;height:1.5px;background:currentColor;box-shadow:0 3px 0 currentColor}
.ic--action{width:11px;height:11px;border:1.5px solid currentColor;border-radius:2px;margin:0 2px}
.ic--action::after{content:"";position:absolute;inset:2px;background:currentColor;border-radius:1px}
.ic--moon{width:11px;height:11px;border-radius:50%;box-shadow:inset -3px -1px 0 0 currentColor;transform:rotate(-20deg)}

/* intro */
.intro{padding:12px 0 56px}
.intro h1{margin-top:12px}
.legend{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:28px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:15px;color:var(--strap)}
.legend li{display:flex;align-items:center;gap:9px}
.hint{margin-top:16px}

/* the map band */
.on-dark{background:var(--strap);color:var(--dial)}
.map{position:relative}

/* no script copy: a plain list in the same band */
.plain{padding:48px 0 64px}
.plain ol{border-bottom:1px solid var(--line-dark)}
.plain li{border-top:1px solid var(--line-dark);padding:18px 0 20px}
.plain .label{color:var(--dim-dark)}
.plain h3{font-weight:400;font-size:21px;line-height:1.25;margin-top:6px}
.plain__why{font-size:15px;line-height:1.45;color:var(--on-dark);margin-top:4px}
.plain__to{font-size:14px;color:var(--on-dark);margin-top:6px}
.plain__msg{margin-top:10px;font-size:15px;line-height:1.5;color:var(--on-dark)}
.plain__msg p + p{margin-top:6px}
.plain__msg b{font-weight:500;color:var(--dial)}

/* the pinned stage */
.run{position:relative}
.stage{position:sticky;top:0;height:100vh;height:100lvh;overflow:hidden}
.col{position:relative;height:100%;max-width:430px;margin:0 auto;overflow:hidden}
.svh{position:absolute;top:0;left:0;width:1px;height:100vh;height:100svh;visibility:hidden;pointer-events:none}
/* the step header: branch and step number, the progress line, then what this step does and why */
.hud{position:absolute;left:0;right:0;top:0;z-index:4;min-height:var(--hh,0);padding:13px var(--gutter) 22px;background:linear-gradient(var(--strap) calc(100% - 22px),rgba(33,28,23,0));pointer-events:none}
.hud__top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hud .label{color:var(--on-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hud__n{flex:none;font-variant-numeric:tabular-nums}
.hud__bar{display:block;height:1px;margin-top:10px;background:var(--line-dark)}
.hud__bar i{display:block;height:100%;background:var(--on-dark);transform-origin:0 50%;transform:scaleX(0)}
.hud__line{margin-top:11px;font-size:15px;line-height:1.4;color:var(--on-dark);text-wrap:pretty}
.hud__line b{font-weight:500;color:var(--dial)}
.is-all .hud{min-height:0}
.is-all .hud__line{display:none}

.cam{position:absolute;left:0;top:0;width:390px;transform-origin:0 0}
.lanes{position:absolute;left:0;top:0;overflow:visible}
.lanes path,.lanes line{fill:none;stroke-linecap:round;stroke-linejoin:round}
.e{stroke:rgba(243,238,228,.46);stroke-width:1.5}
.e--trunk{stroke:rgba(243,238,228,.82);stroke-width:2}
.e--dashed{stroke:rgba(243,238,228,.4);stroke-dasharray:2 4;stroke-linecap:butt}
.e--wait{stroke:rgba(243,238,228,.34);stroke-dasharray:1 5;stroke-width:1.75}
.e--rail{stroke:rgba(243,238,228,.34);stroke-dasharray:1 4}
.tie{stroke:rgba(243,238,228,.16);stroke-width:1;stroke-dasharray:1 3}
.d{color:var(--dial)}
.d .s{fill:var(--strap);stroke:currentColor;stroke-width:1.5;transition:fill .3s ease,stroke .3s ease}
.d.is-seen .s{fill:currentColor}
.d.k-rule .s{fill:var(--strap);stroke-dasharray:2 2}
.d.k-rule.is-seen .s{fill:var(--strap)}
.d.is-on,.is-all .d{color:var(--seconds)}
.d.is-on .s,.is-all .d .s{fill:var(--seconds)}
.halo{fill:var(--seconds);opacity:.22;animation:breathe 2.8s ease-in-out infinite}
.is-all .halo{opacity:0;animation:none}
@keyframes breathe{0%,100%{opacity:.16}50%{opacity:.32}}

.rows{position:absolute;left:0;top:0;width:390px}
.row{position:absolute;left:140px;top:0;width:238px;transform-origin:0 0;color:var(--dial);opacity:0}
.row .name{display:block;font-size:15.5px;line-height:1.25;font-weight:400;letter-spacing:-.005em;color:var(--dim-dark);transition:color .3s ease}
.row .meta{display:flex;align-items:center;gap:8px;margin-top:5px;font-size:10.5px;line-height:1.3;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--dim-dark);opacity:var(--mo,1)}
.row .out{display:block;margin-top:3px;font-size:12.5px;line-height:1.35;color:var(--dim-dark);opacity:var(--mo,1)}
.row.is-seen .name{color:var(--on-dark)}
.row.is-on .name{color:var(--dial)}
.row.is-on .meta,.row.is-on .out{color:var(--on-dark)}
.is-all .row .name{color:var(--on-dark)}

/* the phone, drawn at 300 wide and scaled to the column; flow.js sets its height to the space it has */
.phone{position:absolute;left:50%;top:0;z-index:3;width:300px;height:560px;margin-left:-150px;transform-origin:50% 0;border-radius:48px;background:#0C0A08;padding:9px;box-shadow:0 0 0 1px rgba(243,238,228,.16),0 -20px 50px rgba(0,0,0,.42)}
.screen{position:relative;height:100%;border-radius:40px;background:var(--screen);overflow:hidden;color:var(--strap)}
.island{position:absolute;top:10px;left:50%;width:92px;height:26px;margin-left:-46px;border-radius:14px;background:#0C0A08;z-index:2}
.sbar{display:flex;align-items:center;justify-content:space-between;height:46px;padding:3px 26px 0 30px;font-size:13.5px;font-weight:500;letter-spacing:.01em}
.sbar span{display:flex;align-items:center;gap:6px}
.bars{display:block;width:17px;height:11px;background:linear-gradient(currentColor,currentColor) 0 100%/3px 4px no-repeat,linear-gradient(currentColor,currentColor) 4.6px 100%/3px 6px no-repeat,linear-gradient(currentColor,currentColor) 9.2px 100%/3px 8.5px no-repeat,linear-gradient(currentColor,currentColor) 13.8px 100%/3px 11px no-repeat}
.batt{display:block;position:relative;width:23px;height:11.5px;border:1.2px solid currentColor;border-radius:3.5px;margin-right:3px}
.batt::before{content:"";position:absolute;top:1.5px;bottom:1.5px;left:1.5px;right:4px;background:currentColor;border-radius:1.5px}
.batt::after{content:"";position:absolute;right:-3.6px;top:3px;width:1.8px;height:3.6px;background:currentColor;border-radius:0 1px 1px 0}
.scr{position:absolute;left:0;right:0;top:46px;bottom:0;padding:0 16px;overflow:hidden}
.fit{min-height:100%;padding-bottom:14px}
.scr.scrolls{overflow-y:auto;-webkit-mask-image:linear-gradient(#000 calc(100% - 26px),transparent);mask-image:linear-gradient(#000 calc(100% - 26px),transparent)}
.scr.scrolls .fit{padding-bottom:30px}

/* Oriel's avatar: the dial from the logo, hands at three o'clock */
.av{position:relative;flex:none;width:32px;height:32px;border-radius:50%;background:var(--strap)}
.av::before{content:"";position:absolute;inset:8px;border:1.8px solid var(--dial);border-radius:50%}
.av::after{content:"";position:absolute;left:15.2px;top:11.6px;width:5.4px;height:5.2px;border-left:1.6px solid var(--dial);border-bottom:1.6px solid var(--dial)}

/* mail */
.m-nav{display:flex;justify-content:space-between;align-items:center;padding:2px 0 8px;font-size:13px;line-height:1.3;color:var(--quiet)}
.m-nav b{font-weight:500;color:var(--strap)}
.m-aud{font-size:10px;line-height:1.3;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--quiet)}
.m-subj{margin-top:4px;font-size:19px;line-height:1.18;font-weight:500;letter-spacing:-.012em;text-wrap:balance}
.m-prev{margin-top:3px;font-size:12.5px;line-height:1.35;color:var(--quiet)}
.m-from{display:flex;align-items:center;gap:10px;margin-top:10px;padding-bottom:10px;border-bottom:1px solid #E6DFD3;font-size:13px;line-height:1.25}
.m-from .av{width:28px;height:28px}
.m-from .av::before{inset:7px}
.m-from .av::after{left:13.2px;top:10px;width:4.8px;height:4.8px}
.m-from b{display:block;font-weight:500}
.m-from small{font-size:11.5px;color:var(--quiet)}
.m-from time{margin-left:auto;font-size:11.5px;color:var(--quiet)}
.m-body{padding-top:2px}
.m-body p{margin-top:8px;font-size:13.2px;line-height:1.45;color:#3B342D}
.m-btn{display:inline-block;margin-top:4px;padding:9px 14px;border-radius:2px;background:var(--seconds);color:var(--strap);font-size:12.5px;font-weight:500;letter-spacing:.02em}
.m-unsub{margin-top:12px;font-size:11px;color:var(--quiet);text-decoration:underline}
.lnk{text-decoration:underline;text-underline-offset:2px}

/* messages */
.t-head{display:flex;flex-direction:column;align-items:center;gap:4px;padding:4px 0 10px;border-bottom:1px solid #E6DFD3}
.t-head b{font-size:12px;font-weight:500;line-height:1}
.t-head small{font-size:10.5px;line-height:1;color:var(--quiet)}
.stamp{margin:14px 0 7px;text-align:center;font-size:9.5px;line-height:1.3;font-weight:500;letter-spacing:.13em;text-transform:uppercase;color:var(--quiet)}
.bub{width:fit-content;max-width:84%;padding:9px 12px 10px;border-radius:18px;font-size:13.8px;line-height:1.36}
.bub + .bub{margin-top:8px}
.bub.in{background:var(--bubble);border-bottom-left-radius:6px}
.bub.out{margin-left:auto;background:var(--strap);color:var(--dial);border-bottom-right-radius:6px}
.prior .bub{opacity:.45;font-size:12.6px}
.cc{margin:4px 0 0 6px;font-size:10px;letter-spacing:.04em;color:var(--quiet);font-variant-numeric:tabular-nums}
.cc + .bub{margin-top:10px}
.bub.held{background:transparent;border:1.5px dashed #BDB2A2;color:var(--quiet)}
.chip{display:flex;align-items:center;gap:7px;width:fit-content;margin:10px 0 0;padding:6px 11px;border-radius:20px;background:var(--strap);color:var(--dial);font-size:11.5px;font-weight:500}
.aside{margin-top:14px;padding-top:12px;border-top:1px solid #E6DFD3;font-size:12.3px;line-height:1.45;color:var(--muted)}

/* decision and back end cards */
.dc{padding:26px 4px 0}
.dc .ic{width:13px;height:13px;color:var(--strap)}
.dc .k{margin-top:14px}
.dc h4{margin-top:6px;font-size:30px;line-height:1.08;font-weight:400;letter-spacing:-.022em}
.dc ul{margin-top:18px;border-bottom:1px solid #E6DFD3}
.dc li{display:grid;grid-template-columns:42px 1fr;gap:8px;padding:12px 0 13px;border-top:1px solid #E6DFD3;font-size:13.8px;line-height:1.38}
.dc li b{padding-top:2px;font-size:10px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--quiet)}
.dc li.kv{grid-template-columns:1fr auto}
.dc li.kv span{font-weight:500}
.dc .note{margin-top:14px;font-size:12.6px;line-height:1.45;color:var(--muted)}

/* page snapshots: the email page and the VIP page */
.pg{margin:0 -16px;min-height:100%;background:var(--dial)}
.pg__art{height:128px;margin-top:-6px;overflow:hidden}
.pg__art img{width:100%;height:100%;object-fit:cover;object-position:50% 34%}
.pg__top{display:flex;padding-top:6px;align-items:center;justify-content:space-between;padding:6px 16px 10px}
.pg__top .logo{height:18px}
.pg__top .label{font-size:9px}
.pg h4{padding:4px 16px 16px;font-size:27px;line-height:1.05;font-weight:400;letter-spacing:-.025em}
.pg__band{background:var(--strap);color:var(--dial);padding:16px 16px 18px}
.pg__band p{font-size:12.6px;line-height:1.42;color:var(--on-dark)}
.pg__band p b{font-weight:500;color:var(--dial)}
.pg__band h4{padding:4px 0 10px;font-size:22px;color:var(--dial)}
.pg__band .label{font-size:9.5px;color:var(--on-dark)}
.pg__field{display:flex;align-items:center;height:40px;margin-top:12px;padding:0 12px;border:1px solid var(--line);border-radius:2px;background:var(--dial);font-size:13px;color:var(--muted)}
.pg__field i{display:block;width:1.5px;height:17px;margin-left:2px;background:var(--strap)}
.pg__field.has{color:var(--strap)}
.pg__btn{display:flex;align-items:center;justify-content:center;height:40px;margin-top:8px;border-radius:2px;background:var(--seconds);color:var(--strap);font-size:13px;font-weight:500}
.pg__micro{margin-top:9px;font-size:11px !important}
.pg__flab{display:block;margin-top:6px}
.pg__ok{display:grid;grid-template-columns:22px 1fr;gap:8px;margin-top:10px;font-size:10.8px !important;line-height:1.42 !important}
.pg__ok i{display:block;position:relative;width:18px;height:18px;margin-top:1px;border-radius:3px;background:var(--seconds)}
.pg__ok i::after{content:"";position:absolute;left:6px;top:2.5px;width:5px;height:9px;border-right:2px solid var(--strap);border-bottom:2px solid var(--strap);transform:rotate(45deg)}
.pg__note{padding:14px 16px 0;font-size:12.3px;color:var(--muted)}

/* end of the walk: the count, computed from messages.json */
.count{position:absolute;left:0;right:0;z-index:3;padding:0 var(--gutter);opacity:0}
.count__line{font-size:clamp(16px,4.9vw,19px);line-height:1.25;color:var(--on-dark);white-space:nowrap}
.count__line b{font-weight:300;font-size:clamp(38px,12.3vw,48px);line-height:1;letter-spacing:-.03em;color:var(--dial);margin-right:2px}
.count__sub{margin-top:8px;font-size:13.5px;line-height:1.4;color:var(--dim-dark)}

/* still map: reduced motion draws the whole tree at once, each message beside its node */
.still{position:relative;padding:28px 0 56px}
.still .lanes{left:0;top:0}
.still .rows{position:relative;width:auto}
.still .row{position:relative;left:auto;top:auto;width:auto;margin-left:var(--lx);padding:14px var(--gutter) 18px 0;opacity:1}
.still .row .name{color:var(--dial)}
.still .row .meta,.still .row .out{color:var(--on-dark)}
.row .why{display:block;margin-top:6px;font-size:14px;line-height:1.42;color:var(--on-dark)}
.mini{position:relative;margin-top:12px;border-radius:14px;background:var(--screen);color:var(--strap);overflow:hidden}
.mini .scr{position:relative;inset:auto;padding:12px 14px 16px}
.mini .pg{margin:-12px -14px -16px}
.mini .dc{padding-top:6px}
.still .count{position:relative;opacity:1;margin-top:28px}

/* the close */
.close{padding:var(--sec) 0}
.close h2{margin-top:12px}
.close .btn{margin-top:32px}
.quiet{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:8px;font-size:15px;color:var(--muted);text-decoration:underline;text-underline-offset:.22em;-webkit-tap-highlight-color:transparent}
.quiet:focus-visible{outline:2px solid var(--strap);outline-offset:2px}

footer{background:var(--strap);color:var(--dial);padding:0 0 40px}
footer .wrap{border-top:1px solid var(--line-dark);padding-top:32px}
footer .logo{color:var(--dial);height:28px}
footer p{font-size:14px;line-height:1.5;color:var(--on-dark);margin-top:18px}
footer .micro{margin-top:6px;color:var(--on-dark)}
footer .micro a{display:inline-flex;align-items:center;min-height:44px;font-weight:500;color:var(--dial);text-underline-offset:.2em}
footer .micro a:focus-visible{outline:2px solid var(--dial);outline-offset:2px}

@media (min-width:900px){
  :root{--sec:128px}
  .top .wrap{min-height:84px}
  .logo{height:32px}
  .close .btn{width:auto;display:inline-flex;padding:0 36px}
}
