
/* Geist Variable, self-hosted. Two subsets: unicode-range means a browser
   only fetches latin-ext when a page actually contains those characters -
   which, in Romanian, is almost always, and in English almost never. */
@font-face{
  font-family:'Geist';
  src:url('/f/geist-latin.woff2') format('woff2');
  font-weight:100 900;font-style:normal;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,
    U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,
    U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Geist';
  src:url('/f/geist-latin-ext.woff2') format('woff2');
  font-weight:100 900;font-style:normal;font-display:swap;
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,
    U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,
    U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root{
  --bg:#f2f2f7; --card:#fff; --label:#1c1c1e; --secondary:rgba(60,60,67,.82);
  --tertiary:rgba(60,60,67,.3); --separator:rgba(60,60,67,.29);
  /* --tint is a fill that carries --on-tint text; --accent is the same hue
     where it sits on the page as text, a border, an outline or an icon,
     tuned per theme so both stay above 4.5:1. */
  --tint:#4965ed; --on-tint:#fff; --accent:#3f5be6; --tint-rgb:73,101,237; --pill-ink:#2f48c9;
  --red:#d70015; --red-bg:#fff0f1;
  --radius:12px;
  /* Apple's settle curve: quick off the mark, long tail. Using one curve for
     every transition is most of what "smooth" actually means. */
  --spring:cubic-bezier(.32,.72,0,1);
  --fast:cubic-bezier(.4,0,.2,1);
}
/* Light is the default, whatever the phone is set to. Dark applies only
   when someone picks it with the toggle. color-scheme keeps the browser's
   own widgets - scrollbars, date pickers - in step with the choice. */
:root{color-scheme:light}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#000; --card:#1c1c1e; --label:#fff; --secondary:rgba(235,235,245,.74);
  --tertiary:rgba(235,235,245,.3); --separator:rgba(84,84,88,.65);
  --tint:#4965ed; --on-tint:#fff; --accent:#8ea0ff; --pill-ink:#a9b6ff; --red:#ff6961; --red-bg:#2c1416;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}

/* Places the browser's defaults leak through and break the illusion. */
::selection{background:color-mix(in srgb, var(--accent) 22%, transparent);color:var(--label)}
/* Only the elements that actually scroll. Applying this with the universal
   selector made Chrome evaluate scrollbar styling for every node on the page;
   Safari ignores most of it for overlay scrollbars, which is why the jank
   showed up in one browser and not the other. */
html,.scroll,.sheet{scrollbar-width:thin;scrollbar-color:var(--tertiary) transparent}
html::-webkit-scrollbar,.scroll::-webkit-scrollbar{width:10px;height:10px}
html::-webkit-scrollbar-track,.scroll::-webkit-scrollbar-track{background:transparent}
html::-webkit-scrollbar-thumb,.scroll::-webkit-scrollbar-thumb{
  background:var(--tertiary);border-radius:99px;
}

/* Keyboard users need to see where they are. :focus-visible rather than
   :focus, so a mouse click does not leave a ring behind. */
:focus-visible{
  outline:3px solid var(--accent);outline-offset:2px;border-radius:4px;
}
a:focus-visible,button:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible,summary:focus-visible{
  outline:3px solid var(--accent);outline-offset:2px;
}
/* The call button is on a coloured field, where the tint would disappear. */
.action:focus-visible{outline-color:var(--label)}

/* Skip straight to the content instead of tabbing through the header. */
.skip{
  /* Clipped to nothing rather than parked at left:-9999px - an off-screen
     element is another way to end up with a sideways scroll. */
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap;
  background:var(--card);color:var(--accent);font-size:.875rem;font-weight:600;
}
.skip:focus{
  width:auto;height:auto;clip-path:none;overflow:visible;
  left:0;top:0;z-index:20;padding:.7rem 1rem;border-radius:0 0 8px 0;
}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;overflow-x:clip}
body{overflow-x:clip}
/* Romanian compounds are long; without this a single word can push the
   layout wider than the screen on a narrow phone. */
h1,h2,h3,p,li,td,.v{overflow-wrap:break-word}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .sheet{animation:none}
}
/* Anchor targets clear the sticky bar instead of hiding underneath it. */
[id]{scroll-margin-top:5rem}
body{
  margin:0;background:var(--bg);color:var(--label);
  font-family:'Geist',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,
    "Helvetica Neue",Arial,sans-serif;
  /* Proportional text, but numbers that do not jitter when they change. */
  font-variant-numeric:tabular-nums;
  font-feature-settings:"cv05" 1,"ss01" 1;
  /* Fluid base size: 16px on a small phone, 18px from tablet up. One rule
     instead of a stack of breakpoints, and every rem-based dimension in the
     stylesheet scales with it. */
  font-size:clamp(16px, 0.95rem + 0.25vw, 18px);
  line-height:1.45;letter-spacing:-.01em;
  -webkit-font-smoothing:antialiased;
}
.sheet{max-width:36rem;margin:0 auto;padding-bottom:3rem;animation:pagein .4s var(--fast) both}
@keyframes pagein{from{opacity:0}to{opacity:1}}

/* Cross-fade between navigations where the browser supports it, nothing at
   all where it does not. Turns a multi-page site into something that feels
   continuous. */
/* Cross-document view transitions were here. They snapshot the entire page on
   every navigation, and Chrome is currently the only engine that runs them by
   default - so it was the only engine paying for them. The page fade below
   covers the same ground for nothing. */
.sheet.wide{max-width:72rem}
a{color:var(--accent)}

.bar{
  background:var(--card);position:sticky;top:0;z-index:5;

  border-bottom:.5px solid transparent;
  transition:background .3s var(--fast),border-color .3s var(--fast),
             box-shadow .3s var(--fast);
}
/* Gains a hairline and a shadow once you move.
 *
 * It used to blur what was behind it. A backdrop filter makes the compositor
 * read back everything painted underneath, blur it and recomposite on every
 * frame it is on screen. Safari does that through CoreAnimation and Chrome on
 * Android composites differently, so both were fine - but Chrome on macOS
 * choked on a full-width bar across a Retina display.
 *
 * A solid, slightly translucent fill looks near-identical when the bar is
 * only 3rem tall, and costs nothing. */
.bar.scrolled{
  background:var(--card);
  border-bottom-color:var(--separator);
  box-shadow:0 1px 12px rgba(0,0,0,.05);
}
/* The bar spans the window; its contents line up with the page grid. */
/* One width for every page, matching the footer. The content below may be a
   narrow column or a wide landing page, but the logo should not jump sideways
   when you move between them. */
.barinner{
  display:flex;align-items:center;gap:.75rem;
  max-width:72rem;margin:0 auto;padding:.7rem 1.25rem;
}
@media (min-width:56rem){
  .barinner{padding:.85rem 1.5rem}
}
.bar .home{display:flex;align-items:center;line-height:0}
/* One segmented control rather than two free-standing buttons. They share a
   single pill background and stretch to its height, so they cannot drift out
   of alignment however their contents differ. */
.bar .tools{
  margin-left:auto;display:inline-flex;align-items:stretch;
  background:var(--bg);border-radius:999px;padding:.2rem;gap:.15rem;
}
.bar .seg{
  display:flex;align-items:center;justify-content:center;
  min-height:1.85rem;padding:0 .8rem;border-radius:999px;border:0;
  background:transparent;color:var(--accent);
  font-family:inherit;font-size:.8125rem;font-weight:600;line-height:1;
  text-decoration:none;cursor:pointer;white-space:nowrap;
  /* The global form-button rule sets margin:1.5rem 1rem 0 on every button.
     It is less specific than this rule, but this rule never declared margin
     or width - so the bar button kept that 1.5rem top margin and sat lower
     than the link beside it. Reset explicitly instead of relying on what
     happens to be declared elsewhere. */
  margin:0;width:auto;box-sizing:border-box;vertical-align:middle;
  -webkit-appearance:none;appearance:none;
}
/* Both segments are plain text in identical elements. Icons and glyphs sit
   differently inside their own boxes, which no amount of flex centring
   fixes; two runs of text on the same line cannot disagree. */
.bar .seg:hover{background:var(--card)}
/* A button that reads as a link: secondary actions inside a card, where a
   full blue button would compete with the page's main one. */
button.linkbtn{
  background:none;border:0;box-shadow:none;color:var(--accent);
  font:inherit;font-weight:600;padding:.6rem 0 0;margin:0;width:auto;cursor:pointer;
  -webkit-appearance:none;appearance:none;
}
button.linkbtn:hover{text-decoration:underline}
/* Grows with the viewport: small on a phone where the bar is tight,
   noticeably larger on a desktop where there is room for it. */
.bar img{height:clamp(1.45rem,1.1rem + 1.1vw,2.15rem);width:auto;display:block}
/* One lockup per colour scheme. Both rules live here, after .bar img, so the
   cascade cannot hide them both - which is exactly what happened when the
   dark half sat in the :root block at the top of the file. */
.bar .logo-dark{display:none}
:root[data-theme="dark"] .bar .logo-light{display:none}
:root[data-theme="dark"] .bar .logo-dark{display:block}


.title{padding:1.5rem 1.25rem .35rem}
.title h1{margin:0;font-size:clamp(1.75rem,1.4rem + 1.6vw,2.4rem);line-height:1.12;
  font-weight:700;letter-spacing:-.03em;text-wrap:balance}
/* Headings break evenly instead of dropping a single orphan word onto the
   last line. One property, and it is the difference between a heading that
   looks set and one that looks wrapped. */
h1,h2,h3{text-wrap:balance}
p,li{text-wrap:pretty}
.vitals .v,.row .v,.stat .v{font-variant-numeric:tabular-nums lining-nums}
.title p{margin:.35rem 0 0;color:var(--secondary);font-size:.875rem}

/* Staleness badge. Stale medical data carries false authority, which is
   worse than no data, so the age of the profile is stated on its face
   rather than buried in the footer. */
