:root {
  --bg: #081d36;
  --surface: #1e4a7d;
  --surface-2: #2a5a93;
  --border: #2c5580;
  --border-strong: #3d6ea3;
  --text: #f7fafc;
  --muted: #b8c4d1;
  --muted-2: #8494a4;
  --accent: #29b6f6;
  --link: #7dd3fc;
  --link-hover: #e0f2fe;
  --accent-ink: #081d36;
  --success: #43c59e;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
    "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.35;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

a {
  color: var(--link);
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.55);
  outline-offset: 3px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.note {
  color: var(--muted-2);
  font-size: 14px;
}

.br-mobile {
  display: inline;
}

/* Keep a Japanese particle with the company name it modifies. */
.no-break {
  white-space: nowrap;
}

/* header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 18px 20px;
}

.brand {
  font-size: 18px;
  font-weight: 600;
}

.brand-sub {
  color: var(--muted-2);
  font-size: 13px;
}

.lang-switch {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.lang-switch:hover {
  color: var(--text);
}

/* hero */

.hero {
  padding: clamp(48px, 9vw, 96px) 0 clamp(40px, 7vw, 72px);
  background: radial-gradient(circle at 20% 0%, var(--surface) 0%, var(--bg) 60%);
}

.hero-inner {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  letter-spacing: -0.01em;
}

.hero-lead {
  max-width: 56ch;
  font-size: clamp(16px, 2.2vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 20px;
}

.store-actions {
  align-items: center;
  column-gap: 18px;
  margin-bottom: 8px;
}

.play-store-link {
  display: inline-flex;
  align-items: center;
  min-height: 53px;
  text-decoration: none;
}

.play-store-link:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.55);
  outline-offset: 4px;
  border-radius: 8px;
}

.play-store-badge {
  display: block;
  width: 180px;
  height: auto;
}

.store-availability {
  margin: 0 0 18px;
  color: var(--muted-2);
  font-size: 13px;
}

