@font-face {
  font-display: swap; font-family: "Oslo Sans"; font-style: normal; font-weight: 300;
  src: url("../fonts/OsloSans-Light.woff2") format("woff2");
}
@font-face {
  font-display: swap; font-family: "Oslo Sans"; font-style: normal; font-weight: 400;
  src: url("../fonts/OsloSans-Regular.woff2") format("woff2");
}
@font-face {
  font-display: swap; font-family: "Oslo Sans"; font-style: normal; font-weight: 500;
  src: url("../fonts/OsloSans-Medium.woff2") format("woff2");
}
@font-face {
  font-display: swap; font-family: "Oslo Sans"; font-style: normal; font-weight: 700;
  src: url("../fonts/OsloSans-Bold.woff2") format("woff2");
}
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface2: #F9F9F9;
  --cool: #F1FDFF;
  --blue-1000: #2A2859;
  --blue-700: #6A698B;
  --blue: #6FE9FF;
  --cyan: #6FE9FF;
  --link: #1F42AA;
  --cta-bg: #1F42AA;
  --green: #43F8B6;
  --dark-green: #034B45;
  --light-green: #C7F6C9;
  --beige: #F8F0DD;
  --beige-dark: #D0BFAE;
  --gray: #666666;
  --border: #E6E6E6;
  --yellow: #F9C66B;
  --red: #FF8274;
  --light-blue: #B3F5FF;
  --white: #FFFFFF;
  --black: #2C2C2C;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Oslo Sans", arial, sans-serif;
  background: var(--bg); color: var(--blue-1000);
  font-weight: 300; line-height: 1.55; font-size: 1rem;
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-1000);
  color: var(--white);
  padding: 12px 24px;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  font-weight: 500;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* Focus styles for all interactive elements */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-1000); }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

header { padding: 22px 0; }
header .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.logo { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; text-decoration: none; color: var(--blue-1000); display: inline-flex; align-items: center; gap: 10px; }
.logo span { color: var(--link); }
.logo .logo-text { display: none; }
.logo img { height: 60px; width: auto; display: block; }
@media (max-width: 768px) {
  .logo img { height: 40px; }
}
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
nav a.sec { color: var(--blue-700); font-size: 0.95rem; font-weight: 400; text-decoration: none; padding: 8px 12px; min-height: 44px; display: inline-flex; align-items: center; }
nav a.sec:hover { color: var(--link); text-decoration: underline; }
nav a.sec:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.lang { border: 1px solid var(--border); background: var(--surface); color: var(--blue-700); font-family: inherit; font-size: 0.85rem; padding: 8px 16px; border-radius: 20px; cursor: pointer; min-height: 44px; }
.lang:focus, .lang:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.hero { padding: 84px 0 76px; text-align: center;
  background: linear-gradient(180deg, var(--cool) 0%, var(--bg) 70%); }
