/* curasystems.com – design A.  Shared rules; page-specific layout stays inline in src/*.html. */
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url(fonts/inter-latin-wght-normal.woff2) format('woff2');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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2');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}

/* ── theme: colours as variables; dark mode sets html[data-theme="dark"] (assets/theme.js) ── */
:root{
color-scheme:light;
--page:#ffffff;--bg:#ffffff;--bg-soft:#f4f7fa;--bg-tint:#f1f7fc;--bg-glass:rgba(255,255,255,.92);--footer-bg:#16191d;
--ink:#16191d;--ink-2:#454c55;--ink-3:#5b636d;--heading:#16191d;
--accent-ink:#1a67a3;--accent-ink-hover:#0f4a78;--teal-ink:#0b6362;--error-ink:#a3341c;
--line:#e6e9ed;--line-strong:#c3c9d0;--line-accent:#9ccbee;--line-input:#aeb6bf;
--ink-bg:#16191d;--on-ink:#ffffff;
--glass:rgba(255,255,255,.5);--glass-line:rgba(255,255,255,.85);--glass-shadow:0 8px 28px rgba(18,70,111,.10);
--lift-shadow:0 14px 30px rgba(18,70,111,.14);
}
html[data-theme="dark"]{
color-scheme:dark;
--page:#18202b;--bg:#212b38;--bg-soft:#1c2531;--bg-tint:#1d3044;--bg-glass:rgba(24,32,43,.88);--footer-bg:#121922;
--ink:#e9eef3;--ink-2:#c3ccd6;--ink-3:#aab5c0;--heading:#f4f7fa;
--accent-ink:#7cc3f5;--accent-ink-hover:#a9d8fa;--teal-ink:#6fd8d0;--error-ink:#ff9d8a;
--line:#364456;--line-strong:#55647a;--line-accent:#3f79a8;--line-input:#66758a;
--ink-bg:#e9eef3;--on-ink:#18202b;
--glass:rgba(33,43,56,.6);--glass-line:rgba(255,255,255,.14);--glass-shadow:0 8px 28px rgba(0,0,0,.35);
--lift-shadow:0 14px 30px rgba(0,0,0,.45);
}

html{scroll-behavior:smooth;scroll-padding-top:84px;background:var(--page)}
body{margin:0;background:var(--page)}
/* nothing may push the page sideways on a phone */
html,body{overflow-x:clip}
[hidden]{display:none !important}
a{color:var(--accent-ink)}
a:hover{color:var(--accent-ink-hover)}
a[href^="tel:"]{white-space:nowrap}
img{max-width:100%}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3{color:var(--heading)}
:focus-visible{outline:2px solid #3498db;outline-offset:2px}
input:focus,select:focus,textarea:focus{outline:2px solid #3498db;outline-offset:1px}
button[disabled]{opacity:.6;cursor:progress}
button{color:var(--ink)}
[data-ic="accent"]{color:var(--accent-ink)}
[data-ic="ink"]{color:var(--ink)}

/* logo: light and dark variant, one is shown */
.logo-d{display:none !important}
html[data-theme="dark"] .logo-l{display:none !important}
html[data-theme="dark"] .logo-d{display:block !important}

/* dark mode: product pictures have a white ground, keep them as white tiles */

/* theme switch */
.theme-btn[aria-pressed="true"]{background:var(--ink-bg) !important}
.theme-btn[aria-pressed="true"] svg{color:var(--on-ink)}

/* language switch */
.lang{position:relative;border:1px solid var(--line-strong);border-radius:6px}
.lang > summary{list-style:none;cursor:pointer;border-radius:5px;padding:0 10px;gap:6px}
.lang > summary::-webkit-details-marker{display:none}
.lang > summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);opacity:.7}
.lang[open] > summary{background:var(--ink-bg);color:var(--on-ink)}
.lang-list{position:absolute;right:0;top:calc(100% + 8px);z-index:30;display:grid;grid-template-columns:repeat(3,minmax(118px,1fr));gap:2px;padding:8px;background:var(--bg);border:1px solid var(--line-strong);border-radius:8px;box-shadow:0 12px 32px rgba(10,20,35,.18);max-height:70vh;overflow-y:auto}
.lang-list a{display:block;padding:9px 10px;border-radius:5px;color:var(--ink);text-decoration:none;font-size:15px;white-space:nowrap}
.lang-list a:hover{background:var(--bg-soft)}
.lang-list a.on{background:var(--ink-bg);color:var(--on-ink)}
/* Phones: the list hangs under the whole bar (the sticky bar is its anchor), as wide as the screen.
   Not position:fixed: inside a sticky bar, iOS Safari leaves such a list unpainted. */
