/* Visualiser — a phone experience. theme.css supplies the brand tokens; this
   file lays out the app itself.

   Every measurement below assumes a phone. On a desktop the same layout is
   dropped into a device frame rather than being reflowed, because the dial and
   the thumb-reach bottom bar only make sense at that size. */

body.tryon{background:var(--tint);min-height:100svh}

/* ------------------------------------------------------------ desktop rail */
/* edge to edge on a phone; the desktop block below reintroduces the margin */
.deskrail{min-height:100svh;display:grid;place-items:center;padding:0}
.deskcopy{display:none}
.phone{width:100%;max-width:430px}
.app{display:flex;flex-direction:column;background:var(--white);min-height:100svh}

@media (min-width:900px){
  .deskrail{grid-template-columns:minmax(0,1fr) auto;gap:clamp(32px,5vw,80px);
    align-items:center;justify-content:center;padding:40px clamp(24px,5vw,80px)}
  .deskcopy{display:block;max-width:44ch}
  .deskcopy h1{font-size:clamp(30px,3vw,44px);margin:10px 0 14px}
  .deskcopy p{font-size:14.5px;max-width:46ch}
  .deskcopy p + p{margin-top:12px}
  .deskcopy .small{font-size:12.5px;color:var(--dim)}
  .phone{width:412px}
  /* device frame */
  .app{height:846px;min-height:0;border-radius:38px;overflow:hidden;
    border:9px solid #10182F;box-shadow:0 30px 70px rgba(22,32,60,.28)}
}

/* ---------------------------------------------------------------- chrome */
/* theme.css positions the marketing site's <header> absolutely at the top of the
   viewport; left alone that rule lifts this one clean out of the phone frame. */
.ap-head{position:relative;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;
  padding:10px 12px;border-bottom:1px solid var(--line);flex:none;
  padding-top:max(10px,env(safe-area-inset-top))}
.ap-head .back{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;
  color:var(--navy);font-size:17px;background:var(--tint)}
.ap-head .mark{height:30px;width:auto;margin:0 auto}
.ap-head .restart{justify-self:end;border:0;background:none;cursor:pointer;font-family:var(--sans);
  font-size:10px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--navy)}
.ap-head .restart[hidden]{display:none}

/* theme.css gives every <section> ~112px of vertical padding for the marketing
   page. Inside a phone frame that ate most of the camera, so it is reset here
   and each screen states its own. */
.screen{flex:1;display:flex;flex-direction:column;min-height:0;padding:0}
.screen[hidden]{display:none}

/* Once the camera is live this stops being a web page. The app header goes, and
   the frame owns the whole device — the only things on screen are controls. */
.app.shooting .ap-head{display:none}

/* ------------------------------------------------------------- 1. choose */
.choose{padding:clamp(20px,6vw,32px) 20px 24px;justify-content:center}
.choose h2{font-size:clamp(24px,7vw,30px);line-height:1.15}
.choose .sub{font-size:13.5px;color:var(--dim);margin:8px 0 22px}

.pick{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;
  width:100%;text-align:left;padding:16px;margin-bottom:10px;cursor:pointer;
  border:1px solid var(--line-2);border-radius:12px;background:#fff;transition:.2s;
  font-family:var(--sans);min-height:72px}
.pick:hover,.pick:focus-visible{border-color:var(--navy);background:var(--tint);outline:none}
.pick:active{transform:scale(.985)}
.pick[disabled]{opacity:.5;cursor:default}
.pi-num{font-family:var(--serif);font-size:12px;color:var(--sky);letter-spacing:.16em}
.pi-txt{display:flex;flex-direction:column;gap:3px;font-size:11.5px;color:var(--dim);line-height:1.45}
.pi-txt b{font-family:var(--serif);font-size:19px;font-weight:400;color:var(--ink);letter-spacing:0}
.pi-go{color:var(--accent);font-size:16px}

