/* Exo 2, SIL OFL 1.1. Locally hosted Latin/Spanish subsets. */
@font-face {
  font-family: "Exo 2";
  src: url("./assets/fonts/exo-2/exo-2-regular-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Exo 2";
  src: url("./assets/fonts/exo-2/exo-2-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
/* Start surfaces are scoped to the entry page; operational and print styles stay shared. */
.start-login, #home {
  --start-ink: #143442;
  --start-muted: #5a7078;
  --start-accent: #087d7c;
  --start-display: "Exo 2", "Segoe UI", system-ui, sans-serif;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.start-login { padding: 24px; background: #ecf7fb; min-height: 100svh; }
.login-shell { display: grid; grid-template-columns: 1.12fr 1fr; width: min(1320px, 100%); min-height: min(820px, calc(100svh - 48px)); background: #fff; border: 1px solid #dce5e3; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 80px #173a4410; }
.login-story { position: relative; display: flex; flex-direction: column; padding: 42px 48px 28px; background: linear-gradient(135deg, #e1fbf6, #e7f3ff); color: var(--start-ink); overflow: hidden; }
.start-wordmark { position: relative; z-index: 1; display: inline-flex; align-items: baseline; width: fit-content; max-width: 100%; padding: 5px 3px 11px 0; color: #263f4b; text-decoration: none; font-family: var(--start-display); font-size: clamp(20px, 2.3vw, 30px); font-style: italic; font-weight: 800; letter-spacing: -.055em; line-height: 1.3; white-space: nowrap; }
.start-wordmark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: linear-gradient(90deg, #00cbb6, #159cff 72%, transparent); transform: skewX(-20deg); }
.wordmark-electric { background: linear-gradient(170deg, #26353d 25%, #657c86 52%, #243e4b 75%); }
.wordmark-access { background: linear-gradient(135deg, #008b9b, #0079d4); }
.wordmark-electric, .wordmark-access { background-clip: text; -webkit-background-clip: text; color: transparent; }
.wordmark-gestion { color: #285f7d; font-weight: 650; font-size: .85em; letter-spacing: -.045em; }
@media (forced-colors: active) { .wordmark-electric, .wordmark-access { background: none; color: LinkText; } }
.login-story-copy { position: relative; z-index: 1; margin-top: 30px; }
.start-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 650; letter-spacing: .16em; }
.start-kicker > span { width: 6px; height: 6px; background: #00bda9; border-radius: 50%; box-shadow: 0 0 0 4px #00cbb51a; }
.login-story h2 { font-family: var(--start-display); font-style: italic; font-size: clamp(35px, 3.6vw, 52px); font-weight: 600; line-height: 1.14; letter-spacing: -.035em; margin: 21px 0 16px; }
.login-story h2 > span { color: #087baf; }
.login-story-copy p { font-size: 14px; line-height: 1.8; color: #506b67; margin: 0; }
.brand-scene { position: relative; flex: 1; min-height: 255px; display: grid; place-items: center; margin: 8px -10px; }
.brand-logo-tile { position: relative; z-index: 1; width: 232px; aspect-ratio: 1; border: 1px solid #ffffff; border-radius: 38px; background: #fff; transform: rotate(-9deg); box-shadow: 12px 26px 55px #315d4b18; animation: brand-arrive 1.1s cubic-bezier(.16,1,.3,1) both; transition: transform .5s; }
.brand-logo-tile img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.brand-scene:hover .brand-logo-tile { transform: rotate(-3deg) translateY(-5px); }
.brand-orbit { color: #00bda9; position: absolute; width: 310px; height: 220px; border: 1px solid #1dabc76b; border-radius: 50%; transform: rotate(-32deg); }
.orbit-two { width: 390px; height: 260px; transform: rotate(-32deg); border-style: dashed; border-color: #168feb4a; }
.scene-label { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; background: #ffffffeb; padding: 12px 17px; border-radius: 9px; color: #315b56; font-size: 11px; box-shadow: 0 5px 20px #173a4408; animation: start-enter .7s .2s both; }
.scene-label-one { top: 22%; right: 3%; transform: rotate(5deg); }
.scene-label-one i { width: 6px; height: 6px; background: #078a88; border-radius: 50%; }
.scene-label-two { bottom: 16%; left: 1%; transform: rotate(-4deg); }
.scene-label-two > span { font-size: 18px; color: #087d7c; }
.scene-coordinate { position: absolute; right: 3%; bottom: 10%; font-size: 9px; letter-spacing: .18em; color: #087baf; writing-mode: vertical-rl; }
.login-story-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 14px; border-top: 1px solid #2b5d5020; padding-top: 20px; font-size: 11px; color: #506b67; }
.login-story-footer > span { font-size: 21px; }
.login-form-side { padding: 38px 48px 28px; display: flex; flex-direction: column; align-items: center; color: var(--start-ink); }
.login-edition { align-self: flex-end; font-size: 9px; letter-spacing: .12em; color: #637c81; }
.login-edition > span { padding: 0 9px; color: #b2c6c5; }
.start-login .login-card { margin: auto 0; padding: 42px 0; width: min(350px, 100%); border-radius: 0; box-shadow: none; background: transparent; }
.login-welcome-mark { display: grid; place-items: center; width: 46px; height: 46px; background: #dcf7fb; border: 1px solid #a7dfec; border-radius: 14px; color: #087fa9; font-size: 27px; margin-bottom: 30px; }
.start-login .login-card .eyebrow { color: #58746f; font-size: 9px; letter-spacing: .14em; font-weight: 600; margin: 0 0 13px; }
.start-login .login-card h1 { font-family: var(--start-display); font-size: clamp(28px, 2.9vw, 36px); font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.start-login .login-card h1 > span { color: #0086bc; }
.start-login .login-card .login-intro { font-size: 13px; line-height: 1.7; margin: 13px 0 34px; color: #637880; }
.start-login .login-card label { font-size: 12px; font-weight: 550; color: #28484e; gap: 9px; margin-top: 20px; }
.start-login .login-card input { padding: 14px; border-radius: 9px; border: 1px solid #dce5e3; background: #fcfdfc; font-size: 13px; }
.start-login .login-card input::placeholder { color: var(--muted); }
.start-login .login-card input:focus { border-color: #13877e; box-shadow: 0 0 0 3px #13877e12; }
.login-password-field { position: relative; }
.start-login .login-card #login-pass { padding-right: 70px; }
#login-show-password { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: #476a68; font-size: 11px; cursor: pointer; }
#login-show-password:hover { background: #eaf3ef; }
.start-login .account-login-link { width: fit-content; margin: 15px 0 25px auto; text-align: right; font-size: 11px; font-weight: 500; color: #41615e; text-underline-offset: 3px; }
.start-login #login-button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 15px 18px; border: 1px solid #087d9c; border-radius: 9px; background: linear-gradient(115deg, #087c8b, #0876bd); color: #fff; box-shadow: none; font-size: 13px; font-weight: 550; cursor: pointer; transition: background .2s, transform .2s; }
.start-login #login-button:hover { background: linear-gradient(115deg, #086d7b, #0865a4); transform: translateY(-1px); }
.start-login #login-button > span:last-child { font-size: 19px; }
.start-login #login-button:disabled { cursor: wait; opacity: .65; transform: none; }
.start-login .login-card .login-status { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: #8c4536; }
.login-status:empty { display: none; }
.login-private { display: flex; justify-content: center; align-items: center; gap: 7px; color: #708481; font-size: 10px; margin-top: 22px; }
.login-private > span { font-size: 17px; }
.login-bottom-note { color: #8b9b9c; font-size: 10px; }
/* Authenticated home */
#home { padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--start-ink); }
#home .home-welcome { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; padding: 44px 38px; min-height: 300px; background: linear-gradient(135deg, #e1fbf6, #e7f3ff); border: 1px solid #d4e3db; border-radius: 20px; overflow: hidden; }
.home-welcome-copy { position: relative; z-index: 1; }
#home .home-welcome h3 { font-family: var(--start-display); font-style: italic; font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; margin: 22px 0 14px; }
.home-welcome-copy p { color: #57716a; font-size: 14px; line-height: 1.8; margin: 0; }
.home-welcome-action { display: inline-flex; align-items: center; gap: 27px; margin-top: 23px; color: #23554f; font-size: 12px; font-weight: 600; text-decoration: none; }
.home-welcome-action > span { transition: transform .2s; font-size: 18px; }
.home-welcome-action:hover > span { transform: translate(3px, -3px); }
.home-brand-art { position: relative; display: grid; place-items: center; }
.home-brand-art img { position: relative; width: min(210px, 85%); height: auto; border-radius: 28px; transform: rotate(-8deg); box-shadow: 10px 20px 35px #315d4b12; animation: brand-arrive 1s both; transition: transform .4s; }
.home-brand-art:hover img { transform: rotate(-2deg); }
.home-brand-ring { position: absolute; width: 270px; height: 210px; border: 1px solid #168feb5e; border-radius: 50%; transform: rotate(-30deg); }
.home-brand-caption { position: absolute; bottom: -19px; font-size: 8px; letter-spacing: .16em; color: #5b7b70; }
.home-date { position: absolute; top: 20px; right: 25px; font-size: 10px; color: #5b776d; text-transform: capitalize; }
#home .home-overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 32px 0 16px; }
#home .home-overview-heading .eyebrow { color: #718780; font-size: 9px; letter-spacing: .15em; margin: 0 0 7px; }
#home .home-overview-heading h3 { font-family: var(--start-display); margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.home-overview-heading > a { color: #37665f; font-size: 12px; text-decoration: none; }
.home-overview-heading > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-sales-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid #dde6e1; border-radius: 14px; overflow: hidden; background: #dde6e1; font-size: 13px; }
.home-sales-summary:not(:has(.home-metric)) { display: block; background: #f7faf8; padding: 22px; color: #5b776d; }
.home-metric { position: relative; display: grid; gap: 8px; background: #fff; padding: 23px; min-width: 0; }
#home .home-metric strong { font-family: var(--start-display); font-size: 35px; line-height: 1; font-weight: 450; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: #153e40; }
.home-metric > span:last-child { font-size: 11px; color: #637b75; }
.home-metric-index { position: absolute; top: 15px; right: 15px; color: #8ca19a; font-size: 9px; }
.home-summary-note { font-size: 10px; color: #758781; margin: 10px 0 0; line-height: 1.6; }
#home .home-insights { border-top: 0; background: #fff; border: 1px solid #dde6e1; border-radius: 16px; padding: 24px; margin-top: 28px; }
#home .home-insights-header h3 { font-family: var(--start-display); font-size: 21px; font-weight: 600; letter-spacing: -.03em; color: var(--start-ink); }
#home .home-insights-header p { font-size: 12px; line-height: 1.6; }
#home .home-insights-header .eyebrow { font-size: 9px; color: #6d867c; letter-spacing: .13em; }
#home .home-insights-header button { font-size: 11px; padding: 10px 13px; border: 1px solid #d8e4de; border-radius: 8px; background: #fff; box-shadow: none; color: #385e52; }
#home .home-insights-status, #home .home-insights-metrics { font-size: 11px; line-height: 1.7; color: #637970; }
#home .home-insight-card { border-color: #e0e8e2; background: #fbfcfa; border-radius: 11px; padding: 17px; }
#home .home-insight-card h4 { font-size: 15px; font-weight: 600; }
#home .home-insight-card p, #home .home-insight-top { font-size: 11px; }
#home .home-insight-action { color: #087d7c; font-size: 12px; }
.home-section-hint { font-size: 11px; color: #748a81; }
#home .home-section-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
#home .home-section-card { position: relative; display: grid; grid-template-columns: 1fr; align-content: start; gap: 8px; min-height: 165px; padding: 21px; background: #fff; border: 1px solid #dde6e1; border-radius: 13px; color: var(--start-ink); transition: transform .2s, border-color .2s, box-shadow .2s; }
#home .home-section-card:hover { transform: translateY(-4px); border-color: #55bad4; box-shadow: 0 10px 24px #294e4610; }
#home .home-section-card:active { transform: translateY(-1px); }
#home .home-card-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #087aa7; background: #e4f7fb; border-radius: 9px; margin-bottom: 5px; }
.home-card-icon svg { width: 19px; height: 19px; }
#home .home-section-card strong { font-family: var(--start-display); font-size: 14px; font-weight: 600; letter-spacing: -.025em; }
#home .home-card-detail { font-size: 11px; line-height: 1.6; color: #71827c; }
#home .home-card-arrow { position: absolute; right: 18px; top: 21px; font-size: 18px; color: #849c92; transition: transform .2s, color .2s; }
#home .home-section-card:hover .home-card-arrow { color: #087d7c; transform: translate(2px, -2px); }
#home:not(.is-view-hidden) .home-welcome-copy { animation: start-enter .65s both; }
@keyframes start-enter { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes brand-arrive { from { opacity: 0; scale: .92; translate: 0 18px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@media screen and (min-width: 1201px) {
  body:has(#home:not(.is-view-hidden)):has(#app:not(.hidden)) .workspace { align-content: start; background: #f4f9fc; gap: 24px; }
  body:has(#home:not(.is-view-hidden)):has(#app:not(.hidden)) .topbar { border: 0; border-radius: 0; box-shadow: none; padding: 0 0 3px; background: transparent; }
  body:has(#home:not(.is-view-hidden)):has(#app:not(.hidden)) .topbar h2 { font-size: 18px; font-weight: 550; letter-spacing: -.035em; }
  body:has(#home:not(.is-view-hidden)):has(#app:not(.hidden)) .topbar-subtitle { font-size: 11px; }
}
@media (min-width: 1550px) { #home { width: 100%; max-width: 1280px; justify-self: center; } }
@media (max-width: 1000px) {
  .start-login { padding: 16px; }
  .login-shell { grid-template-columns: 1fr 1fr; }
  .login-story { padding: 30px 28px 24px; }
  .login-form-side { padding: 30px 28px 24px; }
  .brand-logo-tile { width: 185px; }
  .brand-orbit { width: 235px; height: 170px; }
  .orbit-two { width: 290px; height: 215px; }
  .scene-label-one { right: -6%; }
}
@media screen and (max-width: 768px) {
  .start-login .login-card :is(#login-user, #login-pass) { font-size: 16px; }
}
@media (max-width: 700px) {
  .start-login { padding: 0; background: #fff; align-items: start; }
  .login-shell { grid-template-columns: 1fr; border: 0; border-radius: 0; min-height: 100svh; box-shadow: none; }
  .login-story { padding: 25px 26px 24px; }
  .start-wordmark { font-size: clamp(20px, 6vw, 25px); }
  .login-story-copy { margin-top: 29px; }
  .login-story h2 { font-size: clamp(30px, 7.5vw, 42px); margin: 15px 0 0; }
  .login-story-copy p, .login-story-footer, .brand-scene, .login-edition { display: none; }
  .login-form-side { padding: 28px 26px 22px; }
  .start-login .login-card { width: min(420px, 100%); padding: 0; }
  .login-welcome-mark { display: none; }
  .start-login .login-card h1 { font-size: 29px; }
  .start-login .login-card .login-intro { margin-bottom: 25px; }
  .login-bottom-note { margin-top: 26px; }
  #home .home-welcome { padding: 42px 23px 26px; min-height: 255px; grid-template-columns: 1.4fr 1fr; }
  #home .home-welcome h3 { font-size: 30px; margin-top: 17px; }
  .home-welcome-copy p { font-size: 12px; }
  .home-brand-art img { border-radius: 18px; width: 140px; max-width: 100%; }
  .home-brand-ring { width: 160px; height: 140px; }
  .home-brand-caption { display: none; }
  .home-date { top: 16px; right: 18px; font-size: 9px; }
  #home .home-section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #home .home-section-card { padding: 17px; }
  .home-section-hint { display: none; }
  #home .home-insights { padding: 18px; }
  .home-sales-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-metric { padding: 21px; }
}
@media (max-width: 420px) {
  #home .home-welcome { grid-template-columns: 1fr; }
  .home-brand-art { display: none; }
  #home .home-section-grid { grid-template-columns: 1fr; }
  #home .home-section-card { grid-template-columns: 34px 1fr; column-gap: 14px; min-height: 100px; padding-right: 38px; }
  #home .home-card-icon { grid-row: 1 / 3; }
  #home .home-card-detail { grid-column: 2; }
  #home .home-overview-heading h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .start-login *, #home * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .start-login, #home { display: none !important; } }
.start-arrow { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: middle; flex: none; }
.login-bottom-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; font-size: 10px; }
.login-bottom-note a { color: #496d65; text-decoration: none; }
.login-bottom-note a:hover { text-decoration: underline; text-underline-offset: 4px; }
#home-shortcuts { scroll-margin-top: 20px; }

/* Motion follows the cyan/blue energy of the original brand. */
.login-story::before, #home .home-welcome::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, #00e7ce24, #159cff12 40%, transparent 70%);
  right: -90px; top: -100px; pointer-events: none;
  animation: brand-light-drift 9s ease-in-out infinite alternate;
}
.brand-orbit::after, .home-brand-ring::after {
  content: ""; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px;
  background: #00c8b6; border-radius: 50%; box-shadow: 0 0 0 5px #00d9c51a, 0 0 18px #00bda977;
}
.orbit-one { animation: brand-orbit-turn 18s linear infinite; }
.orbit-two { animation: brand-orbit-turn 27s linear infinite reverse; }
.orbit-two::after { background: #168feb; box-shadow: 0 0 0 5px #168feb14; }
.brand-logo-tile img { animation: brand-logo-float 6s ease-in-out infinite; }
.scene-label-one { animation: start-enter .7s .2s both, brand-label-float 7s .9s ease-in-out infinite; }
.scene-label-two { animation: start-enter .7s .2s both, brand-label-float 8s 1.3s ease-in-out infinite reverse; }
.home-brand-ring { animation: brand-orbit-turn 22s linear infinite; }
.home-brand-art img { animation: brand-arrive 1s both, brand-logo-float 6s 1s ease-in-out infinite; }
#home .home-metric:nth-child(2) strong, #home .home-metric:nth-child(4) strong { color: #087faf; }
#home .home-section-card:nth-child(3n + 2) .home-card-icon { background: #e5efff; color: #1874cc; }
#home .home-section-card:nth-child(3n) .home-card-icon { background: #dcfaf4; color: #008777; }
#home .home-section-card:hover { background: linear-gradient(120deg, #fff, #f0faff); }
.start-motion-toggle { border: 0; background: transparent; color: #4c6a7a; padding: 7px 0; cursor: pointer; font-size: 10px; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; }
.login-bottom-note { flex-wrap: wrap; }
.login-bottom-note .start-motion-toggle { flex: 1 0 100%; text-align: left; margin-bottom: 4px; }
.home-motion-toggle { position: absolute; right: 25px; bottom: 14px; z-index: 2; }
.start-motion-paused .start-login *, .start-motion-paused #home * { animation-play-state: paused !important; }
.start-motion-paused .login-story::before, .start-motion-paused #home .home-welcome::before { animation-play-state: paused !important; }
@keyframes brand-light-drift { to { transform: translate(-110px, 160px) scale(1.2); } }
@keyframes brand-orbit-turn { from { transform: rotate(-32deg); } to { transform: rotate(328deg); } }
@keyframes brand-logo-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes brand-label-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) {
  .start-login *, #home *, .login-story::before, #home .home-welcome::before { animation: none !important; transition: none !important; }
  .start-motion-toggle { display: none; }
}

/* Decorative reminders of tasks, accounting and sales; never interactive. */
.start-backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.start-backdrop-symbol { position: absolute; width: 76px; height: 76px; opacity: .17; color: #078fbe; animation: brand-label-float 10s ease-in-out infinite; }
.symbol-tasks { top: 14%; right: 9%; transform: rotate(12deg); color: #009e9c; }
.symbol-accounting { top: 49%; right: 7%; transform: rotate(-14deg); animation-delay: -3s; }
.symbol-sales { bottom: 12%; left: 6%; transform: rotate(-8deg); width: 90px; height: 90px; animation-delay: -6s; }
.login-story-footer { position: relative; z-index: 1; }
#home .symbol-tasks { top: 15%; right: 32%; }
#home .symbol-accounting { top: 48%; right: 5%; }
#home .symbol-sales { bottom: 8%; left: 44%; }
@media (max-width: 700px) {
  .start-backdrop-symbol { width: 49px; height: 49px; opacity: .13; }
  .symbol-tasks { top: 9%; right: 9%; }
  .symbol-accounting { top: 44%; right: 7%; }
  .symbol-sales { bottom: 7%; left: auto; right: 25%; width: 55px; height: 55px; }
  #home .symbol-tasks { right: 20%; }
  #home .symbol-sales { left: auto; right: 9%; bottom: 10%; }
}
