@import url("tokens.css");

/* =========================================================================
   Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur-med) var(--ease-signal), color var(--dur-med) var(--ease-signal);
}

/* Denser rhythm for the selectable "Home (Compact)" page template —
   shorter section padding and tighter headline leading, everything else
   (colors, components) stays identical to front-page.php. */
body.osim-home-compact {
  --space-2xl: var(--space-12);
  --space-xl: var(--space-8);
  --space-lg: var(--space-5);
  line-height: 1.42;
}
body.osim-home-compact h1,
body.osim-home-compact h2,
body.osim-home-compact h3 { line-height: 1.12; }
body.osim-home-compact .hero { padding-block: clamp(34px, 3.5vw, 52px); }
body.osim-home-compact .section { padding-block: clamp(34px, 3.5vw, 52px); }
body.osim-home-compact .section--compact,
body.osim-home-compact .section--tight { padding-block: clamp(22px, 2.5vw, 36px); }
body.osim-rhythm-dense {
  --osim-hero-y: clamp(28px, 3vw, 44px);
  --osim-section-y: clamp(28px, 3vw, 44px);
  --osim-section-compact-y: clamp(18px, 2.2vw, 30px);
  --osim-section-tight-y: clamp(16px, 2vw, 28px);
  --osim-section-head-gap: var(--space-3);
}
body.osim-rhythm-compact {
  --osim-hero-y: clamp(34px, 3.5vw, 52px);
  --osim-section-y: clamp(34px, 3.5vw, 52px);
  --osim-section-compact-y: clamp(22px, 2.6vw, 36px);
  --osim-section-tight-y: clamp(20px, 2.4vw, 34px);
  --osim-section-head-gap: var(--space-4);
}
body.osim-rhythm-standard {
  --osim-hero-y: clamp(42px, 4.4vw, 64px);
  --osim-section-y: clamp(44px, 4.6vw, 68px);
  --osim-section-compact-y: clamp(28px, 3.2vw, 44px);
  --osim-section-tight-y: clamp(26px, 3vw, 42px);
  --osim-section-head-gap: var(--space-5);
}
body.osim-type-soft {
  --weight-medium: 500;
  --weight-strong: 600;
  --weight-heading: 600;
}
body.osim-type-balanced {
  --weight-medium: 500;
  --weight-strong: 600;
  --weight-heading: 700;
}
body.osim-type-strong {
  --weight-medium: 600;
  --weight-strong: 700;
  --weight-heading: 700;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-heading); line-height: 1.12; margin: 0 0 var(--space-sm); letter-spacing: -.01em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 var(--space-sm); color: var(--color-text-muted); }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }

[x-cloak] { display: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--color-primary); color: var(--color-on-primary);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header, #main-content, .site-footer { min-width: 0; }
#main-content { flex: 1 0 auto; }
.container { max-width: var(--osim-section-width, var(--container)); margin-inline: auto; padding-inline: var(--space-md); }
.section { background: var(--osim-section-bg, transparent); padding-block: var(--osim-section-y); position: relative; }
.section--compact { padding-block: var(--osim-section-compact-y); }
.section--tight { padding-block: var(--osim-section-tight-y); }
.section--dense { padding-block: clamp(18px, 2vw, 30px); }
.section--muted { background: var(--osim-section-bg, var(--color-surface)); border-block: 1px solid var(--color-border); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: var(--space-2);
}
.eyebrow::before { content: ""; width: .5em; height: .5em; border-radius: 2px; background: var(--color-accent); }
.section-head { max-width: 800px; margin-bottom: var(--osim-section-head-gap); }
.section-head--center { margin-inline: auto; text-align: center; }
.lede { font-size: var(--step-1); color: var(--color-text-muted); margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: var(--weight-strong); font-size: var(--step--1);
  padding: .85rem 1.5rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-signal), box-shadow var(--dur-fast) var(--ease-signal), background var(--dur-fast);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: var(--shadow-elevation); }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-lg { padding: 1.05rem 2rem; font-size: var(--step-0); }
.btn-block { width: 100%; }