.fresh{
  display:inline-flex;align-items:center;gap:.4rem;margin-top:.6rem;
  padding:.3rem .65rem;border-radius:999px;font-size:.75rem;font-weight:500;
  background:var(--card);color:var(--secondary);
}
.fresh::before{content:"";width:.45rem;height:.45rem;border-radius:50%;background:currentColor}
.fresh.warn{background:#fff6e5;color:#8a5a00}
.fresh.old{background:var(--red-bg);color:var(--red)}
.fresh .ask{opacity:.9}
:root[data-theme="dark"] .fresh.warn{background:#2e2410;color:#f0b354}

.group{margin:1.15rem 1rem 0}
.group > h2{margin:0 0 .4rem .85rem;font-size:.8125rem;font-weight:400;color:var(--secondary)}
.group > .note{margin:.45rem .85rem 0;font-size:.8125rem;color:var(--secondary);line-height:1.4}
.card{
  background:var(--card);border-radius:var(--radius);overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,.04), 0 6px 20px -12px rgba(0,0,0,.10);
}
:root[data-theme="dark"] .card{
  box-shadow:0 1px 2px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
}

.stack + .stack::before,.field + .field::before{
  content:"";position:absolute;top:0;left:1rem;right:0;height:.5px;background:var(--separator);
}

/* Vitals: three equal columns, each label above its value. Keeps every
   value on the same line regardless of how long the bilingual label runs,
   and stays readable at a glance, which a wrapped right-aligned row does not. */
.vitals{display:flex}
.vitals .vital{flex:1;padding:.75rem .85rem;position:relative;min-width:0}
.vitals .vital + .vital::before{
  content:"";position:absolute;top:.75rem;bottom:.75rem;left:0;width:.5px;background:var(--separator);
}
.vitals .k{
  display:block;color:var(--secondary);font-size:.6875rem;line-height:1.25;
  margin-bottom:.2rem;min-height:2.5em;
}
.vitals .v{display:block;font-size:1.25rem;font-weight:650;letter-spacing:-.02em}
@media (max-width:22rem){
  .vitals .v{font-size:1.0625rem}
}
.stack{display:block;padding:.8rem 1rem;position:relative}
.stack .k{display:block;color:var(--secondary);font-size:.8125rem;margin-bottom:.15rem}
.stack .v{display:block;font-size:1.0625rem;line-height:1.35}

.critical{background:var(--red-bg);border-radius:var(--radius);padding:1rem 1.15rem}
.critical h2{margin:0;font-size:.8125rem;font-weight:600;color:var(--red)}
.critical p{margin:.3rem 0 0;font-size:1.3125rem;line-height:1.3;font-weight:600;color:var(--label)}
.critical .sel{margin-top:.35rem}
.critical .sel li{font-size:1.3125rem;line-height:1.3;font-weight:600;color:var(--label)}
.critical .sel .alt{font-weight:500}
.stack .v p.freetext{margin:0}

.action{
  display:flex;align-items:center;gap:1rem;margin:1.15rem 1rem 0;padding:1rem 1.15rem;
  background:var(--tint);color:var(--on-tint);text-decoration:none;border-radius:var(--radius);
}
.action .k{font-size:.8125rem;opacity:.85}
.action .v{display:block;font-size:1.3125rem;font-weight:650;letter-spacing:-.02em}
.action .sub{display:block;font-size:.875rem;opacity:.85;margin-top:.1rem}
.action .tel{margin-left:auto;font-size:1.5rem;opacity:.9}
.action.quiet{background:var(--card);color:var(--accent)}
.action.quiet .k,.action.quiet .sub{color:var(--secondary);opacity:1}
/* Glass-only ornaments. Hidden here, in the base sheet, so a profile with
   the glass styles switched off never shows a stray glyph or tile. */
.mono,.ki,.action .ti{display:none}
/* The arrival animation anywhere on the site is only armed once a script
   has confirmed it can un-hide things. */
:root:not(.js) .rv{opacity:1 !important;transform:none !important}

button,.btn{
  display:block;width:calc(100% - 2rem);margin:1.5rem 1rem 0;padding:.95rem;
  font:inherit;font-size:1.0625rem;font-weight:600;color:var(--on-tint);background:var(--tint);
  border:0;border-radius:var(--radius);cursor:pointer;text-align:center;text-decoration:none;
  transition:transform .1s var(--fast),opacity .1s var(--fast),box-shadow .25s var(--spring);
  box-shadow:0 1px 2px rgba(var(--tint-rgb),.2), 0 8px 20px -10px rgba(var(--tint-rgb),.5);
}
button:hover,.btn:hover{box-shadow:0 2px 4px rgba(var(--tint-rgb),.22), 0 12px 26px -10px rgba(var(--tint-rgb),.55)}
/* The press. 0.97 for 100ms is the whole difference between a web page and
   something that feels like an app. */
button:active,.btn:active{transform:scale(.97);opacity:.9}
.action{transition:transform .1s var(--fast),box-shadow .25s var(--spring)}
.action:active{transform:scale(.985)}
.seg,.lang,.printlink,.wabtn{transition:background .2s var(--fast),color .2s var(--fast)}
button:disabled{background:var(--tertiary);box-shadow:none}
button.busy{position:relative;color:transparent !important}
button.busy::after{
  content:"";position:absolute;inset:0;margin:auto;width:1.15rem;height:1.15rem;
  border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;
  animation:spin .6s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.field{position:relative;padding:.55rem 1rem}
.field label{display:block;font-size:.75rem;color:var(--secondary);margin-bottom:.1rem}
.field input,.field select,.field textarea{
  width:100%;border:0;background:transparent;padding:.15rem 0;
  font:inherit;font-size:1.0625rem;color:var(--label);
}
.field textarea{resize:vertical;min-height:3.2rem;line-height:1.35}
.field input:focus,.field textarea:focus,.field select:focus{outline:none}
.field select{-webkit-appearance:none;appearance:none}
.split{display:flex}
.split > .field{flex:1}
.split > .field + .field::before{left:0;top:.55rem;bottom:.55rem;height:auto;width:.5px}

.consent{display:flex;gap:.75rem;align-items:flex-start;padding:.9rem 1rem}
.consent input{width:1.35rem;height:1.35rem;flex:none;margin:.1rem 0 0;accent-color:var(--accent)}
.consent label{font-size:.875rem;color:var(--secondary);line-height:1.4}

/* Pickers: chips of what was chosen from the official lists, a search box,
   and a suggestion list under it. Every button here opts out of the global
   full-width button style. */
.pick .chips{list-style:none;margin:.2rem 0 .1rem;padding:0;display:flex;flex-wrap:wrap;gap:.35rem}
.pick .chips:empty{display:none}
.pick .chip{display:inline-flex;align-items:center;gap:.15rem;max-width:100%;
  background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--label);
  border-radius:999px;padding:.2rem .2rem .2rem .65rem;font-size:.875rem;line-height:1.25}
.pick .chip > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pick .chip .cd{opacity:.6;font-variant-numeric:tabular-nums;margin-left:.3rem}
.pick button.chipx{all:unset;box-shadow:none !important;background:none !important;cursor:pointer;flex:none;width:1.6rem;height:1.6rem;border-radius:50%;
  display:inline-grid;place-items:center;font-size:1.05rem;line-height:1;color:var(--secondary)}
.pick button.chipx:hover,.pick button.chipx:focus-visible{background:color-mix(in srgb,var(--label) 10%,transparent) !important;color:var(--label)}
.pick button.chipx:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.pick .pq{width:100%}
.pick .opts{list-style:none;margin:.35rem 0 0;padding:.25rem 0;max-height:16rem;overflow:auto;
  border-top:.5px solid var(--separator)}
.pick .opts li{padding:.5rem .1rem;cursor:pointer;border-radius:.5rem;line-height:1.3}
.pick .opts li[aria-selected="true"],.pick .opts li:hover{background:color-mix(in srgb,var(--accent) 10%,transparent)}
.pick .opts li small{display:block;color:var(--secondary);font-size:.78rem;margin-top:.1rem}
.pick .opts li.info{cursor:default;color:var(--secondary);font-size:.85rem}
.pick .opts li.info:hover{background:none}
.pick .opts li.info.busy{display:flex;align-items:center;gap:.5rem}
.pick .opts li.info.busy::before{content:"";width:.9rem;height:.9rem;border-radius:50%;flex:none;
  border:2px solid var(--tertiary);border-top-color:var(--accent);animation:pkspin .8s linear infinite}
@keyframes pkspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.pick .opts li.info.busy::before{animation-duration:2.4s}}
.pick .srch[hidden]{display:none}

.sel{list-style:none;margin:0;padding:0}
.sel li{padding:.1rem 0}
.sel li + li{border-top:.5px solid color-mix(in srgb,currentColor 18%,transparent);margin-top:.25rem;padding-top:.3rem}
.sel .alt{display:block;font-size:.8em;opacity:.7}
.sel .cd{font-size:.75em;opacity:.65;margin-left:.35rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.sel + .freetext{margin-top:.45rem}

/* The reveal button sits inside the field row. Width and margin are reset
   explicitly: the global form-button rule would otherwise make it full width
   and push it onto its own line. */
.pinwrap{display:flex;align-items:center;gap:.25rem}
.pinwrap input{flex:1;min-width:0}
.pinwrap .reveal{
  width:auto;margin:0;padding:.35rem .5rem;background:transparent;border:0;
  color:var(--secondary);cursor:pointer;display:flex;align-items:center;position:relative;
}
.pinwrap .reveal::after{content:"";position:absolute;inset:-.4rem -.25rem}
.pinwrap .reveal svg{width:1.25rem;height:1.25rem;display:block}
.pinwrap .reveal.on{color:var(--accent)}
:root[data-glass] .pinwrap .reveal{
  background:transparent;box-shadow:none;border-radius:8px;transform:none;
  color:rgba(42,48,66,.6);
}
:root[data-theme="dark"][data-glass] .pinwrap .reveal{color:rgba(235,235,245,.6)}
:root[data-glass] .pinwrap .reveal:hover{color:var(--accent);transform:none;box-shadow:none}
:root[data-glass] .pinwrap .reveal.on{color:var(--accent)}
.pinwrap .reveal.on .slash{display:none}

.pinrow{display:flex;align-items:center}
.pinrow .field{flex:1}
/* The unlock button is centred on the whole field, label included; the
   reveal glyph sits on the input row underneath the label. A top margin of
   one label height shifts the centring down by half of it, which puts the
   two on the same axis. */
.pinrow > button{
  width:auto;margin:1.2rem .75rem 0 0;padding:.6rem 1.1rem;font-size:.9375rem;border-radius:9px;
}

.err{margin:1.15rem 1rem 0;padding:.85rem 1rem;background:var(--red-bg);color:var(--red);
  border-radius:var(--radius);font-size:.9375rem}


/* ---------------------------- legal pages ---------------------------- */
.legal{padding:1.75rem 1.25rem 1rem;max-width:44rem;margin:0 auto}
.legal h1{
  margin:.2rem 0 .8rem;font-size:clamp(1.6rem,1.3rem + 1.4vw,2.1rem);
  font-weight:700;letter-spacing:-.03em;line-height:1.15;text-wrap:balance;
}
.legal .lnav{margin:0 0 1rem;font-size:.8125rem}
.legal .lmeta{
  margin:0 0 .5rem;font-size:.8125rem;line-height:1.5;color:var(--secondary);
  white-space:pre-line;
}
.legal .ldraft{
  margin:1.1rem 0 0;padding:.85rem 1rem;border-radius:10px;
  background:var(--red-bg);
  font-size:.8125rem;line-height:1.5;color:var(--label);
}
.lsec{margin-top:1.9rem}
.lsec h2{
  margin:0 0 .5rem;font-size:1.0625rem;font-weight:650;letter-spacing:-.015em;
}
.lsec p{margin:0 0 .7rem;font-size:.9375rem;line-height:1.65;color:var(--label)}
.lsec p:last-child{margin-bottom:0}

.llist{list-style:none;margin:1.5rem 0 0;padding:0}
.llist li{margin-bottom:.6rem}
.llist a{
  display:block;padding:.9rem 1.1rem;border-radius:12px;background:var(--card);
  text-decoration:none;box-shadow:0 1px 2px rgba(0,0,0,.04);
  transition:transform .2s var(--spring),box-shadow .2s var(--spring);
}
.llist a:hover{transform:translateY(-1px);box-shadow:0 2px 8px rgba(0,0,0,.07)}
.llist .n{display:block;font-size:.9375rem;font-weight:650;color:var(--accent)}
.llist .t{display:block;font-size:.8125rem;color:var(--secondary);margin-top:.15rem}

@media print{
  .legal{max-width:none;padding:0}
  .lsec{break-inside:avoid}
  .legal .lnav{display:none}
}

/* ------------------------------ setup guide ------------------------------ */
.guide{padding:1.75rem 1.25rem 2rem;max-width:46rem;margin:0 auto}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.guide h1{margin:.2rem 0 .7rem;font-size:clamp(1.75rem,1.35rem + 1.8vw,2.5rem);font-weight:700;
  letter-spacing:-.03em;line-height:1.1;text-wrap:balance}
.guide .lede{margin:0;font-size:1.0625rem;line-height:1.55;color:var(--label);max-width:38rem;text-wrap:pretty}
.guide .gmeta{margin:.6rem 0 0;font-size:.875rem;line-height:1.5;color:var(--secondary);max-width:38rem}
.guide h2{margin:0;font-size:1.1875rem;font-weight:650;letter-spacing:-.02em;line-height:1.25}
.guide p{margin:.55rem 0 0;font-size:.9375rem;line-height:1.65}
.guide .gsec{margin-top:2.6rem}
.guide .gsec > h2{margin-bottom:.9rem}

/* What to have ready */
.gready{margin-top:1.75rem;padding:1.1rem 1.2rem 1.15rem;border-radius:var(--radius);background:var(--card);
  box-shadow:0 1px 2px rgba(0,0,0,.04)}
.gready h2{font-size:1rem}
.gready ul{list-style:none;margin:.75rem 0 0;padding:0;display:grid;gap:.6rem}
.gready li{display:grid;grid-template-columns:1.25rem 1fr;gap:.65rem;font-size:.9375rem;line-height:1.5}
.gready li svg{width:1.25rem;height:1.25rem;margin-top:.1rem;color:var(--accent)}

/* The steps: a numbered rail, the line joining one number to the next. */
.gsteps{list-style:none;margin:2.4rem 0 0;padding:0;counter-reset:none}
.gsteps > li{position:relative;display:grid;grid-template-columns:2.25rem 1fr;column-gap:1rem;padding-bottom:2.1rem;
  scroll-margin-top:5rem}
.gsteps > li:last-child{padding-bottom:0}
.gsteps > li::before{content:"";position:absolute;left:calc(1.125rem - 1px);top:2.6rem;bottom:.35rem;width:2px;
  border-radius:2px;background:var(--separator)}
.gsteps > li:last-child::before{display:none}
.gsteps .num{width:2.25rem;height:2.25rem;border-radius:50%;display:grid;place-items:center;
  background:var(--tint);color:var(--on-tint);font-weight:700;font-size:.9375rem;font-variant-numeric:tabular-nums}
.gsteps .body{min-width:0;padding-top:.35rem}
.gsteps ul{margin:.6rem 0 0;padding-left:1.1rem;display:grid;gap:.4rem}
.gsteps ul li{font-size:.9375rem;line-height:1.55;padding-left:.15rem}
.gsteps ul li::marker{color:var(--tertiary)}
.gsteps .media{margin-top:1rem;display:grid;gap:.6rem}
.gsteps .tapanim{margin:0;border-radius:var(--radius);overflow:hidden;background:var(--card);
  display:grid;place-items:center;padding:1rem 1.25rem}
.gsteps .tapanim svg{width:100%;max-width:30rem}
.gsub{display:grid;gap:.6rem}
.gsub div{padding:.85rem 1rem;border-radius:var(--radius);background:var(--card)}
.gsub b{display:block;font-size:.8125rem;font-weight:650;letter-spacing:.01em}
.gsub span{display:block;margin-top:.2rem;font-size:.875rem;line-height:1.55;color:var(--label)}
.gtip{margin-top:.85rem;padding:.75rem .95rem;border-radius:10px;font-size:.875rem;line-height:1.55;
  background:color-mix(in srgb, var(--accent) 9%, transparent);color:var(--label)}
.gtip b{font-weight:650}
@media (min-width:40rem){.gsub{grid-template-columns:1fr 1fr}}

/* Desktop: the page widens; text keeps a readable measure, and what used to
   sit under it (the side note, the check list, the two-up panels) moves
   beside it instead. */
@media (min-width:64rem){
  .guide{max-width:70rem;padding:2.75rem 2rem 3rem}
  .ghead{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3rem;align-items:start}
  .gintro{padding-top:.4rem}
  .guide h1{font-size:clamp(2.4rem,1.6rem + 1.6vw,3rem)}
  .gready{margin-top:0}
  .gsteps{margin-top:3.25rem}
  .gsteps > li{grid-template-columns:2.5rem 1fr;column-gap:1.5rem;padding-bottom:2.6rem}
  .gsteps .num{width:2.5rem;height:2.5rem}
  .gsteps > li::before{left:calc(1.25rem - 1px);top:2.9rem}
  .gsteps .body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:3rem;align-items:start}
  .gsteps .main{grid-column:1}
  .gsteps .gtip{grid-column:2;grid-row:1;margin-top:2.15rem}
  .gsteps .body:not(.hastip) .main{grid-column:1 / -1;max-width:calc(50% - 1.5rem)}
  .gsteps .media{grid-column:1 / -1;margin-top:1.25rem;gap:.75rem}
  .gsub{gap:.75rem}
  .gsteps .tapanim{padding:1.25rem}
  .gsteps .tapanim svg{max-width:28rem}
  .gsec{margin-top:3.5rem}
  .gvis{gap:1rem}
  .glater{grid-template-columns:1fr 1fr;column-gap:3rem;row-gap:1.4rem}
  .gfaq{display:grid;grid-template-columns:1fr 1fr;column-gap:1rem;align-items:start}
  .gfaq > h2{grid-column:1 / -1}
  .gfaq details + details{margin-top:0}
  .gfaq details{margin-bottom:.6rem}
}

