/* BeautifAI marketing site — shared styles.
   Colors mirror BeautifAI/Theme.swift so the site and app feel like one brand. */

:root {
  --purple: #a98bd0;
  --pink: #f0a6c0;
  --deep-mauve: #7a3b4e;
  --primary-text: #1f2430;
  /* Darkened from #8a90a0 (~3.2:1 on white) to clear WCAG AA (4.5:1) */
  --secondary-text: #5b6472;
  --background: #f4f5f8;
  --card: #ffffff;
  --tile-lavender: #eee6fa;
  --tile-pink: #fbe4ee;
  /* Darkened from #c3a5e0/#efa9c4 (~2.1:1 with white hero text) to clear
     WCAG AA against the white text/icons placed on top of it. */
  --gradient: linear-gradient(120deg, #6b4a94, #a8527a);
  --gradient-button: linear-gradient(90deg, #7549a8, #b04c78);
  --shadow: 0 12px 30px rgba(31, 36, 48, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--primary-text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  margin: 0 0 0.4em;
}

a { color: inherit; }

/* height: auto keeps proportions when max-width shrinks an <img> that has
   width/height attributes. */
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.nav .logo {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.nav .logo span { color: var(--deep-mauve); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary-text);
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary-text); }

/* Title banner (the page's h1 — an image, so its alt text carries the heading) */
.title-banner {
  margin: 12px 0 0;
}

.title-banner img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* Hero */
.hero {
  background: var(--gradient);
  border-radius: 28px;
  margin-top: 24px;
  padding: 72px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero h2 {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 32px;
  opacity: 0.95;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: var(--deep-mauve);
}

.btn-primary:hover { opacity: 0.92; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn-gradient {
  background: var(--gradient-button);
  color: #fff;
}

/* Used on download.html's badge-row, which sits on the plain page
   background (not the hero gradient) — a translucent-white fill with white
   text was ~1.1:1 contrast there, effectively invisible. */
.btn-disabled {
  background: var(--tile-lavender);
  color: var(--deep-mauve);
  cursor: default;
}

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Features */
.section {
  padding: 72px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--secondary-text);
  max-width: 520px;
  margin: 0 auto 48px;
  font-size: 16px;
}

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

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tile-lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--secondary-text);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

/* Screenshot strip */
.screens {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 24px;
}

.screens img,
.screen-placeholder {
  width: 220px;
  height: 476px;
  flex: 0 0 auto;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: var(--tile-pink);
  object-fit: cover;
}

.screen-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--secondary-text);
  font-size: 13px;
  padding: 20px;
}

/* CTA */
.cta {
  background: var(--tile-lavender);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
}

.cta h2 { font-size: 28px; margin-bottom: 12px; }
.cta p { color: var(--secondary-text); margin-bottom: 28px; }

/* Content pages (privacy) */
.content-page {
  padding: 56px 0 96px;
  max-width: 760px;
  margin: 0 auto;
}

.content-page h1 { font-size: 34px; }
.content-page .updated {
  color: var(--secondary-text);
  font-size: 14px;
  margin-bottom: 40px;
}

.content-page h2 {
  font-size: 20px;
  margin-top: 40px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.content-page p,
.content-page li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--primary-text);
}

.content-page ul { padding-left: 22px; }

/* Story page (story.html) — long-form article on top of .content-page */
.content-page.story .updated a { color: var(--deep-mauve); }

.story figure {
  margin: 36px 0;
}

.story figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* Portrait images (e.g. the phone sketch) would fill a whole screen at
   full column width — cap them and center. */
.story figure.figure-narrow {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* On wider screens, float it right so its section's text wraps beside it;
   headings clear the float so the next section starts full width. */
@media (min-width: 720px) {
  .story figure.figure-right {
    float: right;
    width: 300px;
    margin: 4px 0 24px 32px;
  }
}

.story h2 { clear: both; }

.story .story-sub {
  font-size: 18px;
  color: var(--secondary-text);
}

.story .story-note {
  margin-top: 48px;
  color: var(--secondary-text);
}

/* Footer */
.footer {
  padding: 40px 0;
  text-align: center;
  color: var(--secondary-text);
  font-size: 13px;
}

.footer a {
  color: var(--secondary-text);
  text-decoration: underline;
}

/* Download page */
.download-hero {
  text-align: center;
  padding: 64px 0 32px;
}

.download-hero .icon-tile {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: var(--gradient-button);
  margin: 0 auto 24px;
  box-shadow: var(--shadow);
}

.badge-row {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.appstore-badge {
  height: 56px;
  border-radius: 12px;
}

.coming-soon-note {
  text-align: center;
  color: var(--secondary-text);
  font-size: 14px;
  max-width: 420px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .hero { padding: 56px 24px; }
  .hero h2 { font-size: 32px; }
  .title-banner img { border-radius: 16px; }
  .nav-links { gap: 16px; font-size: 13px; }
}
