/* --- Shared reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================================
   Landing page — modern dark / AI-product aesthetic
   ============================================================================= */
.page-landing {
  --lp-bg-deep: #0a0e17;
  --lp-bg: #0f172a;
  --lp-surface: #1e293b;
  --lp-text: #f1f5f9;
  --lp-text-muted: #94a3b8;
  --lp-border: rgba(148, 163, 184, 0.14);
  --lp-border-strong: rgba(148, 163, 184, 0.22);
  --lp-accent: #38bdf8;
  --lp-accent-2: #a78bfa;
  --lp-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 40px rgba(0, 0, 0, 0.35);
  --lp-shadow-hover:
    0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(56, 189, 248, 0.15), 0 0 48px rgba(167, 139, 250, 0.08);
  --font-landing: "Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-landing);
  font-size: 17px;
  line-height: 1.65;
  color: var(--lp-text);
  background: var(--lp-bg-deep);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Atmospheric background */
.landing-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.landing-bg__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(56, 189, 248, 0.13), transparent 52%),
    radial-gradient(ellipse 70% 45% at 100% 40%, rgba(167, 139, 250, 0.1), transparent 48%),
    radial-gradient(ellipse 55% 40% at 0% 85%, rgba(56, 189, 248, 0.06), transparent 45%),
    linear-gradient(180deg, #080c14 0%, var(--lp-bg-deep) 38%, #0c1220 100%);
}

.landing-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.landing-bg__glow--1 {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: -8%;
  right: -12%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 68%);
}

.landing-bg__glow--2 {
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  bottom: 10%;
  left: -15%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.28), transparent 68%);
}

.landing-bg__noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Sticky dark glass header */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.landing-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.35rem;
  padding: 0.9rem 1.75rem;
}

.landing-logo {
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  color: var(--lp-text);
  text-decoration: none;
}

.landing-logo span {
  background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.landing-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--lp-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-nav a:hover {
  color: var(--lp-text);
}

/* Hero */
.landing-hero {
  padding: clamp(4.25rem, 10vw, 6.75rem) 0 clamp(5rem, 11vw, 7.25rem);
}

.landing-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  gap: clamp(2.75rem, 5vw, 4.25rem);
  align-items: center;
}

.landing-hero__copy {
  text-align: left;
}

.landing-hero__eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lp-text-muted);
}

.landing-hero__h1 {
  margin: 0 0 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.landing-hero__tagline {
  font-size: clamp(2.35rem, 5.5vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.07;
  color: var(--lp-text);
  text-wrap: balance;
}

.landing-hero__brand-line {
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.55;
  color: var(--lp-text-muted);
  max-width: 34rem;
}

.landing-hero__ruby {
  font-weight: 600;
  color: #cbd5e1;
}

.landing-hero__sep {
  margin: 0 0.35em;
  opacity: 0.35;
}

.landing-hero__break {
  display: none;
}

@media (min-width: 520px) {
  .landing-hero__break {
    display: inline;
  }
}

.landing-hero__lead {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--lp-text-muted);
}

.landing-hero__meta {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: var(--lp-text-muted);
}

.landing-hero__meta a {
  color: var(--lp-accent);
  font-weight: 500;
  text-decoration: none;
}

.landing-hero__meta a:hover {
  text-decoration: underline;
}

.landing-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
}

/* App Store badge (marketing-style; swap for official raster if desired) */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.15rem 0.55rem 0.85rem;
  background: #000;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.app-store-badge:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(56, 189, 248, 0.25),
    0 0 36px rgba(167, 139, 250, 0.12);
  filter: brightness(1.06);
}

.app-store-badge:active {
  transform: translateY(-1px);
}

.app-store-badge__apple {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.app-store-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.app-store-badge__line1 {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.app-store-badge__line2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.landing-hero__subcta {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.landing-hero__store-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--lp-text-muted);
}

.landing-hero__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.landing-hero__legal-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--lp-accent);
  text-decoration: none;
}

.landing-hero__legal-links a:hover {
  text-decoration: underline;
}

.landing-hero__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lp-border-strong);
}

/* Device mockup */
.landing-hero__visual {
  margin: 0;
  display: flex;
  justify-content: center;
}

.landing-hero__visual img {
  vertical-align: middle;
}

.iphone-shell {
  position: relative;
  width: min(100%, 300px);
  padding: 11px;
  background: linear-gradient(155deg, #2d3748 0%, #1e293b 42%, #0f172a 100%);
  border-radius: 44px;
  box-shadow:
    var(--lp-shadow),
    0 0 80px rgba(56, 189, 248, 0.07),
    0 0 60px rgba(167, 139, 250, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.iphone-shell__bezel {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 26px;
  background: #020617;
  border-radius: 20px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.iphone-shell__screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 34px;
  overflow: hidden;
  background: #020617;
  border: 2px solid rgba(0, 0, 0, 0.45);
}

.iphone-shell__shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Features */
.landing-features {
  padding: clamp(4.25rem, 10vw, 6.25rem) 0 clamp(5rem, 11vw, 7.25rem);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.92) 24%, #0f172a 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.landing-features__head {
  max-width: 42rem;
  margin-bottom: clamp(2.75rem, 5vw, 3.75rem);
}

.landing-section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--lp-text);
}

