/* ==========================================================================
   SEB-M clean static layout
   - no frameworks
   - responsive + accessible defaults
   ========================================================================== */

:root{
  --bg:#ffffff;
  --surface:#f6f7f9;
  --surface-2:#eef2f6;
  --text:#0f172a;
  --muted:#475569;
  --border:#e2e8f0;
  --accent:#0ea5a4;      /* teal */
  --accent-2:#0b3a3a;    /* deep teal */
  --danger:#b91c1c;

  --radius:16px;
  --radius-sm:12px;
  --shadow:0 16px 40px rgba(2, 6, 23, .08);

  --container:1120px;

  --font:system-ui,-apple-system,"Segoe UI",Roboto,Arial,"Noto Sans","Liberation Sans",sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
  -webkit-text-size-adjust:100%;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:3px solid rgba(14,165,164,.35);
  outline-offset:2px;
  border-radius:10px;
}

.container{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
}

.skip-link{
  position:absolute;
  top:-100px;
  left:16px;
  padding:10px 12px;
  background:var(--text);
  color:#fff;
  border-radius:12px;
  z-index:9999;
}
.skip-link:focus{top:16px}

.topbar{
  background:var(--text);
  color:#fff;
  font-size:14px;
}
.topbar__inner{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  flex-wrap:wrap;
}
.topbar__link{opacity:.95}
.topbar__link:hover{opacity:1; text-decoration:underline}

.header{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid var(--border);
}

/* IMPORTANT: fixed mobile menu must be relative to viewport.
   Some mobile browsers treat backdrop-filter/filter as a containing block for position:fixed.
   While the menu is open, we disable the blur to avoid "menu limited by header" bugs. */
body.nav-open .header{
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:220px;
}
.brand__logo{
  width:44px;
  height:44px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(14,165,164,.20), rgba(14,165,164,.02));
  border:1px solid rgba(14,165,164,.25);
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.brand__text{display:flex; flex-direction:column; gap:2px}
.brand__name{font-weight:800; letter-spacing:.2px}
.brand__tag{font-size:12px; color:var(--muted)}

.nav-toggle{
  display:none;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:14px;
  cursor:pointer;
  font-weight:650;
}
.nav-toggle__icon{
  width:18px;
  height:12px;
  display:block;
  position:relative;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  border-radius:999px;
  background:var(--text);
}
.nav-toggle__icon::before{top:0}
.nav-toggle__icon::after{bottom:0}
.nav-toggle__text{font-size:14px}

.nav{
  display:flex;
  align-items:center;
}

/* Mobile bar inside opened nav */
.nav__mobile-bar{display:none}
.nav__mobile-home{
  font-weight:900;
  color:var(--text);
  text-decoration:none;
}
.nav__mobile-home:hover{text-decoration:underline}
.nav__close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-size:22px;
  line-height:1;
}
.nav__close:hover{background:var(--surface); text-decoration:none}
.nav__list{
  display:flex;
  align-items:center;
  gap:10px;
  list-style:none;
  margin:0;
  padding:0;
}

.nav__link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 12px;
  border-radius:12px;
  color:var(--text);
  font-weight:650;
  white-space:normal;
}
.nav__link:hover{
  background:var(--surface);
  text-decoration:none;
}
.nav__item--cta{margin-left:8px}

/* dropdown */
.nav__drop{
  position:relative;
}
.nav__drop > summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
}
.nav__drop > summary::-webkit-details-marker{display:none}
.nav__drop > summary::after{
  content:"▾";
  opacity:.6;
  font-weight:900;
  margin-left:auto;
}
.nav__drop[open] > summary::after{
  content:"▴";
}
.nav__drop[open] > summary{
  background:var(--surface);
}
.nav__menu{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  width:min(340px, 90vw);
  background:#fff;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  border-radius:16px;
  padding:10px;
  display:none;
  gap:2px;
}
.nav__drop[open] > .nav__menu{display:grid}
.nav__sublink{
  padding:10px 12px;
  border-radius:12px;
  color:var(--text);
  font-weight:600;
  font-size:14px;
  white-space:normal;
}
.nav__sublink:hover{background:var(--surface); text-decoration:none}

