:root {
  --navy: #082452;
  --blue: #0f6bff;
  --cyan: #14c8cf;
  --text: #102033;
  --muted: #607089;
  --line: #dce8f6;
  --soft: #f5f9fe;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 70, 140, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, #f7fbff 55%, #fff 100%);
  letter-spacing: 0;
}
body.csh-app-webview .site-header,
body.csh-app-webview .android-prompt {
  display: none;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0);
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  margin: calc(8px + env(safe-area-inset-top, 0)) clamp(10px, 3vw, 22px) 0;
  padding: 12px clamp(14px, 3vw, 24px);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(245,250,255,.58));
  box-shadow: 0 18px 45px rgba(15, 70, 140, .14), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand img { width: min(206px, 56vw); height: auto; display: block; }
.site-nav { display: none; gap: 22px; align-items: center; font-size: 14px; font-weight: 700; }
.site-nav a { color: var(--navy); }
.site-nav a.is-active { color: var(--blue); }
.lang-form select {
  min-height: 42px;
  border: 1px solid rgba(220,232,246,.9);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  color: var(--navy);
  font-weight: 700;
  padding: 0 12px;
}
.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  display: inline-grid;
  place-items: center;
  gap: 4px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--navy); display: block; }
.site-nav.is-open {
  display: grid;
  position: absolute;
  left: 16px;
  right: 16px;
  top: 74px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}

.android-prompt {
  position: sticky;
  top: calc(10px + env(safe-area-inset-top, 0));
  z-index: 30;
  width: min(1120px, calc(100% - 24px));
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 70, 140, .1);
}
.android-prompt[hidden] { display: none; }
.android-prompt strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}
.android-prompt span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.android-prompt a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.android-prompt button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.android-prompt--static { grid-template-columns: 1fr auto; }

.ad-section, .section, .hero, .notice-card, .result-shell, .content-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.ad-section { padding-top: 20px; }
.ad-box {
  display: grid;
  place-items: center;
  min-height: 86px;
  border: 1px dashed #b9ccea;
  border-radius: 8px;
  background: #f8fbff;
  color: #7b8ca8;
  font-size: 13px;
  font-weight: 700;
}
.ad-box--wide { min-height: 118px; }
.ad-box--rectangle { min-height: 250px; max-width: 360px; margin-inline: auto; }
.ad-box--footer { width: min(1120px, calc(100% - 32px)); margin: 26px auto 0; }

.hero {
  display: grid;
  gap: 28px;
  padding: clamp(48px, 9vw, 96px) 0 34px;
}
.hero-copy h1 {
  margin: 0;
  max-width: 820px;
  color: var(--navy);
  font-size: clamp(38px, 8vw, 78px);
  line-height: .98;
  letter-spacing: 0;
}
.hero-copy p {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.55;
}
.download-form {
  padding: 14px;
  border: 1px solid rgba(220,232,246,.95);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
}
.download-form.compact { margin-top: 22px; box-shadow: none; }
.input-row { display: grid; gap: 12px; }
.input-row input {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}
.input-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15,107,255,.12); }
.input-row button, .download-link {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(15,107,255,.24);
}
.input-row button svg, .download-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.trust-note { margin: 13px 2px 0; color: var(--muted); font-size: 14px; }

.section { padding: 58px 0 0; }
.section-heading { display: grid; gap: 12px; max-width: 760px; }
.section-heading h2, .content-page h1, .result-card h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.08;
}
.section-heading p, .feature-card p, .content-page p, .content-page li {
  color: var(--muted);
  line-height: 1.7;
}
.platform-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.platform-list span, .feature-card, .notice-card, .result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.platform-list span {
  min-height: 76px;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 800;
}
.feature-grid { display: grid; gap: 14px; margin-top: 24px; }
.feature-card { padding: 24px; }
.feature-card h3 { margin: 18px 0 8px; color: var(--navy); font-size: 21px; }
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef7ff;
  color: var(--blue);
  font-weight: 900;
}
.notice-card {
  margin-top: 56px;
  margin-bottom: 24px;
  padding: 22px;
  border-left: 5px solid var(--cyan);
}
.notice-card strong { color: var(--navy); }
.notice-card p { margin: 8px 0 0; color: var(--muted); line-height: 1.7; }

.result-shell { padding: 46px 0; }
.result-card { padding: clamp(22px, 5vw, 42px); }
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 800; }
.result-list { display: grid; gap: 12px; margin: 28px 0; }
.result-list div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
}
.result-list dt { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.result-list dd { margin: 0; color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
.alert {
  padding: 16px;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #f3f8ff;
  color: var(--navy);
  line-height: 1.6;
}
.alert--error { border-color: #ffd2d2; background: #fff6f6; color: #8b2020; }
.result-thumbnail {
  display: block;
  width: min(100%, 520px);
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin: 8px 0 24px;
  background: var(--soft);
}
.legal-confirm {
  margin: 24px 0;
  padding: 18px;
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid var(--line);
}
.legal-confirm p { margin: 0 0 12px; color: var(--navy); font-weight: 800; line-height: 1.5; }
.legal-confirm label { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); line-height: 1.5; }
.download-link { padding: 0 22px; width: 100%; text-decoration: none; }
.download-link.is-disabled { opacity: .46; pointer-events: none; filter: grayscale(.2); }
.download-grid { display: grid; gap: 12px; }
.app-download { margin: 24px 0 8px; }

.content-page {
  max-width: 860px;
  padding: 54px 0 24px;
}
.content-page h2 { margin-top: 34px; color: var(--navy); font-size: 24px; }
.steps { padding-left: 22px; }

.site-footer {
  margin-top: 50px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.footer-inner > div { display: flex; gap: 12px; align-items: center; }
.footer-inner p { margin: 0; color: var(--muted); line-height: 1.5; }
.footer-inner strong { color: var(--navy); }
.footer-inner nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-inner nav a { color: var(--navy); font-weight: 700; }
.fineprint {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 760px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; justify-content: center; }
  .input-row { grid-template-columns: 1fr 190px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .result-list div { grid-template-columns: 150px 1fr; align-items: center; }
  .download-link { width: auto; }
}

@media (max-width: 520px) {
  .platform-list { grid-template-columns: 1fr; }
  .site-header { gap: 8px; padding-inline: 12px; }
  .lang-form select { width: 92px; padding-inline: 8px; }
  .android-prompt { grid-template-columns: 1fr auto; }
  .android-prompt a { grid-column: 1 / -1; }
}
