/* AIReminderBuddy — GitHub Pages site */

:root {
  --accent: #2f95dc;
  --accent-dark: #1a7ab8;
  --accent-glow: rgba(47, 149, 220, 0.25);
  --text: #1c1c1e;
  --text-muted: #636366;
  --bg: #f2f2f7;
  --surface: #ffffff;
  --border: rgba(0, 0, 0, 0.06);
  --gradient-start: #e8eef5;
  --gradient-mid: #f2f2f7;
  --gradient-end: #eae4f0;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 64px rgba(47, 149, 220, 0.15);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Layout ── */

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

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
}

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

/* ── Hero ── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
  background: linear-gradient(145deg, var(--gradient-start) 0%, var(--gradient-mid) 45%, var(--gradient-end) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 55%;
  height: 120%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

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

.hero-copy .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 34ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--text);
}

/* ── Phone mockup ── */

.phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 800px;
}

.phone {
  width: 260px;
  background: #1c1c1e;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transform: rotateY(-6deg) rotateX(2deg);
}

.phone-notch {
  width: 90px;
  height: 22px;
  background: #1c1c1e;
  border-radius: 0 0 14px 14px;
  margin: 0 auto -12px;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 1080 / 2340;
  display: block;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ── Sections ── */

section {
  padding: 4.5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 0 2.5rem;
}

/* ── Features ── */

.features-grid {
  display: grid;
  gap: 3rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-copy h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.feature-copy p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

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

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.feature-phone .phone {
  transform: none;
  width: 220px;
  margin: 0 auto;
}

/* ── How it works ── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Privacy highlight ── */

.privacy-band {
  background: linear-gradient(135deg, #1c1c1e 0%, #2c3e50 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.privacy-band h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.privacy-band p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1.25rem;
  max-width: 48ch;
}

.privacy-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.privacy-pillar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.privacy-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.privacy-icon-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  min-width: 110px;
}

.privacy-icon-card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.privacy-icon-card span {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.85;
}

/* ── Audience ── */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.audience-card .emoji {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.audience-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.audience-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--surface);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand span {
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── Privacy policy page ── */

.page-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(145deg, var(--gradient-start), var(--gradient-mid));
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.page-hero .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.5rem;
}

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

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.legal-content th {
  background: rgba(47, 149, 220, 0.08);
  font-weight: 600;
  color: var(--text);
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.legal-content strong {
  color: var(--text);
}

.summary-box {
  background: rgba(47, 149, 220, 0.08);
  border: 1px solid rgba(47, 149, 220, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.summary-box p {
  margin: 0;
  color: var(--text);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .hero-grid,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .hero-copy .lead {
    max-width: none;
  }

  .phone-wrap {
    order: -1;
  }

  .phone {
    transform: none;
    width: 240px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .privacy-band {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .privacy-icon-grid {
    justify-self: center;
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }
}
