/* MLW — My Last Words · site styles (matches the app's design language) */
:root {
  --bg: #0A0A0F;
  --card: #13131C;
  --input: #1E1E2A;
  --border: rgba(255, 255, 255, 0.07);
  --text: #F0F0FF;
  --mute: #8888B8;
  --dim: #44445A;
  --pri: #7C6FF7;
  --pri2: #A78BFA;
  --gold-1: #FFF3C9;
  --gold-2: #F3CF6B;
  --gold-3: #C9922B;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124,111,247,0.16), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
nav .brand img { width: 40px; height: 40px; border-radius: 10px; }
nav .brand span {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 1px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
nav .links { display: flex; gap: 26px; }
nav .links a { color: var(--mute); text-decoration: none; font-size: 14px; font-weight: 600; }
nav .links a:hover { color: var(--text); }

.hero { text-align: center; padding: 72px 0 60px; }
.hero img.appicon {
  width: 108px; height: 108px; border-radius: 26px;
  box-shadow: 0 12px 48px rgba(124,111,247,0.35);
  margin-bottom: 28px;
}
.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(38px, 6vw, 60px);
  letter-spacing: 2px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(243,207,107,0.25);
  margin-bottom: 16px;
}
.hero p.tag {
  font-size: clamp(17px, 2.6vw, 22px);
  color: var(--text);
  font-weight: 600;
  max-width: 640px;
  margin: 0 auto 12px;
}
.hero p.sub { color: var(--mute); max-width: 560px; margin: 0 auto 34px; font-size: 15.5px; }

.badge-appstore {
  display: inline-block;
  background: linear-gradient(135deg, var(--pri), var(--pri2));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 16px;
  box-shadow: 0 8px 28px rgba(124,111,247,0.35);
}
.badge-appstore small { display: block; font-weight: 600; font-size: 11px; opacity: 0.85; }

section { padding: 56px 0; }
section h2 {
  text-align: center;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  margin-bottom: 10px;
}
section p.lead { text-align: center; color: var(--mute); max-width: 620px; margin: 0 auto 42px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
}
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--pri), var(--pri2));
  color: #fff; font-weight: 800; font-size: 17px;
  margin-bottom: 14px;
}
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--mute); font-size: 14.5px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; gap: 12px; align-items: flex-start;
}
.feature .ico { font-size: 20px; }
.feature b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.feature span { color: var(--mute); font-size: 13px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
}
.plan.best { border-color: var(--pri); box-shadow: 0 0 32px rgba(124,111,247,0.18); }
.plan .flag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 1px;
  color: #fff; background: linear-gradient(135deg, var(--pri), var(--pri2));
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.plan h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.plan .price { font-size: 30px; font-weight: 800; color: var(--pri2); }
.plan .per { color: var(--dim); font-size: 12.5px; margin-bottom: 12px; }
.plan p { color: var(--mute); font-size: 13.5px; }

.gold-quote {
  text-align: center;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 3vw, 27px);
  color: var(--gold-2);
  max-width: 700px;
  margin: 0 auto;
  padding: 26px 0;
}

.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; margin-bottom: 12px; }
.faq-item h3 { font-size: 15.5px; margin-bottom: 6px; }
.faq-item p { color: var(--mute); font-size: 14px; }

footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 34px 0 44px;
  text-align: center;
  color: var(--dim);
  font-size: 13.5px;
}
footer a { color: var(--mute); text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--text); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 0 70px; }
.legal h1 { font-size: 30px; margin-bottom: 6px; }
.legal .updated { color: var(--dim); font-size: 13px; margin-bottom: 30px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; text-align: left; }
.legal p, .legal li { color: var(--mute); font-size: 15px; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