/* =========================================================================
   Header / Nav
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-bg);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.utility-bar { background: var(--color-primary); color: var(--color-on-primary); font-size: var(--step--1); line-height: 1.45; }
.utility-bar .container { padding-block: var(--space-2); text-align: center; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-width: 0; padding-block: var(--space-2); }
.site-logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: var(--weight-heading); font-size: var(--osim-brand-name-size); text-decoration: none; color: var(--color-text); }
.site-logo-images { align-items: center; display: inline-flex; }
.site-logo-fallback { align-items: center; display: inline-flex; gap: .6rem; }
.site-logo-fallback[hidden] { display: none; }
.site-header .site-logo-image { height: var(--osim-header-logo-height); max-height: var(--osim-header-logo-height); max-width: min(220px, 44vw); object-fit: contain; width: auto; }
.site-logo-image[hidden] { display: none; }
.site-logo--footer .site-logo-image { height: var(--osim-footer-logo-height); }
.site-logo-text { font-size: inherit; }
.osim-home-zh { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif; }
.chip-mark { width: 28px; height: 20px; border-radius: 4px; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); position: relative; flex: none; }
.chip-mark::after { content: ""; position: absolute; inset: 4px 6px; border: 1.5px solid rgba(255,255,255,.55); border: 1.5px solid color-mix(in srgb, var(--color-on-primary) 55%, transparent); border-radius: 2px; }

.primary-nav ul { display: flex; align-items: center; gap: var(--space-md); }
.primary-nav a { text-decoration: none; font-size: var(--step--1); font-weight: var(--weight-medium); color: var(--color-text-muted); transition: color var(--dur-fast); }
.primary-nav a:hover { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.header-custom-content { min-width: 0; overflow-wrap: anywhere; }
.mobile-nav-custom-content { display: none; }

.theme-switcher { position: relative; }
.theme-switcher-trigger {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--color-border); background: var(--color-surface);
  border-radius: 999px; padding: .45rem .8rem; cursor: pointer; font-size: var(--step--1);
}
.theme-swatch { width: 14px; height: 14px; border-radius: 50%; background: var(--color-primary); border: 1px solid var(--color-border); }
.theme-switcher-panel {
  position: absolute; right: 0; top: calc(100% + .5rem);
  background: var(--color-surface-raised); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-elevation);
  padding: .5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; width: 220px;
}
.theme-option {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  border: 1px solid transparent; border-radius: var(--radius-sm); padding: .5rem .3rem;
  cursor: pointer; background: none;
}
.theme-option:hover, .theme-option[aria-pressed="true"] { border-color: var(--color-border); background: var(--color-bg); }
.theme-option-dot { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.06); }
.theme-option span { font-size: .65rem; color: var(--color-text-muted); text-align: center; }

.lang-switcher select {
  border: 1px solid var(--color-border); background: var(--color-surface);
  border-radius: 999px; padding: .45rem .8rem; font-size: var(--step--1); color: var(--color-text);
}

.nav-toggle { color: var(--color-primary); display: none; background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: .5rem .65rem; cursor: pointer; }

/* =========================================================================
   Hero — signature: a physical SIM chip streaming a live OTP into a field
   ========================================================================= */
.hero { background: var(--color-bg); padding-block: var(--osim-hero-y); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: var(--space-3); align-content: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 0; }
.trust-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--step--1); font-family: var(--font-mono);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 999px; padding: .35rem .75rem; color: var(--color-text-muted);
}
.hero h1 { font-size: clamp(2.8rem, 5vw, 4.6rem); letter-spacing: -.035em; margin-bottom: 0; max-width: 12ch; }
@media (min-width: 721px) {
  .osim-home-zh .hero h1 { font-size: clamp(2.65rem, 4.4vw, 4.1rem); max-width: 8.8em; }
}
.hero .lede { max-width: 48ch; margin-bottom: 0; line-height: 1.5; }
.hero-proof-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero-proof-row span { align-items: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: 0 4px 14px rgba(15, 23, 41, .05); color: var(--color-text); display: inline-flex; font-size: var(--step--1); font-weight: var(--weight-strong); gap: var(--space-2); padding: .65rem .8rem; }
.hero-proof-row svg { color: var(--color-primary); }
.hero-trust-line { align-items: center; color: var(--color-text-muted); display: flex; flex-wrap: wrap; font-size: var(--step--1); gap: var(--space-2); }
.hero-trust-line span { color: #F59E0B; letter-spacing: .08em; }
.hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: 0; }
.hero .hero-ctas .btn { flex: 1 1 13.5rem; justify-content: center; }
.hero-microcopy { font-size: var(--step--1); color: var(--color-text-muted); }

