/* ============================================================
   OurSupport — Design System / Shared Components
   Fonts: Inter (body) + Inter Tight (headings)
   ============================================================ */

:root {
  --ink:        #0A1330;
  --ink-2:      #142154;
  --ink-3:      #1F2E6E;
  --muted:      #5A6388;
  --line:       #E6E8F2;
  --line-soft:  #EEF0F8;
  --bg:         #F6F7FB;
  --surface:    #FFFFFF;
  --accent:     #FF6A2C;
  --accent-2:   #FFB088;
  --indigo:     #3D54FF;
  --indigo-soft:#E8ECFF;
  --mint:       #13C296;
  --radius-sm:  10px;
  --radius:     14px;
  --radius-lg:  22px;
  --radius-xl:  28px;
  --shadow-sm:  0 1px 2px rgba(10,19,48,.04), 0 1px 1px rgba(10,19,48,.03);
  --shadow:     0 12px 30px -12px rgba(10,19,48,.18), 0 4px 10px -4px rgba(10,19,48,.08);
  --shadow-lg:  0 30px 60px -30px rgba(10,19,48,.35), 0 12px 24px -12px rgba(10,19,48,.18);
  --max:        1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 20px; }
li { margin: 8px 0; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
}
h1 { font-size: clamp(40px, 5.5vw, 72px); letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.03em; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
p  { color: var(--ink); }
.muted { color: var(--muted); }

/* ---- Container ---- */
.wrap, .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Utility ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(2px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(255,106,44,.55);
}
.btn-accent:hover { transform: translateY(-1px); background: #F75A1B; }

.btn-soft {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-soft:hover { border-color: #C9CEE3; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--line-soft); }

.btn-indigo {
  background: var(--indigo);
  color: #fff;
}
.btn-indigo:hover { transform: translateY(-1px); }

/* backward compat */
.btn.primary { background: var(--ink); color: #fff; border: 0; box-shadow: var(--shadow-sm); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.accent  { background: var(--accent); color: #fff; border: 0; }
.btn.accent:hover  { transform: translateY(-1px); }
.btn.blue    { background: var(--indigo); color: #fff; border: 0; }

/* ---- Card ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

/* ---- Card heading in feature grids ---- */
.grid-2 .card h3,
.grid-3 .card h3 { font-size: 17px; margin: 0 0 8px; }

/* ---- Section defaults ---- */
section { padding: 64px 0; }
section h2 { text-align: center; margin: 0 0 16px; }
section .lead { text-align: center; color: var(--muted); max-width: 860px; margin: 0 auto 24px; font-size: clamp(17px, 2vw, 20px); }
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.section-icon {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
}
.section-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Generic Grids ---- */
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ---- FAQ accordion ---- */
.faq-list { max-width: 860px; margin: 0 auto; }
details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: #fff; margin: 10px 0; }
details[open] { box-shadow: var(--shadow-sm); }
details p { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--muted); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--muted); flex-shrink: 0; transition: transform .2s ease; }
details[open] summary::after { content: "−"; }

/* ============================================================
   NAV — floating pill
   ============================================================ */
.site-nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin: 12px auto 0;
  max-width: calc(var(--max) + 68px);
  padding: 0 14px;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px 8px 16px;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 22px;
  color: var(--ink);
  flex-shrink: 0;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }

/* Two-tone wordmark */
.logo-wordmark { display: inline; }
.logo-wordmark span:first-child { color: var(--ink); }
.logo-wordmark span:last-child { color: #0080CC; }

/* Mobile sheet wordmark header */
.mobile-sheet .logo-wordmark {
  display: inline-block;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

/* Keep logo-mark for backward compat */
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #142154, #3D54FF);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 5px 12px -5px rgba(61,84,255,.50);
}
.logo-mark svg { width: 16px; height: 16px; }

/* Nav links (desktop) */
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: 10px;
  flex: 1;
}
.nav-links a {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--line-soft); color: var(--ink); text-decoration: none; }

/* Nav right */
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  cursor: pointer;
  margin-left: 2px;
}
.hamburger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; display: block; }

/* Language toggle */
.lang-toggle { display: flex; align-items: center; gap: 8px; }
.lang-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lang-dropdown { position: relative; }
.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.lang-button svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 60;
}
.lang-menu.show { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}
.lang-option:hover { background: var(--line-soft); }
.lang-option[aria-selected="true"] { background: var(--indigo-soft); }

