/* Vayen home: "Log it from your wrist." — a stylised Apple Watch, drawn in CSS. */
.aw{
  --aw-acc:#FFB224;
  --aw-grey:#9A9AA0;
  --aw-font:ui-rounded,"SF Pro Rounded",var(--display),sans-serif;
  position:relative;
  font-size:10px;              /* every size below is in em: 34em × 46em = 340 × 460 */
  width:34em;height:46em;
  max-width:100%;
  margin:0 auto;
  -webkit-tap-highlight-color:transparent;
}
.aw *,.aw *::before,.aw *::after{box-sizing:border-box}
:where(.aw) p{margin:0}
.aw-watch{position:absolute;inset:0}

/* Straps: dark graphite, fading out into the night */
.aw-strap{
  position:absolute;left:5.45em;width:22em;height:8em;
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 .12em,transparent .12em .9em),
    linear-gradient(90deg,#16171c,#2a2c33 22%,#33353d 50%,#2a2c33 78%,#16171c);
  border-radius:1.4em;
}
.aw-strap-top{top:0;-webkit-mask:linear-gradient(to top,#000 40%,transparent);mask:linear-gradient(to top,#000 40%,transparent)}
.aw-strap-bot{bottom:0;-webkit-mask:linear-gradient(to bottom,#000 40%,transparent);mask:linear-gradient(to bottom,#000 40%,transparent)}

/* Case: titanium grey with a soft bezel */
.aw-side{ /* the case's depth, seen on the right */
  position:absolute;left:2.6em;top:6.2em;width:28.5em;height:34em;border-radius:7.6em;
  background:linear-gradient(90deg,#3a3b40,#5d5f66);
}
.aw-case{
  position:absolute;left:2.2em;top:6em;width:28.5em;height:34em;border-radius:7.5em;
  padding:.55em;
  background:
    linear-gradient(145deg,#c9cad0 0%,#8d8f96 28%,#62646b 55%,#9a9ca3 82%,#d6d7dc 100%);
  box-shadow:
    0 2.4em 5em rgba(0,0,0,.55),
    0 0 6em rgba(70,110,255,.16),
    inset 0 .12em .2em rgba(255,255,255,.55),
    inset 0 -.15em .3em rgba(0,0,0,.45);
}
.aw-screen{ /* the black glass, its bezel as an inner ring */
  position:relative;width:100%;height:100%;border-radius:7em;overflow:hidden;
  background:#000;
  box-shadow:inset 0 0 0 .95em #050506,inset 0 0 0 1.05em #1b1c20;
  font-family:var(--aw-font);color:#fff;
  -webkit-font-smoothing:antialiased;
}
.aw-screen::after{ /* a faint glass sheen */
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(160deg,rgba(255,255,255,.07),transparent 38%);
}

/* Digital Crown and side button */
.aw-crown{
  position:absolute;left:30.1em;top:12.4em;width:2.8em;height:5.6em;
  font:inherit;padding:0;border:0;border-radius:.9em 1.3em 1.3em .9em;cursor:pointer;
  background:linear-gradient(90deg,#6f7178,#b9bbc1 45%,#8c8e95 70%,#55575d);
  box-shadow:inset -.12em 0 .2em rgba(0,0,0,.4),0 .3em .6em rgba(0,0,0,.4);
  transition:transform .15s ease;
}
.aw-crown-ridges{
  position:absolute;inset:.5em .35em .5em .9em;border-radius:.5em;
  background:repeating-linear-gradient(180deg,rgba(0,0,0,.42) 0 .14em,rgba(255,255,255,.22) .14em .3em,transparent .3em .42em);
}
.aw-crown::after{ /* the red ring of the crown */
  content:"";position:absolute;left:.55em;top:1.1em;bottom:1.1em;width:.12em;border-radius:1em;background:#ff5a4e;opacity:.85;
}
.aw-crown:hover{transform:translateX(.12em)}
.aw-crown:active{transform:translateX(-.08em)}
.aw-crown:focus-visible{outline:.2em solid var(--aw-acc);outline-offset:.25em}
.aw-btn-side{
  position:absolute;left:30.35em;top:20.8em;width:1.3em;height:6.4em;border-radius:0 .8em .8em 0;
  background:linear-gradient(90deg,#55575d,#9c9ea4 60%,#6a6c72);
}

/* Screen contents */
.aw-clock{position:absolute;top:2.6em;right:3.3em;font-size:1.6em;font-weight:600;letter-spacing:.01em}
.aw-st{
  position:absolute;inset:5.2em 2.4em 3.2em;
  display:flex;flex-direction:column;
  opacity:0;visibility:hidden;transition:opacity .5s ease,visibility 0s linear .5s;
}
.aw[data-state="0"] .aw-st-now,
.aw[data-state="1"] .aw-st-rest,
.aw[data-state="2"] .aw-st-heart{opacity:1;visibility:visible;transition:opacity .5s ease,visibility 0s}

/* 1 — Now */
.aw-kick{font-size:1.3em;font-weight:700;color:var(--aw-grey);letter-spacing:.04em}
.aw-title{font-size:1.75em;font-weight:600;line-height:1.18;margin-top:.15em}
.aw-load{display:flex;align-items:baseline;gap:.25em;margin-top:.55em;font-variant-numeric:tabular-nums}
.aw-big{font-size:5em;font-weight:600;line-height:1;letter-spacing:-.02em}
.aw-unit{font-size:1.7em;font-weight:600;color:var(--aw-grey)}
.aw-pill{
  align-self:flex-start;margin-top:.7em;padding:.3em .75em;border-radius:1em;
  font-size:1.3em;font-weight:600;color:#c4c4c9;background:#262629;
}
.aw-cta{
  margin-top:auto;display:flex;align-items:center;justify-content:center;
  height:2.5em;border-radius:1.25em;background:#f2f2f4;color:#000;
  font-size:1.75em;font-weight:600;
}

/* 2 — Rest */
.aw-st-rest{align-items:center}
.aw-ringwrap{position:relative;width:14.6em;height:14.6em;margin-top:.2em;flex:none}
.aw-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.aw-ring circle{fill:none;stroke-width:3.2}
.aw-ring-track{stroke:rgba(255,178,36,.16)}
.aw-ring-fill{
  stroke:var(--aw-acc);stroke-linecap:round;
  stroke-dasharray:289.03;stroke-dashoffset:28.9;
  transition:stroke-dashoffset 1s linear;
}
.aw-count{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:4.6em;font-weight:600;color:var(--aw-acc);font-variant-numeric:tabular-nums;letter-spacing:-.01em;
}
.aw-next{font-size:1.4em;color:var(--aw-grey);margin-top:.8em;text-align:center;line-height:1.25}
.aw-btns{margin-top:auto;display:flex;gap:.7em;width:100%}
.aw-btns span{
  flex:1;display:flex;align-items:center;justify-content:center;height:2.4em;border-radius:1.2em;
  background:#2a2a2d;font-size:1.6em;font-weight:600;
}

/* 3 — Heart */
.aw-bpm{display:flex;align-items:flex-end;gap:.15em;margin-top:1.4em}
.aw-bpm span{font-size:7.6em;font-weight:600;line-height:.95;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.aw-heart{width:3em;height:2.8em;fill:#ff3b5c;margin-bottom:.6em}
.aw-zones{display:flex;gap:.6em;margin-top:2.2em}
.aw-zones i{flex:1;height:.85em;border-radius:1em}
.aw-zones i:nth-child(1){background:#26344d}
.aw-zones i:nth-child(2){background:#1d3d3a}
.aw-zones i:nth-child(3){background:#2b4a24}
.aw-zones i:nth-child(4){background:#4a3214}
.aw-zones i:nth-child(5){background:#4a1b22}
.aw-zones i.on{background:#6fe05c;box-shadow:0 0 1em rgba(111,224,92,.45)}
.aw-zone{font-size:1.6em;font-weight:700;color:#6fe05c;margin-top:.5em}
.aw-stats{margin-top:auto;font-size:1.4em;color:var(--aw-grey);font-variant-numeric:tabular-nums}
.aw-stats b{color:#fff;font-weight:600;font-size:1.25em}

/* Page dots */
.aw-dots{position:absolute;left:0;right:0;bottom:1.5em;display:flex;justify-content:center;gap:.5em}
.aw-dots i{width:.65em;height:.65em;border-radius:50%;background:#48484c;transition:background .3s}
.aw[data-state="0"] .aw-dots i:nth-child(1),
.aw[data-state="1"] .aw-dots i:nth-child(2),
.aw[data-state="2"] .aw-dots i:nth-child(3){background:#fff}

/* The crown is a real button: a 44 px hit area round its drawn shape */
.aw-crown::before{content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}

@media (max-width:600px){
  .aw{font-size:8.2px}   /* 279 px wide */
  /* nothing on the screen under 12 px */
  .aw-kick,.aw-pill{font-size:1.5em}
  .aw-clock{font-size:1.65em}
  .aw-next{font-size:1.5em}
  .aw-stats{font-size:1.5em}
  .aw-stats b{font-size:1.15em}
}
@media (max-width:320px){.aw{font-size:7.4px}}

@media (prefers-reduced-motion:reduce){
  .aw-st,.aw[data-state] .aw-st,.aw-ring-fill,.aw-dots i,.aw-crown{transition:none!important}
}
.vpic-home>*,.vpic-kit>*{width:100%;max-width:520px}
.vpic-home h3{letter-spacing:-.02em}
/* Dark page: the Appearance picture's own controls sit on the page, not on its light panel, and the
   import picture's foot pill is glass; both read the page's ink there. */
:root[data-theme="dark"] .vpic-themes .th{color:var(--ink)}
:root[data-theme="dark"] .vpic-themes .th-sw{box-shadow:inset 0 0 0 1px rgba(255,255,255,.24)}
:root[data-theme="dark"] .vpic-themes .th-tone[aria-pressed="true"] .th-sw{box-shadow:inset 0 0 0 1px rgba(255,255,255,.24),0 0 0 2px #16151C,0 0 0 4px currentColor}
:root[data-theme="dark"] .vpic-import .ic-foot{background:rgba(255,255,255,.1);color:var(--ink-2)}
.vwide .vpic>*{max-width:none}