/* Savyit marketing site — tokens aligned with money_lens/lib/theme/app_theme.dart */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@400;500;600;700&display=swap');
@import url('./messages.css');

:root {
  --bg-page: #EDE7FF;
  --bg-page-mid: #FAFAFF;
  --bg-page-bottom: #FFF7F3;

  --surface: #FFFFFF;
  --surface-variant: #FFF5F0;
  --surface-2: #F8FAFF;

  --text-main: #221E20;
  --text-secondary: #3A3336;
  --text-muted: #595155;

  --lime: #98D8A0;
  --pink: #FF70A6;
  --royal: #4A69FF;
  --amber: #FFD166;
  --mint: #B8E1DD;
  --violet: #9B86BD;
  --stroke-black: #2D3142;
  --shadow-ink: #1E1E26;

  --primary: var(--lime);
  --primary-dark: var(--shadow-ink);
  --primary-soft: rgba(152, 216, 160, 0.22);

  --radius-card: 20px;
  --radius-btn: 14px;
  --shadow-offset: 5px;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: min(1100px, 92vw);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-main);
  background: linear-gradient(
    180deg,
    var(--bg-page) 0%,
    var(--bg-page-mid) 48%,
    var(--bg-page-bottom) 100%
  );
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-main);
}

h1 { font-size: clamp(2rem, 4.5vw, 2.85rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.85rem); margin: 0 0 0.6em; }
h3 { font-size: 1.15rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--primary-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--royal);
}

/* —— Layout —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--stroke-black);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-ink);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.site-brand:hover { text-decoration: none; color: inherit; }

.site-logo {
  height: 40px;
  width: auto;
  display: block;
}

.site-brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.93rem;
  text-decoration: none;
  color: var(--text-secondary);
}
.site-nav a:hover { color: var(--royal); }

/* —— Neo card (NeoPopDecorations.card) —— */
.neo-card {
  background: var(--surface);
  border: 2px solid var(--stroke-black);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-ink);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-btn);
  border: 2px solid var(--stroke-black);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--shadow-ink);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-dark);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-ink);
}
.btn-primary:hover {
  filter: brightness(1.03);
  color: var(--primary-dark);
  text-decoration: none;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-main);
  box-shadow: 3px 3px 0 var(--shadow-ink);
}
.btn-ghost:hover {
  background: var(--surface-2);
  text-decoration: none;
}

/* —— Main & sections —— */
main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 4vw 72px;
}

.hero {
  padding: 28px 28px 36px;
  margin-bottom: 40px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hero__kicker {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero__title em {
  font-style: italic;
  color: var(--royal);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 36ch;
  margin-bottom: 22px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.play-badge {
  display: block;
  height: auto;
  width: min(220px, 62vw);
  max-height: 68px;
}

.hero__art {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.hero__palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 280px;
}

.swatch {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 2px solid var(--stroke-black);
  box-shadow: 4px 4px 0 var(--shadow-ink);
}

.section {
  margin-bottom: 48px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head p {
  max-width: 58ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 22px;
  height: 100%;
}

.feature-card__icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: var(--font-display);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid var(--stroke-black);
  box-shadow: 2px 2px 0 var(--shadow-ink);
}

.chip--lime { background: var(--primary-soft); color: var(--primary-dark); }
.chip--pink { background: rgba(255, 112, 166, 0.2); color: var(--stroke-black); }
.chip--mint { background: rgba(184, 225, 221, 0.45); color: var(--stroke-black); }
.chip--amber { background: rgba(255, 209, 102, 0.35); color: var(--stroke-black); }

/* —— Legal pages —— */
.legal {
  padding: 36px 32px 40px;
}

.legal .legal-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 1.6em;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal ul, .legal ol {
  color: var(--text-secondary);
  padding-left: 1.35em;
  margin: 0 0 1em;
}

.legal li { margin-bottom: 0.35em; }

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  border-top: 2px solid var(--stroke-black);
  background: var(--surface-variant);
  padding: 36px 4vw 48px;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand img {
  height: 44px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.footer-bottom {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--stroke-black);
}

/* —— OSS page —— */
.oss-note {
  padding: 22px;
}
