/* The customers' portal (src/portal.js): dark, in the colours of the AOS Suite mark. Rubik, self-hosted. */
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('fonts/rubik-hebrew.woff2') format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('fonts/rubik-latin.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; }

:root {
  color-scheme: dark;
  --bg: #2A2E3F; --bg-2: #24283A; --surface: #353A4F; --ink: #F1F1F6; --ink-2: #D2D5E0; --muted: #A9AEC2;
  --line: #454B63; --deep: #1A1D28; --bar: #1F2232; --tile: #1D2030;
  --l1: #7FB2F0; --l2: #9BE0C0; --l3: #F0C58A; --l4: #E59AB0;
  --l1s: #7FB2F033; --l2s: #9BE0C033; --l3s: #F0C58A33; --l4s: #E59AB033;
  --r-m: 16px; --r-l: 24px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--deep); color: var(--ink); font-family: Rubik, system-ui, sans-serif; line-height: 1.5; }
main { flex: 1; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--l2); outline-offset: 3px; border-radius: 8px; }

/* The mark and the name, as on the website */
.mark { display: inline-flex; align-items: center; gap: 12px; direction: ltr; }
.mark .name { height: 22px; width: auto; aspect-ratio: 513 / 79; }
.top .mark .name { height: 18px; }
.aos { fill: var(--ink); } .suite { fill: var(--ink-2); } .tile { fill: var(--tile); }
.spokes { fill: none; stroke: var(--l1); stroke-opacity: .55; stroke-width: 2.4; }
.ring { fill: none; stroke: var(--l2); stroke-opacity: .35; stroke-width: 2; }
.n1 { fill: var(--l1); } .n2 { fill: var(--l2); } .n3 { fill: var(--l3); } .n4 { fill: var(--l4); }
.glow-in { stop-color: var(--l3); stop-opacity: .95; } .glow-out { stop-color: var(--l3); stop-opacity: 0; }