.hero-visual { align-items: stretch; display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
.sim-card-scene { grid-column: 1; position: relative; margin-bottom: 0; }
.sim-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--color-surface-raised), var(--color-surface));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-elevation);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.sim-chip { width: 52px; height: 36px; border-radius: 7px; background: linear-gradient(135deg, var(--color-accent), var(--color-primary)); position: relative; }
.sim-chip::before, .sim-chip::after { content: ""; position: absolute; left: 7px; right: 7px; height: 2px; background: rgba(255,255,255,.7); background: color-mix(in srgb, var(--color-on-primary) 60%, transparent); border-radius: 1px; }
.sim-chip::before { top: 11px; } .sim-chip::after { bottom: 11px; }
.sim-network { font-family: var(--font-mono); font-size: var(--step--1); line-height: 1.3; color: var(--color-text-muted); margin-top: .5rem; }
.otp-readout { font-family: var(--font-mono); }
.otp-label { font-size: var(--step--1); line-height: 1.3; color: var(--color-text-muted); margin-bottom: .5rem; }
.otp-digits { display: flex; gap: .4rem; min-height: 2.6rem; }
.otp-digit {
  width: 2.1rem; height: 2.6rem; border-radius: var(--radius-sm);
  background: var(--color-bg); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--step-2); font-weight: var(--weight-heading); color: var(--color-primary);
  opacity: 0; transform: translateY(6px);
  animation: digit-in var(--dur-med) var(--ease-signal) forwards;
}
@keyframes digit-in { to { opacity: 1; transform: translateY(0); } }
.otp-digit:nth-child(1) { animation-delay: .1s; } .otp-digit:nth-child(2) { animation-delay: .22s; }
.otp-digit:nth-child(3) { animation-delay: .34s; } .otp-digit:nth-child(4) { animation-delay: .46s; }
.otp-digit:nth-child(5) { animation-delay: .58s; } .otp-digit:nth-child(6) { animation-delay: .7s; }
.sim-signal { position: absolute; top: var(--space-5); right: var(--space-5); display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.sim-signal-generation { color: var(--color-text-muted); font-family: var(--font-mono); font-size: var(--step--1); font-weight: var(--weight-strong); position: absolute; right: calc(var(--space-5) + 30px); top: var(--space-5); }
.sim-signal span { width: 4px; background: var(--color-accent); border-radius: 2px; animation: bar-pulse 1.6s var(--ease-signal) infinite; }
.sim-signal span:nth-child(1) { height: 30%; animation-delay: 0s; }
.sim-signal span:nth-child(2) { height: 55%; animation-delay: .15s; }
.sim-signal span:nth-child(3) { height: 80%; animation-delay: .3s; }
.sim-signal span:nth-child(4) { height: 100%; animation-delay: .45s; }
@keyframes bar-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.floating-toast {
  position: absolute; bottom: var(--space-3); right: var(--space-3); left: auto;
  background: var(--color-surface-raised); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-elevation);
  padding: .65rem .9rem; display: flex; align-items: center; gap: .6rem;
  font-size: var(--step--1); line-height: 1.45; max-width: 240px;
}
.floating-toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); flex: none; }
@media (min-width: 961px) { .sim-card { padding-bottom: calc(var(--space-5) + 20px); } }
.hero-network-strip {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevation);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  grid-column: 1;
  justify-content: space-around;
  padding: var(--space-4) var(--space-5);
}
.hero-network-item { align-items: center; color: var(--color-primary); display: inline-flex; font-size: var(--step-0); font-weight: var(--weight-heading); gap: var(--space-2); min-height: var(--osim-hero-network-logo-height, 28px); }
.hero-network-logo { display: block; height: var(--osim-hero-network-logo-height, 28px); max-width: 132px; object-fit: contain; width: auto; }
.hero-access-panel {
  align-items: stretch;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevation);
	display: block;
	grid-column: 1;
	grid-row: auto;
	padding: var(--space-5);
}
.hero-access-flow { align-items: center; display: flex; flex-wrap: nowrap; gap: clamp(4px, 1vw, 12px); justify-content: space-between; width: 100%; }
.hero-access-step { align-items: center; color: var(--color-text); display: flex; flex: 1 1 0; flex-direction: column; font-size: clamp(.6rem, 1.1vw, .9rem); gap: 6px; min-width: 0; text-align: center; }
.hero-access-step svg { color: var(--color-primary); flex: none; }
.hero-access-step span, .hero-access-step a { max-width: 12ch; overflow-wrap: anywhere; }
.hero-access-step a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.hero-access-arrow { color: var(--color-primary); flex: 0 0 auto; font-size: clamp(.85rem, 1.8vw, 1.4rem); line-height: 1; }

