/* =============================================
   MEERI — Unified Modern Stylesheet
   Brand: Meeri (Coral: #F85D58)
   ============================================= */

:root {
  --primary:        #F85D58;
  --primary-hover:  #E84B46;
  --primary-light:  #FAA8A4;
  --primary-pale:   #FFF1F0;
  --bg:             #FFFFFF;
  --foreground:     #1E232A;
  --muted:          #64748B;
  --border:         #E2E8F0;
  --accent:         #F8FAFC;
  --nav-h:          68px;
  --radius-card:    20px;
  --container-max:  1100px;
  --font:           'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
}

img, svg {
  display: block;
}

button {
  font-family: inherit;
}

/* ── Navbar ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.03);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--foreground);
  padding: 6px 0;
  position: relative;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Hamburger button */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--foreground);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hamburger:hover {
  background: var(--accent);
  border-color: #cbd5e1;
}
.hamburger svg {
  width: 20px;
  height: 20px;
}

/* Burger Toggle Dropdown — Contains ONLY extra/legal pages */
.burger-dropdown {
  position: fixed;
  top: calc(var(--nav-h) + 8px);
  right: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 99;
  min-width: 220px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: dropIn 0.18s ease-out forwards;
}

.burger-dropdown.open {
  display: flex;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.burger-dropdown a {
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.burger-dropdown a:hover {
  background: var(--primary-pale);
  color: var(--primary);
}

.burger-dropdown-header {
  padding: 6px 14px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Main Layout ────────────────────────────── */
main {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--nav-h);
}

/* ── Homepage Hero ──────────────────────────── */
.hero-wrapper {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - var(--nav-h) - 220px);
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  animation: slideInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Single Featured App Card */
.single-app-card-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
}

.single-app-card {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-card);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}
.single-app-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 38px -6px rgba(248, 93, 88, 0.25);
}

.single-app-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-app-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.featured-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 9999px;
  width: fit-content;
}

.single-app-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.25;
}

.single-app-tagline {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-description {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.store-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(248, 93, 88, 0.35);
}
.store-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Hero Right — Logo */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: slideInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.15s;
}

.hero-logo-container {
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(248, 93, 88, 0.15));
}

/* ── Content / Standard Page Layout ─────────── */
.page-container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.page-header p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
}

.content-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  line-height: 1.75;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.content-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  border-left: 4px solid var(--primary);
  padding-left: 12px;
  margin-top: 14px;
}

/* ── App Chooser (links out to each app's own page) ── */
.app-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.app-choice-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.app-choice-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: 0 12px 24px -4px rgba(248, 93, 88, 0.12);
}

.app-choice-card img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-choice-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.app-choice-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
}
.app-choice-card-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.app-choice-card-arrow {
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}

.back-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* App-Specific Policy / Section Banner */
.app-section-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--primary-pale);
  border: 1px solid rgba(248, 93, 88, 0.2);
  border-radius: 12px;
  margin-bottom: 12px;
}

.app-section-banner img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-section-banner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-section-banner-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
}

.app-section-banner-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.faq-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 28px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.content-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
}

.content-card a {
  color: var(--primary);
  font-weight: 600;
}

.content-card p, .content-card li {
  font-size: 0.98rem;
  color: #334155;
}

.content-card ul, .content-card ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── FAQ Accordion ──────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.faq-q-prefix {
  color: var(--primary);
  font-weight: 800;
  margin-right: 6px;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 20px;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 20px;
}


/* ── Contact Form ───────────────────────────── */
.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--foreground);
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form .store-btn {
  align-self: flex-start;
  border: none;
  background: var(--primary);
  color: #ffffff;
}
.contact-form .store-btn:hover {
  background: var(--primary-hover);
}

/* ── About Meeri Studio ─────────────────────── */
.about-studio-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.about-author-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.about-mascot-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--primary-pale);
  border: 2px solid var(--primary-light);
  object-fit: contain;
  padding: 4px;
  flex-shrink: 0;
}

.about-author-meta {
  display: flex;
  flex-direction: column;
}

.about-author-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--foreground);
}

.about-author-role {
  font-size: 0.92rem;
  font-weight: 600;
  background: linear-gradient(135deg, #F85D58, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-body-text {
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.8;
}

.about-app-teaser {
  background: var(--accent);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.about-app-teaser img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.about-app-teaser-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-app-teaser-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
}
.about-app-teaser-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Footer ─────────────────────────────────── */
.footer {
  background: var(--primary);
  color: #ffffff;
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.footer-mascot-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
  transition: transform 0.2s ease;
}
.footer-mascot-wrap:hover {
  transform: scale(1.08) rotate(3deg);
}

.footer-mascot {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-company {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 28px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 500;
}
.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

/* ── Responsive Breakpoints ─────────────────── */
@media (max-width: 860px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    padding: 48px 20px;
    gap: 40px;
    text-align: center;
  }

  .hero-left {
    align-items: center;
  }

  .single-app-card-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .single-app-meta {
    align-items: center;
  }

  .hero-description {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-right {
    order: -1;
  }

  .hero-mascot-container {
    max-width: 260px;
  }

  .page-container {
    padding: 40px 20px 60px;
  }
}

@media (max-width: 640px) {
  .nav-right {
    gap: 14px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.88rem;
  }
  .footer-nav {
    gap: 12px 18px;
  }
}
