/* ============================================================
   mamapuri — Official Landing Page CSS
   Design: Botanical · Coral / Sage / Cream
   ============================================================ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Background */
  --bg-cream:      #FCF9F4;
  --bg-cream2:     #F6F3EA;
  --bg-card:       #FFFFFF;

  /* Borders */
  --border-light:  #E7E2D8;
  --border-strong: #D2CCBE;

  /* Ink */
  --ink-main:      #1B1A17;
  --ink-sub:       #55524A;
  --ink-muted:     #8E897C;

  /* Coral (accent / primary button) */
  --coral:         #C4584A;
  --coral-light:   #F8E9E4;
  --coral-border:  #EDCFC6;
  --coral-dark:    #A8463A;

  /* Sage (sub / safety) */
  --sage:          #7E9A87;
  --sage-dark:     #4C7659;
  --sage-light:    #EDF3EE;

  /* Accent lights */
  --butter:        #FBF1D9;
  --sky:           #EAF0F6;

  /* Radius */
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 4px rgba(27,26,23,.06);
  --shadow-md: 0 4px 16px rgba(27,26,23,.08);
  --shadow-lg: 0 8px 32px rgba(27,26,23,.10);

  /* Font */
  --font-round: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --font-body:  'Hiragino Sans', 'Noto Sans JP', 'YuGothic', sans-serif;

  /* Max width */
  --max-w: 1080px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-cream);
  color: var(--ink-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input { font: inherit; }

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 72px;
}

/* ── Typography ───────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .05em;
  color: var(--ink-sub);
  margin-bottom: 12px;
}
.label-flower {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-round);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.35;
  color: var(--ink-main);
  margin-bottom: 16px;
}
.section-title--sm {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.section-sub {
  color: var(--ink-sub);
  font-size: .95rem;
  margin-bottom: 48px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: background .18s ease, transform .1s ease, box-shadow .18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 3px 10px rgba(196,88,74,.28);
}
.btn--primary:hover {
  background: var(--coral-dark);
  box-shadow: 0 5px 18px rgba(196,88,74,.35);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }
.btn--primary[disabled], .btn--primary[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn--ghost {
  background: transparent;
  color: var(--coral);
  border: 1.8px solid var(--coral-border);
}
.btn--ghost:hover {
  background: var(--coral-light);
}
.btn--mail svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252,249,244,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-round);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--coral);
  letter-spacing: -.01em;
}
.header-logo .logo-leaf {
  width: 22px;
  height: 22px;
  fill: var(--sage);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 80px 100px;
  background: linear-gradient(160deg, var(--bg-cream) 0%, var(--sage-light) 50%, var(--coral-light) 100%);
}

/* Decorative blobs */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.deco-blob {
  position: absolute;
  width: clamp(200px, 40vw, 500px);
  height: clamp(200px, 40vw, 500px);
  opacity: .65;
}
.deco-blob--left  { left: -8%; top: -10%; }
.deco-blob--right { right: -6%; bottom: -8%; }

.deco-leaf {
  position: absolute;
  width: 48px;
  height: 72px;
}
.deco-leaf--1 { left: 8%; top: 15%; transform: rotate(-20deg); }
.deco-leaf--2 { right: 12%; top: 10%; transform: rotate(30deg); }
.deco-leaf--3 { right: 6%;  bottom: 18%; transform: rotate(-10deg); }

.hero-content {
  position: relative;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 28px;
}
.badge--dev {
  background: var(--butter);
  color: #7A5C00;
  border: 1px solid #E5D49A;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D4A017;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

/* Hero text */
.hero-title {
  margin-bottom: 8px;
}
.logo-text {
  font-family: var(--font-round);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--coral);
  letter-spacing: -.02em;
  line-height: 1;
  display: block;
}
.hero-catch {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--ink-main);
  margin-bottom: 16px;
}
.hero-sub {
  font-size: clamp(.95rem, 2.5vw, 1.1rem);
  color: var(--ink-sub);
  line-height: 1.8;
  margin-bottom: 36px;
}
.br-sp { display: none; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

/* Platform badges */
.platform-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border-light);
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-sub);
  cursor: default;
}
.platform-badge svg {
  width: 18px;
  height: 18px;
  fill: var(--ink-muted);
  flex-shrink: 0;
}

/* ── Wave divider ─────────────────────────────────────────── */
.wave-divider {
  line-height: 0;
  background: var(--bg-cream);
}
.wave-divider svg {
  width: 100%;
  height: 48px;
}
.wave-divider--reverse {
  background: var(--bg-cream2);
}
.wave-divider--reverse svg {
  display: block;
}

/* ── Overview ─────────────────────────────────────────────── */
.overview {
  background: var(--bg-cream2);
}
.overview-desc {
  color: var(--ink-sub);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 48px;
  max-width: 640px;
}

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.point-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.point-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.point-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.point-icon svg {
  width: 28px;
  height: 28px;
}
.point-title {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-main);
}
.point-desc {
  font-size: .9rem;
  color: var(--ink-sub);
  line-height: 1.7;
}

/* ── Features ─────────────────────────────────────────────── */
.features {
  background: var(--bg-cream);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .18s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--sage-light) 0%, var(--coral-light) 100%);
  border-radius: 3px 0 0 3px;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

.feature-num {
  font-family: var(--font-round);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--border-strong);
  line-height: 1;
  min-width: 40px;
  flex-shrink: 0;
  padding-top: 4px;
}

.feature-body {
  flex: 1;
}