/* keep dropdown accessible on desktop */
@media (hover:hover){
  .nav__drop:hover > .nav__menu,
  .nav__drop:focus-within > .nav__menu{display:grid}
}

/* Mobile menu */
.nav-overlay{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.55);
  z-index:50;
}
.nav.is-open{
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  width:min(420px, 92vw);
  background:#fff;
  border-left:1px solid var(--border);
  box-shadow:var(--shadow);
  padding:18px 16px 24px;
  z-index:60;
  overflow:auto;
}
.nav.is-open .nav__list{
  flex-direction:column;
  align-items:stretch;
  gap:6px;
}
.nav.is-open .nav__item--cta{margin-left:0; margin-top:10px}
.nav.is-open .nav__link{width:100%; justify-content:space-between}
.nav.is-open .nav__menu{
  position:static;
  width:auto;
  box-shadow:none;
  border:1px solid var(--border);
  background:var(--surface);
}
.nav.is-open .nav__drop{margin:4px 0}

/* On mobile we show the toggle */
@media (max-width: 980px){
  .nav-toggle{display:inline-flex}
  .nav{display:none}
  .nav.is-open{display:block}
  .brand{min-width:auto}

  /* Mobile menu should be fullscreen (no right drawer) */
  .nav.is-open{
    left:0;
    right:0;
    width:100vw;
    border-left:none;
  }

  /* Show mobile bar only in opened nav */
  .nav.is-open .nav__mobile-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:2px 2px 12px;
    margin:-2px -2px 12px;
    border-bottom:1px solid var(--border);
    background:#fff;
    position:sticky;
    top:0;
    z-index:1;
  }

  /* Avoid fixed-position bugs on some mobile browsers */
  .header{
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-weight:750;
  text-decoration:none;
  cursor:pointer;
}
.btn:hover{text-decoration:none; filter:brightness(.98)}
.btn--primary{
  background:var(--accent);
  border-color:rgba(14,165,164,.35);
  color:#fff;
}
.btn--primary:hover{filter:brightness(.95)}
.btn--ghost{
  background:transparent;
}
.btn--danger{
  background:var(--danger);
  border-color:rgba(185,28,28,.35);
  color:#fff;
}

.main{min-height:60vh}

/* Hero */
.hero{
  padding:56px 0 22px;
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(14,165,164,.18), rgba(14,165,164,0) 60%),
    radial-gradient(900px 300px at 90% 10%, rgba(14,165,164,.12), rgba(14,165,164,0) 55%);
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:24px;
  align-items:start;
}
.hero__title{
  font-size: clamp(28px, 4vw, 44px);
  line-height:1.15;
  margin:0 0 12px 0;
  letter-spacing:-.2px;
}
.hero__lead{
  margin:0 0 18px 0;
  color:var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
}
.hero__actions{display:flex; gap:10px; flex-wrap:wrap}

.hero__panel{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.hero__panel-title{font-weight:800; margin:0 0 10px 0}
.hero__panel-list{
  margin:0;
  padding-left:18px;
  color:var(--muted);
}
.hero__panel-list li{margin:8px 0}
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr}
}

.breadcrumbs{
  margin:16px 0 0;
  font-size:14px;
  color:var(--muted);
}
.breadcrumbs ol{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  padding:0;
  margin:0;
}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs .sep{opacity:.6}

/* Sections */
.section{padding:44px 0}
.section--alt{background:var(--surface)}
.section__title{
  font-size:22px;
  margin:0 0 14px 0;
  letter-spacing:-.2px;
}
.section__lead{
  color:var(--muted);
  margin:0 0 22px 0;
}