@media (max-width:600px){.lang{position:static}.lang-list{position:absolute;left:12px;right:12px;top:100%;grid-template-columns:repeat(2,1fr);margin-top:8px;max-height:calc(100vh - 200px);max-height:calc(100dvh - 200px)}}
/* The top bar leaves when scrolling down and is back at the first move up.
   On phones only: there it takes a real share of the screen. */
.topbar{transition:transform .2s ease}
@media (max-width:900px){.topbar.is-away{transform:translateY(-100%)}}
.lang-btn{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;font-weight:500;text-decoration:none;background:var(--bg);color:var(--ink)}
.lang-btn:hover{color:var(--ink);background:var(--bg-soft)}
.lang-btn.on,.lang-btn.on:hover{background:var(--ink-bg);color:var(--on-ink)}

/* motion and glass */
@keyframes a-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes a-drift{from{transform:translate(0,0)}to{transform:translate(18px,-18px)}}
@keyframes a-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.glass{background:var(--glass) !important;border-color:var(--glass-line) !important;-webkit-backdrop-filter:blur(14px) saturate(150%);backdrop-filter:blur(14px) saturate(150%);box-shadow:var(--glass-shadow)}}
.js-rv .rv:not(.in){opacity:0}
.js-rv .rv.in{animation:a-rise .8s ease backwards}
.js-rv .rvs:not(.in) > *{opacity:0}
.js-rv .rvs.in > *{animation:a-rise .7s ease backwards}
.js-rv .rvs.in > *:nth-child(2){animation-delay:.1s}
.js-rv .rvs.in > *:nth-child(3){animation-delay:.2s}
.js-rv .rvs.in > *:nth-child(4){animation-delay:.3s}
.js-rv .rvs.in > *:nth-child(5){animation-delay:.4s}
.lift{transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease}
.lift:hover{transform:translateY(-4px);box-shadow:var(--lift-shadow);border-color:var(--line-accent) !important}
@media (prefers-reduced-motion: reduce){*{animation:none !important;transition:none !important}html{scroll-behavior:auto}}

/* start area: each line of text lies on its own pane of frosted glass, so
   the animation behind it does not get in the way of reading */
