:root{
  --brand:#0f3c4c;
  --brand2:#2a5e70;
  --bg:#ffffff;
  --soft:#e6f3f7;
  --text:#122027;
  --muted:#516169;
  --border:#d8e2e7;
  --shadow: 0 6px 22px rgba(0,0,0,.08);
  --radius: 12px;
  --max: 1040px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
}

a{color:var(--brand); text-decoration:none}
a:hover{text-decoration:underline}

.header{
  background:var(--brand);
  color:#fff;
  padding:1.4rem 1.2rem 1rem 1.2rem;
}
.header-inner{
  max-width:var(--max);
  margin:0 auto;
}
.brandline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
}
.h1{margin:0}
.subtitle{margin:.35rem 0 0 0; opacity:.92}

.nav{
  margin-top:1rem;
  display:flex;
  flex-wrap:wrap;
  gap:.9rem;
}
.nav a{
  color:#fff;
  display:inline-block;
  padding:.25rem 0;
  opacity:.95;
}
.nav a.active{font-weight:700; text-decoration:underline}

.langbar{
  display:flex;
  gap:.5rem;
  align-items:center;
}
.langbar button{
  border:1px solid rgba(255,255,255,.25);
  background:transparent;
  color:#fff;
  padding:.35rem .55rem;
  border-radius:10px;
  cursor:pointer;
}
.langbar button:hover{background:rgba(255,255,255,.12)}

.main{
  max-width:var(--max);
  margin:0 auto;
  padding:2rem 1.2rem 2.5rem 1.2rem;
}

.section{margin:0 0 2rem 0}
.section h2{margin:0 0 .6rem 0}
.section h3{margin:1.1rem 0 .4rem 0}
.muted{color:var(--muted)}
.note{color:var(--muted); font-size:.95rem}

.hero{
  background:linear-gradient(0deg, #f7fbfd, #fff);
  border:1px solid #e7f2f6;
  border-radius:var(--radius);
  padding:1.25rem 1.2rem;
}
.hero h2{margin:.2rem 0 .6rem 0}
.hero p{margin:.5rem 0}

.cta{
  background:var(--soft);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.2rem;
}

.button-row{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  margin:.8rem 0 0 0;
}
.button{
  display:inline-block;
  background:var(--brand);
  color:#fff;
  padding:.65rem .95rem;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  font-weight:650;
}
.button:hover{filter:brightness(1.05); text-decoration:none}
.button.secondary{
  background:transparent;
  color:var(--brand);
  border:1px solid var(--brand);
}
.badge{
  display:inline-block;
  border:1px solid var(--border);
  border-radius:999px;
  padding:.2rem .55rem;
  font-size:.85rem;
  color:var(--muted);
  background:#fff;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:1rem;
}
.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  padding:1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.card:hover{box-shadow:var(--shadow)}
.card h3{margin:.15rem 0 .35rem 0}
.card p{margin:.35rem 0}

.profile{
  display:flex;
  gap:2rem;
  align-items:center;
  margin-bottom:2rem;
}
.profile img{
  width:100%;
  max-width:240px;
  border-radius:var(--radius);
  border:1px solid var(--border);
}

.table-wrap{
  overflow:auto;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
}
table.tbl{
  width:100%;
  border-collapse:collapse;
  min-width:680px;
}
.tbl th, .tbl td{
  border-bottom:1px solid var(--border);
  padding:.6rem .7rem;
  vertical-align:top;
}
.tbl th{
  background:#f4f7f9;
  text-align:left;
}
.tbl tr:last-child td{border-bottom:none}

.callout{
  border-left:5px solid var(--brand2);
  background:#f7fbfd;
  padding:.9rem 1rem;
  border-radius:10px;
  border:1px solid #e7f2f6;
}

.figure{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  padding:1rem;
}
.figure-placeholder{
  background:#f7fbfd;
  border:1px dashed #b8cbd3;
  border-radius:10px;
  padding:.9rem;
  color:var(--muted);
}
pre.code{
  overflow:auto;
  padding:1rem;
  background:#0b1720;
  color:#e7f2f6;
  border-radius:10px;
  font-size:.9rem;
}

.footer{
  border-top:1px solid var(--border);
  background:#eee;
  padding:1rem;
  text-align:center;
}
.footer a{color:#222}

@media (max-width: 960px){
  .grid{grid-template-columns:1fr}
}
@media (max-width: 780px){
  .profile{flex-direction:column; text-align:center}
  .profile img{max-width:190px}
}

.hero-split{display:grid; grid-template-columns:1.5fr 1fr; gap:1.2rem; align-items:start}
.hero-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  padding:1rem;
  box-shadow: 0 6px 22px rgba(0,0,0,.06);
}
.steps{margin:.6rem 0 0 1.1rem}
.trust-row{display:flex; flex-wrap:wrap; gap:.6rem; margin:.8rem 0}
.trust{font-size:.92rem; color:var(--muted)}
.button-wide{width:100%; text-align:center}

@media (max-width: 960px){
  .hero-split{grid-template-columns:1fr}
}

/* ===== Sticky CTA Bar (matched to nav) ===== */
:root{
  --sticky-h: 70px;
}

body{
  padding-bottom: var(--sticky-h);
}

.stickybar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}