.grid{
  display:grid;
  gap:14px;
}
.grid--2{grid-template-columns:repeat(2, minmax(0,1fr))}
.grid--3{grid-template-columns:repeat(3, minmax(0,1fr))}
@media (max-width: 980px){
  .grid--2,.grid--3{grid-template-columns:1fr}
}

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 8px 22px rgba(2,6,23,.05);
}
.card--link{transition:transform .15s ease, box-shadow .15s ease}
.card--link:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
  text-decoration:none;
}
.card__title{margin:0 0 8px 0; font-size:16px; font-weight:800; overflow-wrap:anywhere}
.card__text{margin:0; color:var(--muted); overflow-wrap:anywhere}
.card__meta{margin-top:12px; font-size:13px; color:var(--muted); display:flex; gap:10px; flex-wrap:wrap}
.chip{
  display:inline-block;
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(14,165,164,.10);
  border:1px solid rgba(14,165,164,.18);
  color:var(--accent-2);
  font-weight:700;
  font-size:12px;
  line-height:1.35;
}

/* Prose */
.prose{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:0 10px 30px rgba(2,6,23,.05);
  overflow-wrap:anywhere;
  word-break:break-word;
}
.prose table{
  width:100%;
  border-collapse:collapse;
  display:block;
  overflow-x:auto;
}
.prose th, .prose td{
  border:1px solid var(--border);
  padding:10px 12px;
  text-align:left;
  vertical-align:top;
}
.prose pre, .prose code{
  max-width:100%;
  overflow:auto;
}
.prose h2{margin:0 0 12px 0; font-size:20px; letter-spacing:-.2px}
.prose h3{margin:18px 0 10px 0; font-size:16px}
.prose p{margin:0 0 12px 0}
.prose ul, .prose ol{margin:0 0 12px 0; padding-left:20px}
.prose li{margin:8px 0}
.prose hr{border:none; border-top:1px solid var(--border); margin:18px 0}
.prose a{text-decoration:underline}
.prose a:hover{filter:brightness(.95)}

.note{
  padding:12px 14px;
  border-radius:14px;
  background:var(--surface);
  border:1px solid var(--border);
  color:var(--muted);
}

/* CTA */
.cta{
  padding:18px;
  border-radius:var(--radius);
  background:linear-gradient(135deg, rgba(14,165,164,.16), rgba(14,165,164,.02));
  border:1px solid rgba(14,165,164,.22);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.cta__title{margin:0; font-weight:900}
.cta__text{margin:0; color:var(--muted)}

/* Forms */
.form{
  display:grid;
  gap:12px;
}
.field{
  display:grid;
  gap:6px;
}
.field label{font-weight:750; font-size:14px}
.field input, .field textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font:inherit;
}
.field textarea{min-height:130px; resize:vertical}
.form__row{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(2, minmax(0,1fr));
}
@media (max-width: 980px){
  .form__row{grid-template-columns:1fr}
}
.form__status{
  font-size:14px;
  color:var(--muted);
}

/* Footer */
.site-footer{
  margin-top:54px;
  background:var(--text);
  color:#fff;
}
.footer__grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap:18px;
  padding:36px 0 18px;
}
.footer__brand{font-weight:900; font-size:16px; margin-bottom:8px}
.footer__text{margin:0; opacity:.85}
.footer__title{font-weight:900; margin-bottom:10px}
.footer__list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
  opacity:.92;
}
.footer__list a{color:#fff; text-decoration:underline}
.footer__list a:hover{opacity:1}
.footer__bottom{
  padding:16px 0 26px;
  border-top:1px solid rgba(226,232,240,.18);
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color:rgba(255,255,255,.78);
  font-size:13px;
}
.footer__muted{opacity:.85}

@media (max-width: 980px){
  .footer__grid{grid-template-columns:1fr}
}


/* ==========================================================================
   Home page upgrades + small components
   ========================================================================== */

.eyebrow{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(14,165,164,.10);
  border:1px solid rgba(14,165,164,.18);
  color:var(--accent-2);
  font-weight:800;
  font-size:12px;
  letter-spacing:.25px;
  text-transform:uppercase;
}

.checklist{
  margin:0 0 18px 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
  color:var(--muted);
}
.checklist li{
  position:relative;
  padding-left:30px;
}
.checklist li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  width:22px;
  height:22px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:rgba(14,165,164,.12);
  border:1px solid rgba(14,165,164,.22);
  color:var(--accent-2);
  font-weight:900;
  line-height:1;
}

