/* Youniton site design system (5 Dec 2026, fourth direction). The rules and the contrast numbers are in docs/design-2026-12-05.md
   of the website repository. Owner, 5 Dec 2026: "For the public webpage, I still not satisfied with the website. Here are the
   inspiration, how I want it to look: "https://www.serifhealth.com/" this is the top choice, exactly what I like and how I
   imagine it." The site takes the design language only: no text, logo, picture, product name or exact layout of that site.
   Every page loads this file: tokens, type, the fields (soft gradients with a fine texture), the announcement bar, the header with
   the Youniton mark, buttons, the theme toggle, the closing call to action and the footer.
   Method: soft blue fields (periwinkle to light cyan) with a texture of small dots and short dashes; sharp corners; hairlines;
   a deep navy for text and primary buttons; clean headings in Sora, weight 500; product views as white cards on soft blue panels.
   Palette (owner, 5 Dec 2026: "this green and gray looks cheap, don't you think so? Maybe have soft blue and toxic green as
   accent?"): the accent is the neon green of the Youniton mark (#39ff14, --signal). It is for small marks only: the step of a
   button, the line of the current link, the bar of the active tab, the marker under one word, small squares. It is never text on
   a light surface. On navy it can be text or a button fill. Links on a light surface are navy blue (--accent).
   The light theme is the default for every visitor (<html data-theme="light">). The theme toggle gives the dark theme and keeps
   the choice in this browser (key "youniton-theme" in localStorage). */
