/* RAW LOGIC. REAL SYSTEMS. | Created by Christos Fragoulis */
:root {
  color-scheme: light;
  --navy: #06233d;
  --ink: #102c46;
  --muted: #60738a;
  --blue: #337ec5;
  --line: #dce5ed;
  --paper: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f8f7f3;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button, a, select, input { outline-offset: 4px; }
:focus-visible { outline: 3px solid #3088df; }
[hidden] { display: none !important; }
summary { cursor: pointer; font-weight: 700; }
.connect-panel > summary { font-size: 19px; line-height: 1.4; }
.connect-panel[open] > summary { margin-bottom: 20px; }
.permission-details > summary { color: var(--blue); font-size: 14px; }
.context-apps { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 12px; }
.context-app { display: grid; gap: 8px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.context-app:hover { border-color: var(--blue); background: #eef7ff; }
.context-app span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.join-panel a { color: var(--blue); }
.skip-link { position: fixed; top: -70px; left: 12px; z-index: 10; background: white; padding: 12px; }
.skip-link:focus { top: 12px; }
.topbar {
  display: flex; align-items: center; gap: 26px;
  min-height: 86px;
  padding: 12px max(30px, calc((100vw - 1320px) / 2));
  background: linear-gradient(115deg, #06233d, #092b47 58%, #08233d);
  color: white;
}
.one-logo { display: block; width: 150px; height: auto; object-fit: contain; }
.platform-label { color: #93cbef; font-size: 12px; letter-spacing: .26em; white-space: nowrap; }
.reference-link { margin-left: auto; color: #a7c9e6; text-decoration: none; font-size: 14px; }
.reference-link:hover, .creator:hover { text-decoration: underline; }
main {
  max-width: 1372px;
  min-height: calc(100vh - 158px);
  margin: auto;
  padding: 30px 26px 64px;
}
.test-notice:empty { display: none; }
.test-notice { padding: 12px; border: 1px solid #dbc372; border-radius: 8px; background: #fff0bf; font-size: 13px; }
.page-heading { margin: 0 0 26px; }
.eyebrow { margin: 0 0 12px; color: #2286ce; font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin: 0 0 8px; font-size: clamp(30px, 3.3vw, 40px); line-height: 1.15; letter-spacing: -.035em; }
h2 { margin: 0 0 16px; font-size: 19px; line-height: 1.35; letter-spacing: -.015em; }
.page-heading > p:last-child { margin: 0; color: #536981; font-size: 15px; line-height: 1.6; }
.layout { display: grid; grid-template-columns: minmax(320px, 368px) minmax(0, 1fr); gap: 22px; align-items: start; }
.sidebar, .context-panel { display: grid; gap: 20px; min-width: 0; }
.panel { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 12px 36px rgba(25, 45, 64, .035); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-title h2 { margin: 0; }
.text-button { padding: 6px 0 6px 8px; border: 0; background: transparent; color: #286dba; font-size: 13px; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.business-list { display: grid; gap: 10px; margin-top: 18px; }
.business-button { display: grid; gap: 6px; width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); text-align: left; }
.business-button strong { font-size: 15px; }
.business-button small { color: var(--muted); overflow-wrap: anywhere; }
.business-button:hover { border-color: #83b6e0; }
.business-button[aria-pressed="true"] { border-color: var(--blue); background: #eef7ff; box-shadow: inset 3px 0 var(--blue); }
.muted { color: var(--muted); font-size: 13px; line-height: 1.65; }
.connections-empty { display: flex; align-items: center; gap: 14px; margin: 24px 0 2px; }
.empty-icon { display: grid; flex: 0 0 62px; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #eef3f8; }
.empty-icon svg { width: 29px; height: 29px; fill: none; stroke: #416487; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.connect-panel h2 { margin-bottom: 25px; }
.connect-panel label, .context-fields label { display: block; margin: 18px 0 8px; font-size: 12px; font-weight: 700; line-height: 1.5; }
select, input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #c3ced9; border-radius: 9px; background: white; color: var(--ink); }
select:focus, input:focus { border-color: var(--blue); }
input::placeholder { color: #8494a6; }
.connection-help { margin: 16px 0 25px; padding-left: 14px; border-left: 2px solid #d4e6f4; }
small#factor-help { display: block; margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
#google-button { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 25px; }
.welcome-panel { min-height: 730px; padding: 42px 38px 38px; text-align: center; overflow: hidden; }
.hero-illustration { position: relative; width: min(100%, 680px); height: 245px; margin: 0 auto 19px; }
.hero-halo { position: absolute; inset: 16px 46px 17px; border-radius: 47% 54% 31% 42%; background: linear-gradient(125deg, #f0f7fb, #e6f1f9 55%, #f4f8fb); transform: rotate(-3deg); }
.orbit { position: absolute; z-index: 1; width: 112px; height: 85px; border: 3px dotted #9fc2e4; border-radius: 50%; opacity: .85; }
.orbit-left { left: 14%; top: 105px; transform: rotate(25deg); border-right-color: transparent; border-top-color: transparent; }
.orbit-right { right: 16%; top: 61px; transform: rotate(-27deg); border-left-color: transparent; }
.hero-tile { position: absolute; z-index: 3; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #e7eef4; border-radius: 16px; background: rgba(255,255,255,.88); box-shadow: 0 8px 23px rgba(67, 105, 141, .07); }
.hero-tile svg { width: 30px; height: 30px; fill: none; stroke: #0b3458; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-building { left: 13%; top: 74px; }
.hero-pin { right: 14%; top: 33px; }
.hero-people { right: 7%; bottom: 33px; }
.hero-laptop { position: absolute; z-index: 4; left: 50%; bottom: 17px; width: 245px; transform: translateX(-50%); }
.hero-screen { display: grid; place-items: center; height: 156px; padding: 23px; border: 9px solid #8ca9c8; border-bottom-width: 11px; border-radius: 13px 13px 4px 4px; background: #092b47; box-shadow: 0 9px 18px rgba(25, 63, 95, .14); }
.hero-screen img { display: block; width: 100%; height: auto; max-height: 85px; object-fit: contain; }
.hero-base { position: relative; left: -25px; width: 295px; height: 10px; border-radius: 2px 2px 14px 14px; background: linear-gradient(#9cbad7, #6e96bd); }
.hero-base::after { content: ""; position: absolute; left: 112px; top: 0; width: 70px; height: 4px; border-radius: 0 0 6px 6px; background: #bfd2e3; }
.hero-ground { position: absolute; right: 6%; bottom: 15px; left: 6%; height: 2px; background: linear-gradient(90deg, transparent, #e4e7e6 16%, #e4e7e6 84%, transparent); }
.welcome-panel h2 { margin: 0 auto 11px; font-size: clamp(23px, 2.3vw, 29px); }
.welcome-panel > p { max-width: 580px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.7; }
.welcome-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin: 38px 0 0; padding: 0; list-style: none; }
.welcome-steps li { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.step-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #5c98dc; color: white; font-size: 16px; font-weight: 700; }
.welcome-steps svg { width: 34px; height: 34px; margin-top: 4px; fill: none; stroke: #42688d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.welcome-steps strong { color: var(--ink); font-size: 14px; }
.welcome-steps li > span:last-child { max-width: 210px; }
.context-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 18px; }
.context-heading h2 { margin: 0; font-size: 25px; }
.context-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
.primary-button, .secondary-button { display: inline-block; padding: 10px 15px; border: 1px solid #246aa9; border-radius: 8px; background: #246aa9; color: white; font-size: 13px; text-decoration: none; }
.primary-button:hover { background: #15598f; }
.secondary-button { border-color: #b5c8d1; background: white; color: var(--ink); }
.secondary-button:hover { background: #f0f5f9; }
.permission-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.permission { padding: 6px 9px; border: 1px solid #dce5e9; border-radius: 5px; background: #eff3f5; font-size: 11px; overflow-wrap: anywhere; }
.message { margin: 0 0 20px; font-size: 14px; line-height: 1.6; }
.message:empty { display: none; }
.message.error { padding: 12px; border-left: 3px solid #b63c47; border-radius: 0 7px 7px 0; background: #fff1f1; color: #8d2730; }
dl { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; margin: 20px 0 0; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px max(30px, calc((100vw - 1320px) / 2)); background: var(--navy); color: #a9c2d0; font-size: 12px; }
.creator { display: flex; align-items: center; gap: 13px; color: white; font-size: 10px; letter-spacing: .04em; text-decoration: none; }
.creator small { display: block; margin-top: 5px; color: #c2d5df; font-size: 10px; letter-spacing: 0; }
.creator img { object-fit: contain; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-panel { min-height: 0; }
  .context-panel { grid-column: 1; }
  .context-fields { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .topbar { min-height: 76px; gap: 12px; padding: 12px 18px; }
  .one-logo { width: 125px; }
  .platform-label { display: none; }
  .reference-link { font-size: 12px; text-align: right; }
  main { padding: 26px 16px 42px; }
  .sidebar { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .welcome-panel { padding: 24px 18px 30px; }
  .hero-illustration { height: 205px; }
  .hero-halo { inset: 21px 5px 22px; }
  .hero-laptop { bottom: 18px; transform: translateX(-50%) scale(.77); transform-origin: bottom center; }
  .hero-tile { transform: scale(.75); }
  .hero-building { left: 0; }
  .hero-pin { right: 0; }
  .hero-people { right: 0; bottom: 10px; }
  .welcome-steps { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .welcome-steps li > span:last-child { max-width: 300px; }
  .context-heading { display: block; }
  .context-heading > .secondary-button { margin-top: 10px; }
  .section-title { flex-wrap: wrap; }
  dl { grid-template-columns: 1fr; gap: 6px; }
  dd { margin-bottom: 10px; }
  footer { flex-direction: column; align-items: start; padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Platform flow: permanent role badge (Πελάτης · Επιχείρηση · Διαχειριστής ONE). */
.one-role-badge { display: inline-flex; align-items: center; padding: 3px 11px; border: 1px solid currentColor; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .02em; line-height: 1.4; white-space: nowrap; }
.one-role-badge[hidden], .one-role-switch[hidden] { display: none; }

/* Platform flow step 3: «Ξεκίνα εδώ» on Home. */
.start-here { margin-top: 18px; }
.start-here[hidden] { display: none; }
.start-here-steps { margin: 8px 0 0; padding-left: 1.4em; }
.start-here-steps li { margin: 4px 0; }
.start-here-steps li[data-state="DONE"] { opacity: .65; }
.start-here-steps li[aria-current="step"] strong { text-decoration: underline; }