.kpis{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:10px;
}
.kpi{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px 12px;
  box-shadow:0 10px 22px rgba(2,6,23,.04);
}
.kpi__title{font-weight:900; font-size:13px; margin:0 0 4px 0}
.kpi__text{margin:0; color:var(--muted); font-size:13px}
@media (max-width: 980px){
  .kpis{grid-template-columns:1fr}
}

.hero--home{
  padding:64px 0 30px;
}
.hero__panel--home{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
  display:grid;
  gap:12px;
}
.panel-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.panel-card__title{font-weight:900; margin:0 0 8px 0}
.panel-card__text{margin:0; color:var(--muted); font-size:14px}

.panel-links{
  margin-top:12px;
  display:grid;
  gap:8px;
}
.panel-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--surface);
  font-weight:750;
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
}
.panel-link:hover{background:#fff; text-decoration:none}
.panel-link::after{content:"→"; opacity:.55}

.section-head{
  margin-bottom:16px;
}
.section-head--row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

/* Service cards */
.service-card{
  display:block;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 8px 22px rgba(2,6,23,.05);
  transition:transform .15s ease, box-shadow .15s ease;
  min-height: 210px;
}
.service-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
  text-decoration:none;
}
.service-card__icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(14,165,164,.18), rgba(14,165,164,.02));
  border:1px solid rgba(14,165,164,.25);
  margin-bottom:10px;
}
.service-card__title{
  font-weight:900;
  margin:0 0 8px 0;
  letter-spacing:-.1px;
}
.service-card__text{
  margin:0 0 12px 0;
  color:var(--muted);
}
.service-card__meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* Split / steps */
.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
  align-items:start;
}
@media (max-width: 980px){
  .split{grid-template-columns:1fr}
}
.steps{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:0 10px 30px rgba(2,6,23,.05);
}
.steps__title{margin:0 0 12px 0; font-weight:900; font-size:20px; letter-spacing:-.2px}
.step{
  display:flex;
  gap:12px;
  padding:12px 0;
  border-top:1px solid var(--border);
}
.step:first-of-type{border-top:none; padding-top:0}
.step__num{
  width:34px;
  height:34px;
  border-radius:12px;
  background:rgba(14,165,164,.12);
  border:1px solid rgba(14,165,164,.22);
  display:grid;
  place-items:center;
  font-weight:950;
  color:var(--accent-2);
  flex:0 0 auto;
}
.step__body{min-width:0}
.step__title{margin:0 0 4px 0; font-weight:900}
.step__text{margin:0; color:var(--muted); font-size:14px}

/* Partner chips */
.logo-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.logo-pill{
  display:inline-flex;
  align-items:center;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--muted);
  font-weight:750;
  font-size:13px;
}

/* Active navigation */
.nav__link.is-active,
.nav__sublink.is-active{
  text-decoration:none;
  background:rgba(14,165,164,.12);
  box-shadow: inset 0 0 0 1px rgba(14,165,164,.22);
}

/* Small phones */
@media (max-width: 520px){
  .container{width:calc(100% - 24px)}

  .topbar__inner{justify-content:flex-start}

  .brand__tag{display:none}
  .brand__name{font-size:14px}

  .nav-toggle{padding:10px 10px; border-radius:14px}
  .nav-toggle__text{display:none}

  .nav.is-open{width:100vw}

  .hero{padding:40px 0 18px}
  .hero--home{padding:44px 0 22px}

  .hero__actions{gap:8px}
  .hero__actions .btn{width:100%}

  .section{padding:34px 0}

  .card,
  .prose,
  .panel-card,
  .hero__panel,
  .steps{padding:16px}

  .service-card{min-height:auto}

  .cta{align-items:stretch}
  .cta .btn{width:100%}

  .footer__bottom{flex-direction:column; align-items:flex-start}
}
