/* HeySis landing — pastel airy theme per assets/branding/BRANDBOOK.md */

:root {
  --pink: #FDDEF3;
  --rose: #F7D8ED;
  --mist: #F4EFE7;
  --ink: #241C26;
  --graphite: #6E6678;
  --accent: #F0568C;
  --accent-soft: #FBE3ED;
  --lavender: #E8E4F8;
  --mint: #E2F2E5;
  --card-shadow: 0 18px 50px rgba(110, 102, 120, 0.14);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #FFFDFE;
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 520px at 12% -4%, rgba(253, 222, 243, 0.85), transparent 70%),
    radial-gradient(560px 480px at 94% 12%, rgba(232, 228, 248, 0.8), transparent 70%),
    radial-gradient(700px 620px at 50% 108%, rgba(226, 242, 229, 0.55), transparent 72%);
}

/* Horizontal-only longhands: .wrap outranks the element selectors that own
   vertical rhythm (section, footer), so a padding shorthand here would zero
   their top/bottom padding. */
.wrap { max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 253, 254, 0.82);
  border-bottom: 1px solid rgba(110, 102, 120, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  color: var(--ink);
}

.nav .brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }

.nav-links a {
  color: var(--graphite);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

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

.lang-switch {
  border: 1.5px solid rgba(110, 102, 120, 0.25);
  border-radius: 999px;
  padding: 4px 11px !important;
  font-size: 13px !important;
}

.langs { display: flex; gap: 5px; }

.lang-switch.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff !important;
  pointer-events: none;
}

/* ---------- hero ---------- */

.hero { padding-top: 72px; padding-bottom: 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

h1 .accent { color: var(--accent); }

.hero p.lead {
  font-size: 19px;
  color: var(--graphite);
  max-width: 34em;
  margin: 0 0 28px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(240, 86, 140, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(110, 102, 120, 0.2);
  color: var(--ink);
}

/* Apple's own "Download on the App Store" badge. Its artwork must never be
   recoloured, redrawn or squashed, so the link only sets a height and lets
   the width follow (the KO badge is wider than the others). 54px keeps it
   above Apple's 40px minimum and level with the ghost button beside it. */
.badge-appstore {
  display: inline-flex;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.badge-appstore img { display: block; height: 54px; width: auto; }

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

.cta-note { font-size: 13px; color: var(--graphite); width: 100%; }

/* ---------- phone frames ---------- */

.phone {
  border-radius: 46px;
  border: 9px solid #241C26;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: #241C26;
  width: min(300px, 78vw);
}

.phone img { display: block; width: 100%; height: auto; }

.hero .phone {
  margin: 0 auto;
  transform: rotate(2.5deg);
  animation: phone-float 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(2.5deg); }
  50% { transform: translateY(-16px) rotate(0.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .phone { animation: none; }
}

/* ---------- sections ---------- */

section { padding: 56px 0; }

h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}

.section-sub { color: var(--graphite); font-size: 17px; max-width: 40em; margin: 0 0 40px; }

/* feature rows */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 36px 0;
}

.feature-row .phone { justify-self: center; }

.feature-row:nth-child(even) .phone { order: -1; }

.feature-row h3 { font-size: 26px; font-weight: 900; margin: 0 0 12px; }

.feature-row p { color: var(--graphite); font-size: 16.5px; margin: 0 0 14px; }

.feature-row ul { color: var(--graphite); padding-left: 0; list-style: none; margin: 0; }

.feature-row li { padding-left: 30px; position: relative; margin-bottom: 10px; }

.feature-row li::before {
  content: "♥";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-size: 14px;
}

.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* pill grid (logging chips) */

.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.pill {
  background: #fff;
  border: 1.5px solid rgba(110, 102, 120, 0.14);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(110, 102, 120, 0.07);
}

/* privacy cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(110, 102, 120, 0.1);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(110, 102, 120, 0.08);
}

.card .emoji { font-size: 30px; display: block; margin-bottom: 12px; }

.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }

.card p { margin: 0; color: var(--graphite); font-size: 15px; }

/* manifesto strip */

.manifesto {
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  border-radius: var(--radius);
  padding: 48px 40px;
}

.manifesto h2 { margin-bottom: 24px; }

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.manifesto-item {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  padding: 20px 22px;
  font-size: 15.5px;
}

.manifesto-item strong { display: block; margin-bottom: 4px; }

.manifesto-item span { color: var(--graphite); }

/* FAQ */

.faq details {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(110, 102, 120, 0.1);
  border-radius: 18px;
  padding: 18px 24px;
  margin-bottom: 12px;
}

.faq summary { font-weight: 800; cursor: pointer; font-size: 16.5px; }

.faq details p { color: var(--graphite); margin: 12px 0 0; }

/* mia strip */

.mia-strip { display: flex; align-items: center; gap: 24px; }

.mia-strip img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  box-shadow: var(--card-shadow);
}

/* ---------- footer ---------- */

footer {
  margin-top: 48px;
  background: var(--mist);
  padding: 44px 0 36px;
  color: var(--graphite);
  font-size: 14.5px;
}

.science { margin-bottom: 30px; }

.science .sci-title {
  font-weight: 800;
  color: var(--ink);
  font-size: 15.5px;
  margin: 0 0 6px;
}

.science .sci-intro { font-size: 13.5px; margin: 0 0 10px; }

.science ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
}