/* Who sees what */
.gvis{display:grid;gap:.75rem}
@media (min-width:40rem){.gvis{grid-template-columns:1fr 1fr}}
.gvis section{padding:1rem 1.1rem 1.1rem;border-radius:var(--radius);background:var(--card);
  box-shadow:0 1px 2px rgba(0,0,0,.04)}
.gvis h3{margin:0;display:flex;align-items:center;gap:.5rem;font-size:.9375rem;font-weight:650}
.gvis h3 svg{width:1.15rem;height:1.15rem;flex:none}
.gvis .pub h3 svg{color:var(--accent)}
.gvis .pin h3 svg{color:var(--secondary)}
.gvis ul{margin:.6rem 0 0;padding-left:1.1rem;display:grid;gap:.35rem}
.gvis li{font-size:.875rem;line-height:1.5}

/* Later on */
.glater{margin:0;display:grid;gap:1rem}
.glater div{display:grid;gap:.15rem;align-content:start}
.glater dt{font-weight:650;font-size:.9375rem}
.glater dd{margin:0;font-size:.9375rem;line-height:1.6;color:var(--label)}

/* Troubleshooting */
.gfaq details{border-radius:12px;background:var(--card);box-shadow:0 1px 2px rgba(0,0,0,.04)}
.gfaq details + details{margin-top:.5rem}
.gfaq summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:.75rem;min-height:3rem;
  padding:.75rem 1rem;font-size:.9375rem;font-weight:600;border-radius:12px}
.gfaq summary::-webkit-details-marker{display:none}
.gfaq summary::after{content:"";margin-left:auto;flex:none;width:.55rem;height:.55rem;
  border-right:2px solid var(--tertiary);border-bottom:2px solid var(--tertiary);transform:rotate(45deg) translate(-2px,-2px);
  transition:transform .25s var(--spring)}
.gfaq details[open] summary::after{transform:rotate(225deg) translate(-2px,-2px)}
.gfaq summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.gfaq details p{margin:0;padding:0 1rem 1rem;font-size:.9375rem;line-height:1.6}
.ghelp{margin-top:2.4rem;font-size:.9375rem;color:var(--secondary)}
.guidelink{display:inline-block;margin-top:.55rem;font-size:.875rem;font-weight:600}
.guidemore{margin:1.4rem 0 0;font-size:.9375rem;font-weight:600}

@media print{
  .guide{max-width:none;padding:0}
  .gsteps > li,.gvis section,.gfaq details{break-inside:avoid}
  .gsteps .tapanim{display:none}
  .gfaq details{box-shadow:none;border:1px solid #ccc}
  .gfaq details:not([open]) > *:not(summary){display:block}
}

/* ---------------------------- site footer ---------------------------- */
/* ------------------------- batch picker ------------------------- */
.batchpick{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}
.batchpick a{
  flex:1 1 9rem;min-width:0;padding:.7rem .85rem;border-radius:10px;
  background:var(--card);border:1px solid var(--separator);
  text-decoration:none;color:var(--label);
}
.batchpick a.on{border-color:var(--accent);background:var(--bg)}
.batchpick .b{display:block;font-size:.875rem;font-weight:650}
.batchpick .n{display:block;font-size:.75rem;color:var(--secondary);margin-top:.1rem}

/* ------------------------ location confirmation ------------------------ */
#locask{
  border:0;border-radius:20px;padding:0;max-width:24rem;width:calc(100% - 2.5rem);
  background:var(--card);color:var(--label);
  box-shadow:0 20px 60px -12px rgba(0,0,0,.4);
}
#locask::backdrop{background:rgba(0,0,0,.45)}
#locask .inner{padding:1.4rem 1.25rem 1rem;display:flex;flex-direction:column}
#locask h2{margin:0;font-size:1.1875rem;font-weight:650;letter-spacing:-.02em;line-height:1.25;text-wrap:balance}
#locask p{margin:.5rem 0 1.15rem;font-size:.9375rem;line-height:1.5;color:var(--secondary)}
#locask button{margin:0 0 .55rem;width:100%}
#locask .quietbtn{background:var(--card);color:var(--accent);box-shadow:none;border:1px solid var(--separator)}
#locask .linkbtn{margin:.1rem 0 0;align-self:center;width:auto;min-height:44px;padding:0 1rem}
:root[data-glass="liquid"] #locask{
  border-radius:26px;
  background:linear-gradient(176deg,rgba(255,255,255,.8),rgba(255,255,255,.7));
  -webkit-backdrop-filter:blur(20px) saturate(185%);backdrop-filter:blur(20px) saturate(185%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,1),0 30px 80px -20px rgba(20,30,60,.5);
}
:root[data-theme="dark"][data-glass="liquid"] #locask{
  background:linear-gradient(176deg,rgba(40,42,52,.86),rgba(22,24,30,.8));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 30px 80px -20px rgba(0,0,0,.8);
}
:root[data-glass="liquid"] #locask::backdrop{background:rgba(10,12,24,.42)}
@media (forced-colors:active){#locask{border:1px solid CanvasText}}

/* --------------------- no right-click, no saving images --------------------- */
img,svg{-webkit-user-drag:none;user-drag:none;-webkit-touch-callout:none}

/* --------------------------- activation gate --------------------------- */
/* A modal <dialog> rather than a div: the browser makes everything behind it
   inert, so the form underneath genuinely cannot be typed into, and focus
   cannot be tabbed out of the dialog. */
#gate{
  border:0;border-radius:16px;padding:0;max-width:32rem;width:calc(100% - 2.5rem);
  max-height:88vh;background:var(--card);color:var(--label);
  box-shadow:0 20px 60px -12px rgba(0,0,0,.4);
}
#gate::backdrop{background:rgba(0,0,0,.45)}
#gate .inner{padding:1.4rem;max-height:88vh;overflow-y:auto}
#gate h2{margin:0 0 1rem;font-size:1.125rem;font-weight:650;letter-spacing:-.02em}

#gate .gtop{
  display:flex;align-items:center;justify-content:space-between;
  gap:1rem;margin:0 0 .7rem;
}
#gate .gtop .lbl{font-size:.75rem;font-weight:600;color:var(--secondary)}
/* The global button rule is full width with margins; both are reset here, or
   "Accept all" spans the whole dialog and shoves the list around. */
#gate #gateAll{
  width:auto;margin:0;padding:.4rem .9rem;font-size:.8125rem;flex:none;
  background:var(--bg);color:var(--accent);box-shadow:none;
  border:1px solid var(--separator);border-radius:999px;
}
#gate #gateAll:hover{border-color:var(--accent);box-shadow:none}

/* One statement per row. Without this they run together as inline text. */
#gate .boxes{display:flex;flex-direction:column;gap:.45rem}
#gate .cbox{
  display:flex;gap:.7rem;align-items:flex-start;cursor:pointer;
  padding:.7rem .8rem;border:1px solid var(--separator);border-radius:10px;
  font-size:.8125rem;line-height:1.45;color:var(--label);
}
#gate .cbox:has(input:checked){border-color:var(--accent);background:var(--bg)}
#gate .cbox input[type=checkbox]{
  width:1.2rem;height:1.2rem;flex:none;accent-color:var(--accent);margin:.05rem 0 0;
}
#gate .cbox a{color:var(--accent)}
#gate .gopt{margin:1.15rem 0 .45rem;font-size:.75rem;font-weight:600;color:var(--secondary)}
#gate .ok{margin:1.2rem 0 0;width:100%}
#gate .hint{margin:.5rem 0 0;font-size:.75rem;color:var(--tertiary);text-align:center}

/* ------------------------- stepped setup form ------------------------- */
/* Progressive enhancement: without JS the form is one long page and works
   exactly as before. With JS it becomes three screens, because nine sections
   on a phone is where people give up - and an abandoned setup is a bracelet
   that says nothing. */
.steps{margin:1.15rem 1rem 0}
.bar2{height:4px;border-radius:99px;background:var(--separator);overflow:hidden}
.bar2 i{display:block;height:100%;background:var(--accent);border-radius:99px;
  transition:width .45s var(--spring)}
.stepname{margin:.5rem 0 0;font-size:.8125rem;color:var(--secondary)}
.stepnav{display:flex;gap:.75rem;margin:1.5rem 1rem 0}
.stepnav button{margin:0;width:auto;flex:1}
.stepnav .back{background:var(--card);color:var(--accent);box-shadow:none}

.empty{padding:2rem 1.5rem;text-align:center}
.empty svg{width:7.5rem;height:auto;margin-bottom:1rem}
.empty h3{margin:0 0 .4rem;font-size:1.0625rem;font-weight:650}
.empty p{margin:0 auto;max-width:34ch;font-size:.875rem;line-height:1.5;color:var(--secondary)}

.sitefoot{border-top:.5px solid var(--separator);background:var(--card);margin-top:3rem}
.sitefoot .inner{max-width:72rem;margin:0 auto;padding:2.5rem 1.25rem 1.5rem}
/* Four columns whenever there is room, regardless of how narrow the page
   above it is - the footer spans the window, it is not part of the sheet. */
@media (max-width:40rem){
  .sitefoot .inner{padding:2rem 1.25rem 1.25rem}
  .sitefoot .cols{gap:1.75rem}
}
.sitefoot .cols{
  display:grid;gap:2rem;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));
}
.sitefoot h3{
  margin:0 0 .7rem;font-size:.75rem;font-weight:600;color:var(--label);letter-spacing:0;
}
.sitefoot ul{list-style:none;margin:0;padding:0}
.sitefoot li{margin-bottom:.45rem;font-size:.8125rem;line-height:1.5;color:var(--secondary)}
.sitefoot a{color:var(--secondary);text-decoration:none}
.sitefoot a:hover{color:var(--accent);text-decoration:underline}
.sitefoot .dt{display:block;font-size:.6875rem;color:var(--tertiary)}

/* ANPC marks. Drawn rather than hotlinked: the official images live on
   anpc.ro, and a third-party request on every page load is both a privacy
   leak and a thing that breaks when their site does. */
.anpc{display:flex;flex-wrap:wrap;gap:.5rem}
/* Side by side, wrapping to a stack only when the column is genuinely too
   narrow for both. */
.anpc a{flex:1 1 11rem;min-width:0;border:1px solid var(--separator);
  border-radius:8px;padding:.6rem .75rem;background:var(--bg);
  transition:border-color .15s}
.anpc a:hover{border-color:var(--accent);text-decoration:none}
.anpc .row{display:flex;align-items:center;gap:.6rem}
.anpc svg{flex:none}
.anpc .t{font-size:.6875rem;font-weight:700;color:var(--label);letter-spacing:.02em}
.anpc .s{font-size:.625rem;color:var(--secondary);line-height:1.3;display:block}

/* Contact rows with a leading icon. align-items:flex-start keeps the icon on
   the first line when the text wraps. */