:root{
  /* surfaces and text */
  --bg:#ffffff;--bg2:#f4f7fd;--surface:#ffffff;--surface-2:#edf2fb;
  --ink:#0b1437;--ink-2:#3a4263;--mute:#59607d;--ghost:#a2a8bf;--line:#dbe3f3;--line-strong:#8088a6;
  /* links are navy blue; the small accent is the neon green of the mark (--signal); --grad is for the gradient text only */
  --accent:#1e3a8a;--accent-hover:#16224f;--accent-on:#ffffff;--accent-soft:#e9f0ff;--signal:#39ff14;--step:#39ff14;
  --grad:linear-gradient(90deg,#1e3a8a,#0a6ea8);
  --accent-2:#1e3a8a;--ok:#0b1437;--ok-soft:#dcfbd4;--btn-bg:var(--ink);--btn-ink:#ffffff;--focus:#0b1437;--mark-edge:transparent;
  /* fields: the soft gradients behind sections, and the panel behind a product view */
  --field:linear-gradient(115deg,#f3f7ff 0%,#e6efff 52%,#dff3fb 100%);
  --panel-grad:linear-gradient(135deg,#cfe0ff 0%,#c9ecf7 100%);
  --tex:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='42' fill='%231e3a8a' fill-opacity='.26'%3E%3Ccircle cx='6' cy='7' r='1'/%3E%3Crect x='18' y='6.25' width='7' height='1.5'/%3E%3Ccircle cx='40' cy='7' r='1'/%3E%3Ccircle cx='52' cy='7' r='1'/%3E%3Crect x='70' y='6.25' width='5' height='1.5'/%3E%3Ccircle cx='96' cy='7' r='1'/%3E%3Ccircle cx='12' cy='21' r='1'/%3E%3Ccircle cx='30' cy='21' r='1'/%3E%3Crect x='44' y='20.25' width='8' height='1.5'/%3E%3Ccircle cx='66' cy='21' r='1'/%3E%3Ccircle cx='84' cy='21' r='1'/%3E%3Crect x='100' y='20.25' width='6' height='1.5'/%3E%3Crect x='4' y='34.25' width='6' height='1.5'/%3E%3Ccircle cx='24' cy='35' r='1'/%3E%3Ccircle cx='58' cy='35' r='1'/%3E%3Crect x='76' y='34.25' width='7' height='1.5'/%3E%3Ccircle cx='108' cy='35' r='1'/%3E%3C/svg%3E");
  /* status colours of the product views */
  --warm:#f59e0b;--warm-ink:#92400e;--rose:#be123c;
  /* code */
  --code-bg:#0b1437;--code-ink:#f5f6fb;--code-dim:#a9b1cf;--code-line:#252d55;
  /* shape: sharp corners */
  --r-s:0px;--r-m:0px;
  --shadow:0 1px 2px rgba(11,20,55,.05),0 2px 6px rgba(11,20,55,.04);
  --shadow-lg:0 1px 1px rgba(11,20,55,.04),0 8px 16px -4px rgba(11,20,55,.08),0 24px 48px -12px rgba(11,20,55,.16);
  --shadow-hover:0 1px 2px rgba(11,20,55,.06),0 8px 20px -4px rgba(11,20,55,.12);
  /* type */
  --display:"Sora",system-ui,-apple-system,sans-serif;--body:"Inter",system-ui,-apple-system,sans-serif;--brand:"Sora",system-ui,sans-serif;--mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  --gut:24px;
  /* the five stages of a request (data colours of the product views; text colours, WCAG AA on white and on --bg2) */
  --s-req:#0a7266;--s-tic:#5140f0;--s-time:#7c3aed;--s-appr:#b45309;--s-cash:#0b1437;
  /* the names of the old drawings */
  --indigo:#59607d;--teal:#1e3a8a;--mint:#1e3a8a;--sky:#a2a8bf;--star:#1e3a8a;--violet:#0a6ea8;
  --glow:transparent;--glow-a:transparent;--glow-b:transparent;--glow-c:transparent;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#070b1d;--bg2:#0d1330;--surface:#141b3f;--surface-2:#1b2350;
  --ink:#ffffff;--ink-2:#c9cfe6;--mute:#9aa3c7;--ghost:#4a5380;--line:#252d55;--line-strong:#6c76a3;
  --accent:#39ff14;--accent-hover:#74ff5a;--accent-on:#0b1437;--accent-soft:#141b3f;--step:#ffffff;
  --grad:linear-gradient(90deg,#9cc3ff,#8be6f5);
  --accent-2:#39ff14;--ok:#39ff14;--ok-soft:#12331c;--btn-bg:#39ff14;--btn-ink:#0b1437;--focus:#39ff14;--mark-edge:rgba(255,255,255,.25);
  --field:linear-gradient(115deg,#0d1330 0%,#0f1b40 52%,#0b2238 100%);
  --panel-grad:linear-gradient(135deg,#1a2a63 0%,#143a55 100%);
  --tex:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='42' fill='%239cc3ff' fill-opacity='.26'%3E%3Ccircle cx='6' cy='7' r='1'/%3E%3Crect x='18' y='6.25' width='7' height='1.5'/%3E%3Ccircle cx='40' cy='7' r='1'/%3E%3Ccircle cx='52' cy='7' r='1'/%3E%3Crect x='70' y='6.25' width='5' height='1.5'/%3E%3Ccircle cx='96' cy='7' r='1'/%3E%3Ccircle cx='12' cy='21' r='1'/%3E%3Ccircle cx='30' cy='21' r='1'/%3E%3Crect x='44' y='20.25' width='8' height='1.5'/%3E%3Ccircle cx='66' cy='21' r='1'/%3E%3Ccircle cx='84' cy='21' r='1'/%3E%3Crect x='100' y='20.25' width='6' height='1.5'/%3E%3Crect x='4' y='34.25' width='6' height='1.5'/%3E%3Ccircle cx='24' cy='35' r='1'/%3E%3Ccircle cx='58' cy='35' r='1'/%3E%3Crect x='76' y='34.25' width='7' height='1.5'/%3E%3Ccircle cx='108' cy='35' r='1'/%3E%3C/svg%3E");
  --warm:#fbbf24;--warm-ink:#fbbf24;--rose:#fb7185;
  --code-bg:#0d1330;
  --shadow:0 1px 2px rgba(0,0,0,.5),0 2px 6px rgba(0,0,0,.4);
  --shadow-lg:0 1px 1px rgba(0,0,0,.5),0 8px 16px -4px rgba(0,0,0,.5),0 24px 48px -12px rgba(0,0,0,.7);
  --shadow-hover:0 1px 2px rgba(0,0,0,.5),0 8px 20px -4px rgba(0,0,0,.7);
  --indigo:#9aa3c7;--teal:#39ff14;--mint:#39ff14;--sky:#4a5380;--star:#39ff14;--violet:#8be6f5;
  --s-req:#34e0c8;--s-tic:#a5b4fc;--s-time:#c4a1ff;--s-appr:#fbbf24;--s-cash:#39ff14;
  color-scheme:dark}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.6 var(--body);-webkit-font-smoothing:antialiased;overflow-x:clip}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:30;background:var(--bg)}
a{color:inherit}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--display);font-weight:500;text-wrap:balance}
img,svg,video{max-width:100%}
[id]{scroll-margin-top:76px}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.wrap{max-width:1280px;margin:0 auto;padding-inline:max(20px,env(safe-area-inset-left,0px))}
@media (min-width:1000px){.wrap{padding-inline:40px}}
.skip{position:absolute;left:12px;top:-60px;z-index:100;background:var(--ink);color:var(--bg);padding:10px 14px;text-decoration:none;font-weight:600}
.skip:focus{top:12px}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.g12{display:grid;grid-template-columns:repeat(12,minmax(0,1fr))}

/* a field (class gfield; pages.css uses the name "field" for a form field of a product view): the soft gradient with the fine texture of dots and dashes. The texture shows at the two sides and fades to the middle. */
.gfield{position:relative;background:var(--field)}
.gfield::before{content:"";position:absolute;inset:0;pointer-events:none;background:var(--tex);-webkit-mask-image:linear-gradient(90deg,#000 0,transparent 30%,transparent 70%,#000 100%);mask-image:linear-gradient(90deg,#000 0,transparent 30%,transparent 70%,#000 100%)}
.gfield>.wrap{position:relative}
/* the gradient text: the second line of a main heading */
.gt{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}

/* the small label: the code face, upper case */
.label,.kicker3{font:500 12px/1.4 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}

/* the announcement bar: one short line and a link, on the navy; the arrow is the neon green */
.annc{background:linear-gradient(90deg,#0b1437,#1e3a8a);color:#ffffff;font-size:13.5px;line-height:1.4}
.annc a span{color:#39ff14}
.annc .wrap{display:flex;justify-content:center;align-items:center;gap:6px 14px;flex-wrap:wrap;min-height:38px;padding-block:8px;text-align:center}
.annc a{font-weight:600;text-decoration:none;white-space:nowrap}
.annc a:hover{text-decoration:underline;text-underline-offset:3px}
.annc :focus-visible{outline-color:#39ff14}

/* header: a plain bar. The Youniton mark and the main links are on the left; the theme toggle, "Sign in" and the one primary button
   are on the right; narrow screens get the menu. */
.nav{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:var(--bg);border-bottom:1px solid var(--line)}
.nav .wrap{display:flex;align-items:center;gap:10px;height:64px}
.logo{display:flex;align-items:center;gap:9px;font:600 18px var(--brand);text-decoration:none;letter-spacing:-.03em;color:var(--ink)}
.logo img,.logo svg{width:26px;height:26px;flex:none;display:block}
/* the Youniton mark: the plain variant in the light theme, the outlined variant in the dark theme */
.logo img.mk-dk{display:none}
:root[data-theme="dark"] .logo img.mk-dk{display:block}:root[data-theme="dark"] .logo img.mk-lt{display:none}
.nav .links{display:flex;align-self:stretch;gap:0;margin-left:28px;margin-right:auto;font-size:14.5px;color:var(--ink-2)}
.nav .links a{position:relative;display:flex;align-items:center;padding:0 12px;text-decoration:none;transition:color .15s ease}
.nav .links a:hover{color:var(--ink)}
.nav .links a[aria-current="page"]{color:var(--ink);font-weight:500}
.nav .links a[aria-current="page"]::after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:3px;background:var(--signal)}
/* buttons: sharp corners. The primary button is deep navy with a small neon green step at its lower right corner. */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 22px;border-radius:0;font:600 15px var(--body);letter-spacing:-.005em;text-decoration:none;border:1px solid transparent;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.btn-main,.btn-primary{background:var(--btn-bg);border-color:var(--btn-bg);color:var(--btn-ink);margin:0 5px 5px 0}
.btn-main::after,.btn-primary::after{content:"";position:absolute;right:-6px;bottom:-6px;width:11px;height:11px;background:var(--step);transition:transform .15s ease}
.btn-main:hover::after,.btn-primary:hover::after{transform:translate(2px,2px)}
.btn-soft,.btn-ghost{border-color:var(--ink);color:var(--ink);background:transparent;margin-bottom:5px}
.btn-soft:hover,.btn-ghost:hover{background:var(--ink);color:var(--bg)}
.btn .arr{transition:transform .15s ease}.btn:hover .arr{transform:translateX(3px)}
.nav .btn{min-height:36px;padding:0 15px;font-size:14px;margin-bottom:0}
.nav .btn-main::after{right:-5px;bottom:-5px;width:9px;height:9px}
.nav .signin{border-color:transparent;background:transparent;font-weight:500;color:var(--ink-2);margin:0}
.nav .signin:hover{border-color:transparent;background:transparent;color:var(--ink)}
.theme,.menu-btn{all:unset;box-sizing:border-box;cursor:pointer;width:36px;height:36px;display:grid;place-items:center;color:var(--mute);flex:none}
.theme:hover,.menu-btn:hover{color:var(--ink)}
.theme:focus-visible,.menu-btn:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.theme svg,.menu-btn svg{width:17px;height:17px}
.menu-btn{display:none}
.mobile-menu{display:none;border-top:1px solid var(--line);padding:4px 20px 16px;background:var(--bg);max-height:calc(100svh - 64px);overflow-y:auto}
.mobile-menu a{display:block;padding:12px 0;text-decoration:none;font-weight:500;font-size:15px;border-bottom:1px solid var(--line)}
.mobile-menu a:hover{color:var(--accent)}
.mobile-menu.open{display:block}
@media (max-width:1000px){.nav .links{margin-left:12px}.nav .links a{padding:0 9px}.nav .links a[aria-current="page"]::after{left:9px;right:9px}}
@media (max-width:900px){.nav .links{display:none}.nav .wrap{gap:8px}.nav .theme{margin-left:auto}.menu-btn{display:grid}.nav .signin{display:none}}
@media (min-width:901px){.mobile-menu.open{display:none}}
@media (max-width:420px){.nav .btn{padding:0 12px}}

/* closing call to action: a field. The heading, the text and the buttons are on the left; a small stack of white paper cards with
   one question is on the right. */
.final{position:relative;overflow:hidden;padding-block:clamp(72px,8vw,120px);background:var(--field);border-top:1px solid var(--line)}
.final::before{content:"";position:absolute;inset:0;pointer-events:none;background:var(--tex);-webkit-mask-image:linear-gradient(90deg,transparent 40%,#000 100%);mask-image:linear-gradient(90deg,transparent 40%,#000 100%)}
.final .wrap{position:relative;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:center;row-gap:18px}
.final h2,.final.long h2{grid-column:1/8;font:500 clamp(30px,3.8vw,52px)/1.08 var(--display);letter-spacing:-.035em;max-width:16ch;margin:0}
.final.long h2{max-width:20ch}
.final p{grid-column:1/8;margin:0;color:var(--ink-2);font-size:clamp(16px,1.25vw,18px);max-width:34em}
.ctas{display:flex;gap:14px;flex-wrap:wrap}
.final .ctas{grid-column:1/8;margin-top:12px}
.papers{grid-column:9/13;grid-row:1/4;position:relative;height:200px;max-width:300px;width:100%;justify-self:end}
.papers span{position:absolute;inset:0;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow)}
.papers span:nth-child(1){transform:translate(24px,24px)}
.papers span:nth-child(2){transform:translate(12px,12px)}
.papers span:nth-child(3){display:flex;align-items:flex-end;padding:22px;font:500 clamp(20px,2vw,26px)/1.2 var(--display);letter-spacing:-.03em;color:var(--ink)}
.papers span:nth-child(3)::before{content:"";position:absolute;left:22px;top:22px;width:28px;height:28px;background:var(--ink);box-shadow:8px 8px 0 -0px var(--signal)}
@media (max-width:860px){.final h2,.final.long h2,.final p,.final .ctas{grid-column:1/-1}.papers{display:none}}

/* footer */
footer{border-top:1px solid var(--line);background:var(--bg);padding-block:56px 28px;color:var(--mute);font-size:13.5px;line-height:1.5}
footer a{text-decoration:none;transition:color .15s ease}footer a:hover{color:var(--ink)}
footer .foot-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));row-gap:36px}
footer .foot-brand{grid-column:1/-1;display:flex;align-items:baseline;gap:20px;flex-wrap:wrap;padding-bottom:28px;border-bottom:1px solid var(--line)}
footer .foot-grid>div:not(.foot-brand){grid-column:span 3;padding:0 12px 0 0}
footer .foot-grid p{margin:0;max-width:none}
footer h2{margin:0 0 14px;font:500 12px/1.4 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ink)}
footer ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
footer .foot-bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:48px;padding-top:18px;border-top:1px solid var(--line);font-size:12.5px}
footer .foot-bottom>span:last-child{display:flex;gap:20px;flex-wrap:wrap}
@media (max-width:999px){footer .foot-grid>div:not(.foot-brand){grid-column:span 6}}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
