/* ===== Kuramate Website Styles ===== */

/* --- CSS Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Theme Variables --- */
:root {
  --primary: #0D9373;
  --primary-light: #14B8A6;
  --primary-lighter: #5EEAD4;
  --accent-warm: #F59E0B;
  --accent-warm-light: #FCD34D;
  --scaffold: #F0FDF4;
  --surface: #FFFFFF;
  --surface-container: #E6F5F0;
  --text: #1A1A2E;
  --text-secondary: rgba(26, 26, 46, 0.6);
  --border: rgba(13, 147, 115, 0.08);
  --border-strong: rgba(13, 147, 115, 0.15);
  --nav-bg: #FFFFFF;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --gradient-start: #0D9373;
  --gradient-end: #14B8A6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #2DD4BF;
    --primary-light: #5EEAD4;
    --primary-lighter: #99F6E4;
    --accent-warm: #FBBF24;
    --accent-warm-light: #FDE68A;
    --scaffold: #0C1917;
    --surface: #1A2E2A;
    --surface-container: #1F3B35;
    --text: #E2E8F0;
    --text-secondary: rgba(226, 232, 240, 0.6);
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    --nav-bg: #1A2E2A;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    --gradient-start: #14B8A6;
    --gradient-end: #2DD4BF;
  }
}

/* --- Typography --- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--scaffold);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.landing-page {
  --primary: #109a7a;
  --primary-light: #27b7a2;
  --primary-lighter: #baf3e4;
  --accent-warm: #f2a93b;
  --accent-warm-light: #fff0cf;
  --accent-coral: #ff8f7d;
  --accent-sky: #5aa6e8;
  --scaffold: #fffaf2;
  --surface: #ffffff;
  --surface-container: #ecfaf4;
  --text: #202431;
  --text-secondary: rgba(32, 36, 49, 0.68);
  --border: rgba(16, 154, 122, 0.12);
  --border-strong: rgba(16, 154, 122, 0.22);
  --nav-bg: rgba(255, 255, 255, 0.86);
  --card-shadow: 0 18px 48px rgba(25, 55, 48, 0.11);
  --gradient-start: #109a7a;
  --gradient-end: #34c7ad;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 230, 171, 0.5), transparent 28rem),
    linear-gradient(180deg, #fffaf2 0%, #ffffff 44%, #f7fffb 100%);
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.75rem; letter-spacing: -1px; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-page .reveal {
  opacity: 1;
  transform: none;
}

/* --- Eyebrow Text --- */
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.eyebrow--warm {
  color: var(--accent-warm);
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.landing-page .site-header {
  background: var(--nav-bg);
  box-shadow: 0 10px 30px rgba(29, 72, 64, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
  opacity: 1;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-container);
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}

.lang-switch a.active {
  color: var(--primary);
  background: var(--surface);
}

.nav-app-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #151922;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-app-button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.nav-app-button svg {
  flex-shrink: 0;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* --- Hero Section --- */
.hero {
  padding: 80px 0 60px;
}

.landing-page .hero {
  min-height: 720px;
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}

.landing-page .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.98) 0%, rgba(255, 250, 242, 0.83) 38%, rgba(255, 250, 242, 0.36) 100%),
    url('/images/landing/hero-lifestyle.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.landing-page .hero::after {
  content: '';
  position: absolute;
  right: -6%;
  bottom: -22%;
  width: 62%;
  height: 92%;
  background:
    radial-gradient(circle at center, rgba(255, 232, 188, 0.54), transparent 34rem),
    radial-gradient(circle at 70% 22%, rgba(170, 236, 215, 0.44), transparent 22rem);
  opacity: 0.78;
  z-index: -1;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.landing-page .hero-content {
  max-width: 560px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-warm);
}

.hero h1 {
  margin-bottom: 20px;
  font-weight: 800;
}

