/* Lingupi marketing site — matches app tokens (purple hoodie, orange streak) */

:root {
  --white: #ffffff;
  --surface-muted: #f3f4f6;
  --purple-500: #8570ff;
  --purple-600: #6b4ee6;
  --purple-700: #5639c8;
  --purple-800: #4530a8;
  --purple-50: #eeeaff;
  --charcoal: #2f3542;
  --gray-600: #656b76;
  --gray-400: #9aa0aa;
  --border: #e5e7eb;
  --teal-600: #137b5c;
  --teal-50: #e1f5ee;
  --amber-500: #f5a623;
  --amber-600: #c47a0a;
  --halo-purple: rgba(107, 78, 230, 0.12);
  --halo-amber: rgba(245, 166, 35, 0.14);
  --extrude: 4px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-card: 0 3px 10px rgba(47, 53, 66, 0.06);
  --max: 1120px;
  --pad: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--purple-800);
}

.story {
  font-family: "Newsreader", Georgia, serif;
}

.container {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 1.125rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-md);
}

.nav a:hover {
  color: var(--charcoal);
  background: var(--surface-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  padding: 14px 22px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
  position: relative;
}

.btn:active {
  transform: translateY(var(--extrude));
  box-shadow: none !important;
}

.btn-primary {
  color: var(--white);
  background: var(--purple-600);
  box-shadow: 0 var(--extrude) 0 var(--purple-800);
}

.btn-primary:hover {
  background: var(--purple-700);
  color: var(--white);
}

.btn-secondary {
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 var(--extrude) 0 #d6d9e0;
}

.btn-secondary:hover {
  background: var(--surface-muted);
  color: var(--charcoal);
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  position: relative;
}

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

@media (min-width: 900px) {
  .hero {
    padding: 72px 0 88px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--purple-50);
  color: var(--purple-700);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  font-weight: 600;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin: 0 0 28px;
  max-width: 34rem;
}

.hero-lead .story {
  font-size: 1.2rem;
  color: var(--charcoal);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

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

.store-badge,
.store-badge-img {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 120ms ease, opacity 120ms ease;
  position: relative;
}

.store-badge-img img {
  display: block;
  height: 44px;
  width: auto;
}

.store-badge-img:hover {
  transform: translateY(-2px);
}

.store-badge-img.is-soon {
  opacity: 0.88;
}

.store-badge-img.is-soon::after {
  content: "Soon";
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--amber-600);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}

.stat {
  min-width: 100px;
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.stat span {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: min(100%, 400px);
  padding: 20px 20px 24px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40px -20px auto;
  height: 200px;
  background: radial-gradient(circle at 50% 50%, var(--halo-purple), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.penguin-wrap {
  display: flex;
  justify-content: center;
  margin: 0 -8px 12px;
  position: relative;
}

.penguin-wrap img {
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
}

.hero-splash {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.penguin-wrap .hero-penguin {
  position: relative;
  z-index: 1;
}

.hero-deco {
  position: absolute;
  right: -8px;
  bottom: 88px;
  width: 88px;
  z-index: 2;
  transform: rotate(6deg);
  filter: drop-shadow(0 6px 12px rgba(47, 53, 66, 0.12));
}

.sample-story {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.sample-story .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.sample-story .sentence {
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0 0 8px;
}

.sample-story .translation {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--halo-amber);
  color: var(--amber-600);
  font-size: 0.85rem;
  font-weight: 600;
}

.streak-pill .flame {
  width: 16px;
  height: 16px;
  background: var(--amber-500);
  border-radius: 50% 50% 50% 20%;
  transform: rotate(-12deg);
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.35);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-muted {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--gray-600);
  max-width: 40rem;
  margin: 0 auto 40px;
}

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

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

.feature-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.section-muted .feature-card {
  background: var(--white);
}

.feature-mascot {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.feature-mascot img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.feature-mascot.purple {
  background: linear-gradient(180deg, var(--purple-50), var(--white));
}

.feature-mascot.teal {
  background: linear-gradient(180deg, var(--teal-50), var(--white));
}

.feature-mascot.amber {
  background: linear-gradient(180deg, var(--amber-50), var(--white));
}

.feature-card {
  text-align: center;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--purple-600);
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 var(--extrude) 0 var(--purple-800);
}

.step h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 32px 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 2px solid var(--purple-500);
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
}

.pricing-mascot {
  width: 96px;
  height: 96px;
  margin: -8px auto 12px;
  object-fit: contain;
}

.pricing-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.pricing-card p {
  margin: 0 0 20px;
  color: var(--gray-600);
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.pricing-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.pricing-list li:last-child {
  border-bottom: none;
}

.cta-band {
  padding: 56px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--purple-50), var(--white));
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0 auto 24px;
  color: var(--gray-600);
  max-width: 32rem;
}

/* Legal pages */
.legal-page {
  padding: 40px 0 72px;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.legal-meta {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-body h2 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
}

.legal-body h3 {
  font-size: 1rem;
  margin: 24px 0 8px;
}

.legal-body p,
.legal-body li {
  color: var(--gray-600);
  line-height: 1.65;
}

.legal-body ul {
  padding-left: 1.25rem;
  margin: 0 0 16px;
}

.legal-body a {
  font-weight: 500;
}

/* Footer */
.site-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand p {
  margin: 8px 0 0;
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--charcoal);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--gray-400);
  text-align: center;
}