.feature-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink-main);
  margin-bottom: 8px;
}
.feature-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.feature-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.feature-desc {
  color: var(--ink-sub);
  font-size: .93rem;
  line-height: 1.75;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ── Screenshots ──────────────────────────────────────────── */
.screenshots {
  background: var(--bg-cream2);
}

.screenshot-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

/* Phone frame */
.phone-frame {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.phone-frame figcaption {
  font-size: .82rem;
  color: var(--ink-muted);
  font-weight: 700;
  text-align: center;
}

.phone-screen {
  width: 160px;
  height: 280px;
  border-radius: 26px;
  border: 3px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255,255,255,.6);
  overflow: hidden;
  position: relative;
}
/* Notch */
.phone-screen::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 8px;
  background: var(--border-strong);
  border-radius: 4px;
  z-index: 1;
}

.placeholder-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(160deg, var(--bg-cream) 0%, var(--bg-cream2) 100%);
  padding: 16px;
}
.placeholder-screen svg {
  width: 44px;
  height: 44px;
  opacity: .6;
}
.placeholder-screen p {
  font-size: .68rem;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.5;
  font-weight: 600;
}

/* ── Notify / Beta ────────────────────────────────────────── */
.notify {
  background: var(--bg-cream);
  padding-block: 80px;
}
.notify-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.notify-deco {
  position: absolute;
  right: -20px;
  top: -20px;
  opacity: .4;
  pointer-events: none;
}
.notify-leaf {
  width: 120px;
  height: 120px;
}
.notify-desc {
  color: var(--ink-sub);
  font-size: .97rem;
  line-height: 1.85;
  margin-bottom: 36px;
}

/* Form placeholder */
.form-placeholder {
  margin-top: 8px;
}
.form-dummy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.form-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-sub);
  align-self: flex-start;
  max-width: 480px;
  width: 100%;
}
.form-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  flex-wrap: wrap;
}
.form-input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-cream);
  color: var(--ink-muted);
  font-size: .92rem;
  outline: none;
  transition: border-color .18s;
}
.form-input::placeholder { color: var(--ink-muted); opacity: .6; }
.form-input:disabled { opacity: .6; cursor: not-allowed; }
.form-note {
  font-size: .78rem;
  color: var(--ink-muted);
  text-align: center;
}

/* ── Privacy & Contact ────────────────────────────────────── */
.privacy {
  background: var(--bg-cream2);
}
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}
.privacy-block,
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: 20px 24px;
}
.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .93rem;
  color: var(--ink-sub);
  line-height: 1.6;
}
.privacy-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage-light);
  flex-shrink: 0;
  margin-top: 1px;
}
.privacy-check svg {
  width: 14px;
  height: 14px;
}
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .18s;
}
.link-underline:hover { color: var(--coral); }

.contact-desc {
  color: var(--ink-sub);
  font-size: .93rem;
  line-height: 1.75;
  margin-block: 16px 24px;
}
.contact-email-text {
  color: var(--coral);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.contact-email-text:hover { color: var(--coral-dark); }

.privacy-policy-note {
  display: block;
  font-size: .78rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink-main);
  color: rgba(255,255,255,.85);
  position: relative;
  overflow: hidden;
  padding-bottom: 16px;
}
.footer-inner {
  padding-block: 56px 32px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 32px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-round);
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -.01em;
}
.footer-logo .logo-leaf {
  width: 22px;
  height: 22px;
  fill: var(--sage);
}
.footer-tagline {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  font-family: var(--font-round);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 24px;
}
.footer-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  transition: color .18s;
}
.footer-links a:hover { color: #fff; }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.15);
  transition: color .18s, border-color .18s, background .18s;
}
.social-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.06);
}
.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.copyright {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.footer-note {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

.footer-deco {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  pointer-events: none;
  opacity: .25;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding-block: 56px; }

  .br-sp { display: inline; }

  /* Hero */
  .hero { padding-block: 60px 80px; }
  .logo-text { font-size: clamp(2.8rem, 16vw, 4rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; }

  /* Points */
  .points {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Features */
  .feature-card {
    padding: 20px 20px 20px 28px;
    flex-direction: row;
    gap: 16px;
  }
  .feature-num { font-size: 1.4rem; min-width: 28px; }
  .feature-title { font-size: 1rem; }

  /* Screenshots */
  .screenshot-row {
    gap: 14px;
    justify-content: flex-start;
    padding-inline: 4px;
  }
  .phone-screen {
    width: 130px;
    height: 228px;
    border-radius: 22px;
  }

  /* Notify */
  .notify-card {
    padding: 40px 24px;
    border-radius: var(--r-xl);
  }
  .form-row { flex-direction: column; }
  .form-row .btn { width: 100%; max-width: none; }
  .form-input { border-radius: var(--r-md); }

  /* Privacy grid */
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer */
  .footer-links { gap: 8px 14px; }
  .footer-social { flex-direction: column; }
  .social-link { align-self: flex-start; }
}

@media (max-width: 480px) {
  .section { padding-block: 48px; }

  .notify-card { padding: 32px 18px; }

  .feature-card {
    padding: 16px 16px 16px 22px;
  }
  .feature-icon-wrap {
    width: 30px;
    height: 30px;
  }
  .feature-icon-wrap svg {
    width: 16px;
    height: 16px;
  }

  /* Make screenshot row scrollable on very small screens */
  .screenshot-row {
    padding-inline: 20px;
  }
}

/* ── Focus & Accessibility ────────────────────────────────── */
*:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scroll fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