.hl, .hl-btn{background:var(--bg-glass);background:color-mix(in srgb, var(--page) 58%, transparent);-webkit-backdrop-filter:blur(7px) saturate(1.4);backdrop-filter:blur(7px) saturate(1.4)}
.hl{padding:.03em .38em;margin:0 -.38em;border-radius:.38em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
h1 > .hl{border-radius:.22em;padding:0 .22em;margin:0 -.22em}

/* ── phones and foldables ── */
.m-only{display:none !important}
.m-menu{display:none}
.f-rail{display:none}
@media (max-width:900px){
header nav > a{display:none !important}
.m-only{display:flex !important}
.m-menu.open{display:flex}
section[id] > div:not([aria-hidden]), footer > div, main{padding-left:20px !important;padding-right:20px !important}
.pg > footer{padding-bottom:76px}
/* the bar at the bottom already offers support */
.hl-btn{display:none !important}
/* logo and controls share one row */
.topbar header{flex-wrap:nowrap !important;gap:12px !important;padding-left:20px !important;padding-right:20px !important}
.topbar header > a:first-child{flex:0 1 auto;min-width:0}
.topbar header > a:first-child img{height:42px !important;max-width:100%;object-fit:contain;object-position:left center}
.topbar header nav, .topbar header > div{flex-wrap:nowrap !important;gap:10px !important;flex:none}
}
/* on a phone the logo is the way back to the start page */
@media (max-width:600px){
.topbar header > div > .link-strong{display:none}
}
/* unfolded foldable: navigation pane on the left, page on the right */
@media (min-width:700px) and (max-width:900px){
.pg{--rail:max(248px,32vw);display:grid;grid-template-columns:var(--rail) 1fr}
.pg > *{grid-column:2;min-width:0}
.pg > .f-rail{display:flex;grid-column:1;grid-row:1 / span 60;position:sticky;top:0;align-self:start;height:100vh;height:100dvh;box-sizing:border-box}
/* the rail already shows the logo: the top bar keeps only its controls */
.f-rail ~ .topbar header > a:first-child{display:none !important}
.f-rail ~ .topbar header{justify-content:flex-end !important}
.pg .m-only{display:none !important}
/* what the rail offers at all times is not offered again in the page */
.f-rail ~ * .rail-dup{display:none !important}
.pg > footer{padding-bottom:0}
}
/* A phone browser's address bar comes and goes while the page scrolls, and
   a rail as high as the visible window would be resized late and jump. So
   the rail is as high as the window ever gets (its end may lie below the
   edge), and its buttons are pinned to the bottom edge, which the browser
   moves along with its bar. Only where links and buttons both fit. */
@media (min-width:700px) and (max-width:900px) and (min-height:740px){
.pg > .f-rail{height:100vh;height:100lvh;overflow:hidden}
.f-rail-cta{position:fixed;left:0;bottom:0;width:var(--rail);box-sizing:border-box;padding:0 24px calc(28px + env(safe-area-inset-bottom));background:var(--bg-soft);border-right:1px solid var(--line)}
}
@media (max-width:600px), (min-width:700px) and (max-width:900px){
section[id] > div:not([aria-hidden]){padding-top:56px !important;padding-bottom:56px !important}
#top > div{padding-top:56px !important;padding-bottom:128px !important}
/* icon and heading in one row */
#services .rvs > div, #priorities .rvs > div{display:grid;grid-template-columns:52px 1fr;gap:10px 16px;align-items:center}
#services .rvs > div > div:first-child, #priorities .rvs > div > div:first-child{margin-bottom:0 !important}
#services .rvs > div > h3, #priorities .rvs > div > h3{margin:0 !important}
#services .rvs > div > p, #priorities .rvs > div > p{grid-column:1 / -1}
#services .rvs, #priorities .rvs{gap:28px !important;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)) !important}
#services .rvs > div > h3, #priorities .rvs > div > h3{min-width:0;overflow-wrap:anywhere;hyphens:auto}
.glass{display:grid !important;grid-template-columns:48px 1fr;gap:8px 14px !important;align-items:center;padding:18px !important}
.glass > span:last-child{grid-column:1 / -1}
#products .lift{display:grid !important;grid-template-columns:72px 1fr;column-gap:16px !important;row-gap:2px !important;align-items:center}
#products .lift > img{grid-row:1 / span 2}
#products .lift > p:nth-of-type(1){align-self:end}
#products .lift > h3{align-self:start}
#products .lift > p:last-child{grid-column:1 / -1;margin-top:10px !important}
section[aria-label]{padding-left:20px !important;padding-right:20px !important}
main{padding-top:40px !important;padding-bottom:56px !important}
.form-row{gap:32px !important}
}
@media (max-width:600px){
#products .ic-head > img{width:96px !important;height:96px !important}
#products .ic-head h3{font-size:28px !important}
}

/* forms */
.form-error{grid-column:1 / -1;margin:0;font-size:14px;font-weight:600;color:var(--error-ink)}

/* legal text */
.h-legal-sub{margin:22px 0 8px;font-size:17px;font-weight:600}
.legal-p{margin:0 0 12px;color:var(--ink-2)}
.lang-note{margin:0 0 24px;padding:12px 16px;border:1px solid var(--line-accent);background:var(--bg-tint);border-radius:8px;font-size:15px}

/* shared classes */
.page{font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--page); line-height: 1.55}
.field-label{font-size: 14px; font-weight: 600}
.field{display: flex; flex-direction: column; gap: 6px}
.field-wide{grid-column: 1 / -1}
.input{width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-input); border-radius: 6px; font: inherit; color: var(--ink); background: var(--bg)}
.input-area{resize: vertical}
.checkbox{width: 22px; height: 22px; margin: 2px 0 0; flex: none}
.optional{color: var(--ink-3); font-weight: 400}
.text-muted{margin: 0; color: var(--ink-2)}
.m0{margin: 0}
.mb-32{margin: 0 0 32px}
.feature-item{padding: 12px 0; border-top: 1px solid #3a6a90}
.flex-none{flex: none}
.pad-y{padding: 12px 0}
.link-strong{padding: 12px 0; font-weight: 500}
.logo-link{display: flex; align-items: center; min-height: 44px}
.h-legal{margin: 0 0 10px; font-size: 20px; font-weight: 600}
.h-page{margin: 0 0 14px; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600}
.lead-page{margin: 0 0 36px; font-size: 18px; color: var(--ink-2); max-width: 34em}
.eyebrow-sm{margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3)}
.small-muted{font-size: 14px; color: var(--ink-2)}
@media (max-width:900px){#contact > [aria-hidden="true"]{display:none}}

/* ── the drift picture in the aeppic section (drawn by site.js) ── */
.dr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:32px 48px}
.dr-fig{margin:0;min-width:0}
.dr-fig svg{display:block;width:100%;height:auto;overflow:visible}
.dr-plot{position:relative;border:1px solid var(--line);border-radius:10px;background:var(--bg-soft);padding:14px 14px 30px 30px}
.dr-x,.dr-y{position:absolute;font-size:12px;letter-spacing:.04em;color:var(--ink-3);white-space:nowrap}
.dr-x{right:16px;bottom:8px}
.dr-y{left:10px;top:14px;writing-mode:vertical-rl;transform:rotate(180deg)}
.dr-axis{fill:none;stroke:var(--line-strong);stroke-width:1.2}
.dr-dot{fill:var(--ink-3);opacity:.45}
.dr-big{fill:none;stroke:var(--ink-3);stroke-width:2;stroke-dasharray:3 4}
.dr-need{fill:var(--bg-soft);stroke:var(--accent-ink);stroke-width:2.2}
.dr-mine{fill:var(--accent-ink)}
.dr-pick{fill:var(--ink)}
.dr-tie{stroke:var(--ink-3);opacity:.6;stroke-linecap:round}
.dr-tie.mine{stroke:var(--accent-ink);opacity:1}
.dr-tie.mine.strained{stroke:var(--error-ink)}
.dr-key{display:flex;flex-wrap:wrap;gap:6px 18px;margin:12px 0 0;padding:0;list-style:none;font-size:13px;color:var(--ink-2)}
.dr-key i{display:inline-block;width:11px;height:11px;margin-right:6px;vertical-align:-1px}
.dr-key .k-need{border:2px solid var(--accent-ink);border-radius:50%}
.dr-key .k-pick{background:var(--ink)}
.dr-key .k-mine{background:var(--accent-ink)}
.dr-key .k-big{border:2px dashed var(--ink-3);border-radius:50%}

/* The blur of the bars at the screen edges sits on a layer behind them, not on the bar itself:
   Safari on iOS stops recolouring its own bars after a theme switch when a fixed or sticky
   element at the edge carries a backdrop-filter (found in the simulator, iOS 27). */
.topbar::before,.botbar::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
/* Notes on news (start page): filled by site.js from /api/news; the section stays hidden while there are none. */
.nt-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:40px 48px}
.nt{min-width:0;padding-top:18px;border-top:2px solid #3498db}
.nt-meta{margin:0 0 10px;font-size:14px;color:var(--ink-3)}
.nt-h{margin:0 0 10px;font-size:18px;line-height:1.35;font-weight:600;overflow-wrap:anywhere}
.nt-h a{color:inherit;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}
.nt-h a:hover{text-decoration-color:currentColor}
.nt-text{margin:0;color:var(--ink-2);white-space:pre-line;overflow-wrap:anywhere}
.nt-more{margin:40px 0 0}
.nt-more-btn{font:inherit;color:var(--ink);background:none;border:1px solid var(--line);border-radius:6px;padding:10px 18px;cursor:pointer}
.nt-more-btn:hover{background:var(--bg-soft)}
