/* MeevalSoft Website — product hub theme
 * Warm paper + deep maroon palette, clean and readable, mobile-first.
 */

:root {
  --paper:     #f6f1e7;
  --paper-2:   #efe7d8;
  --ink:       #2b2118;
  --ink-soft:  #5c4e3e;
  --maroon:    #6d1f2c;
  --maroon-dk: #4a1219;
  --gold:      #c99a3f;
  --gold-lt:   #e6c98a;
  --white:     #ffffff;
  --shadow:    0 2px 10px rgba(43, 33, 24, 0.08);
  --radius:    12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Palatino Linotype', Palatino, Georgia, serif;
  line-height: 1.25;
  color: var(--maroon-dk);
}

a { color: var(--maroon); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---- Header ---------------------------------------------------------- */
.site-header {
  background: var(--maroon-dk);
  color: var(--white);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--maroon-dk);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  color: var(--gold-lt);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.nav a:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.nav a.active { background: var(--gold); color: var(--maroon-dk); font-weight: bold; }

/* ---- Hero ------------------------------------------------------------ */
.hero {
  background: linear-gradient(160deg, var(--maroon-dk) 0%, var(--maroon) 60%, var(--gold) 140%);
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.hero h1 { color: var(--white); font-size: 2.4rem; margin: 0 0 14px; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 26px; color: var(--gold-lt); }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: bold;
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--maroon-dk); }
.btn-primary:hover { background: var(--gold-lt); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid var(--gold-lt); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-block { width: 100%; text-align: center; }

/* ---- Sections -------------------------------------------------------- */
.section { padding: 48px 0; }
.section-alt { background: var(--paper-2); }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { margin: 0 0 8px; font-size: 1.9rem; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---- Cards ----------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(43,33,24,0.14); }
.card .icon { font-size: 2rem; }
.card h3 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); flex: 1; }
.card .meta { font-size: 0.85rem; color: var(--ink-soft); }
.card .price { font-weight: bold; color: var(--maroon); }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 9px;
  border-radius: 999px;
}
.badge-live   { background: #d9f2e3; color: #17663a; }
.badge-beta   { background: #fdeeda; color: #8a5a12; }
.badge-testing{ background: #e5f2ee; color: #1e6f5c; }
.badge-planned{ background: #e8e4f5; color: #4c3a8a; }
.badge-free   { background: #e5eef9; color: #1f5b9e; }

/* ---- Feature lists --------------------------------------------------- */
.features { list-style: none; padding: 0; margin: 0; }
.features li { padding: 5px 0 5px 26px; position: relative; }
.features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---- Page hero (inner pages) ----------------------------------------- */
.page-hero {
  background: var(--maroon);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin: 0 0 6px; font-size: 2rem; }
.page-hero p { color: var(--gold-lt); margin: 0; }

/* ---- Prose ----------------------------------------------------------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { margin: 0 0 16px; }
.prose h2 { margin-top: 28px; }

/* ---- Forms ----------------------------------------------------------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  max-width: 560px;
  margin: 0 auto;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: bold; margin-bottom: 5px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5c9b4;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fffdf7;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

.notice {
  background: #fdf3dc;
  border: 1px solid var(--gold-lt);
  color: var(--maroon-dk);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
}

/* ---- Plans ----------------------------------------------------------- */
.plan.featured { border: 3px solid var(--gold); position: relative; }
.plan .ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--maroon-dk);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--maroon-dk);
  color: var(--gold-lt);
  padding: 34px 0 26px;
  margin-top: 48px;
  font-size: 0.95rem;
}
.site-footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.site-footer h4 { color: var(--gold); margin: 0 0 10px; }
.site-footer a { color: var(--gold-lt); }
.site-footer .bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(230,201,138,0.25);
  padding-top: 16px;
  margin-top: 12px;
  font-size: 0.85rem;
  text-align: center;
}

/* ---- Utilities ------------------------------------------------------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; }
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.tag {
  display: inline-block;
  background: var(--paper-2);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.8rem;
  color: var(--maroon);
  margin: 2px 4px 2px 0;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .section { padding: 34px 0; }
  .site-header .container { justify-content: center; }
}
