:root {
  --bg: #f6f7f9;
  --bg-elevated: #fafbfc;
  --ink: #12141a;
  --muted: #5c616b;
  --line: #e2e5eb;
  --accent: #2a3d52;
  --accent-hover: #1e2d3d;
  --accent-soft: rgba(42, 61, 82, 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --max-text: 640px;
  --max-page: 1120px;
  --header-pad-x: clamp(1.25rem, 4vw, 2.75rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font);
  line-height: 1.55;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.page-home {
  background: transparent;
}

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  padding: 0.875rem var(--header-pad-x);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 249, 0.82);
  backdrop-filter: blur(10px);
}

.site-header--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
}

.page-home main {
  padding-top: 4.5rem;
}

.nav {
  max-width: var(--max-page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav--full {
  max-width: none;
}

.brand-lockup,
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  line-height: 1;
  color: var(--ink);
}

.brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.logo-image {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(168px, 46vw);
}

@media (min-width: 520px) {
  .logo-image {
    height: 38px;
    max-width: 188px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.nav-cta {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(20, 24, 20, 0.04);
}

.nav-cta:hover {
  border-color: var(--muted);
  background: var(--bg-elevated);
}

main {
  flex: 1;
}

.hero--slogan {
  min-height: min(72vh, 640px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 10vh, 5rem) var(--header-pad-x) clamp(3.5rem, 8vh, 4.5rem);
}

.hero--slogan .hero-inner {
  max-width: var(--max-page);
  margin: 0;
  width: 100%;
}

.hero-en {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.hero-ja {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.hero-rule {
  display: block;
  width: 2.75rem;
  height: 1px;
  margin-top: 1.35rem;
  background: var(--ink);
  opacity: 0.35;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-text);
  margin: 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-hover);
}

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

.button-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--muted);
  background: var(--bg-elevated);
}

.button-submit {
  margin-top: 0.25rem;
}

.fineprint {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.45;
}

.service,
.waitlist {
  padding: clamp(3rem, 8vw, 5rem) var(--header-pad-x);
}

.service-inner,
.waitlist-inner {
  max-width: var(--max-page);
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.service-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(18, 20, 26, 0.04);
}

.service-card-title {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.service-card-body {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.service-card-body p + p {
  margin-top: 0.75rem;
}

.service-card-body strong {
  color: var(--ink);
  font-weight: 600;
}

.waitlist .section-lede {
  max-width: 52ch;
  line-height: 1.6;
}

.section-lede {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 62ch;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.section-lede strong {
  color: var(--ink);
  font-weight: 600;
}

.waitlist-inner {
  max-width: 640px;
}

.waitlist .section-lede {
  margin-bottom: 1.5rem;
}

.waitlist-form-panel {
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(18, 20, 26, 0.04);
}

.waitlist-form-panel[hidden],
.waitlist-thanks-panel[hidden] {
  display: none !important;
}

.waitlist-thanks-panel {
  padding: clamp(1.5rem, 4vw, 2.75rem) 0;
  text-align: center;
  animation: waitlist-thanks-in 0.38s ease;
}

@keyframes waitlist-thanks-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .waitlist-thanks-panel {
    animation: none;
  }
}

.waitlist-thanks-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(47, 74, 60, 0.2);
  position: relative;
}

.waitlist-thanks-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 10px;
  height: 18px;
  border: solid var(--accent);
  border-width: 0 2.5px 2.5px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.waitlist-thanks-title {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  color: var(--ink);
  outline: none;
}

.waitlist-thanks-body {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 36ch;
  margin: 0 auto;
}

.waitlist-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.req {
  color: var(--accent);
}

.field input,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.waitlist-status {
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.35em;
}

.waitlist-status:not(:empty) {
  color: var(--accent);
  font-weight: 500;
}

.site-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
  background: rgba(238, 240, 235, 0.65);
}

.page-home .site-footer--tall {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.site-footer--tall {
  text-align: left;
  padding: 0;
  background: linear-gradient(180deg, rgba(42, 61, 82, 0.04) 0%, rgba(246, 247, 249, 0.95) 38%, rgba(240, 242, 246, 0.98) 100%);
  border-top: 1px solid rgba(42, 61, 82, 0.1);
}

.footer-tall-inner {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 2.75rem 1.5rem 2.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-tall-inner {
    grid-template-columns: minmax(180px, 1.1fr) repeat(3, minmax(0, 1fr));
    gap: 1.75rem 2rem;
    align-items: start;
  }
}

.footer-col-brand {
  max-width: min(720px, 100%);
}

.footer-brand-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 0.25rem;
}

.footer-brand-logo img {
  height: 90px;
  width: auto;
  max-width: min(330px, 44vw);
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-list a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-col-lang .footer-lang-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lang-btn {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(20, 24, 20, 0.05);
}

.lang-btn:hover {
  border-color: var(--muted);
  color: var(--ink);
}

.lang-btn--active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(47, 74, 60, 0.12);
}

.footer-apps {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 var(--header-pad-x) 1.75rem;
  border-top: 1px solid var(--line);
}

.footer-apps-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.5rem 0 0.85rem;
}

.footer-apps-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin: 0;
  padding: 0;
}

.footer-app-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-app-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.footer-app-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-app-qr {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1rem var(--header-pad-x) 1.35rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.35);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Secondary pages (features, pricing) */
.content {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.content h1 {
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.content p,
.content li {
  color: var(--muted);
}

.content ul {
  margin: 1rem 0 2rem 1.25rem;
}

.content li {
  margin-bottom: 0.5rem;
}

/* Legal pages */
.legal-doc h2 {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--ink);
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.legal-doc h2:first-of-type {
  margin-top: 1.25rem;
}

.legal-doc strong {
  color: var(--ink);
}

.legal-notice {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.legal-lang-switch {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.legal-lang-switch a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legal-lang-switch a:hover {
  text-decoration: underline;
}

.footer-links {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}