.hero .flag { font-size: 1.1rem; display: block; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.12; max-width: 760px; margin: 0 auto 20px; }
.hero h1 em { font-style: normal; color: var(--link); }
.hero p.tag { color: var(--blue-700); font-size: 1.22rem; max-width: 580px; margin: 0 auto 36px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta { display: inline-block; background: var(--cta-bg); color: var(--white);
  font-weight: 500; padding: 16px 40px; border-radius: 8px; font-size: 1.05rem;
  text-decoration: none; box-shadow: 0 2px 0 rgba(42,40,89,.15); min-height: 48px; min-width: 48px; }
.cta:hover { background: var(--cta-bg); filter: brightness(1.15); color: var(--white); }
.cta:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.cta.secondary { background: transparent; color: var(--link); border: 1px solid var(--link); box-shadow: none; }
.cta.secondary:hover { border-color: var(--blue-1000); color: var(--blue-1000); background: transparent; }
.hero .note { display: block; margin-top: 16px; color: var(--gray); font-size: 0.85rem; }
.stats { display: flex; justify-content: center; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.badges span { background: var(--beige); border-radius: 20px; padding: 6px 14px; font-size: 0.8rem; font-weight: 500; color: var(--blue-1000); display: inline-flex; align-items: center; }
.stats div b { display: block; font-size: 1.5rem; font-weight: 700; }
.stats div span { color: var(--gray); font-size: 0.85rem; }

section { padding: 68px 0; }
section.alt { background: var(--beige); }
section.cool { background: var(--cool); }
h2 { font-size: 1.7rem; margin-bottom: 8px; }
.sub { color: var(--blue-700); margin-bottom: 36px; max-width: 640px; }
.grp-h { font-size: 1.3rem; margin: 48px 0 4px; }
.grp-sub { color: var(--blue-700); font-size: 0.95rem; margin-bottom: 22px; max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px; transition: box-shadow 0.2s ease; }
.card:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
.card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
section:not(.alt):not(.cool) .card { background: var(--surface2); }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--blue-700); font-size: 0.95rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tab { border: 1px solid var(--border); background: var(--surface); padding: 12px 20px; border-radius: 20px; cursor: pointer; font-family: inherit; font-size: 0.9rem; color: var(--blue-700); font-weight: 400; min-width: 140px; text-align: center; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.tab.active { background: var(--blue-1000); color: var(--white); border-color: var(--blue-1000); }
.tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.person .ph { width: 48px; height: 48px; border-radius: 50%; background: var(--beige); color: var(--blue-700); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--border); }
.people { display: flex; overflow-x: auto; flex-wrap: nowrap; gap: 16px; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--beige-dark) transparent; }
.people::-webkit-scrollbar { height: 8px; }
.people::-webkit-scrollbar-track { background: transparent; }
.people::-webkit-scrollbar-thumb { background-color: var(--beige-dark); border-radius: 4px; }
.people.cat[hidden] { display: none; }
.person { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; width: 260px; flex: 0 0 auto; transition: box-shadow 0.2s ease; }
.person:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.person:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
.person img { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; background: var(--beige); object-fit: cover; border: 1px solid var(--border); }
.person b.name { display: block; font-size: 0.98rem; }
.person a.handle { display: block; font-size: 0.82rem; color: var(--blue-700); margin-bottom: 6px; text-decoration: none; }
.person a.handle:hover { color: var(--link); text-decoration: underline; }
.person a.handle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.person p.bio {
  color: var(--blue-700);
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

ol.steps { list-style: none; counter-reset: s; max-width: 620px; }
ol.steps li { counter-increment: s; position: relative; padding: 0 0 26px 56px; }
ol.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--link); color: var(--link);
  display: flex; align-items: center; justify-content: center; font-weight: 700; }
ol.steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 18px; top: 42px; bottom: 2px; width: 2px; background: var(--beige-dark); }
ol.steps h3 { font-size: 1.05rem; margin-bottom: 4px; }
ol.steps p { color: var(--blue-700); font-size: 0.95rem; }

table.apps { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
table.apps th { text-align: start; padding: 14px 18px; background: #2A2859; color: #FFFFFF; font-weight: 500; font-size: 0.8rem; letter-spacing: 0.06em; }
table.apps td { text-align: start; padding: 14px 18px; border-top: 1px solid var(--border); font-size: 0.95rem; color: var(--blue-700); }
table.apps td:first-child { font-weight: 700; color: var(--blue-1000); }
.app-tip { color: var(--blue-700); margin-bottom: 20px; font-size: 0.95rem; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 12px; padding-bottom: 24px; }
.app-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.app-card h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--blue-1000); }
.app-rec { margin-bottom: 14px; padding-bottom: 14px; }
.app-rec:not(:last-child) { border-bottom: 1px solid var(--border); }
.app-name { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 1rem; margin-bottom: 4px; color: var(--blue-1000); }
.app-desc { color: var(--blue-700); font-size: 0.9rem; margin-bottom: 6px; }
.badge { display: inline-block; background: var(--beige); color: var(--blue-1000); font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; }

/* App download links focus */
.app-rec a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.lang-wrapper { text-align: center; padding: 20px 0; background: var(--surface); border-top: 1px solid var(--border); }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; padding: 18px 22px; }
details summary { cursor: pointer; font-weight: 500; padding: 4px 0; min-height: 44px; display: list-item; }
details summary:hover { color: var(--link); }
details summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; border-radius: 8px; }
details p { color: var(--blue-700); margin-top: 10px; font-size: 0.95rem; }

.mayor { display: flex; gap: 24px; align-items: center; background: var(--dark-green); color: #FFFFFF; border-radius: 18px; padding: 36px; flex-wrap: wrap; }
.mayor .avatar { width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.mayor img.avatar { background: var(--green); }
.mayor h3 { color: #FFFFFF; font-size: 1.15rem; margin-bottom: 6px; }
.mayor p { color: #C7FDE9; font-size: 0.95rem; }
.mayor a { color: var(--green); }

footer { padding: 44px 0 64px; color: var(--gray); font-size: 0.85rem; text-align: center; }
footer .chip { display: inline-block; background: var(--beige); border-radius: 20px; padding: 4px 14px; margin-bottom: 14px; color: var(--blue-1000); font-weight: 500; font-size: 0.8rem; }
footer a { color: var(--blue-700); }
.footer-center { text-align: center; }
.sub-center { margin-left: auto; margin-right: auto; }
.footer-tagline { margin-top: 8px; }
