/* ================= PIGOAL — Design System ================= */
:root {
  /* Brand — sampled from the Pigoal logo */
  --pink-400: #F87BA1;
  --pink-500: #EF5C86;
  --pink-600: #E24A76;
  --pink-50:  #FFF1F6;
  --pink-100: #FFE2EC;
  --gradient: linear-gradient(135deg, #F87BA1 0%, #EC5680 100%);

  --charcoal: #26262F;
  --ink:      #1C1C24;
  --muted:    #6C6C77;
  --muted-2:  #93939E;

  --gray-50:  #FAFAFB;
  --gray-100: #F5F5F7;
  --gray-150: #EFEFF2;
  --gray-200: #E7E7EC;
  --white:    #FFFFFF;

  --success:  #2FB673;
  --warning:  #F5A623;
  --error:    #E5484D;

  --shadow-sm: 0 2px 8px rgba(38,38,47,.06);
  --shadow-md: 0 12px 32px rgba(38,38,47,.08);
  --shadow-lg: 0 30px 70px rgba(236,86,128,.18);
  --shadow-pink: 0 16px 40px rgba(239,92,134,.28);

  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --maxw: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; color: var(--ink); font-weight: 800; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  border-radius: var(--radius-pill); padding: 13px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-pink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(239,92,134,.36); }
.btn-ghost { background: var(--white); color: var(--charcoal); border: 1.5px solid var(--gray-200); }
.btn-ghost:hover { border-color: var(--pink-400); color: var(--pink-600); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.pill {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--pink-600); background: var(--pink-50);
  padding: 7px 16px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.ic { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-color: var(--gray-150); box-shadow: 0 4px 24px rgba(38,38,47,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand-logo { height: 38px; width: auto; }
.nav-desktop { display: flex; gap: 30px; }
.nav-desktop a { font-size: 15px; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav-desktop a:hover { color: var(--pink-600); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: inline-flex; background: var(--gray-100); border-radius: var(--radius-pill); padding: 3px; }
.lang-switch button {
  border: none; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 12px; border-radius: var(--radius-pill);
  transition: all .2s;
}
.lang-switch button.active { background: var(--white); color: var(--pink-600); box-shadow: var(--shadow-sm); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--charcoal); padding: 4px; }
.menu-toggle svg { width: 26px; height: 26px; }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 8px 24px 20px;
  background: rgba(255,255,255,.98); border-bottom: 1px solid var(--gray-150);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 4px; font-weight: 600; color: var(--charcoal); border-bottom: 1px solid var(--gray-100); }
.mobile-menu .btn { margin-top: 10px; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 76px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -240px; right: -160px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(248,123,161,.20), transparent 62%); z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--pink-600); background: var(--pink-50); padding: 8px 16px; border-radius: var(--radius-pill); margin-bottom: 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink-500); box-shadow: 0 0 0 4px rgba(239,92,134,.18); }
.hero-copy h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; }
.hero-copy .lead { font-size: 19px; color: var(--muted); margin: 22px 0 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.meta-item .ic { width: 18px; height: 18px; color: var(--success); }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.glow { position: absolute; inset: 0; background: radial-gradient(circle at 60% 40%, rgba(239,92,134,.30), transparent 60%); filter: blur(20px); z-index: 0; }
.phone {
  position: relative; z-index: 1; width: 320px; background: #fff; border-radius: 42px;
  padding: 12px; box-shadow: var(--shadow-lg), 0 0 0 10px #1c1c24, 0 0 0 12px #303039;
}
.phone-notch { width: 120px; height: 26px; background: #1c1c24; border-radius: 0 0 16px 16px; margin: 0 auto 6px; }
.phone-screen { background: linear-gradient(180deg, #FFF6F9, #FAFAFB); border-radius: 32px; padding: 18px 16px 20px; }
.app-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.app-hi { font-size: 16px; font-weight: 800; color: var(--ink); }
.app-sub { font-size: 12px; color: var(--muted-2); }
.app-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 800; display: grid; place-items: center; }

.score-card { background: #fff; border-radius: 20px; padding: 16px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.score-ring { position: relative; width: 78px; height: 78px; flex-shrink: 0; }
.score-ring svg { transform: rotate(-90deg); width: 78px; height: 78px; }
.ring-bg { fill: none; stroke: var(--gray-150); stroke-width: 10; }
.ring-fg { fill: none; stroke: url(#g); stroke: var(--pink-500); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.6s var(--ease); }
.score-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-num strong { font-size: 22px; color: var(--ink); }
.score-num span { font-size: 9px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; }
.score-side { flex: 1; }
.score-tag { font-size: 13px; font-weight: 800; color: var(--success); }
.score-text { font-size: 12px; color: var(--muted); }

.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mini-card { background: #fff; border-radius: 16px; padding: 12px 13px; box-shadow: var(--shadow-sm); }
.mini-card .ic { width: 18px; height: 18px; }
.ic.pink { color: var(--pink-500); }
.mc-label { font-size: 11px; color: var(--muted-2); margin-top: 6px; }
.mc-value { font-size: 17px; font-weight: 800; color: var(--ink); }

.app-chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { font-size: 12.5px; padding: 10px 13px; border-radius: 15px; max-width: 90%; }
.bubble-user { align-self: flex-end; background: var(--gradient); color: #fff; border-bottom-right-radius: 5px; }
.bubble-ai { align-self: flex-start; background: #fff; color: var(--charcoal); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); display: flex; gap: 8px; }
.ai-badge { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--pink-50); color: var(--pink-500); display: grid; place-items: center; }
.ai-badge svg { width: 13px; height: 13px; }

/* ---------------- Value strip ---------------- */
.value-strip { border-top: 1px solid var(--gray-150); border-bottom: 1px solid var(--gray-150); background: var(--gray-50); padding: 34px 0; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-item { display: flex; align-items: flex-start; gap: 12px; }
.value-item .ic { color: var(--pink-500); margin-top: 2px; }
.value-item strong { display: block; font-size: 15px; color: var(--ink); }
.value-item span { font-size: 13.5px; color: var(--muted); }

/* ---------------- Sections ---------------- */
.section { padding: 92px 0; }
.section-alt { background: var(--gray-50); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-sub { font-size: 18px; color: var(--muted); margin-top: 16px; }

/* ---------------- Coach ---------------- */
.coach-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.chat-window { background: var(--gray-50); border: 1px solid var(--gray-150); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--gray-150); }
.chat-logo { width: 40px; height: 40px; border-radius: 12px; }
.chat-head strong { display: block; font-size: 15px; color: var(--ink); }
.chat-head span { font-size: 12.5px; color: var(--success); font-weight: 600; }
.chat-body { padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-body .bubble { font-size: 14.5px; padding: 13px 16px; border-radius: 18px; max-width: 82%; }
.chat-body .bubble-ai { box-shadow: var(--shadow-sm); }

.coach-questions h3 { font-size: 22px; margin-bottom: 20px; }
.q-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.q-list li { position: relative; padding: 14px 18px 14px 46px; background: #fff; border: 1px solid var(--gray-150); border-radius: 14px; font-weight: 600; font-size: 15px; color: var(--charcoal); transition: transform .2s, border-color .2s; }
.q-list li:hover { transform: translateX(4px); border-color: var(--pink-200, var(--pink-100)); }
.q-list li::before { content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--pink-50); border: 4px solid var(--pink-100); }
.coach-note { margin-top: 22px; font-size: 14.5px; color: var(--muted); background: var(--pink-50); padding: 16px 18px; border-radius: 14px; border-left: 3px solid var(--pink-500); }

/* ---------------- Features ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: #fff; border: 1px solid var(--gray-150); border-radius: var(--radius-lg); padding: 30px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feat-icon { width: 52px; height: 52px; border-radius: 15px; background: var(--pink-50); color: var(--pink-500); display: grid; place-items: center; margin-bottom: 20px; }
.feat-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--muted); }

/* ---------------- Health score ---------------- */
.score-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.check-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: var(--charcoal); }
.check-list svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--pink-50); color: var(--pink-600); flex-shrink: 0; }
.big-score-card { background: #fff; border: 1px solid var(--gray-150); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; align-items: center; gap: 30px; }
.big-ring { position: relative; width: 200px; height: 200px; }
.big-ring svg { transform: rotate(-90deg); }
.ring-fg.big { stroke-width: 14; stroke-dasharray: 540; stroke-dashoffset: 540; transition: stroke-dashoffset 1.8s var(--ease); }
.big-score-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.big-score-num strong { font-size: 56px; color: var(--ink); }
.big-score-num span { font-size: 14px; font-weight: 700; color: var(--success); }
.score-bars { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.bar { height: 10px; background: var(--gray-150); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--gradient); border-radius: 999px; transition: width 1.4s var(--ease); }
.bar.animate i { width: var(--w); }

/* ---------------- Goals ---------------- */
.goal-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 860px; margin: 0 auto; }
.goal-chip { font-size: 15.5px; font-weight: 600; color: var(--charcoal); background: #fff; border: 1px solid var(--gray-200); padding: 12px 22px; border-radius: var(--radius-pill); transition: all .25s var(--ease); cursor: default; }
.goal-chip:hover { border-color: var(--pink-400); color: var(--pink-600); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.goal-chip-accent { background: var(--gradient); color: #fff; border-color: transparent; }
.goal-chip-accent:hover { color: #fff; }

/* ---------------- Security ---------------- */
.security-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.shield-card { background: var(--ink); border-radius: var(--radius-lg); padding: 50px 40px; text-align: center; color: #fff; box-shadow: var(--shadow-md); }
.shield-card > svg { width: 80px; height: 80px; color: var(--pink-400); margin: 0 auto 24px; }
.shield-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.shield-tags span { font-size: 13px; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 8px 15px; border-radius: var(--radius-pill); }

/* ---------------- Pricing ---------------- */
.pricing-wrap { display: flex; justify-content: center; }
.price-card { position: relative; width: 100%; max-width: 440px; background: #fff; border: 1.5px solid var(--gray-150); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow-lg); }
.price-badge { position: absolute; top: 22px; right: 26px; font-size: 12px; font-weight: 700; color: var(--pink-600); background: var(--pink-50); padding: 6px 13px; border-radius: var(--radius-pill); }
.price-card h3 { font-size: 22px; margin-bottom: 14px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; }
.price-num { font-size: 52px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.price-per { font-size: 17px; color: var(--muted); font-weight: 600; }
.price-trial { font-size: 14.5px; font-weight: 700; color: var(--success); margin: 6px 0 24px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }
.price-features li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--charcoal); }
.price-features svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--pink-50); color: var(--pink-600); flex-shrink: 0; margin-top: 1px; }
.price-fine { text-align: center; font-size: 13px; color: var(--muted-2); margin-top: 14px; }

/* ---------------- FAQ ---------------- */
.faq-container { max-width: 780px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--gray-150); border-radius: 16px; padding: 4px 22px; transition: box-shadow .25s, border-color .25s; }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--pink-100); }
.faq-item summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 16.5px; color: var(--ink); padding: 18px 34px 18px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--pink-500); transition: transform .25s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 15px; padding-bottom: 20px; }

/* ---------------- CTA band ---------------- */
.cta-band { padding: 90px 0; background: var(--gradient); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.22), transparent 45%); }
.cta-inner { position: relative; text-align: center; max-width: 680px; margin: 0 auto; color: #fff; }
.cta-logo { width: 66px; height: 66px; border-radius: 18px; margin: 0 auto 24px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.cta-inner h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.cta-inner p { font-size: 18px; margin: 18px 0 32px; opacity: .95; }
.cta-band .btn-primary { background: #fff; color: var(--pink-600); box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.cta-band .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(0,0,0,.26); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: #C8C8D0; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; filter: none; }
.footer-brand p { font-size: 14.5px; max-width: 320px; color: var(--muted-2); }
.footer-col h4 { font-size: 14px; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.footer-col a { display: block; font-size: 14.5px; color: #B4B4BE; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--pink-400); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13.5px; color: var(--muted-2); }
.footer-bottom .credit { font-weight: 600; color: #C8C8D0; }

/* ---------------- Legal pages ---------------- */
.legal { padding: 64px 0 90px; }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal-back { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--pink-600); margin-bottom: 26px; }
.legal-back svg { width: 18px; height: 18px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); }
.legal .updated { font-size: 14px; color: var(--muted-2); margin: 12px 0 30px; }
.legal .intro { font-size: 17px; color: var(--muted); margin-bottom: 12px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; color: var(--ink); }
.legal p { font-size: 15.5px; color: var(--charcoal); }
.legal a { color: var(--pink-600); font-weight: 600; }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 940px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .header-actions .btn-sm { display: none; }
  .hero-grid, .coach-grid, .score-section, .security-section { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-visual { order: -1; }
  .value-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .security-visual { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .hero { padding: 48px 0 64px; }
  .value-grid, .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .phone { width: 290px; }
  .price-card { padding: 32px 24px; }
}