.hero-proof {
  max-width: 60ch;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.7;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

.hero-visual-caption {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  text-align: center;
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.btn-secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}

.btn:focus-visible {
  outline: 3px solid rgba(41, 182, 246, 0.55);
  outline-offset: 2px;
}

/* sections */

.section {
  padding: clamp(40px, 7vw, 72px) 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  max-width: 28ch;
}

.two-col {
  display: grid;
  gap: 32px;
}

/* how it works */

.steps {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  overflow: hidden;
  padding: 24px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.step-num {
  position: absolute;
  top: -26px;
  right: -14px;
  z-index: 0;
  color: var(--accent);
  opacity: 0.22;
  font-size: 170px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.steps h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
  font-size: 18px;
}

.steps p {
  position: relative;
  z-index: 1;
  margin: 0;
}

/* not this */

.not-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.not-list li {
  position: relative;
  padding: 16px 18px 16px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.not-list li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 18px;
  width: 10px;
  height: 10px;
  background: var(--muted-2);
  border-radius: 999px;
}

/* who for */

.who-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.who-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.who-primary {
  background: var(--surface-2);
  border-color: var(--accent);
}

.who-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.who-card p {
  margin: 0;
}

/* pricing model */

.pricing-grid {
  display: grid;
  gap: 16px;
  margin: 24px 0 16px;
}

.pricing-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.pricing-card h3 {
  font-size: 18px;
}

.pricing-card p {
  margin: 0;
}

/* company */

.company-inner {
  display: grid;
  gap: 24px;
}

.company h2 {
  font-size: clamp(22px, 3vw, 28px);
}

.contact-box {
  align-self: start;
  padding: 22px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
}

.contact-box h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.contact-box .note {
  margin: 0;
}

/* document pages */

.document-hero {
  padding: clamp(44px, 7vw, 72px) 0 32px;
  background: radial-gradient(circle at 15% 0%, var(--surface) 0%, var(--bg) 64%);
  border-bottom: 1px solid var(--border);
}

.document-hero h1 {
  max-width: none;
  font-size: clamp(30px, 5vw, 46px);
  text-wrap: balance;
}

.document-title-part {
  display: inline-block;
  white-space: nowrap;
}

.document-lead {
  max-width: 64ch;
  font-size: clamp(16px, 2vw, 18px);
}

.document-meta {
  margin: 20px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.document-page {
  padding: clamp(36px, 6vw, 64px) 0;
}

.document-body {
  max-width: 760px;
}

.document-section + .document-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.document-section h2 {
  font-size: clamp(20px, 3vw, 26px);
}

.document-section h3 {
  margin-top: 24px;
  font-size: 17px;
}

.document-section ul,
.document-section ol {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding-left: 1.4em;
  color: var(--muted);
}

.manual-callout,
.manual-note {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}

.manual-callout h2,
.manual-note strong {
  color: var(--text);
}

.manual-callout ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding-left: 1.4em;
  color: var(--muted);
}

.manual-callout li::marker {
  color: var(--accent);
}

.manual-nav {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.manual-nav a {
  display: block;
  padding: 16px 18px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
}

.manual-nav a:hover {
  border-color: var(--accent);
}

.manual-nav strong,
.manual-nav span {
  display: block;
}

.manual-nav strong {
  margin-bottom: 3px;
}

.manual-nav span {
  color: var(--muted);
  font-size: 14px;
}

.manual-steps {
  display: grid;
  gap: 18px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.manual-steps.compact {
  gap: 10px;
}

.manual-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.manual-steps p,
.manual-steps h3 {
  margin: 0;
}

.manual-steps h3 {
  color: var(--text);
  font-size: 17px;
}

.manual-step-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
}

.manual-note {
  margin-top: 24px;
  border-color: var(--accent);
}

.manual-note p {
  margin: 6px 0 0;
}

.manual-figure {
  max-width: 720px;
  margin: 28px auto 0;
}

.manual-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.manual-figure figcaption {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.55;
}

.manual-figure-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.manual-figure-grid .manual-figure {
  width: 100%;
}

.manual-two-col {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.manual-two-col .support-card p:last-child {
  margin-bottom: 0;
}

.manual-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.manual-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
}

.manual-table th,
.manual-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.manual-table th {
  color: var(--text);
  background: var(--surface-2);
  font-weight: 600;
}

.manual-table td {
  color: var(--muted);
}

.manual-table tbody tr:nth-child(even) {
  background: var(--surface);
}

.manual-table tbody tr:last-child td {
  border-bottom: none;
}

.manual-table td:first-child {
  color: var(--text);
  font-weight: 600;
}

.manual-callout code,
.document-section code {
  padding: 2px 5px;
  color: var(--text);
  background: rgba(7, 17, 31, 0.55);
  border-radius: 4px;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.site-header a,
.site-footer a {
  color: inherit;
}

.site-header a {
  text-decoration: none;
}

.document-section a {
  color: var(--link);
  font-weight: 700;
}

.support-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.support-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.support-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.support-card p:last-child {
  margin-bottom: 0;
}

.device-matrix-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.device-matrix {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
}

.device-matrix th,
.device-matrix td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.device-matrix thead th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}

.device-matrix tbody tr:nth-child(even) {
  background: var(--surface);
}

.device-matrix tbody tr:last-child td {
  border-bottom: none;
}

.device-matrix th.status,
.device-matrix td.status {
  text-align: center;
}

.device-matrix td:first-child {
  font-weight: 600;
}

.device-matrix td:not(:first-child) {
  color: var(--muted);
}

.device-matrix .ok {
  color: var(--success);
  font-weight: 700;
  font-size: 16px;
}

.device-matrix .unverified,
.device-matrix .na {
  color: var(--muted-2);
  font-size: 12px;
}

.support-action {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  padding: 28px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: 12px;
}

.support-action > * {
  margin: 0;
}

.support-action h2 {
  font-size: clamp(20px, 3vw, 26px);
}

.support-action .btn {
  justify-self: start;
  margin-top: 8px;
}

.support-action + .document-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

/* footer */

.site-footer {
  padding: 24px 0 40px;
  color: var(--muted-2);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  color: inherit;
}

.site-footer a {
  color: var(--muted);
  text-underline-offset: 0.2em;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-link-button {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.footer-link-button:hover {
  color: var(--text);
}

.footer-link-button:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.55);
  outline-offset: 3px;
}

.analytics-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  max-width: none;
  margin: 0;
  padding: 10px clamp(16px, 3vw, 40px) calc(10px + env(safe-area-inset-bottom));
  background: var(--surface-2);
  border: 0;
  border-top: 1px solid var(--border-strong);
  border-radius: 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.24);
  display: flex;
  align-items: center;
  gap: 20px;
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.analytics-consent-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 0;
}

.analytics-consent .btn {
  min-height: 40px;
  padding-inline: 14px;
  white-space: nowrap;
}

/* layout breakpoints (mobile-first) */

@media (min-width: 720px) {
  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .who-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .company-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 380px) {
  .br-mobile {
    display: block;
  }
}

@media (max-width: 719px) {
  /* Keep the product image next to the title on narrow screens. The copy
     remains the same semantic group; only its visual order changes so the
     image is seen before the longer explanation and actions. */
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy > * {
    min-width: 0;
    max-width: 100%;
  }

  .hero-copy > .eyebrow {
    order: 1;
  }

  .hero-copy > h1 {
    order: 2;
  }

  .hero-inner > .hero-visual {
    order: 3;
    min-width: 0;
    width: 100%;
  }

  .hero-copy > .hero-lead {
    order: 4;
    margin-top: 20px;
  }

  .hero-copy > .hero-actions {
    order: 5;
  }

  .store-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .store-actions .btn {
    width: min(100%, 240px);
  }

  .hero-copy > .store-availability {
    order: 6;
  }

  .hero-copy > .hero-proof {
    order: 7;
  }

  .analytics-consent {
    grid-template-columns: minmax(0, 1fr) auto;
    display: grid;
    gap: 8px 10px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .analytics-consent p {
    font-size: 12px;
    line-height: 1.35;
  }

  .analytics-consent-actions {
    align-self: center;
    gap: 6px;
  }

  .analytics-consent .btn {
    min-height: 38px;
    padding-inline: 9px;
  }
}
