*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sc-teal: #009688;
  --sc-teal-dark: #00796b;
  --sc-teal-light: #e0f2f1;
  --sc-accent: #ff7043;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface2: #f0f4f3;
  --border: rgba(0,0,0,0.10);
  --border2: rgba(0,0,0,0.18);
  --text: #1a2422;
  --text2: #4a5e5a;
  --text3: #7a9490;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow: 0 2px 12px rgba(0,150,136,0.07);
  --shadow-lg: 0 4px 28px rgba(0,150,136,0.12);
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 24px;
  --space-5: 32px;
  --gutter: clamp(14px, 3.5vw, 28px);
  --layout-max: min(1120px, calc(100% - var(--gutter) * 2));
  --sticky-below-header: 108px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a18;
    --surface: #162220;
    --surface2: #1e2e2b;
    --border: rgba(255,255,255,0.08);
    --border2: rgba(255,255,255,0.14);
    --text: #e8f0ee;
    --text2: #9bbdb8;
    --text3: #567a75;
    --shadow: 0 2px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 28px rgba(0,0,0,0.4);
  }
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-section { animation: none !important; }
  .step-chevron, .faq-chevron { transition: none !important; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--sc-teal-dark);
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-md);
  border: 2px solid var(--sc-teal);
  z-index: 200;
  clip-path: inset(100%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  outline: none;
  box-shadow: 0 0 0 3px var(--sc-teal-light);
}

:focus-visible {
  outline: 2px solid var(--sc-teal);
  outline-offset: 2px;
}

/* ── HEADER ── */
.site-header {
  background: var(--sc-teal);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,150,136,0.25);
}
.header-inner {
  max-width: var(--layout-max); margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 12px var(--gutter);
}
.header-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,0.22); display: flex; align-items: center;
  justify-content: center; font-weight: 800; color: #fff; font-size: 15px;
  letter-spacing: -0.5px;
}
.logo-text { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 0.3px; }
.header-spacer { flex: 1; }
.header-link {
  color: rgba(255,255,255,0.88); font-size: 13px; font-weight: 500;
  text-decoration: none; padding: 6px 12px; border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.25); transition: background 0.15s;
}
.header-link:hover { background: rgba(255,255,255,0.15); }

/* ── LANG BAR ── */
.lang-bar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 60px; z-index: 90;
}
.lang-inner {
  max-width: var(--layout-max); margin: 0 auto;
  display: flex; gap: 6px; padding: 10px var(--gutter);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.lang-inner::-webkit-scrollbar { display: none; }
.lang-btn {
  min-height: 44px;
  padding: 8px 14px; border-radius: 22px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); cursor: pointer;
  background: var(--surface); color: var(--text2);
  white-space: nowrap; transition: border-color 0.15s, background 0.15s, color 0.15s; flex-shrink: 0;
}
.lang-btn:hover { border-color: var(--sc-teal); color: var(--sc-teal); }
.lang-btn.active {
  background: var(--sc-teal); color: #fff; border-color: var(--sc-teal);
}

/* ── MAIN LAYOUT ── */
.main {
  margin: 0 auto;
  padding: var(--space-4) var(--gutter) var(--space-5);
  padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
}