.landing-page .hero h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  letter-spacing: 0;
  line-height: 1.18;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-page .hero-cta-group {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-note {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-cta-group .store-badges {
  justify-content: flex-start;
}

.hero-cta-group .coming-soon {
  margin-top: 0;
}

/* --- Hero Scene (dual phones) --- */
.hero-scene {
  position: relative;
  width: 300px;
  height: 360px;
  flex-shrink: 0;
}

.landing-page .hero-scene {
  width: 470px;
  height: 560px;
  padding-top: 54px;
}

.landing-page .hero-scene::before {
  content: '';
  position: absolute;
  left: -42px;
  right: -30px;
  bottom: 12px;
  height: 120px;
  border-radius: 50%;
  background: rgba(249, 213, 158, 0.42);
  filter: blur(12px);
}

.hero-phone {
  position: absolute;
  width: 160px;
  height: 300px;
  border-radius: 24px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.landing-page .hero-phone {
  width: 210px;
  height: 456px;
  border: 8px solid #151922;
  border-radius: 34px;
  background: #151922;
  box-shadow: 0 28px 60px rgba(23, 42, 38, 0.22);
}

@media (prefers-color-scheme: dark) {
  .hero-phone {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }
}

.hero-phone--left {
  top: 20px;
  left: 0;
  z-index: 2;
  transform: rotate(-4deg);
}

.landing-page .hero-phone--left {
  top: 60px;
  left: 40px;
  z-index: 3;
  transform: rotate(-3.5deg);
}

.hero-phone--right {
  top: 0;
  right: 0;
  z-index: 1;
  transform: rotate(4deg);
}

.landing-page .hero-phone--right {
  top: 24px;
  right: 14px;
  z-index: 2;
  transform: rotate(5deg);
}

.hero-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.hero-bubble {
  position: absolute;
  top: 0;
  right: 8px;
  z-index: 4;
  padding: 14px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 154, 122, 0.18);
  box-shadow: 0 16px 36px rgba(36, 62, 55, 0.14);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  max-width: 200px;
}

.hero-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: inherit;
  transform: rotate(45deg);
  border-right: 1px solid rgba(16, 154, 122, 0.18);
  border-bottom: 1px solid rgba(16, 154, 122, 0.18);
}

.hero-mascot {
  position: absolute;
  left: -40px;
  bottom: 48px;
  z-index: 5;
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(25, 55, 48, 0.14));
}

.landing-page .hero-mascot {
  left: -150px;
  bottom: -8px;
  transform: none;
  width: 240px;
  height: 240px;
  filter: drop-shadow(0 18px 24px rgba(25, 55, 48, 0.22));
}

.hero-connect-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-connect-line svg {
  color: var(--primary);
}

/* --- Store Badges --- */
.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .store-badges {
  justify-content: flex-start;
}

/* Apple SVG: no padding (119.66x40)
   Google PNG: with padding (646x250, black area ~75%) */
.store-badge-img-apple {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.2s;
}

.store-badge-img-apple:hover {
  transform: translateY(-2px);
}

.coming-soon {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--surface-container);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* --- Spotlight Sections --- */
.spotlight-section {
  border-top: 1px solid var(--border);
}

/* --- Feature Overview --- */
.feature-overview {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading--decorated h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.eyebrow-deco {
  display: inline-block;
  margin: 0 8px;
  color: var(--accent-warm);
  font-weight: 800;
  letter-spacing: 0.4em;
}

.heading-sparkle {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent-warm);
  filter: drop-shadow(0 2px 4px rgba(242, 169, 59, 0.3));
}

