/* ============================================
   Meshia Official Site - Stylesheet
   Brand: Warm Minimal / Terracotta
   ============================================ */

:root {
  --primary: #E27D5A;
  --primary-dark: #C46544;
  --primary-light: #FFE9DF;
  --primary-soft: #FFB088;
  --secondary: #6C63FF;
  --premium: #D4A574;
  --background: #FFFBF5;
  --surface: #FFFFFF;
  --text-primary: #2A1F1A;
  --text-secondary: #6B5D55;
  --text-muted: #9C8F87;
  --border: #F0E4DB;
  --danger: #D85A4A;
  --success: #6FB97A;
  --shadow-sm: 0 2px 8px rgba(226, 125, 90, 0.06);
  --shadow-md: 0 8px 24px rgba(226, 125, 90, 0.10);
  --shadow-lg: 0 16px 48px rgba(226, 125, 90, 0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== Header ==================== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 15px;
}

.nav-links a { color: var(--text-secondary); font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

@media (max-width: 640px) {
  .nav-links { gap: 16px; font-size: 14px; }
}

/* ==================== Hero ==================== */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #FFFBF5 0%, #FFF4EC 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #FFB088 0%, #E27D5A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #FFB088, #E27D5A);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #FFFFFF; }

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-icon {
  width: 280px;
  height: 280px;
  border-radius: 64px;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #FFB088, #E27D5A);
  padding: 8px;
}

.hero-icon img {
  width: 100%;
  height: 100%;
  border-radius: 56px;
  object-fit: cover;
}

@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta-group { justify-content: center; }
  .hero-icon { width: 200px; height: 200px; border-radius: 48px; }
  .hero-icon img { border-radius: 42px; }
}

/* ==================== Section base ==================== */
.section { padding: 80px 0; }

.section-title {
  text-align: center;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== Features ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 18px;
}

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

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

@media (max-width: 860px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features-grid { grid-template-columns: 1fr; } }

/* ==================== Pricing ==================== */
.pricing {
  background: linear-gradient(180deg, #FFF4EC 0%, #FFFBF5 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.plan-card {
  background: var(--surface);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}

.plan-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FFB088, #E27D5A);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.plan-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.plan-description { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }

.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.plan-price .amount { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.plan-price .period { color: var(--text-secondary); font-size: 15px; }

.plan-yearly-note {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}

.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li {
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ==================== FAQ (Support) ==================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "＋";
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--text-secondary); margin-top: 14px; }

/* ==================== Legal (Privacy / Terms) ==================== */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  padding: 56px clamp(24px, 5vw, 64px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.legal-content h1 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-content .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-top: 8px;
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.legal-content p, .legal-content li {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 10px;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.legal-content th, .legal-content td {
  padding: 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.legal-content th { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }

/* ==================== Support ==================== */
.contact-card {
  max-width: 640px;
  margin: 0 auto 56px;
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.contact-card h2 { font-size: 22px; margin-bottom: 12px; }
.contact-card p { color: var(--text-secondary); margin-bottom: 24px; }

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.15s;
}
.contact-email:hover { transform: translateY(-2px); color: var(--primary-dark); }

/* ==================== Footer ==================== */
.site-footer {
  background: #2A1F1A;
  color: #FFE9DF;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer .brand { color: #FFFFFF; margin-bottom: 14px; }
.site-footer p { color: #C9B3A9; font-size: 14px; max-width: 360px; }

.footer-links h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D4A574;
  margin-bottom: 14px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #FFE9DF; font-size: 14px; }
.footer-links a:hover { color: #FFFFFF; }

.footer-bottom {
  border-top: 1px solid rgba(255, 233, 223, 0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #9C8F87;
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