/* =========================================================================
   Chip cards — recurring motif for feature / pricing / step cards
   ========================================================================= */
.chip-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-4);
  position: relative; overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-signal), box-shadow var(--dur-fast) var(--ease-signal), border-color var(--dur-fast);
}
.chip-card::before {
  content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 26px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: .85;
}
.chip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevation); border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border)); }
.chip-card .icon-badge {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
  color: var(--color-primary); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-3);
}
.chip-card h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.chip-card p { margin: 0; font-size: var(--step--1); }

.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card-access-panel { padding: var(--space-6); }
.card-access-flow { align-items: stretch; }
.card-access-step {
  align-items: center;
  display: grid;
  gap: var(--space-2);
  grid-template-rows: auto auto;
  justify-items: center;
  min-width: 0;
  position: relative;
  text-align: center;
}
.card-access-step-top { align-items: center; display: flex; gap: var(--space-3); min-height: 2.4rem; }
.card-access-step .icon-badge { margin: 0; }
.card-access-step p {
  color: var(--color-text);
  font-size: var(--step--1);
  font-weight: var(--weight-strong);
  margin: 0;
}
.card-access-arrow {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  line-height: 1;
}

/* =========================================================================
   How it works — real sequence, so numbering is earned here
   ========================================================================= */
.steps { counter-reset: step; }
.step-card { position: relative; padding-left: 3.4rem; }
.step-card h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.step-card::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-weight: var(--weight-heading); font-size: var(--step-0);
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
  color: var(--color-primary); display: flex; align-items: center; justify-content: center;
}
.step-connector { position: relative; }
.step-connector:not(:last-child)::after {
  content: ""; position: absolute; left: 1.2rem; top: 2.4rem; bottom: -1.5rem; width: 1px;
  background: repeating-linear-gradient(to bottom, var(--color-border) 0 6px, transparent 6px 12px);
}

/* =========================================================================
   Pricing
   ========================================================================= */
.pricing-grid { align-items: stretch; }
.pricing-card {
  display: flex; flex-direction: column; text-align: left;
  min-height: 100%; padding-top: calc(var(--space-5) + .35rem);
}
.pricing-card.is-popular { border-color: var(--color-primary); box-shadow: var(--shadow-elevation); }
.pricing-badge {
  position: absolute; top: var(--space-sm); right: var(--space-sm); z-index: 1;
  background: var(--color-primary); color: var(--color-on-primary);
  font-size: .7rem; font-weight: var(--weight-heading); text-transform: uppercase; letter-spacing: .05em;
  padding: .25rem .6rem; border-radius: 999px;
}
.pricing-amount { font-family: var(--font-mono); font-size: var(--step-4); font-weight: var(--weight-heading); margin: .25rem 0 .35rem; }
.pricing-amount span { font-size: var(--step-0); color: var(--color-text-muted); font-weight: var(--weight-medium); }
.pricing-description {
  min-height: 2.6em;
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}
.pricing-features { margin: 0 0 var(--space-4); display: grid; gap: .45rem; }
.pricing-features li { display: flex; gap: .55rem; font-size: var(--step--1); color: var(--color-text); }
.pricing-features li svg { flex: none; color: var(--color-success); margin-top: .15rem; }
.pricing-card .btn { margin-top: auto; }
.pricing-access-note {
  max-width: 860px;
  margin: var(--space-4) auto 0;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}