.landing-section-lead {
  margin: 0;
  font-size: 1.06rem;
  color: var(--lp-text-muted);
  line-height: 1.68;
}

.feature-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 292px), 1fr));
}

.feature-card {
  padding: 2rem 1.65rem;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.28);
  background: #243146;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(167, 139, 250, 0.12),
    0 0 56px rgba(56, 189, 248, 0.06);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--lp-border);
  color: var(--lp-accent);
}

.feature-card__icon svg {
  width: 26px;
  height: 26px;
}

.feature-card__title {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--lp-text);
}

.feature-card__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--lp-text-muted);
}

/* Footer */
.landing-footer {
  padding: 2.85rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(8, 12, 20, 0.94);
}

.landing-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.35rem 2rem;
}

.landing-footer__brand {
  margin: 0;
  font-size: 0.88rem;
  color: var(--lp-text-muted);
}

.landing-footer__brand small {
  font-size: inherit;
}

.landing-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
}

.landing-footer__nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--lp-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-footer__nav a:hover {
  color: var(--lp-text);
}

@media (max-width: 900px) {
  .landing-hero__grid {
    grid-template-columns: 1fr;
  }

  .iphone-shell {
    width: min(272px, 100%);
  }
}

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

  .app-store-badge,
  .app-store-badge:hover,
  .feature-card,
  .feature-card:hover {
    transition: none;
  }

  .app-store-badge:hover,
  .feature-card:hover {
    transform: none;
  }
}

@media (max-width: 600px) {
  .landing-header__inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .wrap {
    padding: 0 1.25rem;
  }

  .landing-nav {
    gap: 1rem;
  }

  .landing-nav a {
    font-size: 0.82rem;
  }

  .landing-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================================================
   Legal pages — existing dark theme (navy / copper)
   ============================================================================= */
.page-legal {
  --bg-deep: #070d18;
  --bg-elevated: #0f1a2e;
  --bg-card: rgba(18, 32, 56, 0.55);
  --border: rgba(201, 164, 108, 0.18);
  --copper: #d4a574;
  --copper-dim: #9a7650;
  --text: #e8edf5;
  --text-muted: #8b9cbb;
  --accent-glow: rgba(212, 165, 116, 0.12);
  --font-sans: "Outfit", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --radius: 18px;
  --max: 1100px;
  --prose: 720px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

.page-legal .bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(212, 165, 116, 0.15), transparent 50%),
    radial-gradient(ellipse 90% 60% at 95% 70%, rgba(40, 80, 140, 0.2), transparent 45%),
    linear-gradient(180deg, #070d18 0%, #0a121f 40%, #070d18 100%);
  pointer-events: none;
}

.page-legal .bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(201, 164, 108, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 164, 108, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black, transparent);
  pointer-events: none;
}

.page-legal .wrap {
  max-width: var(--max);
}

.page-legal .site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.page-legal .logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.page-legal .logo span {
  color: var(--copper);
}

.page-legal .nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.page-legal .nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.page-legal .nav-links a:hover {
  color: var(--copper);
}

.page-legal .prose-wrap {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.page-legal .prose-wrap h1 {
  font-size: 1.85rem;
  margin: 0 0 0.5rem;
}

.page-legal .prose-wrap .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.page-legal .prose-wrap h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.75rem;
  color: var(--copper);
}

.page-legal .prose-wrap p,
.page-legal .prose-wrap li {
  color: var(--text-muted);
}

.page-legal .prose-wrap ul {
  padding-left: 1.4rem;
}

.page-legal .prose-wrap a {
  color: var(--copper);
}

.page-legal .back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.page-legal .back:hover {
  color: var(--copper);
}

.page-legal .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.25rem 0 0.5rem;
}

.page-legal .btn-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dim) 100%);
  color: #0a0f18;
  box-shadow: 0 6px 24px rgba(212, 165, 116, 0.22);
}

.page-legal .btn-mail:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(212, 165, 116, 0.32);
}

.page-legal .btn-mail-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.page-legal .btn-mail-secondary:hover {
  border-color: var(--copper);
  color: var(--copper);
  box-shadow: none;
}

.page-legal .note-muted {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .page-legal .nav-links {
    gap: 0.75rem;
  }

  .page-legal .nav-links a {
    font-size: 0.85rem;
  }
}