.heading-sparkle--left { transform: rotate(-12deg); }
.heading-sparkle--right { transform: rotate(12deg); }

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

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.feature-card--mint {
  background: linear-gradient(180deg, #f0fff9, #ffffff);
}

.feature-card--warm {
  background: linear-gradient(180deg, #fff7e9, #ffffff);
  border-color: rgba(242, 169, 59, 0.26);
}

.feature-card--sky {
  background: linear-gradient(180deg, #eef8ff, #ffffff);
  border-color: rgba(90, 166, 232, 0.24);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
}

.feature-card--warm .feature-number {
  background: var(--accent-warm);
}

.feature-card--sky .feature-number {
  background: var(--accent-sky);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.feature-visual {
  position: relative;
  margin-top: auto;
  padding-top: 28px;
  height: 348px;
}

.feature-visual--receipt {
  height: 420px;
}

.receipt-scan-image {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 24px rgba(23, 42, 38, 0.16));
  transform: translateX(-38%) rotate(2deg);
}

.feature-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 148px;
  height: 320px;
  border: 6px solid #151922;
  border-radius: 26px;
  overflow: hidden;
  background: #151922;
  box-shadow: 0 18px 34px rgba(23, 42, 38, 0.18);
  transform: rotate(3deg);
}

.feature-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.feature-mascot {
  position: absolute;
  left: -12px;
  bottom: 0;
  z-index: 3;
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(25, 55, 48, 0.18));
}

.feature-card--sky .feature-phone {
  right: 40px;
}

.feature-mascot--corner {
  left: auto;
  right: -48px;
  bottom: 0;
  width: 180px;
  height: 180px;
  transform: scaleX(-1);
}

.feature-mascot--xl {
  width: 260px;
  height: 260px;
  left: -28px;
  bottom: -32px;
  transform: scaleX(-1);
}

.mini-feature-list {
  position: absolute;
  left: 0;
  top: 36px;
  z-index: 2;
  display: grid;
  gap: 10px;
  list-style: none;
}

.mini-feature-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(25, 55, 48, 0.08);
}

.mini-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  flex-shrink: 0;
}

.mini-feature-icon--calendar { background: #5aa6e8; }
.mini-feature-icon--meal { background: #f2a93b; }
.mini-feature-icon--shopping { background: #ff8f7d; }
.mini-feature-icon--task { background: #109a7a; }

@media (max-width: 1100px) {
  .landing-page .hero .container {
    gap: 32px;
  }

  .landing-page .hero-content {
    max-width: 500px;
  }

  .landing-page .hero-scene {
    width: 400px;
    height: 520px;
    padding-top: 48px;
  }

  .landing-page .hero-phone {
    width: 180px;
    height: 390px;
  }

  .landing-page .hero-phone--left {
    left: 28px;
    top: 66px;
  }

  .landing-page .hero-phone--right {
    right: 6px;
    top: 42px;
  }

  .landing-page .hero-mascot {
    left: -160px;
    width: 220px;
    height: 220px;
  }

  .hero-bubble {
    right: 0;
    max-width: 170px;
  }

  .feature-cards {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 18px;
    margin: 0 -24px;
    padding: 8px 24px 18px;
    max-width: none;
    scrollbar-width: none;
    scroll-padding: 24px;
  }

  .feature-cards::-webkit-scrollbar {
    display: none;
  }

  .feature-card {
    flex: 0 0 360px;
    max-width: 360px;
    min-height: 580px;
    scroll-snap-align: center;
  }

  .feature-card:first-child {
    scroll-snap-align: start;
  }

  .feature-card:last-child {
    scroll-snap-align: end;
  }
}

.spotlight-section .container {
  display: flex;
  align-items: center;
  gap: 64px;
}

.spotlight-section--reversed .container {
  flex-direction: row-reverse;
}

.spotlight-visual {
  flex-shrink: 0;
  width: 340px;
}

.spotlight-text {
  flex: 1;
  min-width: 0;
}

.spotlight-text h2 {
  margin-bottom: 16px;
}

.spotlight-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Spotlight background alternation */
.spotlight-section:nth-of-type(odd) {
  background: var(--surface);
}

.landing-page .spotlight-section {
  background: linear-gradient(180deg, #fffaf2, #ffffff);
}

/* --- Spotlight Phone Frame (real screenshot) --- */
.spotlight-phone {
  position: relative;
  width: 280px;
  margin: 0 auto;
  border-radius: 32px;
  border: 2px solid var(--border-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 280 / 607;
}

.spotlight-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

@media (prefers-color-scheme: dark) {
  .spotlight-phone {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  }
}

/* --- Lifestyle Gallery (2x2 thumbnail grid) --- */
.lifestyle-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 320px;
  margin: 0 auto;
}

.lifestyle-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lifestyle-thumb img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: block;
  background: var(--surface);
}

.lifestyle-thumb-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
  .lifestyle-thumb img {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}


/* --- How It Works Section --- */
.how-it-works {
  text-align: center;
}

.landing-page .how-it-works {
  background: #ffffff;
}

.how-it-works-heading {
  margin-bottom: 48px;
}

.how-it-works-heading p {
  color: var(--text-secondary);
  margin-top: 8px;
}

.setup-note {
  font-size: 0.82rem;
  opacity: 0.82;
}

.steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 12px;
}

.step-mascot-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 116px;
  margin-bottom: 14px;
}

.step-mascot-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(186, 243, 228, 0.55);
  z-index: 0;
}

.step-mascot {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(25, 55, 48, 0.18));
  position: relative;
  z-index: 1;
}