.pricing-access-note h3 {
  font-size: var(--step-1);
  margin-bottom: .45rem;
}
.pricing-access-note p {
  margin-bottom: .65rem;
}
.pricing-access-note p:last-child {
  margin-bottom: 0;
}
.pricing-access-note__security {
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

/* =========================================================================
   Contact
   ========================================================================= */
.contact-grid {
	align-items: start;
	display: grid;
	gap: var(--space-5);
	grid-template-columns: minmax(0, 1fr);
	max-width: var(--osim-section-width, 800px);
	margin-inline: auto;
}
.osim-section-contact .section-head { margin-inline: auto; text-align: center; }
.osim-section-contact .section-head .eyebrow { justify-content: center; }
.osim-section-contact { padding-block: clamp(24px, 2.5vw, 36px); }
.contact-card { padding: var(--space-4); width: 100%; }
.contact-form {
  display: grid;
  gap: var(--space-2);
}
.contact-form-row { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-form-row > div { display: grid; gap: var(--space-1); }
.contact-form label {
  color: var(--color-text);
  font-size: var(--step--1);
  font-weight: var(--weight-strong);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font: inherit;
  min-height: 44px;
  padding: .75rem .85rem;
  width: 100%;
}
.contact-form textarea {
  min-height: 104px;
  resize: vertical;
}
.contact-form .btn {
	justify-self: start;
}
.contact-form-help { color: var(--color-text-muted); font-size: var(--step--1); margin: calc(var(--space-2) * -1) 0 0; }

/* =========================================================================
   Networks / platforms marquee
   ========================================================================= */
.logo-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: center; }
.logo-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--color-border); background: var(--color-surface);
  border-radius: 999px; padding: .55rem 1rem; font-size: var(--step--1); color: var(--color-text-muted); font-weight: var(--weight-medium);
}
.logo-row--platforms .logo-pill { justify-content: center; min-height: 52px; }
.platform-logo { align-items: center; color: var(--color-primary); display: inline-flex; font-size: var(--step-1); font-weight: var(--weight-heading); justify-content: center; min-width: var(--osim-platform-logo-height); }
.platform-logo img { height: var(--osim-platform-logo-height); object-fit: contain; width: auto; }
.platform-logo > span { align-items: center; background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface)); border: 1px solid var(--color-border); border-radius: 8px; display: inline-flex; height: var(--osim-platform-logo-height); justify-content: center; width: var(--osim-platform-logo-height); }

/* =========================================================================
   Comparison table
   ========================================================================= */
.compare-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.compare-table th, .compare-table td { padding: .65rem .9rem; text-align: center; font-size: var(--step--1); border-bottom: 1px solid var(--color-border); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; color: var(--color-text-muted); }
.compare-table thead th { background: var(--color-bg); font-family: var(--font-display); font-size: var(--step-0); }
.compare-table th.is-osim, .compare-table td.is-osim { background: color-mix(in srgb, var(--color-primary) 6%, transparent); font-weight: var(--weight-strong); }
.compare-table tr:last-child td { border-bottom: none; }
.mark-yes { color: var(--color-success); font-weight: var(--weight-heading); }
.compare-table .has-mark-yes .mark-yes { display: inline-flex; justify-content: center; width: 100%; }
.compare-table td.is-osim .mark-yes { display: inline-flex; justify-content: center; width: 100%; }
.mark-no { color: var(--color-text-muted); }

/* =========================================================================
   FAQ accordion
   ========================================================================= */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-container { max-width: 800px; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: none; text-align: left; min-height: 44px; padding: .75rem 0; cursor: pointer;
  font-family: var(--font-display); font-size: var(--step-1); color: var(--color-text);
}
.faq-question .plus { flex: none; width: 22px; height: 22px; position: relative; }
.faq-question .plus::before, .faq-question .plus::after { content: ""; position: absolute; background: var(--color-primary); border-radius: 2px; transition: transform var(--dur-fast) var(--ease-signal); }
.faq-question .plus::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-question .plus::after { top: 0; left: 50%; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-item[data-open="true"] .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer { padding-bottom: .85rem; max-width: 68ch; }
.faq-actions { display: flex; justify-content: center; margin-top: var(--space-4); }
.osim-failure-guide-link { margin-top: var(--space-3); }

/* =========================================================================
   Testimonials
   ========================================================================= */
.testimonial-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); display: flex; flex-direction: column; min-height: 100%; }
.testimonial-stars { color: var(--color-primary); font-family: var(--font-mono); letter-spacing: .15em; margin-bottom: .6rem; }
.testimonial-card p { color: var(--color-text); line-height: 1.55; }
.testimonial-author { display: flex; align-items: center; gap: .6rem; margin-top: auto; padding-top: var(--space-3); }
.testimonial-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); }
.testimonial-name { font-weight: var(--weight-strong); font-size: var(--step--1); }
.testimonial-role { font-size: .8rem; color: var(--color-text-muted); }

