:root {
  color-scheme: light;
  --background: #f8fafc;
  --background-accent: #eef6ff;
  --surface: #ffffff;
  --surface-raised: rgba(255, 255, 255, 0.86);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --border: #e2e8f0;
  --primary: #1473e6;
  --primary-strong: #0c58b8;
  --mint: #4fd1b8;
  --violet: #8b5cf6;
  --coral: #ff6b6b;
  --amber: #f6b73c;
  --shadow: 0 20px 70px rgba(15, 23, 42, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Noto Sans JP", "Hiragino Sans",
    "Yu Gothic", "YuGothic", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(79, 209, 184, 0.20), transparent 34rem),
    radial-gradient(circle at 86% 12%, rgba(139, 92, 246, 0.17), transparent 34rem),
    linear-gradient(135deg, var(--background), var(--background-accent) 48%, var(--background));
  color: var(--text-primary);
  line-height: 1.65;
  letter-spacing: 0;
}

body.policy-page {
  background: var(--background);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text-primary);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  clip-path: inset(0 round 10px);
  box-shadow: 0 10px 26px rgba(20, 115, 230, 0.22);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--primary);
  background: rgba(20, 115, 230, 0.08);
}

.hero,
.section,
.legal-shell,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 72px);
  padding: 52px 0 42px;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(20, 115, 230, 0.14);
  border-radius: 999px;
  background: rgba(20, 115, 230, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13em;
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 18px 36px rgba(20, 115, 230, 0.22);
}

.button.secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
}

.privacy-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-visual {
  position: relative;
}

.app-icon-showcase {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid rgba(226, 232, 240, 0.72);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 246, 255, 0.72)),
    repeating-linear-gradient(90deg, rgba(20, 115, 230, 0.08) 0 1px, transparent 1px 34px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-icon {
  position: relative;
  z-index: 2;
  width: min(190px, 52%);
  border-radius: 26%;
  clip-path: inset(0 round 26%);
  box-shadow: 0 26px 60px rgba(20, 115, 230, 0.24);
}

.metadata-panel {
  position: absolute;
  right: 28px;
  bottom: 34px;
  width: 150px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.metadata-panel span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 115, 230, 0.72), rgba(79, 209, 184, 0.58));
}

.metadata-panel span + span {
  margin-top: 10px;
}

.metadata-panel span:nth-child(2) {
  width: 72%;
}

.metadata-panel span:nth-child(3) {
  width: 86%;
}

.metadata-rail {
  position: absolute;
  left: 34px;
  width: 148px;
  height: 12px;
  border-radius: 999px;
  background: rgba(20, 115, 230, 0.12);
}

.rail-one {
  top: 72px;
  transform: rotate(-18deg);
}

.rail-two {
  bottom: 86px;
  transform: rotate(14deg);
  background: rgba(139, 92, 246, 0.12);
}

.section {
  padding: 72px 0;
}

.screenshot-showcase[hidden],
.screen-shot-card[hidden] {
  display: none;
}

.section-header {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-header h2,
.legal-header h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  font-weight: 900;
}

.section-header p,
.legal-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.feature-grid,
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.promise-card,
.legal-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-raised);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.feature-card,
.promise-card {
  padding: 20px;
}

.feature-card h3,
.promise-card h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.35;
}

.feature-card p,
.promise-card p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.screen-strip {
  max-width: 100%;
  margin-inline: -4px;
  padding: 4px 4px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 4px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(20, 115, 230, 0.36) rgba(226, 232, 240, 0.72);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.screen-strip::-webkit-scrollbar {
  height: 10px;
}

.screen-strip::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.72);
}

.screen-strip::-webkit-scrollbar-thumb {
  border: 2px solid rgba(226, 232, 240, 0.72);
  border-radius: 999px;
  background: rgba(20, 115, 230, 0.46);
}

.screen-strip:focus-visible {
  outline: 3px solid rgba(20, 115, 230, 0.28);
  outline-offset: 4px;
  border-radius: 18px;
}

.screen-strip-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 320px;
  width: max-content;
  min-width: 100%;
  gap: 18px;
  padding-right: 28px;
  align-items: start;
}

.screen-shot-card {
  width: 320px;
  margin: 0;
  padding: 14px 14px 18px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  scroll-snap-align: start;
}

.screen-shot-meta {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 3px 12px;
  min-height: 68px;
  margin: 0 0 12px;
  color: var(--text-primary);
  text-align: left;
}

.screen-shot-index {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 115, 230, 0.16);
  border-radius: 14px;
  background: rgba(20, 115, 230, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.screen-shot-title {
  align-self: end;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.screen-shot-meta small {
  align-self: start;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.screen-shot-device {
  position: relative;
  width: 184px;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  padding: 7px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 27px;
  background: #111827;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.screen-shot-device::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 2;
  width: 54px;
  height: 14px;
  border-radius: 0 0 10px 10px;
  background: #111827;
  transform: translateX(-50%);
}

.screen-shot-device img {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 21px;
  background: #f8fafc;
  object-fit: cover;
  object-position: top center;
}

.icon-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20, 115, 230, 0.14), rgba(79, 209, 184, 0.18));
  color: var(--primary);
  font-weight: 900;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  counter-reset: flow;
}

.flow-step {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.flow-step::before {
  counter-increment: flow;
  content: "0" counter(flow);
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.flow-step h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.flow-step p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary), var(--violet), var(--coral));
  color: white;
  box-shadow: 0 24px 60px rgba(20, 115, 230, 0.22);
}

.cta-band h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.cta-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
}

.cta-band .button {
  background: white;
  color: var(--primary);
}

.legal-shell {
  max-width: 900px;
  padding: 52px 0 84px;
}

.legal-header {
  margin-bottom: 24px;
}

.legal-card {
  padding: 28px;
}

.legal-card section + section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.legal-card h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.legal-card h3 {
  margin: 18px 0 8px;
  color: var(--text-primary);
  font-size: 17px;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
}

.legal-card ul,
.legal-card ol {
  margin: 0;
  padding-left: 1.2rem;
}

.legal-card li + li,
.legal-card li > ol {
  margin-top: 8px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  .app-icon-showcase {
    margin: 0 auto;
  }

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

  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: 64px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 0 8px;
    font-size: 12px;
  }

  .hero,
  .section,
  .legal-shell,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions .button,
  .cta-band .button {
    width: 100%;
  }

  .feature-grid,
  .promise-grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .screen-strip-track {
    grid-auto-columns: min(82vw, 300px);
    gap: 16px;
  }

  .screen-shot-card {
    width: 100%;
    padding: 12px 12px 16px;
  }

  .screen-shot-device {
    width: 168px;
  }

  .cta-band,
  .legal-card {
    padding: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