.step-mascot--xl {
  width: 116px;
  height: 116px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Arrow between steps */
.step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 50px;
  right: -12px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}

/* solution の前のステップは矢印を出さない（重なり回避） */
.step:nth-last-child(2)::after {
  content: none;
}

.step--solution {
  flex: 0 0 auto;
  padding-left: 0;
}

.solution-bubble {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(186, 243, 228, 0.6);
  border: 2px dashed var(--primary);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
  padding: 12px;
}

.solution-bubble::after {
  content: '♥';
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-coral, #ff8f7d);
  color: #ffffff;
  font-size: 0.85rem;
  box-shadow: 0 6px 14px rgba(255, 143, 125, 0.4);
}

/* --- Final CTA Section --- */
.final-cta {
  background: linear-gradient(135deg, var(--scaffold), var(--surface-container));
  border-top: 1px solid var(--border);
  text-align: center;
}

.landing-page .final-cta .container {
  position: relative;
  max-width: 980px;
  padding: 48px 56px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(237, 252, 245, 0.9)),
    radial-gradient(circle at 12% 20%, rgba(255, 224, 176, 0.52), transparent 22rem);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  text-align: left;
}

.final-cta-text {
  flex: 1;
  min-width: 0;
}

.landing-page .final-cta .cta-badges-group {
  justify-content: flex-start;
}

.final-mascot {
  position: relative;
  flex-shrink: 0;
  right: auto;
  bottom: auto;
  width: 220px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(25, 55, 48, 0.18));
}

.final-cta h2 {
  margin-bottom: 12px;
}

.download-description {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-badges-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-badges-group .coming-soon {
  margin-top: 0;
}

/* --- Footer --- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.site-footer--landing {
  padding: 56px 0 36px;
  text-align: left;
}

.site-footer--landing .footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  min-width: 220px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 360px;
}

.site-footer--landing .footer-links {
  margin-bottom: 0;
  justify-content: flex-end;
  align-items: center;
}

.site-footer--landing .footer-copy {
  text-align: center;
}

@media (max-width: 640px) {
  .site-footer--landing {
    text-align: center;
  }

  .site-footer--landing .footer-main {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .site-footer--landing .footer-brand {
    text-align: center;
  }

  .site-footer--landing .footer-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer--landing .footer-links {
    justify-content: center;
  }
}

/* --- Privacy Policy Page --- */
.privacy-page {
  padding: 56px 0 96px;
}

.privacy-page article {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  padding: 56px 48px;
  box-shadow: var(--card-shadow);
}

.privacy-page h1 {
  font-size: 2.4rem;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.privacy-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 40px;
  display: block;
}

.privacy-page h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-strong);
  color: var(--primary);
}

.privacy-page h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.privacy-page p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.privacy-page ul,
.privacy-page ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.privacy-page li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.privacy-page strong {
  color: var(--text);
}

.privacy-page .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
}

.privacy-page table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  margin-bottom: 0;
}

.privacy-page th,
.privacy-page td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
  color: var(--text-secondary);
}

.privacy-page th {
  background: var(--surface-container);
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  width: 30%;
}

/* --- Language Banner --- */
.lang-banner {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 200;
  font-size: 0.9rem;
  align-items: center;
  gap: 12px;
}

