/* Real devices on the feature pages (build/devices.py) and the two device showcases (phone story, laptop story). */

/* ---- a bigger phone ---- */
.fx-phone.ph-lg{width:330px;padding:10px;border-radius:52px}
.fx-phone.ph-lg .fx-ph-scr{height:680px;border-radius:43px}
.fx-phone.ph-lg .fx-ph-scr::before{top:11px;width:96px;height:28px;margin-left:-48px;border-radius:16px}
.ph-st{position:absolute;left:0;right:0;top:0;z-index:4;display:flex;justify-content:space-between;align-items:center;height:50px;padding:4px 30px 0 34px;color:#171A17}
.ph-st.dk{color:#fff}
.ph-st b{font:600 15px/1 Geist,sans-serif;letter-spacing:-.01em}
.ph-st span{display:flex;align-items:center;gap:6px}
.ph-st svg:first-child{width:17px;height:11px}.ph-st svg:last-child{width:26px;height:12px}
.ph-app{display:block;flex:none;width:38px;height:38px;border-radius:9px;background:#41694F;overflow:hidden}
.ph-app svg{display:block;width:100%;height:100%}

/* lock screen */
.ph-lock{position:absolute;inset:0;padding:70px 12px 0;color:#fff;text-align:center;background:radial-gradient(70% 45% at 85% 78%,rgba(255,138,92,.85),transparent 70%),radial-gradient(60% 40% at 20% 95%,rgba(255,94,135,.7),transparent 70%),radial-gradient(90% 60% at 10% 40%,rgba(88,86,214,.9),transparent 65%),radial-gradient(80% 55% at 95% 30%,rgba(10,132,255,.85),transparent 65%),radial-gradient(120% 70% at 50% 0%,#1B2A6B,transparent 70%),linear-gradient(180deg,#0B1240,#2A1B5E 55%,#4A1F5C)}
.ph-lock::before{content:"";position:absolute;inset:0;background:conic-gradient(from 210deg at 60% 62%,transparent,rgba(255,255,255,.12) 12%,transparent 24%,rgba(255,255,255,.08) 40%,transparent 55%);filter:blur(18px);pointer-events:none}
.ph-lock>*{position:relative}
.ph-ld{font-size:16px;font-weight:500;opacity:.9}
.ph-lt{margin-top:2px;font:600 84px/1 Geist,sans-serif;letter-spacing:-.04em}
.ph-ns{display:flex;flex-direction:column;gap:8px;margin-top:150px;text-align:left}
.ph-nt{display:flex;align-items:flex-start;gap:10px;padding:12px;border-radius:22px;background:rgba(250,250,252,.72);backdrop-filter:blur(22px) saturate(1.6);color:#171A17}
.ph-nt>div{flex:1;min-width:0}
.ph-nt p:first-child{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;color:#6b6f75}
.ph-nt p:first-child b{font-weight:600;font-size:13px;color:#171A17}
.ph-nt .t{margin-top:2px;font-size:14px;font-weight:600}
.ph-nt .b{margin-top:1px;font-size:13.5px;line-height:1.35;color:#2d322c}

/* app screens */
.ph-scr{position:absolute;inset:0;padding:52px 0 0;background:#F7F6F1;font-family:Geist,sans-serif;color:#171A17;text-align:left}
.ph-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:44px;padding:0 16px}
.ph-bar b{font-size:16px;font-weight:600}
.ph-bar>span:last-child{justify-self:end;color:#4F8078;font-size:14px;font-weight:500}
.ph-back{display:flex;align-items:center;color:#4F8078;font-size:14px;font-weight:500}
.ph-back svg{width:20px;height:20px;transform:rotate(90deg)}
.ph-pad{padding:6px 16px}
.ph-h1{font:400 30px/1.05 "Instrument Serif",serif}
.ph-sub{margin-top:6px;font-size:13px;color:#71766D;line-height:1.45}
.ph-card{margin-top:12px;padding:14px;border-radius:16px;background:#fff;border:1px solid #E7E6DE}
.ph-row{display:flex;align-items:center;gap:10px;font-size:13.5px}
.ph-row+.ph-row{margin-top:10px}
.ph-row svg{width:16px;height:16px;color:#71766D;flex:none}
.ph-tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;font-size:11.5px;font-weight:500}
.ph-tag.bad{background:#F5E4E2;color:#AA4038}.ph-tag.ok{background:#E3EAE4;color:#41694F}
.ph-sw{display:flex;gap:4px;padding:4px;border-radius:12px;background:#F0EFE9}
.ph-sw span{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;height:42px;border-radius:9px;font-size:14px;font-weight:600;color:#62675f}
.ph-sw span.on{background:#41694F;color:#fff}
.ph-sw svg{width:16px;height:16px}
.ph-faces{display:flex;align-items:center;margin-top:12px}
.ph-faces i{display:grid;place-items:center;width:28px;height:28px;margin-right:-7px;border-radius:8px;box-shadow:0 0 0 2px #fff;font:600 10px/1 Geist,sans-serif;font-style:normal}
.ph-faces small{margin-left:16px;font-size:12.5px;color:#62675f}
.ph-btn{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;border-radius:14px;background:#41694F;color:#fff;font-size:15px;font-weight:600}
.ph-btn svg{width:18px;height:18px}
.ph-btn.gh{background:#fff;color:#171A17;box-shadow:inset 0 0 0 1px #DCDBD2}
.ph-big{display:flex;align-items:baseline;gap:8px}
.ph-big b{font:500 54px/1 Geist,sans-serif;letter-spacing:-.04em}
.ph-big em{font-style:normal;font-size:15px;font-weight:600;color:#41694F}
.ph-li{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #F0EFE9;font-size:13.5px}
.ph-li:last-child{border-bottom:0}
.ph-li>i{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;font-style:normal}
.ph-li>i svg{width:17px;height:17px}
.ph-li span{flex:1;min-width:0}.ph-li b{display:block;font-weight:600}.ph-li small{display:block;margin-top:1px;font-size:12px;color:#71766D}
.ph-li em{font-style:normal;font-weight:600;color:#41694F}
.ph-banner{position:absolute;left:10px;right:10px;top:54px;z-index:5}

/* chat on the phone */
.ph-msg{display:flex;gap:9px;padding:8px 14px}
.ph-msg>i{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:9px;font:600 10.5px/1 Geist,sans-serif;font-style:normal}
.ph-msg p:first-child{display:flex;align-items:baseline;gap:6px;font-size:13px}
.ph-msg p:first-child small{font-size:11px;color:#71766D}
.ph-msg .x{margin-top:2px;font-size:14px;line-height:1.4}
.ph-poll{margin-top:8px;padding:11px;border-radius:14px;background:#fff;border:1px solid #E3E2DA}
.ph-poll>b{display:block;margin-bottom:8px;font-size:14px}
.ph-po{position:relative;display:flex;justify-content:space-between;align-items:center;height:38px;margin-top:6px;padding:0 11px;border:1px solid #E3E2DA;border-radius:10px;overflow:hidden;font-size:13.5px}
.ph-po i{position:absolute;left:0;top:0;bottom:0;width:var(--w);background:#EEF1EE}
.ph-po.on{border-color:#4F8078}.ph-po.on i{background:#DDE3E2}
.ph-po span,.ph-po b{position:relative}
.ph-poll small{display:block;margin-top:8px;font-size:11.5px;color:#71766D}
.ph-comp{position:absolute;left:10px;right:10px;bottom:26px;display:flex;align-items:center;gap:10px;height:46px;padding:0 6px 0 14px;border-radius:23px;background:#fff;border:1px solid #E3E2DA;font-size:14px;color:#9a9f96}
.ph-comp span{flex:1}
.ph-comp i{display:grid;place-items:center;width:34px;height:34px;border-radius:17px;background:#41694F;color:#fff}
.ph-comp svg{width:16px;height:16px}
.ph-chh{display:flex;align-items:center;gap:10px;padding:4px 14px 10px;border-bottom:1px solid #ECEBE3}
.ph-chh b{font-size:16px}.ph-chh small{display:block;font-size:12px;color:#71766D}
.ph-chh svg{width:20px;height:20px;color:#4F8078;transform:rotate(90deg)}
.ph-day{margin:10px 0 2px;text-align:center;font-size:11.5px;font-weight:500;color:#71766D}

/* map */
.ph-map{position:relative;height:250px;margin:4px 0 0;background:linear-gradient(90deg,rgba(255,255,255,.55) 1px,transparent 1px) 0 0/26px 26px,linear-gradient(rgba(255,255,255,.55) 1px,transparent 1px) 0 0/26px 26px,#DCE3DA}
.ph-map::before{content:"";position:absolute;left:-10%;right:-10%;top:58%;height:16px;background:#fff;transform:rotate(-12deg);opacity:.9}
.ph-map::after{content:"";position:absolute;top:-10%;bottom:-10%;left:30%;width:14px;background:#fff;transform:rotate(8deg);opacity:.9}
.ph-ring{position:absolute;left:50%;top:48%;z-index:1;width:150px;height:150px;margin:-75px 0 0 -75px;border-radius:50%;background:rgba(65,105,79,.18);border:2px solid rgba(65,105,79,.55)}
.ph-house{position:absolute;left:50%;top:48%;z-index:2;display:grid;place-items:center;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:10px;background:#41694F;color:#fff}
.ph-house svg{width:17px;height:17px}
.ph-me{position:absolute;left:58%;top:40%;z-index:3;width:18px;height:18px;border-radius:50%;background:#0A84FF;border:3px solid #fff;box-shadow:0 0 0 8px rgba(10,132,255,.18),0 2px 6px rgba(0,0,0,.25)}
.fsx-p.on .ph-me{animation:walk 1.6s .3s cubic-bezier(.3,.6,.2,1) both}
@keyframes walk{from{left:86%;top:12%}}

/* ---- a laptop anywhere on the page, its screen drawn by screens/<slug>.js ---- */
.fx-dev-lap{width:100%;max-width:1040px;margin:0 auto}
.fx-dev-lap .mbp{position:relative;left:auto;top:auto;width:100%}
.lap-ov{position:absolute;inset:0;z-index:3;overflow:hidden}
.lap-in{position:absolute;left:0;top:0;width:1100px;height:714px;transform-origin:0 0}
.lap-in::before{content:"";position:absolute;inset:0;background:rgba(23,26,23,.26)}
.lap-in .fsx-p{position:absolute;right:0;top:0;bottom:0;width:500px;display:block;place-items:initial}
.lap-in .ux-dr{height:100%;max-width:none;display:flex;flex-direction:column;border-radius:0;border:0;box-shadow:-20px 0 50px rgba(23,26,23,.18)}
.lap-in .ux-body{flex:1;min-height:0}

/* ---- showcase as a phone story: big phone on the left, numbered steps on the right ---- */
.fsx.v-phone{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:72px}
.fsx.v-phone .fsx-stage{order:0;min-height:0;padding:40px 0;background:radial-gradient(60% 50% at 50% 50%,var(--fx-t),transparent 70%);place-items:center}
.fsx.v-phone .fsx-tabs{order:1;counter-reset:st}
.fsx.v-phone .fsx-t{padding:18px 20px 18px 64px;background:none}
.fsx.v-phone .fsx-t::after{counter-increment:st;content:counter(st,decimal-leading-zero);position:absolute;left:18px;top:16px;font:500 15px/1.4 "Geist Mono",monospace;color:#b2b5ad;transition:color .3s}
.fsx.v-phone .fsx-t.on::after{color:var(--fx)}
.fsx.v-phone .fsx-t b{font-size:22px;letter-spacing:-.025em}
.fsx.v-phone .fsx-t span{font-size:16px}
.fsx.v-phone .fx-ph-scr .fsx-p{position:absolute;inset:0;display:block}
.fsx.pin.v-phone .fsx-p,.fsx.pin.v-phone[data-dir=up] .fsx-p,.fsx.pin.v-phone .fsx-p.out,.fsx.pin.v-phone[data-dir=up] .fsx-p.out{transform:scale(1.04)}
.fsx.pin.v-phone .fsx-p.on{transform:none}
.fsx.v-phone .fsx-dots{bottom:0}

/* ---- showcase as a laptop story: the laptop holds the page, drawers slide in over the app ---- */
.fsx.v-lap{grid-template-columns:minmax(0,1fr);gap:26px}
.fsx.v-lap .fsx-stage{min-height:0;padding:0;background:none;overflow:visible}
.fsx.v-lap .fsx-tabs{flex-direction:row;justify-content:center;flex-wrap:wrap;gap:8px}
.fsx.v-lap .fsx-t{width:auto;padding:0 16px;height:42px;border-radius:10px;border:1px solid #E3E2DA;background:#fff}
.fsx.v-lap .fsx-t::before,.fsx.v-lap .fsx-t i{display:none}
.fsx.v-lap .fsx-t b{font-size:14.5px;line-height:40px;color:#62675f}
.fsx.v-lap .fsx-t span{display:none}
.fsx.v-lap .fsx-t.on{border-color:#171A17;background:#171A17}
.fsx.v-lap .fsx-t.on b{color:#fff}
.fsx.v-lap .fsx-cap{min-height:52px;max-width:660px;margin:0 auto;text-align:center;font-size:16.5px;line-height:1.55;color:#585e56}
.fsx.v-lap .fsx-dots{display:none}
.lap-in .fsx-p{opacity:0;visibility:hidden;transform:translateX(60px);transition:opacity .35s,transform .55s cubic-bezier(.2,.7,.2,1),visibility 0s .35s}
.lap-in .fsx-p.on{opacity:1;visibility:visible;transform:none;transition:opacity .35s .05s,transform .55s .05s cubic-bezier(.2,.7,.2,1)}
.fsx.pin .lap-in .fsx-p,.fsx.pin[data-dir=up] .lap-in .fsx-p,.fsx.pin .lap-in .fsx-p.out{transform:translateX(60px)}
.fsx.pin .lap-in .fsx-p.on{transform:none}
/* laptop story, steps underneath as a row of columns with a progress line on top (drive) */
.fsx.v-lap.steps-below .fsx-tabs{order:2;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:22px;margin-top:6px}
.fsx.v-lap.steps-below .fsx-t{height:auto;padding:14px 0 0;border:0;border-top:2px solid #E3E2DA;border-radius:0;background:none}
.fsx.v-lap.steps-below .fsx-t i{display:block;left:0;right:auto;top:-2px;bottom:auto;width:0;height:2px;border-radius:0}
.fsx.v-lap.steps-below .fsx-t i u{width:calc(var(--f,0) * 100%);height:100%}
.fsx.v-lap.steps-below .fsx-t.past i{width:100%}.fsx.v-lap.steps-below .fsx-t.past i u{width:100%}
.fsx.v-lap.steps-below .fsx-t.on i{width:100%}
.fsx.v-lap.steps-below .fsx-t b{line-height:1.3;font-size:15px;color:#8a8f86}
.fsx.v-lap.steps-below .fsx-t.on,.fsx.v-lap.steps-below .fsx-t.on b{background:none;color:#171A17}
.fsx.v-lap.steps-below .fsx-t span{display:block;margin-top:6px;font-size:13.5px;line-height:1.5;color:#8a8f86;transition:color .3s}
.fsx.v-lap.steps-below .fsx-t span>em{overflow:visible}
.fsx.v-lap.steps-below .fsx-t.on span{color:#585e56}
.fsx.v-lap.steps-below .fsx-cap{display:none}
.fsx.v-lap.steps-below .fx-dev-lap{max-width:820px}

/* ---- a moment whose visual is a device: no tinted panel, the device stands on its own ---- */
.fx-mv.bare{padding:0;background:none;min-height:0}
.fx-duo{position:relative;display:flex;align-items:center;justify-content:center;width:100%}
.fx-duo .pt-card{position:absolute;right:-10px;bottom:30px;max-width:330px;z-index:2}
.fx-duo .fx-phone{margin-right:150px}
.fsx.v-lap.steps-below .fsx-t{display:flex;flex-direction:column;justify-content:flex-start}
.fsx.v-lap.steps-below .fx-dev-lap{max-width:760px}
.fx-duo .fx-phone{margin-right:250px}
.fx-duo .pt-card{right:-30px;bottom:-40px;width:320px}
.fx-duo .ph-ns{margin-top:120px}
/* the map keeps its roads inside it */
.ph-map{overflow:hidden}
/* device showcases never clip the device or its shadow (the drawer style keeps its tinted panel and clipping) */
.fsx.v-phone .fsx-stage{overflow:visible;padding:30px 0 70px}
.fsx.v-lap .fsx-stage{overflow:visible}
/* the hero clips sideways only, so the laptop's shadow is never cut at the section's edge */
.fx-hero{overflow:visible;overflow-x:clip;padding-bottom:40px}
.fsx.pin{margin-top:64px}
/* flip: steps on the left, phone on the right */
.fsx.v-phone.flip .fsx-stage{order:2}

/* ---- phones and small tablets (Cameron 2026-12-02, "make sure everything looks good on mobile") ----
   showcase.css sets .fsx's columns again after its own breakpoint and .fsx.v-phone sets two columns, so the stacking
   lives here, last. The stage comes first, the steps under it; the duo moments stack the card under the phone. */
@media (max-width:1000px){
  .fsx,.fsx.v-phone{grid-template-columns:minmax(0,1fr);gap:22px}
  .fsx-stage,.fsx.v-phone .fsx-stage,.fsx.v-phone.flip .fsx-stage{order:-1}
  .fsx-stage{min-height:0;padding:22px 16px}
  .fsx.v-phone .fsx-stage{padding:24px 0 30px}
  .fsx.v-phone .fsx-t{padding:14px 16px 14px 54px}
  .fsx.v-phone .fsx-t::after{left:14px;top:13px}
  .fsx.v-phone .fsx-t b{font-size:19px}
  .fsx.v-lap.steps-below .fsx-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}
  .fx-m{grid-template-columns:minmax(0,1fr)}
  .fx-mv{grid-template-columns:minmax(0,1fr)}
  .fx-mv>*{max-width:100%}
  .fx-duo{flex-direction:column}
  .fx-duo .fx-phone{margin:0}
  .fx-duo .ph-ns{margin-top:0}
  .fx-duo .pt-card{position:relative;right:auto;bottom:auto;width:100%;max-width:340px;margin-top:-110px}
}
@media (max-width:420px){
  .fx-phone.ph-lg{zoom:.88}
  .fx-mv .fx-phone:not(.ph-lg){zoom:.94}
}
