/* Period Buddy — Landing styles */
:root {
  --brand: #db2777;
  --brand-dark: #9d174d;
  --brand-soft: #fdf2f8;
  --whatsapp: #25d366;
  --ink: #0f172a;
  --ink-2: #1f2937;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-tint: #fffafc;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(219, 39, 119, 0.12);
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, #f472b6 100%);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

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

.nav-links a {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: white;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-wa {
  background: var(--whatsapp);
  color: white;
}

.btn-wa:hover {
  background: #1ebe5d;
  color: white;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 10% -10%, #fce7f3 0%, transparent 60%),
    radial-gradient(800px 500px at 100% 0%, #fdf2f8 0%, transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  border: 1px solid #fbcfe8;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand), #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.check {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex-shrink: 0;
}

/* WhatsApp mockup */
.phone {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  background: #0b141a;
  border-radius: 36px;
  padding: 14px;
  box-shadow: var(--shadow-lg), 0 30px 60px rgba(15, 23, 42, 0.12);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0b141a;
  border-radius: 999px;
  z-index: 3;
}

.phone-screen {
  background: #efeae2;
  border-radius: 24px;
  overflow: hidden;
  height: 560px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: #075e54;
  color: white;
  padding: 40px 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #f472b6);
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
}

.chat-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.chat-status {
  font-size: 0.72rem;
  opacity: 0.85;
}

.chat-body {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  flex: 1;
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 18px 18px;
}

.msg {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.4;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  position: relative;
  word-wrap: break-word;
}

.msg-in {
  background: white;
  align-self: flex-start;
  border-top-left-radius: 4px;
  color: #111b21;
}

.msg-out {
  background: #d9fdd3;
  align-self: flex-end;
  border-top-right-radius: 4px;
  color: #111b21;
}

.msg strong {
  color: var(--brand-dark);
}

.msg .time {
  font-size: 0.65rem;
  color: #667781;
  display: block;
  margin-top: 4px;
  text-align: right;
}

/* Trust strip */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
  padding: 22px 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-2);
  font-weight: 500;
}

.strip-item svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
  flex-shrink: 0;
}

/* Section */
section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.075rem;
  margin: 8px 0 0;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #fbcfe8;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.step code {
  display: inline-block;
  background: var(--ink);
  color: #f9a8d4;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

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

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.feat-icon svg {
  width: 22px;
  height: 22px;
}

.feat h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.feat p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.price-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  position: relative;
}

.price-card.featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-lg);
}

.featured-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-card h3 {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.price-period {
  color: var(--muted);
  font-size: 0.95rem;
}

.price-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 4px 0 22px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-list li {
  display: flex;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--ink-2);
}

.price-list svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 12px;
  background: white;
  transition: border-color 0.2s ease;
}

details[open] {
  border-color: #fbcfe8;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand);
  font-weight: 400;
  transition: transform 0.2s ease;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--brand) 0%, #f472b6 100%);
  color: white;
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  margin: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cta::before {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -80px;
}

.cta::after {
  width: 220px;
  height: 220px;
  bottom: -80px;
  right: -60px;
}

.cta h2 {
  color: white;
  margin-bottom: 12px;
  position: relative;
}

.cta p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 540px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
  position: relative;
}

.cta .btn {
  background: white;
  color: var(--brand-dark);
  position: relative;
}

.cta .btn:hover {
  background: var(--ink);
  color: white;
}

/* Footer */
footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 64px 0 24px;
}

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

footer h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

footer .logo {
  color: white;
  margin-bottom: 12px;
}

footer p {
  color: #94a3b8;
  font-size: 0.92rem;
  max-width: 320px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer a {
  color: #cbd5e1;
  font-size: 0.92rem;
}

footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* Legal pages */
.legal {
  padding: 56px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 22px;
}

.legal p,
.legal li {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  text-decoration: underline;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.back-home:hover {
  color: var(--brand);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    padding: 56px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-grid .phone {
    order: 2;
  }

  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .steps,
  .features {
    grid-template-columns: 1fr;
  }

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

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

  section {
    padding: 64px 0;
  }

  .cta {
    padding: 48px 24px;
    margin: 56px 0;
  }
}

@media (max-width: 560px) {
  .nav-links a:not(.btn) {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: 2.1rem;
  }
}