.lang-banner.show {
  display: flex;
}

.lang-banner a {
  font-weight: 700;
}

.lang-banner-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
  padding: 0 4px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; letter-spacing: -0.5px; }
  h2 { font-size: 1.4rem; }

  section { padding: 60px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  /* Hero */
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 38px;
  }

  .landing-page .hero {
    min-height: 0;
    padding: 56px 0 58px;
  }

  .landing-page .hero-content {
    max-width: none;
  }

  .landing-page .hero h1 {
    font-size: 2.05rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .landing-page .hero-cta-group {
    align-items: center;
  }

  .hero-cta-group .store-badges {
    justify-content: center;
  }

  .hero-scene {
    width: 240px;
    height: 300px;
    margin: 0 auto;
  }

  .landing-page .hero-scene {
    width: min(340px, 100%);
    height: 420px;
    padding-top: 44px;
  }

  .hero-phone {
    width: 130px;
    height: 240px;
    border-radius: 20px;
  }

  .landing-page .hero-phone {
    width: 150px;
    height: 326px;
    border-width: 6px;
    border-radius: 27px;
  }

  .landing-page .hero-phone--left {
    left: 14px;
    top: 66px;
  }

  .landing-page .hero-phone--right {
    right: 12px;
    top: 44px;
  }

  .hero-bubble {
    right: 0;
    top: 0;
    transform: none;
    max-width: 180px;
    font-size: 0.78rem;
    padding: 10px 14px;
  }

  .hero-mascot {
    left: -34px;
    bottom: 38px;
    width: 96px;
    height: 96px;
  }

  .landing-page .hero-mascot {
    left: -100px;
    bottom: -4px;
    transform: none;
    width: 170px;
    height: 170px;
  }

  .feature-mascot {
    width: 160px;
    height: 160px;
    left: -10px;
  }

  .feature-mascot--xl {
    width: 230px;
    height: 230px;
    left: -22px;
    bottom: -24px;
  }

  .feature-mascot--corner {
    width: 160px;
    height: 160px;
    left: auto;
    right: -40px;
    bottom: 0;
  }

  .feature-card--sky .feature-phone {
    right: 32px;
  }

  .feature-cards {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin: 0 -24px;
    padding: 8px 24px 18px;
    max-width: none;
    scrollbar-width: none;
    scroll-padding: 24px;
  }

  .feature-cards::-webkit-scrollbar {
    display: none;
  }

  .feature-card {
    flex: 0 0 84%;
    max-width: 340px;
    min-height: 560px;
    scroll-snap-align: center;
    border-radius: 18px;
  }

  .feature-card:first-child {
    scroll-snap-align: start;
  }

  .feature-card:last-child {
    scroll-snap-align: end;
  }

  .feature-visual {
    height: 348px;
  }

  .feature-visual--receipt {
    height: 404px;
  }

  .receipt-scan-image {
    max-width: 228px;
  }

  /* Spotlight */
  .spotlight-section .container,
  .spotlight-section--reversed .container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .spotlight-visual {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .spotlight-phone {
    width: 220px;
  }

  .lifestyle-gallery {
    width: 280px;
    gap: 12px;
  }

  /* How It Works */
  .steps {
    flex-direction: column;
    gap: 28px;
    align-items: center;
  }

  .step {
    padding: 0;
  }

  .step-mascot-wrap {
    width: 96px;
    height: 96px;
    margin-bottom: 10px;
  }

  .step-mascot {
    width: 72px;
    height: 72px;
  }

  .step-mascot--xl {
    width: 92px;
    height: 92px;
  }

  .step:not(:last-child)::after {
    content: none;
  }

  .solution-bubble {
    width: 116px;
    height: 116px;
    font-size: 0.8rem;
  }

  /* Privacy */
  .privacy-page {
    padding: 32px 0 64px;
  }

  .privacy-page article {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .privacy-page h1 {
    font-size: 1.8rem;
  }

  .privacy-page h2 {
    font-size: 1.2rem;
    margin-top: 32px;
  }

  .landing-page .final-cta .container {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 16px;
  }

  .landing-page .final-cta .cta-badges-group {
    justify-content: center;
  }

  .final-mascot {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-scene {
    width: 200px;
    height: 260px;
  }

  .hero-phone {
    width: 110px;
    height: 200px;
    border-radius: 16px;
  }

  .hero-connect-line {
    width: 40px;
    height: 40px;
  }
}

/* --- Dark Mode (landing-page palette + landing-only fixed colors) --- */
@media (prefers-color-scheme: dark) {
  .landing-page {
    --primary: #34c7ad;
    --primary-light: #5fe5cc;
    --primary-lighter: #1a3d36;
    --accent-warm: #fbbf24;
    --accent-warm-light: #3a2a10;
    --accent-coral: #ff8f7d;
    --accent-sky: #7cb8ee;
    --scaffold: #0c1917;
    --surface: #18302a;
    --surface-container: #1f3b35;
    --text: #e8edf2;
    --text-secondary: rgba(232, 237, 242, 0.68);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --nav-bg: rgba(24, 48, 42, 0.92);
    --card-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    --gradient-start: #34c7ad;
    --gradient-end: #5fe5cc;
    background:
      radial-gradient(circle at 12% 12%, rgba(91, 50, 0, 0.3), transparent 28rem),
      linear-gradient(180deg, #0c1917 0%, #0f211d 44%, #0c1917 100%);
  }

  .landing-page .feature-overview {
    background: var(--surface);
  }

  .landing-page .feature-card--mint {
    background: linear-gradient(180deg, #163b32, #18302a);
  }

  .landing-page .feature-card--warm {
    background: linear-gradient(180deg, #2e2616, #18302a);
    border-color: rgba(251, 191, 36, 0.28);
  }

  .landing-page .feature-card--sky {
    background: linear-gradient(180deg, #14283a, #18302a);
    border-color: rgba(124, 184, 238, 0.28);
  }

  .landing-page .how-it-works {
    background: var(--surface);
  }

  .landing-page .spotlight-section {
    background: linear-gradient(180deg, #0f211d, #18302a);
  }

  .landing-page .final-cta {
    background: linear-gradient(135deg, var(--scaffold), var(--surface-container));
  }

  .landing-page .final-cta .container {
    background:
      linear-gradient(90deg, rgba(24, 48, 42, 0.94), rgba(31, 59, 53, 0.9)),
      radial-gradient(circle at 12% 20%, rgba(91, 50, 0, 0.32), transparent 22rem);
  }

  .mini-feature-list li {
    background: rgba(20, 40, 36, 0.85);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }

  .hero-bubble {
    background: rgba(24, 48, 42, 0.94);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text);
  }

  .hero-bubble::after {
    border-right-color: rgba(255, 255, 255, 0.18);
    border-bottom-color: rgba(255, 255, 255, 0.18);
  }

  .landing-page .hero-kicker {
    background: rgba(20, 40, 36, 0.85);
  }

  .landing-page .feature-number,
  .landing-page .step-number {
    color: #0c1917;
  }

  .step-mascot-wrap::before {
    background: rgba(52, 199, 173, 0.18);
  }

  .solution-bubble {
    background: rgba(52, 199, 173, 0.18);
  }

  .landing-page .hero::before {
    background:
      linear-gradient(90deg, rgba(12, 25, 23, 0.96) 0%, rgba(12, 25, 23, 0.78) 40%, rgba(12, 25, 23, 0.42) 100%),
      url('/images/landing/hero-lifestyle.png');
    background-size: cover;
    background-position: center;
  }

  .landing-page .hero::after {
    background:
      radial-gradient(circle at center, rgba(91, 50, 0, 0.34), transparent 34rem),
      radial-gradient(circle at 70% 22%, rgba(20, 70, 60, 0.38), transparent 22rem);
    opacity: 0.7;
  }

  .hero-mascot,
  .feature-mascot,
  .step-mascot,
  .final-mascot {
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55));
  }

  .receipt-scan-image {
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
  }
}