/* ---- Sign-in ---- */
.login { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 980px) { .login { grid-template-columns: 5fr 6fr; } }
.signin { position: relative; display: grid; place-items: center; padding: 48px 24px; background: var(--bg); }
.signin::after { content: ''; position: absolute; inset-block: 0; inset-inline-end: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--l2), var(--l1), transparent); opacity: .5; }
.card { display: grid; gap: 22px; width: min(420px, 100%); }
.card h1 { margin: 12px 0 0; font-size: 34px; font-weight: 700; line-height: 1.2; }
.sub { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.cta { display: grid; place-items: center; height: 52px; border-radius: 999px; background-color: var(--l1); background-image: linear-gradient(270deg, var(--l2), var(--l1)); color: var(--tile); font-weight: 700; font-size: 17px; text-decoration: none; transition: translate .25s var(--ease), filter .25s var(--ease); }
.cta:hover { translate: 0 -2px; filter: brightness(1.05); }
.cta:active { translate: 0 0; }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.note svg { flex: none; margin-top: 3px; fill: none; stroke: var(--l2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.news { position: relative; isolation: isolate; display: grid; align-content: center; gap: 28px; padding: 56px clamp(24px, 5vw, 72px); overflow: hidden; }
.news::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('ground.webp') center 35% / cover; }
.news::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #1A1D28cc, #1A1D28ee 60%, #1A1D28); }
.kicker { margin: 0; color: var(--l2); font-size: 15px; font-weight: 600; }
.big { margin: 0; max-width: 18em; font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.25; }
.items { display: grid; gap: 14px; max-width: 640px; margin: 0; padding: 0; list-style: none; }
.item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-m); background: #353A4FB3; }
.item img, .item .glyph { width: 44px; height: 44px; }
.item .t { margin: 0; font-size: 17px; font-weight: 600; }
.item .d { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.item .when { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.badge { display: inline-block; padding: 2px 10px; margin-inline-start: 6px; border-radius: 999px; background: var(--l2s); color: var(--l2); font-size: 12px; font-weight: 600; vertical-align: 2px; }

/* ---- Workspace ---- */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px; min-height: 72px; padding: 0 clamp(16px, 4vw, 48px); background-color: var(--bar); background-image: linear-gradient(90deg, var(--l2s), var(--l1), var(--l3), var(--l4s)); background-size: 100% 1px; background-repeat: no-repeat; background-position: bottom; }
.home { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.who { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; color: var(--ink-2); font-size: 15px; }
.email { overflow-wrap: anywhere; }
.account { color: var(--ink); font-weight: 600; }
.account::after { content: '·'; margin-inline-start: 14px; color: var(--muted); }
.out { display: inline-grid; place-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.out:hover { background: #ffffff14; }
.ws { background: var(--bg); }
.hero { position: relative; isolation: isolate; padding: 44px clamp(16px, 4vw, 48px) 28px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('ground.webp') center 30% / cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #2A2E3F99, #2A2E3FEE 70%, var(--bg)); }
.hello { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 700; }
.hello em { font-style: normal; background-image: linear-gradient(270deg, var(--l2), var(--l1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 8px 0 0; max-width: 46em; color: var(--ink-2); font-size: 17px; }
.link { color: var(--l2); }
.wrap { display: grid; gap: 32px; padding: 8px clamp(16px, 4vw, 48px) 64px; }
.wrap.first { padding-block-start: 36px; }
.sec-title { margin: 0 0 18px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; }
.sec h2, .panel h2 { margin: 0 0 14px; color: var(--ink-2); font-size: 18px; font-weight: 600; }
.empty { margin: 0; color: var(--muted); }
.apps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.app { --accent: var(--l1); --soft: var(--l1s); position: relative; display: grid; gap: 14px; padding: 22px; overflow: hidden; border: 1px solid var(--soft); border-radius: var(--r-l); background-color: #353A4F9E; background-image: radial-gradient(120% 90% at 100% 0%, var(--soft), transparent 55%), linear-gradient(160deg, #353A4F66, #1A1D288C); box-shadow: inset 0 1px 0 #F1F1F614; color: inherit; text-decoration: none; transition: translate .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.app[data-accent='l1'] { --soft: var(--l1s); } .app[data-accent='l2'] { --soft: var(--l2s); } .app[data-accent='l3'] { --soft: var(--l3s); } .app[data-accent='l4'] { --soft: var(--l4s); }
.app[data-accent='l2'] { --accent: var(--l2); } .app[data-accent='l3'] { --accent: var(--l3); } .app[data-accent='l4'] { --accent: var(--l4); }
.app::before { content: ''; position: absolute; inset-inline: 22px; inset-block-start: 0; height: 2px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .8; transition: inset-inline .25s var(--ease), opacity .25s var(--ease); }
a.app:hover::before { inset-inline: 0; opacity: 1; }
a.app:hover { translate: 0 -4px; border-color: var(--accent); box-shadow: inset 0 1px 0 #F1F1F614, 0 22px 50px -24px var(--accent); }
.app img { filter: drop-shadow(0 8px 18px #0006); }
.app img { width: 64px; height: 64px; }
.app .n { margin: 0; font-size: 21px; font-weight: 600; direction: ltr; text-align: right; }
.app .q { margin: 0; min-height: 3.1em; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--l2); box-shadow: 0 0 0 4px var(--l2s); }
.open { padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--tile); font-size: 14px; font-weight: 600; }
.open.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.file { padding: 6px 12px; border-radius: 999px; background: var(--l1s); color: var(--l1); font-size: 13px; font-weight: 600; }
.app.more { border-style: dashed; background-image: none; background-color: transparent; }
.app.more img { opacity: .7; filter: grayscale(.6); }
.app.ended { opacity: .7; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-2); }
.items.small .item { background: var(--surface); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px clamp(16px, 4vw, 48px); background: var(--deep); color: var(--muted); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