.stickybar__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: .65rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.stickybar__left{
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 220px;
}

.stickybar__badge{
  display: inline-flex;
  align-items: center;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .82rem;
  background: rgba(0,0,0,.03);
  white-space: nowrap;
}

.stickybar__text{
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.25;
}

.stickybar__actions{
  display: inline-flex;
  gap: .5rem;
  align-items: center;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .8rem;
  border-radius: .8rem;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  background: #fff;
  white-space: nowrap;
}

.btn:hover{
  background: rgba(0,0,0,.04);
}

.btn--primary{
  background: rgba(0,0,0,.06);
}

.stickybar__close{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: .8rem;
  padding: .55rem .7rem;
  cursor: pointer;
}

.stickybar__close:hover{
  background: rgba(0,0,0,.04);
}

@media (max-width: 760px){
  :root{ --sticky-h: 88px; }
  .stickybar__inner{
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
  }
  .stickybar__left{
    justify-content: space-between;
    width: 100%;
  }
  .stickybar__text{
    font-size: .92rem;
  }
  .stickybar__actions{
    width: 100%;
    justify-content: space-between;
  }
  .btn{ flex: 1; }
  .stickybar__close{ flex: 0; }
}

details.card summary{cursor:pointer; list-style:none}
details.card summary::-webkit-details-marker{display:none}
details.card{padding:1rem}

/* ===== Navigation (pro) ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: .8rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.brand{
  display: grid;
  gap: .15rem;
  text-decoration: none;
  color: inherit;
}
.brand__name{
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.1;
}
.brand__tag{
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.1;
}

.site-nav{
  display: flex;
  gap: 1rem;
  align-items: center;
}
.site-nav__list{
  list-style: none;
  display: flex;
  gap: .2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav__list > li{ position: relative; }

.site-nav a{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .7rem;
  border-radius: .65rem;
  text-decoration: none;
  color: inherit;
}
.site-nav a:hover{
  background: rgba(0,0,0,.04);
}

.site-nav__cta .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .85rem;
  border-radius: .8rem;
  border: 1px solid var(--border);
  text-decoration: none;
}
.btn--primary{
  background: rgba(0,0,0,.06);
}

.has-dropdown .dropdown{
  display: none;
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .9rem;
  padding: .35rem;
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{
  display: block;
}
.dropdown li{ list-style: none; }
.dropdown a{
  width: 100%;
  padding: .55rem .65rem;
  border-radius: .75rem;
}
.chev{ font-size: .95em; opacity: .8; }

/* Mobile toggle */
.nav-toggle{
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: .85rem;
  padding: .55rem .7rem;
}
.nav-toggle__icon{
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after{
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}
.nav-toggle__icon::before{ top: -7px; }
.nav-toggle__icon::after{ top: 7px; }

@media (max-width: 1040px){
  .nav-toggle{ display: inline-flex; align-items: center; justify-content: center; }
  .site-nav{
    display: none;
    position: absolute;
    right: 1.2rem;
    top: calc(100% + .6rem);
    width: min(92vw, 420px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
    padding: .6rem;
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
  }
  .site-nav.is-open{ display: flex; }

  .site-nav__list{
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
  }
  .site-nav__cta{ padding-top: .2rem; }

  /* Dropdowns on mobile: always expanded for usability */
  .has-dropdown .dropdown{
    display: block;
    position: static;
    min-width: 0;
    box-shadow: none;
    border: none;
    padding: 0 0 .25rem 0;
  }
  .has-dropdown > a{
    font-weight: 600;
  }
}
.site-nav a[aria-current="page"]{
  background: rgba(0,0,0,.06);
  border: 1px solid var(--border);
}
.hero-trust{
  margin-top: 1rem;
  display: grid;
  gap: .35rem;
  font-size: .92rem;
  color: var(--muted);
}