.layout-shell {
  max-width: var(--layout-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.layout-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: start;
}

.layout-sidebar {
  position: relative;
  z-index: 2;
}

.layout-main-col {
  min-width: 0;
}

.guide-loading {
  text-align: center;
  padding: var(--space-5) var(--gutter);
  color: var(--sc-teal);
  font-size: 15px;
}

.section-content { min-width: 0; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 36px) clamp(22px, 4vw, 40px);
  padding-bottom: calc(clamp(22px, 4vw, 36px) + env(safe-area-inset-bottom));
  margin-bottom: 0;
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hero::before {
  content: ''; position: absolute; right: 60px; bottom: -50px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.18); border-radius: 20px;
  padding: 4px 12px; font-size: 12px; font-weight: 500; margin-bottom: 14px;
}
.hero-site-title {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.25;
}
.hero #hero-sub {
  font-size: clamp(0.9rem, 1.6vw, 0.97rem);
  opacity: 0.88;
  line-height: 1.65;
  max-width: 52ch;
}
.hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero-btn {
  padding: 9px 18px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-btn.primary { background: #fff; color: var(--sc-teal); }
.hero-btn.primary:hover { background: #e0f2f1; }
.hero-btn.outline { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.hero-btn.outline:hover { background: rgba(255,255,255,0.25); }

/* ── SECTION NAV (grouped) ── */
.section-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: 0;
}

.nav-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.nav-group-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sc-teal-dark);
  background: var(--surface2);
  border-bottom: 1px solid transparent;
  min-height: 48px;
  display: flex;
  align-items: center;
  user-select: none;
}
.nav-group[open] .nav-group-summary {
  border-bottom-color: var(--border);
}
.nav-group-summary::-webkit-details-marker { display: none; }

.nav-group-list {
  list-style: none;
  padding: var(--space-1) 0;
  margin: 0;
}

.nav-group-list li { margin: 0; }

.nav-topic-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.nav-topic-link:hover {
  background: var(--sc-teal-light);
  color: var(--sc-teal-dark);
}
.nav-topic-link.active {
  background: var(--sc-teal-light);
  border-left-color: var(--sc-teal);
  color: var(--sc-teal-dark);
  font-weight: 600;
}

/* ── GUIDE SECTION ── */
.guide-section { animation: fadeIn 0.18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.section-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }

.guide-page-title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.section-intro {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: 65ch;
}

/* ── SUBSECTION ── */
.subsection { margin-bottom: 28px; }
.subsection-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin-bottom: 4px; padding-left: 2px;
  display: flex; align-items: center; gap: 8px;
}
.subsection-intro { font-size: 13px; color: var(--text2); margin-bottom: 14px; line-height: 1.65; }

/* ── STEP CARDS ── */
.step-list { display: flex; flex-direction: column; gap: 14px; }
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: box-shadow 0.2s;
}
.step-card:hover { box-shadow: var(--shadow-lg); }
.step-header {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  background: var(--surface2); cursor: pointer; user-select: none;
  border-bottom: 1px solid transparent; transition: border-color 0.15s;
}
.step-header.open { border-bottom-color: var(--border); }
.step-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--sc-teal);
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-title { font-size: 15px; font-weight: 600; color: var(--text); flex: 1; }
.step-chevron {
  color: var(--text3); font-size: 13px; font-weight: 600;
  transition: transform 0.22s; user-select: none; flex-shrink: 0;
}
.step-chevron.open { transform: rotate(180deg); }
.step-body { padding: 20px; display: none; }
.step-body.open { display: block; }
.step-desc { font-size: 14px; color: var(--text2); line-height: 1.75; margin-bottom: 14px; }

.step-screenshot {
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border2);
  box-shadow: var(--shadow);
  max-width: min(100%, 520px);
  background: var(--surface);
}
.step-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.step-screenshot-caption {
  font-size: 12px;
  color: var(--text3);
  padding: 8px 12px 10px;
  border-top: 1px solid var(--border);
  line-height: 1.45;
}

/* ── MOCK SCREENS ── */
.mock-screen {
  border: 1px solid var(--border2); border-radius: var(--radius-md);
  background: var(--surface2); overflow: hidden; margin: 0 auto 16px;
  width: 100%;
  max-width: min(100%, 420px);
}
.mock-bar {
  background: #009688; padding: 9px 14px;
  display: flex; align-items: center; gap: 8px;
}
.mock-bar-logo { color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 0.4px; }
.mock-bar-dots { display: flex; gap: 5px; margin-left: auto; }
.mock-bar-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.45); }
.mock-content { padding: 14px 16px; }
.mock-label { font-size: 11px; color: var(--text3); margin-bottom: 7px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.mock-field {
  border: 1px solid var(--border2); border-radius: var(--radius-md);
  padding: 9px 11px; font-size: 13px; color: var(--text2);
  background: var(--surface); margin-bottom: 8px;
  display: flex; align-items: center; gap: 7px;
}
.mock-field.highlight { border-color: var(--sc-teal); border-width: 1.5px; }
.mock-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 9px 18px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; cursor: default;
}
.mock-btn.primary { background: var(--sc-teal); color: #fff; width: 100%; }
.mock-btn.outline {
  background: transparent; border: 1px solid var(--sc-teal);
  color: var(--sc-teal); width: 100%; margin-bottom: 6px;
}
.amount-grid { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 12px; }
.amount-pill {
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border2); background: var(--surface); color: var(--text2);
}
.amount-pill.selected { background: var(--sc-teal); color: #fff; border-color: var(--sc-teal); }
.country-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 11px;
  border: 1px solid var(--border2); border-radius: var(--radius-md);
  background: var(--surface); margin-bottom: 8px; font-size: 13px; color: var(--text2);
}
.country-flag { font-size: 18px; }