.science a {
  color: var(--graphite);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(110, 102, 120, 0.35);
  text-underline-offset: 2px;
}

.science a:hover { color: var(--accent); }

.ai-ask { margin-bottom: 30px; }

.ai-ask .ai-title {
  font-weight: 800;
  color: var(--ink);
  font-size: 15.5px;
  margin: 0 0 12px;
}

.ai-links { display: flex; flex-wrap: wrap; gap: 8px; }

.ai-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid rgba(110, 102, 120, 0.16);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.ai-links a img { width: 16px; height: 16px; display: block; }

@media (hover: hover) {
  .ai-links a:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(240, 86, 140, 0.16);
  }
}

.ai-links a:active { transform: scale(0.97); }

.footer-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

footer a { color: var(--ink); font-weight: 700; text-decoration: none; }

footer a:hover { color: var(--accent); }

.disclaimer { margin-top: 22px; font-size: 13px; max-width: 62em; }

/* ---------- article (legal pages) ---------- */

.article { max-width: 720px; margin: 0 auto; padding: 64px 24px 80px; }

.article h1 { font-size: clamp(30px, 4vw, 40px); }

.article .meta { color: var(--graphite); font-size: 14.5px; margin-bottom: 34px; }

.article h2 { font-size: 22px; margin: 36px 0 10px; }

.article p, .article li { color: #4A4352; font-size: 16px; }

.article ul { padding-left: 22px; }

.article a { color: var(--accent); font-weight: 700; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero { padding-top: 44px; padding-bottom: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .phone { transform: none; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row:nth-child(even) .phone { order: 0; }
  .nav-links a:not(.lang-switch):not(.nav-cta) { display: none; }
  section { padding: 40px 0; }
  .manifesto { padding: 34px 24px; }
}

/* ---------- small phones ---------- */

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }

  .nav-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
    justify-content: space-between;
  }
  .nav .brand { font-size: 18px; gap: 8px; }
  .nav .brand img { width: 30px; height: 30px; }
  .nav-links { margin-left: 0; gap: 10px; }
  .langs { gap: 4px; }
  .lang-switch { padding: 3px 9px !important; font-size: 12px !important; }

  .hero { padding-top: 32px; padding-bottom: 16px; }
  .hero p.lead { font-size: 17px; }

  .cta-row { gap: 10px; justify-content: center; }
  .cta-row .btn {
    flex: 1 1 100%;
    text-align: center;
    justify-content: center;
    padding: 15px 20px;
  }
  /* The badge keeps its own aspect ratio — stretching it full-width like the
     buttons would breach Apple's artwork rules, so it just centres instead. */
  .badge-appstore { flex: 0 0 auto; }
  .cta-note { text-align: center; }

  section { padding: 34px 0; }
  .section-sub { margin-bottom: 26px; }

  .mia-strip { flex-direction: column; align-items: flex-start; gap: 14px; }
  .mia-strip img { width: 72px; height: 72px; }

  .feature-row { padding: 24px 0; }
  .feature-row h3 { font-size: 22px; }

  .card { padding: 22px; }

  .manifesto { padding: 28px 20px; }

  .faq details { padding: 15px 18px; }
  .faq summary { font-size: 15.5px; }

  footer { padding: 34px 0 30px; }
  .footer-links { gap: 12px 18px; }
}