.sitefoot ul.withicons li{display:flex;align-items:flex-start;gap:.5rem}
.sitefoot .ico{width:1rem;height:1rem;flex:none;margin-top:.15rem;color:var(--tertiary)}
.sitefoot li:hover .ico{color:var(--accent)}
.sitefoot .ico.wa{color:#25D366;margin-top:0}

.sitefoot .wabtn{
  display:inline-flex;align-items:center;gap:.5rem;margin-top:.9rem;
  padding:.5rem .85rem;border:1px solid var(--separator);border-radius:999px;
  font-size:.75rem;font-weight:600;color:var(--label);background:var(--bg);
}
.sitefoot .wabtn:hover{border-color:#25D366;text-decoration:none;color:var(--label)}

.sitefoot .base{
  display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.5rem;
  align-items:center;text-align:center;
  margin-top:2rem;padding-top:1.25rem;border-top:.5px solid var(--separator);
  font-size:.6875rem;color:var(--tertiary);
}
.sitefoot .base .em{color:var(--red);font-weight:700}
/* ------------------------------ print ------------------------------ */
/* The profile becomes a wallet card: no chrome, no controls, no colour
   games - just the facts, black on white, in one column that fits a
   folded sheet. Useful as a paper backup for exactly the situation the
   bracelet is for, when there is no signal. */
@media print{
  :root{--bg:#fff;--card:#fff;--label:#000;--secondary:#333;
        --separator:#999;--tint:#000;--on-tint:#fff;--accent:#000;--red:#000;--red-bg:#fff}
  body{background:#fff;font-size:11pt}
  .bar,.sitefoot,.skip,.more,form,button,.pinwrap,.lang,.seg,.tools,.tapanim{display:none !important}
  .sheet{max-width:none;padding:0}
  .title{padding:0 0 .3cm}
  .title h1{font-size:20pt}
  .group{margin:.25cm 0 0}
  .card,.critical{border:1px solid #999;border-radius:0;break-inside:avoid}
  .critical{border-width:2px}
  .critical h2{color:#000}
  .critical p,.critical .sel li{font-size:13pt}
  .action{background:#fff !important;color:#000 !important;border:2px solid #000;
          margin:.25cm 0 0;border-radius:0}
  .action .k,.action .sub{color:#000 !important;opacity:1}
  .action .tel{display:none}
  .vitals{border:1px solid #999}
  .printnote{display:block !important;margin-top:.3cm;font-size:8pt;color:#333}
  a[href]:after{content:""}
}
.printnote{display:none}
.printlink{
  /* 1rem group margin + .85rem inner inset: the same line every label,
     note and heading on the page sits on. */
  display:inline-flex;align-items:center;gap:.4rem;margin:1.25rem 1.85rem 0;
  font-size:.8125rem;color:var(--secondary);text-decoration:none;
}
.printlink:hover{color:var(--accent)}
:root[data-glass] .printlink{
  font-weight:500;color:rgba(42,48,66,.78);padding:.35rem 0;border-radius:0;background:none;
}
:root[data-theme="dark"][data-glass] .printlink{color:rgba(235,235,245,.72)}
:root[data-glass] .printlink:hover{color:var(--accent)}

.foot{margin:1.75rem 1.25rem 0;color:var(--secondary);font-size:.75rem;line-height:1.5;text-align:center}
.slimfoot{margin-top:3rem;border-top:.5px solid var(--separator)}
.slimfoot .inner{max-width:44rem;margin:0 auto;padding:1.1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  display:flex;flex-wrap:wrap;gap:.35rem 1rem;justify-content:center;
  font-size:.75rem;line-height:1.5;color:var(--secondary)}
.slimfoot a{color:var(--secondary);text-decoration:none}
.slimfoot a:hover{color:var(--accent);text-decoration:underline}
.slimfoot .em{flex-basis:100%;text-align:center;color:var(--tertiary)}

/* ---- profile: the second language under the first, never in capitals ---- */
.k .alt,.critical h2 .alt{
  display:block;font-size:.75rem;font-weight:500;opacity:.72;
  text-transform:none;letter-spacing:0;margin-top:.05rem;
}
.critical h2{display:flex;align-items:flex-start}
/* The second language under the first, starting where it starts, as one
   block beside the icon. */
.bl{display:inline-flex;flex-direction:column;align-items:flex-start;text-align:left;vertical-align:top}
.stack .k:has(.bl),.vitals .k:has(.bl),.action .k:has(.bl){display:flex;align-items:flex-start}
.critical h2 .ki,.k:has(.bl) .ki{margin-top:.12em}

/* Tiles: the label takes whatever lines it needs and the value sits on the
   floor of the tile, so 68, A+ and 71 kg always share one baseline. */
.vitals .vital{display:flex;flex-direction:column}
.vitals .k{min-height:0;font-size:.8125rem;margin-bottom:.45rem}
.vitals .v{margin-top:auto}

/* ---- calling ---- */
.action .v{line-height:1.2}
.action.quiet{margin-top:.75rem}
#notifyBtn{background:var(--card);color:var(--accent);box-shadow:none;border:1px solid var(--separator)}
.sos{
  display:flex;align-items:center;gap:.85rem;margin:.75rem 1rem 0;padding:.8rem 1.15rem;
  min-height:3.5rem;border-radius:var(--radius);text-decoration:none;
  background:var(--card);color:var(--red);border:1px solid rgba(215,0,21,.28);
}
.sos .ti{display:inline-flex;width:1.35rem;height:1.35rem;flex:none}
.sos .ti svg{width:100%;height:100%}
.sos .v{display:block;font-size:1.0625rem;font-weight:650;letter-spacing:-.01em}
.sos .sub{display:block;font-size:.8125rem;color:var(--secondary)}
:root[data-theme="dark"] .sos{border-color:rgba(255,105,97,.35);color:#ff8d85}

.calldock{
  position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;gap:.6rem;
  padding:.6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  background:rgba(247,248,252,.82);
  -webkit-backdrop-filter:blur(20px) saturate(160%);backdrop-filter:blur(20px) saturate(160%);
  border-top:.5px solid var(--separator);
  transform:translateY(110%);transition:transform .3s cubic-bezier(.2,.8,.2,1);
}
.calldock.on{transform:none}
:root[data-theme="dark"] .calldock{background:rgba(22,22,26,.82)}
.calldock a{
  display:flex;align-items:center;justify-content:center;gap:.5rem;min-height:3.25rem;
  border-radius:14px;text-decoration:none;font-weight:650;font-size:1rem;
}
.calldock a svg{width:1.15rem;height:1.15rem}
.calldock .d1{flex:1;background:var(--tint);color:var(--on-tint);padding:0 1rem;min-width:0}
.calldock .d1 span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calldock .d2{width:5rem;flex:none;color:var(--red);background:var(--card);border:1px solid rgba(215,0,21,.3)}
.dockspace{height:5.5rem}
@media (min-width:48rem){
  .calldock{left:50%;right:auto;width:36rem;transform:translate(-50%,calc(100% + 2rem));
            bottom:1rem;border:.5px solid var(--separator);border-radius:22px}
  .calldock.on{transform:translate(-50%,0)}
}
@media (prefers-reduced-motion:reduce){.calldock{transition:none}}

/* ---- the wearer's corner, folded away ---- */
.owner{margin:2rem 1rem 0}
.owner > summary{
  list-style:none;cursor:pointer;display:flex;flex-direction:column;gap:.15rem;
  padding:.9rem 2.6rem .9rem 1rem;border-radius:var(--radius);position:relative;
  background:var(--card);border:.5px solid var(--separator);font-weight:600;font-size:.9375rem;
}
.owner > summary::-webkit-details-marker{display:none}
.owner > summary .sub{font-weight:400;font-size:.8125rem;color:var(--secondary)}
.owner > summary::after{
  content:"";position:absolute;right:1.1rem;top:50%;width:.5rem;height:.5rem;
  border-right:2px solid var(--tertiary);border-bottom:2px solid var(--tertiary);
  transform:translateY(-70%) rotate(45deg);transition:transform .2s;
}
.owner[open] > summary::after{transform:translateY(-30%) rotate(-135deg)}
.owner > .group{margin:.75rem 0 0}
.owner .err{margin:0 0 .75rem}

/* ---- header: 44px to the finger, without a taller bar ---- */
.bar .seg{position:relative}
.bar .seg::after{content:"";position:absolute;inset:-.45rem -.1rem}

@media print{.calldock,.dockspace,.sos,.owner > summary{display:none !important}
  .owner > .group{display:none !important}}

.lp{padding:0 1.25rem}

/* --- atmosphere ---------------------------------------------------- *
   Two soft washes of brand colour behind the headline.
 *
   The size and placement are not decorative guesses. A radial gradient still
   carrying colour when it meets the edge of its box leaves a hard straight
   line there, which is what the first two attempts did: the hero is a 72rem
   column, so the wash stopped dead at the column edge and read as a tinted
   rectangle.
 *
   Each wash is therefore sized so it reaches zero inside the box:
     wash 1  x  9% to 59%   y 12% to 69%
     wash 2  x 49% to 91%   y 20% to 72%
   Nothing touches an edge, so there is no edge to see. Percentages mean the
   same composition on a 340px phone and a 27" display - it is painted by the
   browser at whatever density the screen has, not scaled from an image. */
.hero{
  position:relative;isolation:isolate;
  background-repeat:no-repeat;
  background-image:
    radial-gradient(40% 46% at 34% 40%,
      color-mix(in srgb, #669ffb 38%, transparent), transparent 62%),
    radial-gradient(34% 42% at 70% 46%,
      color-mix(in srgb, #8799f7 32%, transparent), transparent 62%);
}
:root[data-theme="dark"] .hero{
  background-image:
    radial-gradient(40% 46% at 34% 40%,
      color-mix(in srgb, #669ffb 18%, transparent), transparent 62%),
    radial-gradient(34% 42% at 70% 46%,
      color-mix(in srgb, #8799f7 15%, transparent), transparent 62%);
}
@supports not (color: color-mix(in srgb, red, blue)){
  .hero{background-image:
    radial-gradient(40% 46% at 34% 40%, rgba(102,159,251,.38), transparent 62%),
    radial-gradient(34% 42% at 70% 46%, rgba(135,153,247,.32), transparent 62%);}
}

/* --- scroll reveal -------------------------------------------------- *
   Each section earns its scroll with a small arrival. The stagger is set
   per element from JS, so tiles cascade rather than appearing as a block. */
.rv{
  opacity:0;transform:translateY(1.25rem);
  transition:opacity .7s var(--spring),transform .7s var(--spring);
  transition-delay:var(--d,0ms);
}
.rv.in{opacity:1;transform:none}

.tile{transition:transform .35s var(--spring),box-shadow .35s var(--spring)}
.tile:hover{transform:translateY(-3px)}
.hero .cta a{transition:transform .15s var(--fast),box-shadow .3s var(--spring)}
.hero .cta a:active{transform:scale(.97)}
.lp section{max-width:72rem;margin:0 auto}

.hero{display:grid;gap:2.5rem;align-items:center;padding:3rem 0 2rem}
.hero h1{
  margin:0;font-size:clamp(2rem,1.3rem + 3.4vw,3.6rem);line-height:1.05;
  font-weight:700;letter-spacing:-.035em;max-width:14ch;
}
.hero p{margin:1rem 0 0;font-size:clamp(1rem,.95rem + .35vw,1.25rem);
  line-height:1.5;color:var(--secondary);max-width:46ch}
.hero .cta{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.75rem}
.hero .cta a{
  display:inline-block;padding:.85rem 1.5rem;border-radius:999px;
  text-decoration:none;font-weight:600;font-size:1rem;
}
.hero .cta .primary{background:var(--tint);color:var(--on-tint)}
.hero .cta .ghost{background:var(--card);color:var(--accent)}

/* The phone preview is decoration on a small screen and would only push the
   content down, so it is hidden until there is room beside the text. */
.preview{display:none}
@media (min-width:56rem){
  .hero{grid-template-columns:1.1fr .9fr}
  .preview{display:block;justify-self:end;width:min(20rem,100%)}
}
.preview .frame{
  border:.5rem solid #2a2a2c;border-radius:2.25rem;overflow:hidden;
  background:var(--card);box-shadow:0 1.5rem 3rem rgba(0,0,0,.18);
}
.preview .notch{background:#2a2a2c;height:1.1rem}

.band{padding:3rem 0;border-top:.5px solid var(--separator)}
.band > h2{
  margin:0 0 .5rem;font-size:clamp(1.35rem,1.1rem + 1vw,1.9rem);
  font-weight:700;letter-spacing:-.025em;
}
.band > p.lead{margin:0 0 2rem;color:var(--secondary);max-width:52ch}

/* One column on a phone, two on a tablet, three on a desktop - decided by
   the space available rather than by guessing device widths. */
.grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}
.tile{
  background:var(--card);border-radius:var(--radius);padding:1.4rem;
  position:relative;overflow:hidden;contain:paint;
}
/* A soft highlight that follows the pointer across the card. Two custom
   properties set from JS, everything else is CSS. */
.tile::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:0;
  transition:opacity .35s var(--fast);
  background:radial-gradient(18rem circle at var(--mx,50%) var(--my,50%),
    color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
}
.tile:hover::before{opacity:1}
.tile h3{margin:0 0 .4rem;font-size:1.0625rem;font-weight:650;letter-spacing:-.015em}
.tile p{margin:0;font-size:.9375rem;line-height:1.5;color:var(--secondary)}
.tile.usecase .ic{
  display:flex;align-items:center;justify-content:center;
  width:2.5rem;height:2.5rem;border-radius:12px;margin-bottom:.9rem;
  background:color-mix(in srgb, var(--accent) 10%, transparent);color:var(--pill-ink);
}
.tile.usecase .ic svg{width:1.35rem;height:1.35rem}
:root[data-theme="dark"] .tile.usecase .ic{
  background:color-mix(in srgb, var(--accent) 18%, transparent);
}

.tile .n{
  display:inline-flex;align-items:center;justify-content:center;
  width:1.9rem;height:1.9rem;border-radius:999px;margin-bottom:.9rem;
  background:var(--tint);color:var(--on-tint);font-size:.875rem;font-weight:700;
}

/* ---------------------------- feature rows ---------------------------- */
/* One drawing, one claim, alternating sides. Stacked on a phone, where the
   art goes first because it is the part that explains itself. */
.feature{
  display:grid;gap:1.75rem;align-items:center;
  padding:2.75rem 0;
}
.feature + .feature{border-top:.5px solid var(--separator)}
@media (min-width:56rem){
  .feature{grid-template-columns:1.05fr .95fr;gap:3.5rem;padding:3.5rem 0}
  .feature.flip .art{order:2}
}
.feature .says h3{
  margin:0 0 .6rem;font-size:clamp(1.25rem,1.05rem + .8vw,1.6rem);
  font-weight:700;letter-spacing:-.025em;text-wrap:balance;
}
.feature .says p{
  margin:0;font-size:1rem;line-height:1.6;color:var(--secondary);max-width:44ch;
}

/* One panel treatment for all four, so drawings of different proportions
   still read as a set. The drawing is centred in a fixed ratio rather than
   stretched, which is what made the old row look uneven. */
.feature .art{
  background:var(--card);border-radius:18px;
  padding:clamp(1.25rem,.8rem + 2vw,2.25rem);
  display:flex;align-items:center;justify-content:center;
  aspect-ratio:16/10;
  box-shadow:0 1px 2px rgba(0,0,0,.04), 0 12px 32px -18px rgba(0,0,0,.18);
}
:root[data-theme="dark"] .feature .art{
  box-shadow:0 1px 2px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
}
.feature .art figure{margin:0;width:100%}
.feature .art svg{width:100%;height:auto;display:block}
@media (max-width:56rem){
  .feature .art{aspect-ratio:16/9}
}

/* --------------------------- alert animation --------------------------- */
/* The press comes first and is unmistakable: nothing here happens on its
   own. */
.alertanim .btn{animation:apress 7s ease-in-out infinite;transform-origin:73px 131px}
@keyframes apress{
  0%,8%   {transform:none}
  12%     {transform:scale(.94)}
  18%,100%{transform:none}
}
.alertanim .tapdot{opacity:0;transform-origin:73px 131px}
.alertanim .tapdot{animation:atap 7s ease-out infinite}
@keyframes atap{
  0%,9%  {opacity:0;transform:scale(.5)}
  13%    {opacity:.7;transform:scale(1)}
  24%    {opacity:0;transform:scale(1.7)}
  100%   {opacity:0;transform:scale(1.7)}
}

/* The message rides the dotted arc between the two phones. */
.alertanim .parcel{
  offset-path:path('M150 104 C 200 64, 250 64, 292 96');
  offset-rotate:0deg;
  animation:asend 7s cubic-bezier(.4,0,.35,1) infinite;
  opacity:0;
}
@keyframes asend{
  0%,16%  {offset-distance:0%;opacity:0}
  22%     {offset-distance:0%;opacity:1}
  46%     {offset-distance:100%;opacity:1}
  52%,100%{offset-distance:100%;opacity:0}
}
/* Browsers without offset-path still get a straight, correct journey. */
@supports not (offset-path: path('M0 0 L1 1')){
  .alertanim .parcel{animation:asendflat 7s ease-in-out infinite}
  @keyframes asendflat{
    0%,16%  {transform:translate(150px,104px);opacity:0}
    22%     {transform:translate(150px,104px);opacity:1}
    46%     {transform:translate(292px,96px);opacity:1}
    52%,100%{transform:translate(292px,96px);opacity:0}
  }
}

.alertanim .alert{animation:aland 7s ease-out infinite}
@keyframes aland{
  0%,46%  {opacity:0;transform:translateY(6px)}
  54%,88% {opacity:1;transform:none}
  96%,100%{opacity:0;transform:translateY(6px)}
}
/* The pin drops last, because the location is the part that matters. */
.alertanim .pin{animation:apin 7s cubic-bezier(.32,.72,0,1) infinite}
@keyframes apin{
  0%,58%  {opacity:0;transform:translate(363px,110px) scale(.6)}
  66%,88% {opacity:1;transform:translate(363px,124px) scale(1)}
  96%,100%{opacity:0;transform:translate(363px,124px) scale(1)}
}

@media (prefers-reduced-motion:reduce){
  .alertanim .btn,.alertanim .tapdot,.alertanim .parcel,
  .alertanim .alert,.alertanim .pin{animation:none}
  .alertanim .tapdot,.alertanim .parcel{opacity:0}
  .alertanim .alert{opacity:1;transform:none}
  .alertanim .pin{opacity:1;transform:translate(363px,124px)}
}

/* ---------------------------- lock animation ---------------------------- */
.lockanim .write1{animation:w1 6s ease-in-out infinite}
@keyframes w1{
  0%      {opacity:0;transform:translateX(0)}
  6%      {opacity:1}
  20%     {opacity:1;transform:translateX(52px)}
  26%,100%{opacity:0;transform:translateX(52px)}
}
.lockanim .written{animation:wr 6s ease-in-out infinite}
@keyframes wr{0%,16%{opacity:0}26%,100%{opacity:1}}
.lockanim .lock{animation:lk 6s ease-in-out infinite}
@keyframes lk{0%,28%{opacity:0;transform:translateY(-6px)}38%,100%{opacity:1;transform:none}}
.lockanim .shackle{animation:sh 6s cubic-bezier(.32,.72,0,1) infinite;transform-origin:219px 66px}
@keyframes sh{0%,34%{transform:translateY(-10px)}44%,100%{transform:none}}
.lockanim .write2{animation:w2 6s ease-in-out infinite}
@keyframes w2{
  0%,52%  {opacity:0;transform:translateX(0)}
  58%     {opacity:1;transform:translateX(0)}
  70%     {opacity:1;transform:translateX(-44px)}
  78%     {opacity:1;transform:translateX(-30px)}
  86%,100%{opacity:0;transform:translateX(-30px)}
}
.lockanim .refused{animation:rf 6s ease-in-out infinite;transform-origin:330px 76px}
@keyframes rf{0%,70%{opacity:0;transform:scale(.7)}76%,88%{opacity:1;transform:scale(1)}96%,100%{opacity:0}}

/* ------------------------ family + bilingual ------------------------ */
.famanim g[class^="b"]{opacity:.25}
.famanim .b1{animation:fam 7s ease-in-out infinite}
.famanim .b2{animation:fam 7s ease-in-out infinite 1.1s}
.famanim .b3{animation:fam 7s ease-in-out infinite 2.2s}
@keyframes fam{0%,4%{opacity:.25}14%,62%{opacity:1}76%,100%{opacity:.25}}
.famanim path[class^="l"]{stroke-dasharray:180;stroke-dashoffset:180}
.famanim .l1{animation:draw 7s ease-in-out infinite .3s}
.famanim .l2{animation:draw 7s ease-in-out infinite 1.4s}
.famanim .l3{animation:draw 7s ease-in-out infinite 2.5s}
@keyframes draw{0%,6%{stroke-dashoffset:180}20%,62%{stroke-dashoffset:0}76%,100%{stroke-dashoffset:180}}
.famanim .hub{animation:hub 7s ease-in-out infinite}
@keyframes hub{0%,30%{opacity:.3}44%,66%{opacity:1}80%,100%{opacity:.3}}

.bilanim .ro{animation:sw1 6s ease-in-out infinite}
.bilanim .en{animation:sw2 6s ease-in-out infinite}
@keyframes sw1{0%,42%{opacity:1}50%,92%{opacity:0}100%{opacity:1}}
@keyframes sw2{0%,42%{opacity:0}50%,92%{opacity:1}100%{opacity:0}}
.bilanim .flag{animation:fl 6s ease-in-out infinite}
@keyframes fl{0%,42%{opacity:.35}50%,92%{opacity:.9}100%{opacity:.35}}

@media (prefers-reduced-motion:reduce){
  .lockanim .write1,.lockanim .written,.lockanim .lock,.lockanim .shackle,
  .lockanim .write2,.lockanim .refused,
  .famanim g[class^="b"],.famanim .hub,.famanim path[class^="l"],
  .bilanim .ro,.bilanim .en,.bilanim .flag{animation:none}
  .lockanim .write1,.lockanim .write2{opacity:0}
  .lockanim .written,.lockanim .lock,.lockanim .refused{opacity:1;transform:none}
  .famanim g[class^="b"],.famanim .hub{opacity:1}
  .famanim path[class^="l"]{stroke-dashoffset:0}
  .bilanim .en{opacity:0}
}

/* ---------------------------- tap animation ---------------------------- */
.tapanim{margin:0}
.tapanim svg{width:100%;height:auto;display:block}


.tapanim .phone{animation:tapmove 5s ease-in-out infinite}
@keyframes tapmove{
  0%,8%    {transform:translate(70px,0) rotate(6deg)}
  26%,66%  {transform:translate(0,0) rotate(0deg)}
  86%,100% {transform:translate(70px,0) rotate(6deg)}
}
.tapanim .screen{animation:tapscreen 5s ease-in-out infinite;transform-origin:245px 110px}
@keyframes tapscreen{
  0%,30%   {opacity:0;transform:scale(.96)}
  40%,70%  {opacity:1;transform:scale(1)}
  84%,100% {opacity:0;transform:scale(.96)}
}
.tapanim .rings circle{opacity:0}
.tapanim .r1{animation:ring 5s ease-out infinite}
.tapanim .r2{animation:ring 5s ease-out infinite .35s}
.tapanim .r3{animation:ring 5s ease-out infinite .7s}
@keyframes ring{
  0%,24%  {opacity:0;transform:scale(.5)}
  30%     {opacity:.55}
  46%     {opacity:0;transform:scale(2.1)}
  100%    {opacity:0;transform:scale(2.1)}
}
.tapanim .rings circle{transform-origin:135px 132px}

/* Everything stops, and the last frame is what stays on screen - an empty
   box would be worse than no animation at all. */
@media (prefers-reduced-motion:reduce){
  .rv{opacity:1;transform:none;transition:none}
  button.busy::after{animation-duration:1.6s}
  .tile::before{display:none}
  .tile:hover{transform:none}
  .tapanim .phone,.tapanim .screen,.tapanim .rings circle{animation:none}
  .tapanim .phone{transform:none}
  .tapanim .screen{opacity:1;transform:none}
  .tapanim .r1{opacity:.4}
  .critical{animation:none}
}

.honest{background:var(--card);border-radius:var(--radius);padding:1.6rem;
  border-left:.3rem solid var(--red)}
.honest h2{margin:0 0 .5rem;font-size:1.125rem;font-weight:650;color:var(--red)}
.honest p{margin:0;font-size:.9375rem;line-height:1.55;color:var(--secondary)}

.lpfoot{padding:2.5rem 0 3rem;border-top:.5px solid var(--separator);
  color:var(--secondary);font-size:.8125rem;line-height:1.6}

/* The light-mode fills, in one place. Lower = more of the background shows
   through. "gf" is the blurred glass of the profile; "gl" is the lite
   recipe used where there is no backdrop filter. Dark mode has its own
   literal values further down; it was never the one reading as solid. */
:root[data-glass]{
  --gf1:rgba(255,255,255,.4);--gf2:rgba(255,255,255,.22);
  --gl1:rgba(255,255,255,.5);--gl2:rgba(255,255,255,.3);
}
/* Something worth refracting. Fixed, so scrolling never repaints it. */
:root[data-glass]::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(68% 52% at 10% -4%, rgba(var(--tint-rgb),.20), transparent 62%),
    radial-gradient(58% 46% at 98% 10%, rgba(64,196,160,.16), transparent 64%),
    radial-gradient(70% 44% at 50% 104%, rgba(120,110,240,.14), transparent 66%),
    linear-gradient(180deg,#e8ecfa 0%,#dfe5f3 48%,#e5e8f4 100%);
}
:root[data-theme="dark"][data-glass]::before{
  background:
    radial-gradient(68% 52% at 10% -4%, rgba(116,136,255,.24), transparent 62%),
    radial-gradient(58% 46% at 98% 10%, rgba(34,130,108,.20), transparent 64%),
    radial-gradient(70% 44% at 50% 104%, rgba(96,86,200,.18), transparent 66%),
    linear-gradient(180deg,#0b0c12 0%,#06070c 52%,#000 100%);
}

/* ----- shared by both modes ----- */
:root[data-glass] .card,:root[data-glass] .action.quiet{
  background:rgba(255,255,255,.42);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  backdrop-filter:blur(20px) saturate(180%);
  border:.5px solid rgba(255,255,255,.6);
}
:root[data-theme="dark"][data-glass] .card,
:root[data-theme="dark"][data-glass] .action.quiet{
  background:rgba(32,34,42,.52);border-color:rgba(255,255,255,.1);
}

/* Hairlines need more weight on a translucent panel than they do on white,
   or they vanish into whatever is passing behind it. */
:root[data-glass] .stack + .stack::before,
:root[data-glass] .field + .field::before,
:root[data-glass] .vitals .vital + .vital::before{background:rgba(22,32,64,.17)}
:root[data-theme="dark"][data-glass] .stack + .stack::before,
:root[data-theme="dark"][data-glass] .field + .field::before,
:root[data-theme="dark"][data-glass] .vitals .vital + .vital::before{
  background:rgba(255,255,255,.15);
}

/* Secondary text now sits over a busier backdrop; give it back contrast. */
:root[data-glass] .stack .k,:root[data-glass] .vitals .k,
:root[data-glass] .group > h2,:root[data-glass] .group > .note{
  color:rgba(42,48,66,.8);
}
:root[data-theme="dark"][data-glass] .stack .k,
:root[data-theme="dark"][data-glass] .vitals .k,
:root[data-theme="dark"][data-glass] .group > h2,
:root[data-theme="dark"][data-glass] .group > .note{color:rgba(235,235,245,.74)}

/* The allergy block: liquid edge, nearly solid fill. */
:root[data-glass] .critical{
  background:rgba(255,242,243,.94);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  backdrop-filter:blur(16px) saturate(150%);
  border:.5px solid rgba(215,0,21,.2);
}
:root[data-glass] .critical h2{color:#a0111b}
:root[data-glass] .critical p,:root[data-glass] .critical .sel li{color:#16161a}
:root[data-theme="dark"][data-glass] .critical{
  background:rgba(50,21,23,.9);border-color:rgba(255,105,97,.3);
}
:root[data-theme="dark"][data-glass] .critical h2{color:#ff8d85}
:root[data-theme="dark"][data-glass] .critical p,:root[data-theme="dark"][data-glass] .critical .sel li{color:#fff}

/* ----- liquid mode only ----- */

/* Bigger, rounder corners. Real continuous curvature needs squircle paths;
   a generous radius gets most of the way there at no cost. */
:root[data-glass="liquid"] .card,
:root[data-glass="liquid"] .critical,
:root[data-glass="liquid"] .action{border-radius:22px}
:root[data-glass="liquid"] .group{margin-top:1.4rem}

:root[data-glass="liquid"] .card,
:root[data-glass="liquid"] .action.quiet{
  position:relative;
  background:linear-gradient(176deg,var(--gf1),var(--gf2));
  -webkit-backdrop-filter:blur(18px) saturate(185%);
  backdrop-filter:blur(18px) saturate(185%);
  border:0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -1px 0 rgba(255,255,255,.4),
    0 2px 6px rgba(20,30,60,.05),
    0 20px 44px -26px rgba(20,30,60,.3);
}
:root[data-theme="dark"][data-glass="liquid"] .card,
:root[data-theme="dark"][data-glass="liquid"] .action.quiet{
  background:linear-gradient(176deg,rgba(46,48,58,.6),rgba(26,28,36,.48));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(255,255,255,.05),
    0 20px 44px -26px rgba(0,0,0,.65);
}

/* The specular bloom: light pooling in the top-left, the way it does on a
   real lens. Sits under the content, never over the text. */
:root[data-glass="liquid"] .card::before,
:root[data-glass="liquid"] .critical::before,
:root[data-glass="liquid"] .action.quiet::before{
  content:"";position:absolute;inset:0;border-radius:inherit;
  pointer-events:none;z-index:0;
  /* Bloom, then a whisper of grain so the glass reads as material rather
     than as a flat tint. One static 160px tile, repeated. */
  background:
    radial-gradient(130% 78% at 14% -16%,rgba(255,255,255,.34),transparent 58%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:100% 100%,160px 160px;
}
:root[data-theme="dark"][data-glass="liquid"] .card::before,
:root[data-theme="dark"][data-glass="liquid"] .critical::before,
:root[data-theme="dark"][data-glass="liquid"] .action.quiet::before{
  background:
    radial-gradient(130% 78% at 14% -16%,rgba(255,255,255,.14),transparent 58%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:100% 100%,160px 160px;
}
/* Content rides above the bloom. */
:root[data-glass="liquid"] .card > *,
:root[data-glass="liquid"] .critical > *,
:root[data-glass="liquid"] .action.quiet > *{position:relative;z-index:1}

/* The lensed rim: a gradient hairline, bright where light would catch it
   and nearly gone on the shaded side. Drawn as a masked ring so it follows
   the corner radius exactly. */
:root[data-glass="liquid"] .card::after,
:root[data-glass="liquid"] .critical::after,
:root[data-glass="liquid"] .action.quiet::after{
  content:"";position:absolute;inset:0;border-radius:inherit;
  pointer-events:none;z-index:2;padding:1.25px;
  background:linear-gradient(145deg,
    rgba(255,255,255,.98) 0%,rgba(255,255,255,.3) 32%,
    rgba(255,255,255,.08) 54%,rgba(255,255,255,.75) 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
          mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
}
:root[data-theme="dark"][data-glass="liquid"] .card::after,
:root[data-theme="dark"][data-glass="liquid"] .critical::after,
:root[data-theme="dark"][data-glass="liquid"] .action.quiet::after{
  background:linear-gradient(145deg,
    rgba(255,255,255,.4) 0%,rgba(255,255,255,.1) 34%,
    rgba(255,255,255,.03) 56%,rgba(255,255,255,.22) 100%);
}

:root[data-glass="liquid"] .critical{
  position:relative;
  background:linear-gradient(176deg,rgba(255,243,244,.96),rgba(255,236,238,.9));
  border:0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 2px 6px rgba(120,12,22,.07),
    0 20px 44px -26px rgba(120,12,22,.34);
}
:root[data-theme="dark"][data-glass="liquid"] .critical{
  background:linear-gradient(176deg,rgba(60,25,27,.93),rgba(42,17,19,.88));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 20px 44px -26px rgba(0,0,0,.7);
}
:root[data-glass="liquid"] .critical::after{
  background:linear-gradient(145deg,
    rgba(255,255,255,.95) 0%,rgba(255,170,175,.35) 34%,
    rgba(215,0,21,.14) 58%,rgba(255,255,255,.6) 100%);
}

/* The call button keeps its solid fill and gains the same lit top edge, so
   it belongs to the set without dissolving into it. */
:root[data-glass="liquid"] .action{
  position:relative;
  background:linear-gradient(176deg,#5570f0,#3f58e2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 2px 6px rgba(30,45,120,.2),
    0 18px 38px -22px rgba(40,60,180,.75);
}
:root[data-glass="liquid"] .action.quiet{background:linear-gradient(176deg,var(--gf1),var(--gf2))}
:root[data-theme="dark"][data-glass="liquid"] .action.quiet{
  background:linear-gradient(176deg,rgba(46,48,58,.6),rgba(26,28,36,.48));
}
:root[data-glass="liquid"] .action:active{transform:scale(.985)}
:root[data-glass="liquid"] .action{transition:transform .18s var(--spring)}

/* Notify the family: secondary. Calling is what helps, so calling is what
   shouts; this sits under it as an outlined glass button in the tint colour. */
:root[data-glass="liquid"] #notifyBtn,:root[data-glass="liquid"] #locask .quietbtn{
  background:rgba(255,255,255,.55) !important;
  color:var(--accent) !important;
  border:1px solid rgba(var(--tint-rgb),.35) !important;
  border-radius:22px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 1px 3px rgba(22,32,64,.06) !important;
}
:root[data-theme="dark"][data-glass="liquid"] #notifyBtn,:root[data-theme="dark"][data-glass="liquid"] #locask .quietbtn{
  background:rgba(255,255,255,.06) !important;
  color:#8fa2ff !important;
  border-color:rgba(143,162,255,.35) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08) !important;
}
:root[data-glass="liquid"] #notifyBtn:disabled{opacity:.6}

/* 112 and the wearer's panel: same glass and corners as the cards around them. */
:root[data-glass="liquid"] .sos,
:root[data-glass="liquid"] .owner > summary{
  border-radius:22px;
  background:rgba(255,255,255,.55);
  -webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 1px 3px rgba(22,32,64,.06), 0 12px 30px -18px rgba(22,32,64,.25);
}
:root[data-glass="liquid"] .sos{border:1px solid rgba(215,0,21,.24)}
:root[data-glass="liquid"] .owner > summary{border:1px solid rgba(255,255,255,.6)}
:root[data-theme="dark"][data-glass="liquid"] .sos,
:root[data-theme="dark"][data-glass="liquid"] .owner > summary{
  background:rgba(255,255,255,.06);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 12px 30px -18px rgba(0,0,0,.6);
}
:root[data-theme="dark"][data-glass="liquid"] .owner > summary{border-color:rgba(255,255,255,.1)}
:root[data-theme="dark"][data-glass="liquid"] .sos{border-color:rgba(255,105,97,.32)}

/* ----- when glass is the wrong call, it stands down ----- */

/* No backdrop-filter: translucency without blur is just washed-out text. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  :root[data-glass] .card,:root[data-glass] .action.quiet{background:var(--card)}
  :root[data-glass] .critical{background:var(--red-bg)}
  :root[data-glass] .card::before,:root[data-glass] .critical::before,
  :root[data-glass] .action.quiet::before{display:none}
}
/* No mask-composite means the rim would paint as a filled block. */
@supports not ((-webkit-mask-composite:xor) or (mask-composite:exclude)){
  :root[data-glass] .card::after,:root[data-glass] .critical::after,
  :root[data-glass] .action.quiet::after{display:none}
}
/* The reader has asked the system for less of exactly this. */
@media (prefers-reduced-transparency:reduce){
  :root[data-glass]::before{display:none}
  :root[data-glass] .gbg{display:none}
  :root[data-glass] .vitals .vital,:root[data-glass] .mono,:root[data-glass] .fresh{
    background:var(--card) !important;-webkit-backdrop-filter:none;backdrop-filter:none;
    box-shadow:none !important;
  }
  :root[data-glass] .vitals .vital::after,:root[data-glass] .mono::after,
  :root[data-glass] .fresh::after{display:none}
  :root[data-glass] .card,:root[data-glass] .action.quiet{
    background:var(--card) !important;-webkit-backdrop-filter:none;backdrop-filter:none;
    box-shadow:none !important;border:.5px solid var(--separator) !important;
  }
  :root[data-glass] #notifyBtn{box-shadow:none !important}
  :root[data-glass] .critical{
    background:var(--red-bg) !important;-webkit-backdrop-filter:none;backdrop-filter:none;
    box-shadow:none !important;
  }
  :root[data-glass] .card::before,:root[data-glass] .card::after,
  :root[data-glass] .critical::before,:root[data-glass] .critical::after,
  :root[data-glass] .action.quiet::before,:root[data-glass] .action.quiet::after{display:none}
}
@media (prefers-contrast:more){
  :root[data-glass]::before{display:none}
  :root[data-glass] .gbg{display:none}
  :root[data-glass] .vitals .vital,:root[data-glass] .mono,:root[data-glass] .fresh{
    background:var(--card) !important;-webkit-backdrop-filter:none;backdrop-filter:none;
  }
  :root[data-glass] .card,:root[data-glass] .action.quiet{
    background:var(--card) !important;-webkit-backdrop-filter:none;backdrop-filter:none;
  }
  :root[data-glass] .critical{
    background:var(--red-bg) !important;-webkit-backdrop-filter:none;backdrop-filter:none;
  }
  :root[data-glass] .card::before,:root[data-glass] .critical::before,
  :root[data-glass] .action.quiet::before{display:none}
}
@media print{
  :root[data-glass]::before{display:none}
  :root[data-glass] .gbg,:root[data-glass] .mono{display:none}
  :root[data-glass] .vitals .vital{background:#fff !important;box-shadow:none !important}
  :root[data-glass] .vitals .vital::after,:root[data-glass] .fresh::after{display:none}
  :root[data-glass] .card,:root[data-glass] .critical,
  :root[data-glass] .action.quiet,:root[data-glass] #notifyBtn{
    background:#fff !important;-webkit-backdrop-filter:none;backdrop-filter:none;
    box-shadow:none !important;
  }
  :root[data-glass] .card::before,:root[data-glass] .card::after,
  :root[data-glass] .critical::before,:root[data-glass] .critical::after{display:none}
}

/* ======================= motion and depth =========================
 *
 * The parts that make it feel like an Apple screen rather than a web
 * page: a large title that collapses into the bar, sections that arrive
 * in sequence, light that travels across the glass as you scroll, and
 * controls that answer the finger.
 *
 * Every one of these is off under prefers-reduced-motion. That is not a
 * formality on this page: the reader may be a stranger holding someone
 * else's wrist in an emergency.
 */

/* --- iOS large title --- */
:root[data-glass] .title h1{
  font-size:2.125rem;line-height:1.1;letter-spacing:-.032em;font-weight:700;
  transform-origin:left top;
  transition:transform .45s var(--spring),opacity .35s var(--fast);
}
:root[data-glass] .barinner{position:relative}
:root[data-glass] .bartitle{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-46%) scale(.94);
  max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:1rem;font-weight:600;letter-spacing:-.015em;color:var(--label);
  opacity:0;pointer-events:none;
  transition:opacity .28s var(--fast),transform .4s var(--spring);
}
:root[data-glass] .bar.titled .bartitle{opacity:1;transform:translate(-50%,-50%) scale(1)}
/* Below this width the logo and the controls already fill the bar. */
@media (max-width:26rem){:root[data-glass] .bartitle{display:none}}

/* --- sections arrive in sequence ---
   .rv lives in the landing stylesheet, which the profile does not load,
   so it is defined here too. Scoped, so the two never meet. */
:root.js[data-glass] .rv{
  opacity:0;transform:translate3d(0,14px,0) scale(.985);
  transition:opacity .5s var(--spring) var(--d,0ms),
             transform .6s var(--spring) var(--d,0ms);
}
:root.js[data-glass] .rv.in{opacity:1;transform:none}

/* --- light travelling across the glass ---
   A scroll-driven animation where the browser supports it: it runs off
   the main thread, so it costs nothing in scroll responsiveness. Where
   it is not supported the highlight simply sits still. */
@supports (animation-timeline:view()){
  @keyframes sbk-sheen{
    from{background-position:0 0,0 0,0 0}
    to{background-position:0 0,0 150%,0 0}
  }
  :root[data-glass="liquid"] .card::before,
  :root[data-glass="liquid"] .critical::before{
    background:
      radial-gradient(130% 78% at 14% -16%,rgba(255,255,255,.34),transparent 58%),
      linear-gradient(177deg,rgba(255,255,255,.3) 0%,transparent 28%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size:100% 100%,100% 240%,160px 160px;
    background-repeat:no-repeat,no-repeat,repeat;
    animation:sbk-sheen linear both;
    animation-timeline:view();animation-range:cover 0% cover 100%;
  }
  :root[data-theme="dark"][data-glass="liquid"] .card::before,
  :root[data-theme="dark"][data-glass="liquid"] .critical::before{
    background:
      radial-gradient(130% 78% at 14% -16%,rgba(255,255,255,.14),transparent 58%),
      linear-gradient(177deg,rgba(255,255,255,.1) 0%,transparent 28%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size:100% 100%,100% 240%,160px 160px;
    background-repeat:no-repeat,no-repeat,repeat;
  }
}

/* --- three pools of colour, each on its own slow orbit ---
   Transform only, so they live on the compositor and never repaint. The
   ::before wash stays underneath as a static base. */
:root[data-glass] .gbg{position:fixed;inset:-12%;z-index:-1;pointer-events:none;overflow:hidden}
:root[data-glass] .gbg i{
  position:absolute;display:block;width:62vmax;height:62vmax;border-radius:50%;
  will-change:transform;
}
:root[data-glass] .gbg i:nth-child(1){
  left:-22%;top:-26%;
  background:radial-gradient(circle,rgba(var(--tint-rgb),.46),rgba(var(--tint-rgb),0) 62%);
  animation:sbk-b1 26s ease-in-out infinite alternate;
}
:root[data-glass] .gbg i:nth-child(2){
  right:-24%;top:-6%;
  background:radial-gradient(circle,rgba(56,196,160,.38),rgba(56,196,160,0) 62%);
  animation:sbk-b2 31s ease-in-out infinite alternate;
}
:root[data-glass] .gbg i:nth-child(3){
  left:10%;bottom:-34%;
  background:radial-gradient(circle,rgba(140,110,255,.36),rgba(140,110,255,0) 62%);
  animation:sbk-b3 37s ease-in-out infinite alternate;
}
:root[data-theme="dark"][data-glass] .gbg i:nth-child(1){
  background:radial-gradient(circle,rgba(110,134,255,.30),rgba(110,134,255,0) 62%)}
:root[data-theme="dark"][data-glass] .gbg i:nth-child(2){
  background:radial-gradient(circle,rgba(30,150,118,.24),rgba(30,150,118,0) 62%)}
:root[data-theme="dark"][data-glass] .gbg i:nth-child(3){
  background:radial-gradient(circle,rgba(120,90,230,.24),rgba(120,90,230,0) 62%)}
@keyframes sbk-b1{to{transform:translate3d(16vw,12vh,0) scale(1.18)}}
@keyframes sbk-b2{to{transform:translate3d(-14vw,18vh,0) scale(1.12)}}
@keyframes sbk-b3{to{transform:translate3d(12vw,-16vh,0) scale(1.22)}}

/* --- the lensed rim catches light from an angle ---
   A conic ring: two bright arcs where an edge would catch light, nearly
   nothing in between. --ang is steered by the pointer on a desktop and by
   the gyroscope on a phone, so the light moves when you move. Without
   script it simply sits at its resting angle. */
:root[data-glass="liquid"] .card::after,
:root[data-glass="liquid"] .action.quiet::after,
:root[data-glass="liquid"] .vitals .vital::after,
:root[data-glass="liquid"] .mono::after,
:root[data-glass="liquid"] .fresh::after{
  content:"";position:absolute;inset:0;border-radius:inherit;
  pointer-events:none;z-index:2;padding:1.4px;
  background:conic-gradient(from var(--ang,145deg),
    rgba(255,255,255,1) 0deg,rgba(255,255,255,.22) 58deg,
    rgba(255,255,255,.06) 130deg,rgba(255,255,255,.7) 196deg,
    rgba(255,255,255,.1) 268deg,rgba(255,255,255,1) 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
          mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
}
:root[data-theme="dark"][data-glass="liquid"] .card::after,
:root[data-theme="dark"][data-glass="liquid"] .action.quiet::after,
:root[data-theme="dark"][data-glass="liquid"] .vitals .vital::after,
:root[data-theme="dark"][data-glass="liquid"] .mono::after,
:root[data-theme="dark"][data-glass="liquid"] .fresh::after{
  background:conic-gradient(from var(--ang,145deg),
    rgba(255,255,255,.5) 0deg,rgba(255,255,255,.12) 58deg,
    rgba(255,255,255,.03) 130deg,rgba(255,255,255,.3) 196deg,
    rgba(255,255,255,.05) 268deg,rgba(255,255,255,.5) 360deg);
}
:root[data-glass="liquid"] .critical::after{
  background:conic-gradient(from var(--ang,145deg),
    rgba(255,255,255,1) 0deg,rgba(255,170,175,.4) 58deg,
    rgba(215,0,21,.12) 130deg,rgba(255,255,255,.7) 196deg,
    rgba(215,0,21,.16) 268deg,rgba(255,255,255,1) 360deg);
}

/* --- vitals become three glass chips instead of one divided card --- */
:root[data-glass="liquid"] .card.vitals{
  background:none;-webkit-backdrop-filter:none;backdrop-filter:none;
  box-shadow:none;overflow:visible;gap:.6rem;
}
:root[data-glass="liquid"] .card.vitals::before,
:root[data-glass="liquid"] .card.vitals::after{display:none}
:root[data-glass="liquid"] .vitals .vital{
  position:relative;border-radius:18px;padding:.85rem .8rem;
  background:linear-gradient(176deg,var(--gf1),var(--gf2));
  -webkit-backdrop-filter:blur(18px) saturate(185%);
  backdrop-filter:blur(18px) saturate(185%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    0 2px 6px rgba(20,30,60,.05),
    0 18px 40px -26px rgba(20,30,60,.3);
}
:root[data-theme="dark"][data-glass="liquid"] .vitals .vital{
  background:linear-gradient(176deg,rgba(46,48,58,.6),rgba(26,28,36,.48));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 18px 40px -26px rgba(0,0,0,.65);
}
:root[data-glass="liquid"] .vitals .vital + .vital::before{content:none}
:root[data-glass="liquid"] .vitals .v{font-size:1.375rem;font-weight:700;letter-spacing:-.03em}

/* --- the monogram: a glass tile with the wearer's initials --- */
:root[data-glass="liquid"] .mono{
  display:flex;align-items:center;justify-content:center;position:relative;
  width:4rem;height:4rem;border-radius:1.4rem;margin-bottom:.95rem;
  font-size:1.4rem;font-weight:700;letter-spacing:-.02em;color:var(--accent);
  background:linear-gradient(176deg,var(--gf1),var(--gf2));
  -webkit-backdrop-filter:blur(18px) saturate(185%);backdrop-filter:blur(18px) saturate(185%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,1),0 2px 6px rgba(20,30,60,.06),
             0 18px 40px -24px rgba(20,30,60,.35);
}
:root[data-theme="dark"][data-glass="liquid"] .mono{
  background:linear-gradient(176deg,rgba(50,52,64,.66),rgba(28,30,40,.5));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 18px 40px -24px rgba(0,0,0,.7);
}

/* --- the staleness pill goes to glass too --- */
:root[data-glass="liquid"] .fresh{
  position:relative;
  background:linear-gradient(176deg,var(--gf1),var(--gf2));
  -webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 8px 20px -14px rgba(20,30,60,.3);
}
:root[data-theme="dark"][data-glass="liquid"] .fresh{
  background:linear-gradient(176deg,rgba(46,48,58,.6),rgba(26,28,36,.48));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}
:root[data-glass="liquid"] .fresh > *{position:relative;z-index:1}

/* --- labels in the iOS register: small caps, tracked, with a glyph --- */
:root[data-glass] .ki{
  display:inline-flex;width:1em;height:1em;margin-right:.4em;
  vertical-align:-.15em;flex:none;
}
:root[data-glass] .ki svg{width:100%;height:100%;display:block}
:root[data-glass="liquid"] .stack .k,
:root[data-glass="liquid"] .vitals .k,
:root[data-glass="liquid"] .critical h2,
:root[data-glass="liquid"] .action .k{
  text-transform:none;letter-spacing:-.005em;font-size:.8125rem;font-weight:600;
}
:root[data-glass="liquid"] .stack .k{margin-bottom:.3rem}
:root[data-glass="liquid"] .stack .v{font-size:1.125rem;letter-spacing:-.015em}
:root[data-glass="liquid"] .critical p{font-size:1.4375rem;letter-spacing:-.025em}
:root[data-glass="liquid"] .title h1{font-weight:800;letter-spacing:-.04em}

/* --- the call button: a proper SF-style glyph, and a slow halo --- */
:root[data-glass] .action .tel{display:none}
:root[data-glass] .action .ti{
  margin-left:auto;flex:none;width:2.75rem;height:2.75rem;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.35);
}
:root[data-glass] .action .ti svg{width:1.35rem;height:1.35rem}
:root[data-glass] .action.quiet .ti{background:rgba(var(--tint-rgb),.1);box-shadow:none}
@keyframes sbk-halo{
  0%{box-shadow:0 0 0 0 rgba(var(--tint-rgb),.36)}
  70%{box-shadow:0 0 0 16px rgba(var(--tint-rgb),0)}
  100%{box-shadow:0 0 0 0 rgba(var(--tint-rgb),0)}
}
:root[data-glass="liquid"] .action:not(.quiet)::after{
  content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;
  pointer-events:none;animation:sbk-halo 3.4s cubic-bezier(.2,.6,.3,1) infinite;
}

/* --- controls answer the finger ---
   Apple's press is a scale with a settle, not a colour change. */
:root[data-glass] .action,:root[data-glass] #notifyBtn,
:root[data-glass] .printlink,:root[data-glass] .bar .seg{
  transition:transform .22s var(--spring),filter .18s var(--fast),
             box-shadow .28s var(--spring);
}
:root[data-glass] .action:active{transform:scale(.975);filter:brightness(.97)}
:root[data-glass] #notifyBtn:active{transform:scale(.975)}
:root[data-glass] .printlink:active,
:root[data-glass] .bar .seg:active{transform:scale(.94)}

/* The call button lifts slightly when it is pointed at. */
@media (hover:hover){
  :root[data-glass="liquid"] .action:hover{
    transform:translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.45),
      0 4px 10px rgba(30,45,120,.2),
      0 24px 48px -24px rgba(40,60,180,.8);
  }
  :root[data-glass="liquid"] .card:hover{
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.8),
      inset 0 -1px 0 rgba(255,255,255,.4),
      0 3px 8px rgba(20,30,60,.06),
      0 26px 54px -28px rgba(20,30,60,.36);
  }
  :root[data-glass="liquid"] .card{transition:box-shadow .4s var(--spring)}
}

/* --- all of it stands down on request --- */
@media (prefers-reduced-motion:reduce){
  :root[data-glass] .rv{opacity:1;transform:none;transition:none}
  :root.js[data-glass] .rv{opacity:1;transform:none;transition:none}
  :root[data-glass] .gbg i{animation:none}
  :root[data-glass="liquid"] .action:not(.quiet)::after{animation:none;display:none}
  :root[data-glass] .bartitle{display:none}
  :root[data-glass] .title h1{transition:none}
  :root[data-glass="liquid"] .card::before,
  :root[data-glass="liquid"] .critical::before{animation:none}
  :root[data-glass] .action,:root[data-glass] #notifyBtn,
  :root[data-glass] .printlink,:root[data-glass] .bar .seg{transition:none}
  :root[data-glass] .action:active,:root[data-glass] #notifyBtn:active,
  :root[data-glass] .printlink:active,:root[data-glass] .bar .seg:active{transform:none}
}

/* ========================= the rest of the site =========================
 *
 * Two recipes. "Glass" is what the profile uses: translucent fill plus a
 * backdrop blur, for surfaces that content scrolls behind. "Lite" is the
 * same fill, rim, grain and shadow with no backdrop filter at all - for
 * surfaces that only ever sit on the soft background, where there is
 * nothing sharp to blur and the filter would cost without showing. The
 * landing page has twenty tiles; every one of them is lite.
 */

/* --- the bar: faintly translucent, still no blur, and a glass pill for
   the controls --- */
:root[data-glass="liquid"] .bar{background:rgba(255,255,255,.76)}
:root[data-glass="liquid"] .bar.scrolled{
  background:rgba(255,255,255,.82);border-bottom-color:rgba(255,255,255,.6);
  box-shadow:0 1px 0 rgba(20,30,60,.06),0 8px 24px -16px rgba(20,30,60,.18);
}
:root[data-theme="dark"][data-glass="liquid"] .bar{background:rgba(20,21,26,.84)}
:root[data-theme="dark"][data-glass="liquid"] .bar.scrolled{
  background:rgba(20,21,26,.9);border-bottom-color:rgba(255,255,255,.08);
  box-shadow:0 8px 24px -16px rgba(0,0,0,.6);
}
:root[data-glass="liquid"] .bar .tools{
  position:relative;
  background:linear-gradient(176deg,var(--gl1),var(--gl2));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 6px 16px -10px rgba(20,30,60,.3);
}
:root[data-theme="dark"][data-glass="liquid"] .bar .tools{
  background:linear-gradient(176deg,rgba(52,54,64,.7),rgba(30,32,40,.6));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}
:root[data-glass="liquid"] .bar .seg:hover{background:rgba(255,255,255,.7)}
:root[data-theme="dark"][data-glass="liquid"] .bar .seg:hover{background:rgba(255,255,255,.1)}

/* --- primary buttons everywhere: the call button's finish --- */
:root[data-glass="liquid"] button:not(.seg):not(.back):not(.reveal):not(.linkbtn):not(#gateAll):not(#notifyBtn):not(.chipx),
:root[data-glass="liquid"] .btn:not(.ghost),
:root[data-glass="liquid"] .hero .cta .primary{
  background:linear-gradient(176deg,#5570f0,#3f58e2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 2px 6px rgba(30,45,120,.2),
    0 18px 38px -22px rgba(40,60,180,.75);
  transition:transform .22s var(--spring),box-shadow .28s var(--spring),opacity .15s var(--fast);
}
:root[data-glass="liquid"] button:not(.seg):not(.back):not(.reveal):not(.linkbtn):not(#gateAll):not(#notifyBtn):not(.chipx):active,
:root[data-glass="liquid"] .btn:not(.ghost):active,
:root[data-glass="liquid"] .hero .cta .primary:active{transform:scale(.975);opacity:1}
@media (hover:hover){
  :root[data-glass="liquid"] button:not(.seg):not(.back):not(.reveal):not(.linkbtn):not(#gateAll):not(#notifyBtn):not(.chipx):hover:not(:disabled),
  :root[data-glass="liquid"] .btn:not(.ghost):hover,
  :root[data-glass="liquid"] .hero .cta .primary:hover{
    transform:translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.45),
      0 4px 10px rgba(30,45,120,.2),
      0 24px 48px -24px rgba(40,60,180,.8);
  }
}
:root[data-glass="liquid"] button:disabled{filter:saturate(.5) brightness(.95);box-shadow:none}

/* --- secondary controls: lite glass pills --- */
:root[data-glass="liquid"] .stepnav .back,
:root[data-glass="liquid"] .hero .cta .ghost,
:root[data-glass="liquid"] #gate #gateAll,
:root[data-glass="liquid"] .batchpick a{
  position:relative;border:0;
  background:linear-gradient(176deg,var(--gl1),var(--gl2));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 2px 6px rgba(20,30,60,.05),
             0 14px 30px -20px rgba(20,30,60,.3);
}
:root[data-theme="dark"][data-glass="liquid"] .stepnav .back,
:root[data-theme="dark"][data-glass="liquid"] .hero .cta .ghost,
:root[data-theme="dark"][data-glass="liquid"] #gate #gateAll,
:root[data-theme="dark"][data-glass="liquid"] .batchpick a{
  background:linear-gradient(176deg,rgba(46,48,58,.72),rgba(26,28,36,.6));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 14px 30px -20px rgba(0,0,0,.6);
}
:root[data-glass="liquid"] .batchpick a.on{
  background:linear-gradient(176deg,#5570f0,#3f58e2);color:#fff;border-color:transparent;
}

/* --- lite surfaces: tiles, feature art, the honest box, the legal page,
   the footer --- */
:root[data-glass="liquid"] .tile,
:root[data-glass="liquid"] .feature .art,
:root[data-glass="liquid"] .honest,
:root[data-glass="liquid"] .legal{
  position:relative;border-radius:22px;
  background:linear-gradient(176deg,var(--gl1),var(--gl2));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -1px 0 rgba(255,255,255,.4),
    0 2px 6px rgba(20,30,60,.05),
    0 20px 44px -26px rgba(20,30,60,.3);
}
:root[data-theme="dark"][data-glass="liquid"] .tile,
:root[data-theme="dark"][data-glass="liquid"] .feature .art,
:root[data-theme="dark"][data-glass="liquid"] .honest,
:root[data-theme="dark"][data-glass="liquid"] .legal{
  background:linear-gradient(176deg,rgba(46,48,58,.72),rgba(26,28,36,.6));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(255,255,255,.05),
    0 20px 44px -26px rgba(0,0,0,.65);
}
:root[data-glass="liquid"] .legal{padding:2rem 1.5rem 1.5rem;margin-top:1.25rem}
@media (hover:hover){
  :root[data-glass="liquid"] .tile:hover{
    transform:translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.8),
      inset 0 -1px 0 rgba(255,255,255,.4),
      0 3px 8px rgba(20,30,60,.06),
      0 28px 56px -28px rgba(20,30,60,.38);
  }
}

/* The lensed rim, on all of the above. The tile keeps its ::before for the
   pointer glow; the rim is the ::after. */
:root[data-glass="liquid"] .tile::after,
:root[data-glass="liquid"] .feature .art::after,
:root[data-glass="liquid"] .honest::after,
:root[data-glass="liquid"] .legal::after,
:root[data-glass="liquid"] .bar .tools::after,
:root[data-glass="liquid"] .stepnav .back::after,
:root[data-glass="liquid"] .hero .cta .ghost::after,
:root[data-glass="liquid"] #gate::after,
:root[data-glass="liquid"] #gate #gateAll::after{
  content:"";position:absolute;inset:0;border-radius:inherit;
  pointer-events:none;z-index:2;padding:1.4px;
  background:conic-gradient(from var(--ang,145deg),
    rgba(255,255,255,1) 0deg,rgba(255,255,255,.22) 58deg,
    rgba(255,255,255,.06) 130deg,rgba(255,255,255,.7) 196deg,
    rgba(255,255,255,.1) 268deg,rgba(255,255,255,1) 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
          mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
}
:root[data-theme="dark"][data-glass="liquid"] .tile::after,
:root[data-theme="dark"][data-glass="liquid"] .feature .art::after,
:root[data-theme="dark"][data-glass="liquid"] .honest::after,
:root[data-theme="dark"][data-glass="liquid"] .legal::after,
:root[data-theme="dark"][data-glass="liquid"] .bar .tools::after,
:root[data-theme="dark"][data-glass="liquid"] .stepnav .back::after,
:root[data-theme="dark"][data-glass="liquid"] .hero .cta .ghost::after,
:root[data-theme="dark"][data-glass="liquid"] #gate::after,
:root[data-theme="dark"][data-glass="liquid"] #gate #gateAll::after{
  background:conic-gradient(from var(--ang,145deg),
    rgba(255,255,255,.5) 0deg,rgba(255,255,255,.12) 58deg,
    rgba(255,255,255,.03) 130deg,rgba(255,255,255,.3) 196deg,
    rgba(255,255,255,.05) 268deg,rgba(255,255,255,.5) 360deg);
}
/* The tile's rim must sit above its glow, and its content above both. */
:root[data-glass="liquid"] .tile > *{position:relative;z-index:1}

/* --- the hero: the blobs replace its own washes, and the phone mock-up
   gets a lit edge --- */
:root[data-glass="liquid"] .hero{background-image:none}
:root[data-glass="liquid"] .preview .frame{
  box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 2rem 4rem -1rem rgba(20,30,60,.35);
}

/* --- the footer: lite, with only a lit top edge (it runs to the page
   edge, so a full rim would look wrong) --- */
:root[data-glass="liquid"] .sitefoot{
  border-top:0;
  background:linear-gradient(180deg,rgba(255,255,255,.52),rgba(255,255,255,.4));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 -12px 32px -24px rgba(20,30,60,.18);
}
:root[data-theme="dark"][data-glass="liquid"] .sitefoot{
  background:linear-gradient(180deg,rgba(30,32,40,.7),rgba(18,19,24,.75));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1);
}

/* --- the consent dialog: real glass, because the page scrolls behind it.
   More opaque than a profile card: it carries legal text. --- */
:root[data-glass="liquid"] #gate{
  position:relative;border-radius:26px;
  background:linear-gradient(176deg,rgba(255,255,255,.74),rgba(255,255,255,.62));
  -webkit-backdrop-filter:blur(20px) saturate(185%);backdrop-filter:blur(20px) saturate(185%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,1),0 30px 80px -20px rgba(20,30,60,.5);
}
:root[data-theme="dark"][data-glass="liquid"] #gate{
  background:linear-gradient(176deg,rgba(40,42,52,.8),rgba(22,24,30,.74));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 30px 80px -20px rgba(0,0,0,.8);
}
:root[data-glass="liquid"] #gate::backdrop{background:rgba(10,12,24,.42)}
:root[data-glass="liquid"] #gate .inner{position:relative;z-index:1}
:root[data-glass="liquid"] #gate .cbox{
  border:0;border-radius:14px;
  background:rgba(255,255,255,.38);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 0 0 .5px rgba(20,30,60,.08);
  transition:background .2s var(--fast),box-shadow .25s var(--spring);
}
:root[data-theme="dark"][data-glass="liquid"] #gate .cbox{
  background:rgba(255,255,255,.05);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 0 .5px rgba(255,255,255,.08);
}
:root[data-glass="liquid"] #gate .cbox:has(input:checked){
  background:rgba(var(--tint-rgb),.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 0 0 1px rgba(var(--tint-rgb),.5);
}
:root[data-theme="dark"][data-glass="liquid"] #gate .cbox:has(input:checked){
  background:rgba(142,160,255,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 0 0 1px rgba(142,160,255,.5);
}

/* --- form cards: the generic glass card, but inputs need a stronger
   hairline between them than the profile does --- */
:root[data-glass="liquid"] .field label{color:rgba(42,48,66,.78);font-weight:500}
:root[data-theme="dark"][data-glass="liquid"] .field label{color:rgba(235,235,245,.72)}
:root[data-glass="liquid"] .field input::placeholder,
:root[data-glass="liquid"] .field textarea::placeholder{color:rgba(42,48,66,.42)}
:root[data-theme="dark"][data-glass="liquid"] .field input::placeholder,
:root[data-theme="dark"][data-glass="liquid"] .field textarea::placeholder{color:rgba(235,235,245,.4)}

/* --- stand-down for the site-wide pieces --- */
@supports not ((-webkit-mask-composite:xor) or (mask-composite:exclude)){
  :root[data-glass="liquid"] .tile::after,:root[data-glass="liquid"] .feature .art::after,
  :root[data-glass="liquid"] .honest::after,:root[data-glass="liquid"] .legal::after,
  :root[data-glass="liquid"] .bar .tools::after,:root[data-glass="liquid"] .stepnav .back::after,
  :root[data-glass="liquid"] .hero .cta .ghost::after,:root[data-glass="liquid"] #gate::after,
  :root[data-glass="liquid"] #gate #gateAll::after{display:none}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  :root[data-glass="liquid"] #gate{background:var(--card)}
}
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){
  :root[data-glass="liquid"] .tile,:root[data-glass="liquid"] .feature .art,
  :root[data-glass="liquid"] .honest,:root[data-glass="liquid"] .legal,
  :root[data-glass="liquid"] .sitefoot,:root[data-glass="liquid"] .bar,
  :root[data-glass="liquid"] .bar .tools,:root[data-glass="liquid"] .stepnav .back,
  :root[data-glass="liquid"] .hero .cta .ghost,:root[data-glass="liquid"] #gate #gateAll,
  :root[data-glass="liquid"] .batchpick a:not(.on),
  :root[data-glass="liquid"] #gate .cbox{
    background:var(--card) !important;box-shadow:none !important;
  }
  :root[data-glass="liquid"] #gate{
    background:var(--card) !important;-webkit-backdrop-filter:none;backdrop-filter:none;
  }
  :root[data-glass="liquid"] .tile::after,:root[data-glass="liquid"] .feature .art::after,
  :root[data-glass="liquid"] .honest::after,:root[data-glass="liquid"] .legal::after,
  :root[data-glass="liquid"] .bar .tools::after,:root[data-glass="liquid"] .stepnav .back::after,
  :root[data-glass="liquid"] .hero .cta .ghost::after,:root[data-glass="liquid"] #gate::after,
  :root[data-glass="liquid"] #gate #gateAll::after{display:none}
}
@media (prefers-reduced-motion:reduce){
  :root[data-glass="liquid"] .tile:hover{transform:none}
}
@media print{
  :root[data-glass="liquid"] .tile,:root[data-glass="liquid"] .legal,
  :root[data-glass="liquid"] .honest,:root[data-glass="liquid"] .sitefoot{
    background:#fff !important;box-shadow:none !important;
  }
  :root[data-glass="liquid"] .tile::after,:root[data-glass="liquid"] .legal::after,
  :root[data-glass="liquid"] .honest::after{display:none}
}

/* ===================== landing polish ===================== *
   Last in the bundle so it settles any conflict with the glass rules. */

/* One spacing scale for the whole landing page. Every gap below is a step
   on it, so the rhythm repeats instead of each section inventing its own. */
.lp{
  --s1:.5rem; --s2:.75rem; --s3:1rem; --s4:1.5rem; --s5:2rem; --s6:3rem; --s7:4.5rem;
  /* The display system: three steps of one family, tracking tightened as
     size grows. Nothing else on the page sets its own heading size. */
  --d1:clamp(2.25rem,1.4rem + 3.6vw,4rem);
  --d2:clamp(1.6rem,1.25rem + 1.5vw,2.5rem);
  --d3:clamp(1.25rem,1.1rem + .6vw,1.6rem);
  --t1:1.125rem;
}
.lp h1,.lp h2,.lp h3{font-weight:700;text-wrap:balance;color:var(--label)}
.hero h1{font-size:var(--d1);line-height:1.02;letter-spacing:-.04em;max-width:17ch}
.band > h2,.honest h2{font-size:var(--d2);line-height:1.08;letter-spacing:-.03em;margin:0 0 var(--s5)}
.feature .says h3{font-size:var(--d3);line-height:1.15;letter-spacing:-.025em;margin:0 0 var(--s2)}
.tile h3{font-size:var(--t1);line-height:1.25;letter-spacing:-.015em;margin:0 0 var(--s1);font-weight:650}
.honest h2{font-size:var(--d3);margin:0 0 var(--s2);color:var(--red)}

.hero{padding:var(--s6) 0 var(--s7);gap:var(--s6)}
.hero p{margin:var(--s4) 0 0;max-width:44ch}
.hero .cta{margin-top:var(--s5);gap:var(--s2)}
.band{padding:var(--s7) 0}
.grid{gap:var(--s3)}
.lp .tile{padding:var(--s4)}
.feature{padding:var(--s6) 0;gap:var(--s5)}
@media (min-width:56rem){.feature{padding:var(--s7) 0;gap:var(--s7)}}
.band > .feature:first-of-type{padding-top:0}
.band > .feature:last-child{padding-bottom:0}
.guidemore{margin:var(--s4) 0 0}
.honest{padding:var(--s5)}

/* The product is the main feature, so it gets the room: larger beside the
   headline on a desktop, and shown on a phone too instead of hidden. */
.preview{display:block;width:min(19rem,86%);margin:0 auto}
@media (min-width:56rem){
  .hero{grid-template-columns:1fr 1fr}
  .preview{width:min(25rem,100%);justify-self:end;margin:0}
  .preview .title h1{font-size:1.75rem !important}
}

/* Nested corners: inner radius = outer radius - the padding between them,
   so curves stay parallel instead of pinching.
     phone 36px, bezel 8px     -> screen 28px (the browser derives it)
     screen 28px, inset 12px   -> cards 16px
     tile 28px, padding 24px   -> icon chip 4px */
:root[data-glass] .lp .tile,:root .lp .tile{border-radius:28px}
.tile.usecase .ic{border-radius:4px}
.lp .preview .card,.lp .preview .critical,.lp .preview .action{border-radius:16px !important}
.lp .preview .frame{border-radius:36px;border-width:8px}
.feature .art,:root[data-glass] .feature .art{border-radius:28px}
.honest,:root[data-glass] .honest{border-radius:28px}

/* Step numbers as type, not as filled badges. */
.tile .n{
  display:block;width:auto;height:auto;border-radius:0;background:none;
  color:var(--accent);font-size:var(--d3);font-weight:700;letter-spacing:-.02em;
  line-height:1;margin:0 0 var(--s3);font-variant-numeric:tabular-nums;
}


/* ===================== language menu ===================== *
   A <details> inside the header's segmented pill: round flag, code, chevron.
   It opens a glass panel of seven languages, each named in itself. */
.langmenu{position:relative;display:flex}
.langmenu > summary{list-style:none;gap:.4rem;padding:0 .55rem 0 .4rem}
.langmenu > summary::-webkit-details-marker{display:none}
.langmenu .flag{
  display:inline-block;flex:none;width:1.2rem;height:1.2rem;border-radius:50%;overflow:hidden;
  box-shadow:0 0 0 1px rgba(0,0,0,.12);
}
:root[data-theme="dark"] .langmenu .flag{box-shadow:0 0 0 1px rgba(255,255,255,.22)}
.langmenu .flag svg{display:block;width:100%;height:100%}
.langmenu .code{font-size:.75rem;font-weight:700;letter-spacing:.04em}
.langmenu .chev{width:.7rem;height:.7rem;opacity:.7;transition:transform .25s var(--spring)}
.langmenu[open] .chev{transform:rotate(180deg)}

.langlist{
  position:absolute;right:-.2rem;top:calc(100% + .55rem);z-index:20;
  margin:0;padding:.35rem;list-style:none;min-width:11.5rem;
  background:var(--card);border-radius:18px;
  box-shadow:0 0 0 .5px var(--separator),0 18px 40px -12px rgba(20,30,60,.28);
  transform-origin:top right;animation:langpop .22s var(--spring);
}
@keyframes langpop{from{opacity:0;transform:scale(.96) translateY(-4px)}to{opacity:1;transform:none}}
:root[data-glass="liquid"] .langlist{
  /* Near-opaque: the header already blurs what is behind it, and a blur
     nested inside it cannot see the page, so a thin panel let the hero's
     text show through. */
  background:linear-gradient(176deg,#ffffff,#f8f9fd);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 0 0 .5px rgba(60,60,67,.14),0 22px 48px -14px rgba(20,30,60,.35);
}
:root[data-theme="dark"][data-glass="liquid"] .langlist{
  background:linear-gradient(176deg,#2c2e38,#1c1e26);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 0 0 .5px rgba(255,255,255,.1),0 22px 48px -14px rgba(0,0,0,.7);
}
/* Panel 18px, inset 6px: rows 12px, so the corners stay parallel. */
.langlist a{
  display:flex;align-items:center;gap:.65rem;min-height:2.6rem;padding:0 .7rem;
  border-radius:12px;color:var(--label);text-decoration:none;font-size:.9375rem;font-weight:500;
}
.langlist a:hover{background:color-mix(in srgb, var(--accent) 9%, transparent)}
.langlist a[aria-current]{font-weight:650}
.langlist .tick{width:1rem;height:1rem;margin-left:auto;color:var(--accent)}
.langlist a:focus-visible{outline-offset:-2px}
@media (prefers-reduced-motion:reduce){.langlist{animation:none}.langmenu .chev{transition:none}}
@media (forced-colors:active){.langlist{border:1px solid CanvasText}}