/* =========================================================================
   Final CTA + sticky bar
   ========================================================================= */
.final-cta { text-align: center; background: linear-gradient(155deg, var(--color-primary), var(--color-primary-dark)); color: var(--color-on-primary); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-5); }
.final-cta h2, .final-cta p { color: var(--color-on-primary); }
.final-cta .lede { margin-bottom: var(--space-5); }
.final-cta .btn-ghost { border-color: color-mix(in srgb, var(--color-on-primary) 45%, transparent); color: var(--color-on-primary); }
.final-cta-actions { justify-content: center; }
.final-cta-actions .btn,
.lead-form .btn { min-height: 48px; }

.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--color-surface-raised); border-top: 1px solid var(--color-border);
  box-shadow: 0 -12px 32px -20px rgba(0,0,0,.3);
  padding: .75rem var(--space-md);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transform: translateY(100%); transition: transform var(--dur-med) var(--ease-signal);
}
.sticky-cta.is-visible { transform: translateY(0); }

.back-to-top {
  align-items: center;
  background: var(--color-primary);
  block-size: var(--osim-back-to-top-size, 46px);
  border: 1px solid color-mix(in srgb, var(--color-on-primary) 20%, transparent);
  border-radius: 50%;
  bottom: calc(var(--osim-back-to-top-bottom, 24px) + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-elevation);
  color: var(--color-on-primary);
  cursor: pointer;
  display: inline-flex;
  inline-size: var(--osim-back-to-top-size, 46px);
  justify-content: center;
  position: fixed;
  right: calc(var(--osim-back-to-top-right, 20px) + env(safe-area-inset-right));
  z-index: 95;
}
.back-to-top:hover { background: var(--color-primary-dark); }
.home .back-to-top { bottom: calc(var(--osim-back-to-top-bottom, 24px) + 64px + env(safe-area-inset-bottom)); }
.sticky-cta[hidden] { display: none; }
.sticky-cta strong { font-family: var(--font-mono); }

/* =========================================================================
   Lead capture form (final CTA)
   ========================================================================= */
.lead-form { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: var(--space-4); }
.lead-form input[type="email"] {
  flex: 0 1 400px; max-width: 400px; padding: .85rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--color-on-primary) 35%, transparent);
  background: color-mix(in srgb, var(--color-on-primary) 12%, transparent);
  color: var(--color-on-primary); font-size: var(--step--1);
}
.lead-form input[type="email"]::placeholder { color: color-mix(in srgb, var(--color-on-primary) 65%, transparent); }
.lead-form-status { font-size: var(--step--1); margin-top: .6rem; min-height: 1.2em; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--osim-footer-bg, var(--color-surface)); border-top: 1px solid var(--color-border); padding-block: var(--space-8) var(--space-5); }
.home .site-footer { padding-bottom: calc(var(--space-5) + 96px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-5); margin-bottom: var(--space-5); }
.footer-heading, .footer-widget-title { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.footer-col ul { display: grid; gap: .4rem; }
.footer-col a { text-decoration: none; color: var(--color-text-muted); font-size: var(--step--1); }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; padding-top: var(--space-4); border-top: 1px solid var(--color-border); font-size: .8rem; color: var(--color-text-muted); }
.social-row { display: flex; gap: .6rem; }
.social-row a, .social-contact-trigger { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--color-border); background: transparent; color: inherit; display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.header-social-row { display: flex; align-items: center; gap: .35rem; }
.header-social-row a, .header-social-row .social-contact-trigger { align-items: center; border: 1px solid var(--color-border); border-radius: 50%; color: var(--color-text-muted); display: inline-flex; height: 30px; justify-content: center; text-decoration: none; width: 30px; }
.header-social-row a:hover, .social-row a:hover, .social-contact-trigger:hover { color: var(--color-primary); }
.osim-brand-icon { display: block; fill: currentColor; flex: none; height: 1em; opacity: inherit; width: 1em; }
.social-contact-popover { display: inline-flex; position: relative; }
.social-contact-card { background: var(--color-surface-raised); border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: var(--shadow-elevation); bottom: calc(100% + 8px); color: var(--color-text); display: grid; gap: .35rem; left: 50%; min-width: 170px; padding: .7rem; position: absolute; transform: translateX(-50%); width: max-content; z-index: 20; }
.social-contact-card strong { font-size: var(--step--1); }
.social-contact-detail { color: var(--color-text-muted); font-size: var(--step--1); overflow-wrap: anywhere; }
.social-contact-card button { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text); cursor: pointer; font: inherit; padding: .35rem .55rem; }
.header-social-row .social-contact-card { bottom: auto; left: auto; right: 0; top: calc(100% + 8px); transform: none; }