/* Flags */
.flag {
  width: 18px; height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.15);
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}
.flag-uk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Crect width='24' height='16' fill='%23012169'/%3E%3Crect x='9' width='6' height='16' fill='%23ffffff'/%3E%3Crect y='5' width='24' height='6' fill='%23ffffff'/%3E%3Crect x='10' width='4' height='16' fill='%23c8102e'/%3E%3Crect y='6' width='24' height='4' fill='%23c8102e'/%3E%3C/svg%3E") }
.flag-pt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Crect width='10' height='16' fill='%23006600'/%3E%3Crect x='10' width='14' height='16' fill='%23ff0000'/%3E%3Ccircle cx='10' cy='8' r='3' fill='%23ffd100'/%3E%3C/svg%3E") }
.flag-fr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Crect width='8' height='16' fill='%230055a4'/%3E%3Crect x='8' width='8' height='16' fill='%23ffffff'/%3E%3Crect x='16' width='8' height='16' fill='%23ef4135'/%3E%3C/svg%3E") }
.flag-de { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Crect width='24' height='5' fill='%23000000'/%3E%3Crect y='5' width='24' height='5' fill='%23dd0000'/%3E%3Crect y='10' width='24' height='6' fill='%23ffce00'/%3E%3C/svg%3E") }
.flag-es { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Crect width='24' height='4' fill='%23c60b1e'/%3E%3Crect y='4' width='24' height='8' fill='%23ffc400'/%3E%3Crect y='12' width='24' height='4' fill='%23c60b1e'/%3E%3C/svg%3E") }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10,19,48,.35);
  display: none;
  z-index: 200;
  backdrop-filter: blur(2px);
}
.mobile-menu.show { display: flex; justify-content: flex-end; }
.mobile-sheet {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 84%;
  max-width: 340px;
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 22px 20px;
  overflow: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-sheet a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}
.mobile-sheet a.btn {
  display: flex;
  justify-content: center;
  border-bottom: 0;
  padding: 13px 20px;
  width: 100%;
  margin-top: 16px;
  border-radius: 999px;
}
.mobile-sheet a:hover { text-decoration: none; color: var(--indigo); }

.mobile-menu .lang-toggle { width: 100%; margin-top: 10px; }
.mobile-menu .lang-button { width: 100%; justify-content: space-between; border-radius: var(--radius-sm); }
.mobile-menu .lang-dropdown { position: relative; width: 100%; }
.mobile-menu .lang-menu {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 8px);
  margin-top: 0;
  box-shadow: var(--shadow);
  z-index: 10;
  width: 100%;
  min-width: 220px;
}
.mobile-menu .lang-option { justify-content: flex-start; }
.mobile-menu .lang-option span:last-child { display: block; white-space: nowrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  background: #fff;
}
.foot {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 36px;
}
.foot-brand .logo { margin-bottom: 14px; }
.foot-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.6;
}
.foot-heading {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.foot-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.foot-links li { margin: 0; }
.foot-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.foot-links a:hover { color: var(--ink); text-decoration: none; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   INLINE / LEGACY UTILITIES  (preserved from previous build)
   ============================================================ */
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.os-inline-nav-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.os-inline-lang-spacing { margin-top: 10px; }
.os-inline-mobile-cta { margin-top: 12px; }
.os-inline-heading-reset { margin-top: 0; }
.os-inline-wrap-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.os-inline-card-pad12 { padding: 12px; }
.os-inline-coverage-title { margin: 0 0 6px; }
.os-inline-coverage-desc { margin: 0 0 14px; }
.os-inline-list-indent { margin: 14px 0 0 18px; }
.os-inline-muted-mt16 { margin-top: 16px; }
.os-inline-company-card { max-width: 1100px; margin: 0 auto; padding: 32px 36px; }
.os-inline-company-header { display: flex; align-items: flex-start; gap: 28px; flex-wrap: wrap; margin-bottom: 24px; }
.os-inline-company-logo-shell {
  flex-shrink: 0;
  background: #f4f7fb;
  border: 1px dashed #b0bdd6;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 80px;
}
.os-inline-company-logo { width: 170px; height: auto; object-fit: contain; }
.os-inline-company-logo-text { font-size: 13px; color: var(--muted); font-style: italic; }
.os-inline-company-main { flex: 1; min-width: 220px; }
.os-inline-pill { margin-bottom: 10px; display: inline-flex; }
.os-inline-company-title { margin: 4px 0 8px; font-size: clamp(20px,2.8vw,28px); }
.os-inline-copy-tight { margin: 0 0 10px; }
.os-inline-copy-regular { margin: 0 0 14px; }
.os-inline-nowrap { white-space: nowrap; }
.os-inline-grid-top8 { margin-top: 8px; }
.os-inline-soft-bg { background: #f8fbff; }
.os-inline-divider-row {
  margin-top: 24px; margin-bottom: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.os-inline-divider-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.os-inline-divider-line { flex: 1; height: 1px; background: var(--line); }
.os-inline-stat-top0 { margin-top: 0; }
.os-inline-footnote { margin-top: 24px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.os-inline-company-actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.os-inline-company-note { margin-top: 14px; color: var(--muted); }
.os-inline-main-padded { padding: 28px 0 50px; }
.os-inline-mt18 { margin-top: 18px; }
.os-inline-mt22 { margin-top: 22px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: span 3; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}
@media (max-width: 600px) {
  .wrap, .container { padding: 0 16px; }
  section { padding: 40px 0; }
  .foot { grid-template-columns: 1fr; }
  .foot-brand { grid-column: auto; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}