.choose .note{font-size:11.5px;color:var(--dim);margin-top:18px;line-height:1.55}
.choose .err{font-size:12.5px;color:#8E2F2F;margin-top:12px;line-height:1.5}
.choose .err[hidden]{display:none}

/* -------------------------------------------------------------- 2. studio */
/* Camera-app layout: the 9:16 frame fills the screen and the controls float on
   top of it. Stacking them below instead needs ~1070px of height on a 412px
   phone — about 200px more than any phone has. */
.studio{position:relative;background:#0E1526;overflow:hidden}
.stage{position:absolute;inset:0}
#cam{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
/* contain, not cover: what is on screen is exactly what gets saved */
#view{width:100%;height:100%;display:block;object-fit:contain}

.ov{position:absolute;z-index:5}
.ov-top{top:0;left:0;right:0;display:flex;align-items:center;gap:13px;
  padding:max(12px,env(safe-area-inset-top)) 14px 26px;
  background:linear-gradient(to bottom,rgba(10,16,32,.72),rgba(10,16,32,.34) 58%,transparent)}
.modelabel{flex:1;min-width:0;font-family:var(--serif);font-size:20px;font-weight:400;color:#fff}
.iconbtn{flex:none;width:38px;height:38px;border-radius:50%;border:0;cursor:pointer;
  display:grid;place-items:center;font-size:15px;line-height:1;
  background:rgba(255,255,255,.16);color:#fff;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:.18s}
.iconbtn:hover{background:rgba(255,255,255,.3)}
.ov-side{top:112px;right:12px;display:flex;flex-direction:column;gap:7px}
.ov-bottom{left:0;right:0;bottom:0;padding:34px 12px max(12px,env(safe-area-inset-bottom));
  background:linear-gradient(to top,rgba(10,16,32,.86),rgba(10,16,32,.5) 58%,transparent)}

/* -------------------------------------------------------------------- bar */
/* A native range input: easier to hit than a dial, and it brings keyboard and
   screen-reader support with it rather than needing them rebuilt. */
.barwrap{flex:1;min-width:0}
.barhead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:9px}
.barhead b{font-family:var(--serif);font-size:19px;font-weight:400;color:#fff;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.barhead output{font-family:var(--sans);font-size:12px;font-weight:500;color:#fff;
  font-variant-numeric:tabular-nums;flex:none}

.bar{-webkit-appearance:none;appearance:none;width:100%;height:30px;background:none;cursor:pointer;
  touch-action:none;display:block}
.bar::-webkit-slider-runnable-track{height:4px;border-radius:3px;
  background:linear-gradient(to right,#fff var(--fill,0%),rgba(255,255,255,.28) var(--fill,0%))}
.bar::-moz-range-track{height:4px;border-radius:3px;background:rgba(255,255,255,.28)}
.bar::-moz-range-progress{height:4px;border-radius:3px;background:#fff}
/* a generous thumb — this gets used with a thumb, at arm's length */
.bar::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:26px;height:26px;
  border-radius:50%;background:#fff;border:0;margin-top:-11px;
  box-shadow:0 2px 10px rgba(0,0,0,.4)}
.bar::-moz-range-thumb{width:26px;height:26px;border-radius:50%;background:#fff;border:0;
  box-shadow:0 2px 10px rgba(0,0,0,.4)}
.bar:focus{outline:none}
.bar:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px rgba(255,255,255,.45)}

/* ----------------------------------------------------------------- status */
.badge{position:absolute;top:104px;left:14px;z-index:6;font-size:9px;letter-spacing:.14em;
  text-transform:uppercase;padding:5px 9px;border-radius:3px;color:#fff;background:rgba(22,32,60,.55);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.badge.ok{background:rgba(43,79,176,.78)}
.badge.hold{background:rgba(22,32,60,.85)}
.badge.err{background:#8E2F2F}

.noface{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:6;
  font-size:12px;color:#fff;background:rgba(22,32,60,.62);padding:9px 14px;border-radius:8px;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:center;max-width:78%}
.noface[hidden]{display:none}

/* ------------------------------------------------------------- glass chips */
.chip{font-family:var(--sans);font-size:9px;font-weight:500;letter-spacing:.1em;
  text-transform:uppercase;padding:0 11px;border-radius:4px;cursor:pointer;min-height:38px;min-width:82px;
  border:1px solid rgba(255,255,255,.34);background:rgba(255,255,255,.16);color:#fff;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:.18s;
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
.chip:hover{background:rgba(255,255,255,.28)}
.chip.on{background:#fff;color:var(--navy-deep);border-color:#fff}

/* the three treatments, within thumb reach */
.modes{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:9px}
.mode{font-family:var(--sans);font-size:11px;font-weight:500;letter-spacing:.03em;cursor:pointer;
  padding:12px 4px;border-radius:9px;color:#fff;transition:.18s;min-height:46px;touch-action:manipulation;
  border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.15);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.mode:hover{background:rgba(255,255,255,.26)}
.mode.on{background:#fff;border-color:#fff;color:var(--navy-deep);font-weight:600}
/* A treatment can be carrying a value while a different one is under the bar,
   so each button shows whether it is contributing. */
.mode{position:relative}
.on-dot{position:absolute;top:7px;right:8px;width:6px;height:6px;border-radius:50%;
  background:var(--sky-l);opacity:0;transition:opacity .2s}
.mode.set .on-dot{opacity:1}
.mode.on.set .on-dot{background:var(--accent)}

.btn.wide{width:100%}
.ov-bottom .btn{background:var(--accent);color:#fff;border-color:transparent}
.ov-bottom .btn:hover{background:var(--accent-d)}
/* ------------------------------------------------------------ instructions */
/* Said once, on the way in, so the live view can stay free of prose. */
.coach{position:absolute;inset:0;z-index:20;display:grid;place-items:end stretch;
  padding:18px;background:rgba(10,16,32,.72);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.coach[hidden]{display:none}
.coach-in{color:#fff}
.coach-in h3{font-family:var(--serif);font-size:23px;font-weight:400;color:#fff;margin-bottom:16px}
.coach-in ul{list-style:none;margin-bottom:18px}
.coach-in li{display:grid;grid-template-columns:76px 1fr;gap:12px;align-items:baseline;
  font-size:13px;color:rgba(255,255,255,.82);padding:9px 0;
  border-bottom:1px solid rgba(255,255,255,.14)}
.coach-in li:last-child{border-bottom:0}
.ck{font-family:var(--sans);font-size:9.5px;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:#fff}
.coach-fine{font-size:11px;color:rgba(255,255,255,.55);line-height:1.55;margin-bottom:16px}
.coach-in .btn-primary{background:#fff;color:var(--navy-deep)}
.coach-in .btn-primary:hover{background:var(--sky-l)}