/* =========================================================================
   Standard pages / legal content
   ========================================================================= */
.entry-page {
  max-width: 960px;
  padding-block: clamp(24px, 2.6vw, 36px);
}
.entry-page--contained { max-width: 960px; padding-block: clamp(32px, 4vw, 56px); }
.entry-page__header { margin-bottom: var(--space-5); max-width: 800px; }
.entry-page__meta { color: var(--color-text-muted); font-size: var(--step--1); margin: var(--space-2) 0 0; }
.entry-page__featured { border-radius: var(--radius-md); margin-block: var(--space-5); overflow: hidden; }
.entry-page__featured img { width: 100%; }
.entry-page--contained .entry-content { max-width: 780px; }
.entry-page--contained .entry-content a { color: var(--color-primary); font-weight: var(--weight-strong); }
.entry-page--contained .entry-content :where(blockquote, pre, table) { border: 1px solid var(--color-border); border-radius: var(--radius-sm); max-width: 100%; }
.entry-page--contained .entry-content blockquote { border-left: 3px solid var(--color-primary); margin-inline: 0; padding: var(--space-4); }
.entry-page--contained .entry-content pre { background: var(--color-surface-raised); overflow-x: auto; padding: var(--space-4); }
.entry-page--contained .entry-content table { border-collapse: collapse; display: block; overflow-x: auto; }
.entry-page--contained .entry-content :where(th, td) { border: 1px solid var(--color-border); padding: .65rem .8rem; text-align: left; }
.osim-content-zh .entry-content { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; }
.legal-page { max-width: 1040px; }
.entry-page h1 {
  margin-bottom: var(--space-3);
}
.entry-content {
  color: var(--color-text-muted);
}
.entry-content > * {
  margin-top: 0;
}
.entry-content > * + * {
  margin-top: var(--space-3);
}
.entry-content :where(h2, h3) {
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.entry-content :where(p, li) {
  line-height: 1.55;
}
.entry-content :where(ul, ol) {
  padding-left: var(--space-5);
}

/* =========================================================================
   SMS verification failure guide
   ========================================================================= */
.failure-guide .container {
  max-width: 1180px;
}
.failure-guide__head {
  max-width: 980px;
  margin-bottom: var(--space-5);
}
.failure-guide__head h1 {
  margin-bottom: var(--space-3);
}
.failure-steps {
  counter-reset: none;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
}
.failure-step,
.failure-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.failure-step__number {
  align-items: center;
  background: var(--color-text);
  border-radius: 50%;
  color: var(--color-surface);
  display: inline-flex;
  font-weight: var(--weight-heading);
  height: 34px;
  justify-content: center;
  margin-bottom: var(--space-3);
  width: 34px;
}
.failure-step h2,
.failure-card h2 {
  font-size: var(--step-1);
  margin-bottom: var(--space-2);
}
.failure-step p,
.failure-card p,
.failure-card li {
  color: var(--color-text-muted);
  line-height: 1.55;
}
.failure-reasons {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}
.failure-card--wide {
  margin-block: var(--space-4);
}
.failure-card--wide ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-left: var(--space-5);
}
.failure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { grid-template-columns: minmax(0, 1fr); }
  .floating-toast { position: static; margin: var(--space-3) auto 0; max-width: min(100%, 420px); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .failure-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --osim-mobile-gutter: 10px; }
  .header-row { position: relative; }
  .primary-nav { background: var(--color-bg); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-elevation); display: flex; flex-direction: column; height: auto; left: calc(var(--osim-mobile-gutter) * -1); max-height: none; opacity: 0; overflow: visible; padding: var(--space-4) var(--osim-mobile-menu-edge) var(--space-4) var(--space-4); pointer-events: none; position: absolute; right: calc(var(--osim-mobile-gutter) * -1); top: 100%; transform: translateY(-.5rem); transition: opacity var(--dur-fast) var(--ease-signal), transform var(--dur-fast) var(--ease-signal), visibility var(--dur-fast); visibility: hidden; z-index: 30; }
  .primary-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; width: 100%; }
  .primary-nav li { width: 100%; }
  .primary-nav a { display: block; font-size: var(--osim-mobile-menu-font-size); font-weight: var(--osim-mobile-menu-font-weight); padding: .75rem 0; }
	.contact-form-row { grid-template-columns: 1fr; }
  .header-actions { margin-left: auto; }
  .header-actions > :not(.nav-toggle) { display: none; }
  .nav-toggle { display: inline-flex; inline-size: 44px; justify-content: center; margin-left: auto; padding-inline: .35rem; }
  .primary-nav, .primary-nav a, .primary-nav ul { text-align: var(--osim-mobile-menu-align); }
  .mobile-nav-custom-content { border-top: 1px solid var(--color-border); display: grid; gap: var(--space-2); margin-top: var(--space-2); padding-top: var(--space-3); text-align: var(--osim-mobile-custom-align); }
  .mobile-custom-position-before > ul { order: 2; }
  .mobile-custom-position-before > .mobile-nav-custom-content { border-bottom: 1px solid var(--color-border); border-top: 0; margin-bottom: var(--space-2); margin-top: 0; order: 1; padding-bottom: var(--space-3); padding-top: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card-access-flow {
    display: grid;
    gap: clamp(2px, 1.5vw, var(--space-2));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }
  .card-access-step { gap: var(--space-1); grid-template-rows: auto minmax(2.6em, auto); }
  .card-access-step-top { gap: 2px; min-height: 2rem; }
  .card-access-step .icon-badge {
    height: clamp(25px, 8vw, 34px);
    width: clamp(25px, 8vw, 34px);
  }
  .card-access-step p {
    font-size: clamp(.54rem, 2.3vw, .76rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .card-access-arrow { font-size: clamp(.6rem, 2.5vw, .9rem); }
  .failure-steps,
  .failure-reasons { grid-template-columns: 1fr; }
  .container {
    padding-left: calc(var(--osim-mobile-gutter) + env(safe-area-inset-left));
    padding-right: calc(var(--osim-mobile-gutter) + env(safe-area-inset-right));
  }
  .logo-row--platforms { display: grid; gap: var(--space-2); grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .logo-row--platforms .logo-pill { min-width: 0; padding-inline: .35rem; }
  .logo-row--platforms .logo-pill > span:last-child { overflow-wrap: anywhere; text-align: center; }
  .hero { padding-block: var(--osim-hero-y); }
  .hero h1 { max-width: 14ch; }
  .hero-visual { grid-template-columns: 1fr; }
  .hero-access-panel { grid-column: 1; grid-row: auto; }
  .sim-card { padding: var(--space-5); }
  .sim-signal { top: var(--space-5); right: var(--space-5); }
  .otp-digits { gap: .3rem; }
  .otp-digit { width: 1.85rem; height: 2.35rem; }
  .card-access-panel { padding: var(--space-5); }
  .final-cta-actions { flex-wrap: nowrap; gap: var(--space-2); }
  .final-cta-actions .btn {
    flex: 1 1 0;
    font-size: clamp(.68rem, 3vw, .94rem);
    min-width: 0;
    padding-inline: clamp(.45rem, 2.4vw, .9rem);
    white-space: nowrap;
  }
  .lead-form input[type="email"] { flex-basis: 100%; max-width: 100%; }
	.entry-page--contained { padding-block: var(--space-5); }
	.entry-page__header { margin-bottom: var(--space-4); }
	.entry-page--contained .entry-content { max-width: none; }
	.back-to-top { block-size: min(var(--osim-back-to-top-size, 46px), 44px); inline-size: min(var(--osim-back-to-top-size, 46px), 44px); }
  .footer-grid--mobile-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid--mobile-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid--mobile-one { grid-template-columns: 1fr; }
  .footer-grid--mobile-three .footer-col:first-child,
  .footer-grid--mobile-two .footer-col:first-child { grid-column: 1 / -1; }
  h1 { font-size: var(--step-4); }
  .compare-table th, .compare-table td { padding: .75rem .45rem; overflow-wrap: anywhere; }
}
