/* Poliamore landing — colores tomados de apps/mobile/src/theme/colors.ts */
:root {
  --violet: #6d3fd9;
  --violet-deep: #4c2a9e;
  --violet-light: #8b63f0;
  --violet-soft: #a98bff;
  --coral: #ff6f61;
  --cream: #faf7f2;
  --white: #ffffff;
  --ink: #1f1b2e;
  --lavender-gray: #6b6480;
  --night: #15121f;

  --bg: var(--cream);
  --surface: var(--white);
  --surface-muted: #f3eef9;
  --border: #e7e1f2;
  --text: var(--ink);
  --text-2: var(--lavender-gray);
  --primary: var(--violet);
  --link: var(--violet);
  --tag-bg: #efe9fb;
  --tag-text: var(--violet-deep);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 6px rgba(31, 27, 46, 0.06);
  --shadow-md: 0 6px 16px rgba(31, 27, 46, 0.1);
  --shadow-lg: 0 24px 48px rgba(31, 27, 46, 0.18);

  --font-heading: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night);
    --surface: #221d33;
    --surface-muted: #2a2240;
    --border: #2f2945;
    --text: #f4f1fa;
    --text-2: #b7b0c9;
    --primary: var(--violet-light);
    --link: var(--violet-soft);
    --tag-bg: #2a2240;
    --tag-text: #c9b8ff;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
a { color: var(--link); }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  color: var(--white);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav .nav-links { display: none; gap: 20px; list-style: none; margin: 0; padding: 0; }
.header-nav .nav-links a { color: rgba(255, 255, 255, 0.9); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.header-nav .nav-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 860px) { .header-nav .nav-links { display: flex; } }

.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; padding: 2px; }
.lang-switch a {
  color: var(--white); text-decoration: none; font-size: 0.85rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; min-width: 40px; text-align: center;
}
.lang-switch a[aria-current="true"] { background: var(--white); color: var(--violet-deep); }

.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; padding: 6px 12px;
  color: var(--white); font-weight: 600; font-size: 0.85rem;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 16px; height: 16px; }
.lang-menu summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 168px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
}
.lang-menu ul a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.lang-menu ul a:hover { background: var(--surface-muted); }
.lang-menu ul a[aria-current="true"] { color: var(--primary); font-weight: 700; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.12) 0 140px, transparent 141px),
    radial-gradient(circle at 5% 95%, rgba(255, 111, 97, 0.22), transparent 45%),
    linear-gradient(160deg, var(--violet-light) 0%, var(--violet) 45%, var(--violet-deep) 100%);
  padding: 104px 0 56px;
}
.hero .container { display: grid; gap: 40px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 18px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.hero h1 { margin-bottom: 16px; }
.hero h1 .accent { color: #ffd2cd; }
.hero-lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.92); max-width: 34em; }
.hero-note { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); margin-top: 14px; }
.hero-media { display: flex; justify-content: center; }
.hero-media img {
  width: min(300px, 78vw); border-radius: 28px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
@media (min-width: 860px) {
  .hero { padding: 128px 0 88px; }
  .hero .container { grid-template-columns: 1.15fr 0.85fr; }
  .hero-media img { width: 340px; transform: rotate(2deg); }
}

/* Store buttons */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 20px 10px 16px;
  background: var(--ink); color: var(--white); text-decoration: none;
  border: 2px solid transparent; border-radius: 14px;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn__small { font-size: 0.72rem; opacity: 0.85; }
.store-btn__big { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; }
.store-btn.is-recommended { order: -1; border-color: var(--coral); }
.store-btn__tag { color: #ffd2cd; }
.store-btn__note { font-size: 0.72rem; opacity: 0.85; }
.store-btn.is-soon {
  background: rgba(31, 27, 46, 0.45); color: rgba(255, 255, 255, 0.85);
  border: 2px dashed rgba(255, 255, 255, 0.35); box-shadow: none; cursor: default;
}
.store-btn.is-soon:hover { transform: none; box-shadow: none; }
.cta .store-btn.is-soon { background: transparent; color: var(--text-2); border-color: var(--border); }
@media (prefers-reduced-motion: reduce) { .store-btn { transition: none; } .store-btn:hover { transform: none; } }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-muted); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.08rem; }
.kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.kicker::after { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--coral); margin: 8px auto 0; }

/* About */
.pillars { display: grid; gap: 16px; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.pillar p { color: var(--text-2); margin: 0; }

.icon-badge {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--tag-bg); color: var(--primary); margin-bottom: 14px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* Features */
.features { display: grid; gap: 16px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.feature p { color: var(--text-2); margin: 0; }

/* Screenshots */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 68vw); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 24px; margin: 0 -20px;
  list-style: none; scrollbar-width: thin;
}
.shots li { scroll-snap-align: center; }
.shots img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-md); background: var(--violet); }
@media (min-width: 1000px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 8px 0 0; }
}
.shots-hint { text-align: center; color: var(--text-2); font-size: 0.9rem; margin: 0; }
@media (min-width: 1000px) { .shots-hint { display: none; } }

/* Safety */
.safety-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 860px) { .safety-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; } }
.safety-grid .section-head { text-align: left; margin: 0; }
.safety-grid .kicker::after { margin-left: 0; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px;
}
.check-list svg { width: 22px; height: 22px; color: var(--primary); margin-top: 1px; }
.check-list strong { display: block; }
.check-list span { color: var(--text-2); }
.age-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  background: var(--coral); color: var(--ink); font-weight: 800; border-radius: 999px; padding: 6px 14px;
}

/* Premium */
.premium-card {
  max-width: 760px; margin: 0 auto; border-radius: var(--radius-xl); padding: 36px 24px; color: var(--white);
  background: linear-gradient(150deg, var(--violet) 0%, var(--violet-deep) 100%);
  box-shadow: var(--shadow-lg);
}
.premium-card .kicker { color: #ffd2cd; }
.premium-card .section-head p { color: rgba(255, 255, 255, 0.88); }
.premium-list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 12px; max-width: 520px; }
@media (min-width: 640px) { .premium-list { grid-template-columns: repeat(2, 1fr); } }
.premium-list li { display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, 0.1); border-radius: var(--radius-md); padding: 12px 14px; font-weight: 600; }
.premium-list svg { width: 20px; height: 20px; color: var(--coral); }
.premium-foot { text-align: center; color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; margin: 24px 0 0; }

/* Final CTA */
.cta { text-align: center; }
.cta .store-buttons { justify-content: center; }
.cta .lema { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.4rem, 3.5vw, 2rem); }
.cta-img { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 18px; box-shadow: var(--shadow-md); }

/* Footer */
.site-footer { background: var(--night); color: #d9d3e8; padding: 48px 0 32px; font-size: 0.95rem; }
.site-footer a { color: #ffffff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: var(--white); margin-bottom: 10px; }
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--violet-soft); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .lang-switch { border-color: rgba(255, 255, 255, 0.3); flex-wrap: wrap; border-radius: var(--radius-lg); }
.footer-bottom { border-top: 1px solid #2f2945; margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; color: #b7b0c9; font-size: 0.88rem; }
.footer-bottom p { margin: 0; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.notfound img { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 20px; }
.btn {
  display: inline-block; background: var(--white); color: var(--violet-deep); font-weight: 700; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; margin: 6px;
}
