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

:root {
  /* Manakyu brand tokens */
  --bg-base: #FBF7F2;
  --bg-card: #FFFFFF;
  --bg-muted: #F5EDE3;
  --bg-accent-soft: #FFF0E8;
  --primary: #D4745B;
  --primary-hover: #C4644B;
  --primary-soft: #FCEEE8;
  --secondary: #6B8F71;
  --secondary-soft: #EAF2EB;
  --streak: #E8933A;
  --text-primary: #2C2520;
  --text-secondary: #8C7E72;
  --text-on-primary: #FFFFFF;
  --border: #E8DFD5;
  --border-light: #F0EAE2;

  --font-ja: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-en: 'DM Sans', 'Noto Sans JP', sans-serif;
  --max-width: 960px;
  --section-gap: 80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  color: var(--text-primary);
  background-color: var(--bg-base);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 60px 0;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.lang-switch {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
}

.lang-switch:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary-soft);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* App screenshot mockup */
.hero-mockup {
  max-width: 320px;
  margin: 0 auto;
  position: relative;
}

.phone-frame {
  background: var(--bg-card);
  border-radius: 40px;
  border: 2px solid var(--border-light);
  padding: 8px;
  box-shadow:
    0 4px 24px rgba(44, 37, 32, 0.08),
    0 1px 4px rgba(44, 37, 32, 0.04);
}

.phone-screen {
  background: var(--bg-muted);
  border-radius: 32px;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--bg-card);
  border-radius: 0 0 16px 16px;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.placeholder-text {
  opacity: 0.6;
  font-size: 13px;
  line-height: 1.6;
}

.placeholder-text .icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

/* Store badges area */
.store-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-primary);
  color: var(--text-on-primary);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s;
  opacity: 0.4;
  cursor: default;
}

.store-badge .small-text {
  font-size: 10px;
  font-weight: 400;
  display: block;
  line-height: 1;
}

/* ===== Features ===== */
.features {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.features-header {
  text-align: center;
  margin-bottom: 48px;
}

.features-header h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
}

.features-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 37, 32, 0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-icon.coral { background: var(--primary-soft); }
.feature-icon.green { background: var(--secondary-soft); }
.feature-icon.amber { background: #FFF3E0; }
.feature-icon.cream { background: var(--bg-muted); }

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Screenshots ===== */
.screenshots {
  text-align: center;
}

.screenshots h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 40px;
}

.screenshots-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 24px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: center;
}

@media (max-width: 640px) {
  .screenshots-scroll {
    justify-content: flex-start;
  }
}

.screenshots-scroll::-webkit-scrollbar { display: none; }

.screenshot-item {
  flex: 0 0 200px;
  scroll-snap-align: center;
}

.screenshot-placeholder {
  background: var(--bg-muted);
  border: 2px dashed var(--border);
  border-radius: 20px;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
  padding: 16px;
}

.screenshot-img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid var(--border);
}

.screenshot-label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== About (Vet) ===== */
.about {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-inner {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-icon {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.about-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

/* ===== Data & Privacy ===== */
.privacy-section {
  text-align: center;
}

.privacy-section h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
}

.privacy-section > p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 32px;
}

.privacy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  text-align: left;
}

.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
}

.privacy-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== English Section ===== */
.english-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  display: none;
}

.english-section.is-visible {
  display: block;
}

.lang-switch.is-active {
  color: var(--text-on-primary);
  background: var(--primary);
  border-color: var(--primary);
}

.lang-switch.is-active:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--text-on-primary);
}

.english-section .container {
  font-family: var(--font-en);
}

.english-section h2 {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.english-section .en-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 32px;
}

.en-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.en-block h3 {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.en-block p, .en-block ul {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.en-block ul {
  padding-left: 20px;
  margin-top: 8px;
}

.en-block ul li {
  margin-bottom: 4px;
}

.en-data-table {
  margin-top: 24px;
  grid-column: 1 / -1;
}

.en-data-table h3 {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.en-data-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.en-data-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--bg-muted);
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.en-data-table td {
  padding: 8px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

/* ===== Contact / Support ===== */
.support {
  text-align: center;
}

.support h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
}

.support p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.8;
}

.support-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.2s;
}

.support-email:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(212, 116, 91, 0.12);
}

/* ===== Footer ===== */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
  font-size: 13px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 16px;
}

.footer-brand span {
  color: var(--primary);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Disclaimer ===== */
.disclaimer {
  background: var(--bg-muted);
  padding: 20px 0;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .nav-links { display: none; }

  .hero { padding: 48px 0 40px; }

  .hero-mockup { max-width: 260px; }

  .store-badges { flex-direction: column; align-items: center; }

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

  .en-grid {
    grid-template-columns: 1fr;
  }

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

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

  section {
    padding: 40px 0;
  }
}