/* ── CALLOUTS ── */
.callout {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border-radius: var(--radius-md); margin-top: 12px; font-size: 13px; line-height: 1.65;
}
.callout.tip { background: #e3f2fd; color: #1565c0; }
.callout.warn { background: #fff8e1; color: #e65100; }
.callout.success { background: #e8f5e9; color: #2e7d32; }
.callout-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
@media (prefers-color-scheme: dark) {
  .callout.tip { background: #0d2b4a; color: #90caf9; }
  .callout.warn { background: #2c1f00; color: #ffcc80; }
  .callout.success { background: #0d2e14; color: #81c784; }
}

/* ── CTA LINK ── */
.cta-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--sc-teal); font-size: 13px; font-weight: 600;
  text-decoration: none; padding: 8px 16px;
  border: 1.5px solid var(--sc-teal); border-radius: var(--radius-md);
  margin-top: 14px; transition: background 0.15s;
}
.cta-link:hover { background: var(--sc-teal-light); }

/* ── PRODUCTS GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-3);
}
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 18px 14px;
  text-decoration: none; color: inherit; display: block;
  box-shadow: var(--shadow); transition: all 0.18s;
}
.product-card:hover {
  border-color: var(--sc-teal); box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.product-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--sc-teal-light); display: flex; align-items: center;
  justify-content: center; margin-bottom: 12px;
}
.product-icon svg { width: 22px; height: 22px; stroke: var(--sc-teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.product-desc { font-size: 12px; color: var(--text2); line-height: 1.6; margin-bottom: 10px; }
.product-tag {
  font-size: 11px; padding: 3px 10px; border-radius: 20px;
  background: var(--surface2); color: var(--text3);
  border: 1px solid var(--border); font-weight: 500; display: inline-block;
}

/* ── FAQ ── */
.faq-list { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  padding: 15px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--text); transition: background 0.12s; user-select: none;
}
.faq-q:hover { background: var(--surface2); }
.faq-chevron { font-size: 13px; color: var(--text3); transition: transform 0.2s; flex-shrink: 0; }
.faq-chevron.open { transform: rotate(180deg); }
.faq-a {
  font-size: 13px; color: var(--text2); line-height: 1.75;
  padding: 0 20px 16px; display: none;
}
.faq-a.open { display: block; }

/* ── SEARCH BAR ── */
.search-wrap { position: relative; margin-bottom: 22px; }
.search-input {
  width: 100%; padding: 11px 16px 11px 42px; font-size: 14px;
  border: 1px solid var(--border2); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text);
  outline: none; transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--sc-teal); }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text3); pointer-events: none;
}
.search-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.faq-no-results { text-align: center; padding: 24px; color: var(--text3); font-size: 14px; display: none; }

/* ── FOOTER ── */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  margin-top: 48px; padding: 28px 20px;
  text-align: center;
}
.footer-inner { max-width: var(--layout-max); margin: 0 auto; }
.footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { font-size: 13px; color: var(--text2); text-decoration: none; }
.footer-links a:hover { color: var(--sc-teal); }
.footer-copy { font-size: 12px; color: var(--text3); }

/* ── MOBILE NAV BAR ── */
.mobile-nav-bar {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 108px;
  z-index: 80;
}
.mobile-nav-inner {
  display: flex;
  gap: 6px;
  padding: 8px var(--gutter);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-nav-inner::-webkit-scrollbar { display: none; }
.mobile-nav-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.mobile-nav-btn:hover { border-color: var(--sc-teal); color: var(--sc-teal); }
.mobile-nav-btn.active {
  background: var(--sc-teal);
  color: #fff;
  border-color: var(--sc-teal);
}

/* ── RESPONSIVE ── */
@media (min-width: 992px) {
  .layout-guide {
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
    gap: var(--space-5);
  }
  .layout-sidebar {
    position: sticky;
    top: var(--sticky-below-header);
    align-self: start;
    max-height: calc(100vh - var(--sticky-below-header) - 16px);
    overflow-y: auto;
  }
  .section-nav { gap: var(--space-2); }
}

@media (max-width: 991px) {
  .mobile-nav-bar { display: block; }
  .layout-sidebar { display: none; }
  .main { padding-top: var(--space-3); }
}

@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-btn { justify-content: center; min-height: 44px; }
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
}

@media (max-width: 520px) {
  .products-grid { grid-template-columns: 1fr; }
}
