/* ============================================
   moneasy LP — style.css
   Light + Rich aesthetic
   ============================================ */

/* Fonts loaded via <link> in HTML for non-blocking render */

:root {
  --accent: #1a56db;
  --accent-rgb: 26, 86, 219;
  --accent-hover: #1648b8;

  --bg: #ffffff;
  --bg-tinted: #f6f5f1;
  --bg-card: #ffffff;

  --text: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Inter', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
}

/* ---- Reset ---- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---- Container ---- */

.container {
  max-width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

/* ---- Sections ---- */

.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.section--tinted {
  background: var(--bg-tinted);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header .section-subtitle {
  margin-inline: auto;
}

/* ---- Typography ---- */

h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 900;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-weight: 800;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.97);
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
}

.btn--outline:hover {
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.02);
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.8125rem;
  border-radius: 10px;
}

/* ---- Navbar ---- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.navbar-logo span {
  color: var(--accent);
}

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

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

.navbar-links a:hover {
  color: var(--text);
}

.navbar-cta-item {
  margin-left: 8px;
  list-style: none;
}
.navbar-cta {
  box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.4);
  font-weight: 700;
  padding: 10px 22px;
  color: #fff !important;
}

.navbar-mobile-toggle {
  display: none;
  background: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.navbar-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  width: 100%;
  min-height: min(100vh, 56vw);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

/* Light overlay only on the right side for text readability */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.45) 55%,
    rgba(255, 255, 255, 0.75) 70%,
    rgba(255, 255, 255, 0.88) 100%
  );
}

/* Phone is composited into hero-bg-composite.png */

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero h1 {
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 780px;
}

.hero h1 span {
  display: block;
}

.hero-description {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---- Features ---- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-text h3 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.feature-text p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 440px;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-phone {
  width: clamp(160px, 18vw, 200px);
  border-radius: clamp(24px, 3.5vw, 32px);
  background: var(--bg-tinted);
  padding: 6px;
  box-shadow:
    0 0 0 1px var(--border),
    0 16px 48px -12px rgba(0, 0, 0, 0.12);
}

.feature-phone img {
  border-radius: clamp(20px, 3vw, 28px);
  width: 100%;
  height: auto;
}

/* Dual phone layout for widget screenshots */
.feature-visual--dual {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
}

.feature-phone--small {
  width: clamp(120px, 13vw, 150px);
}

/* ---- More Features Grid ---- */

.more-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.mf-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 0 0 1px var(--border);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.mf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), inset 0 0 0 1px var(--border);
}

.mf-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--accent);
}

.mf-card h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.mf-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- How it works ---- */

.how-block {
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.how-block:last-child {
  margin-bottom: 0;
}

.how-block-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.how-block-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--accent);
}

.how-block-header h3 {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.how-block-body {
  padding-left: calc(44px + 1rem);
}

.how-block-body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

.how-block-body p:last-child {
  margin-bottom: 0;
}

/* ---- Mid CTA ---- */

.mid-cta {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.mid-cta-inner {
  background: var(--accent);
  border-radius: 20px;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.mid-cta-text h2 {
  color: #fff;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  margin-bottom: 0.5rem;
}

.mid-cta-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  max-width: 400px;
  line-height: 1.7;
}

.mid-cta-action .btn--primary {
  background: #fff;
  color: var(--accent);
}

.mid-cta-action .btn--primary:hover {
  background: #f0f0f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ---- Pricing ---- */

.pro-features {
  margin-bottom: 3rem;
}
.pro-features-inner {
  max-width: 480px;
  margin-inline: auto;
  padding: 2rem 2.5rem;
  background: var(--bg-tinted);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.pro-features-label {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.pro-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pro-features-list li {
  font-size: 0.95rem;
  color: var(--text);
  padding-left: 1.5rem;
  position: relative;
}
.pro-features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 900px;
  margin-inline: auto;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 0 0 1px var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), inset 0 0 0 1px var(--border);
}

.pricing-card--popular {
  box-shadow: inset 0 0 0 2px var(--accent);
  position: relative;
}

.pricing-card--popular:hover {
  box-shadow: inset 0 0 0 2px var(--accent), 0 16px 40px rgba(var(--accent-rgb), 0.12);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

/* ---- FAQ ---- */

.faq-list {
  max-width: 720px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Final CTA ---- */

.final-cta {
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-tinted);
}

.final-cta h2 {
  margin-bottom: 0.75rem;
}

.final-cta p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

/* ---- Footer ---- */

.footer {
  background: var(--bg);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-logo span {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

/* ---- Animations ---- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .animate-in:nth-child(1) { animation: fadeInUp 0.8s var(--ease) 0.2s both; }
.hero .animate-in:nth-child(2) { animation: fadeInUp 0.8s var(--ease) 0.35s both; }
.hero .animate-in:nth-child(3) { animation: fadeInUp 0.8s var(--ease) 0.5s both; }

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */

@media (min-width: 1280px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
  }

  .feature-row--reverse .feature-visual {
    order: 1;
  }

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

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

@media (min-width: 1440px) {
  .more-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1279px) {
  .navbar-links {
    display: none;
  }

  .navbar-cta-item {
    display: none;
  }

  .navbar-links.open .navbar-cta-item {
    display: block;
    margin-left: 0;
  }

  .navbar-mobile-toggle {
    display: flex;
  }

  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 24px 1.5rem;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .hero {
    min-height: min(80vh, 56vw);
  }

  .hero-bg img {
    object-position: 75% center;
  }

  .hero-bg::after {
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.6) 35%,
      rgba(255, 255, 255, 0.85) 55%,
      rgba(255, 255, 255, 0.95) 100%
    );
  }

  .hero-content {
    align-items: center;
    text-align: center;
    padding-top: 2rem;
  }

  .hero h1 {
    max-width: 100%;
  }

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

  .pricing-grid {
    max-width: 400px;
  }

  .mid-cta-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .mid-cta-text p {
    margin-inline: auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---- Reduced Motion ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-in, .hero .animate-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Column Section ── */
.column-section { background: var(--bg-alt, #f8fafc); padding: 80px 0; }
.column-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.column-card { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; padding: 28px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px; transition: box-shadow 0.2s, transform 0.2s; }
.column-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-3px); }
.column-label { display: inline-block; background: #dbeafe; color: var(--accent); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; width: fit-content; }
.column-card h3 { font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--text); margin: 0; }
.column-read { font-size: 14px; font-weight: 700; color: var(--accent); margin-top: auto; }
.btn--secondary { display: inline-block; padding: 12px 32px; border: 2px solid var(--accent); color: var(--accent); border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 15px; transition: background 0.2s, color 0.2s; }
.btn--secondary:hover { background: var(--accent); color: #fff; }

/* ── Floating Column Tab ── */
.floating-column-bar { position: fixed; right: -120px; bottom: 120px; z-index: 900; transition: right 0.4s ease; pointer-events: none; }
.floating-column-bar.visible { right: 0; pointer-events: auto; }
.floating-column-btn { display: block; background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; padding: 12px 14px; border-radius: 8px 0 0 8px; text-decoration: none; white-space: nowrap; box-shadow: -2px 2px 12px rgba(0,0,0,0.15); writing-mode: vertical-rl; letter-spacing: 0.1em; line-height: 1; }
.floating-column-btn:hover { background: var(--accent-hover); }

/* ======== Embed mode: disable all animations when in iframe ======== */
html.embed *, html.embed *::before, html.embed *::after {
  animation: none !important;
  transition: none !important;
}
html.embed .animate-in {
  opacity: 1 !important;
  transform: none !important;
}
