/* ToBeDone landing site — matches the app's V2 dark-violet design language.
   Tokens mirror the iOS app's AppColors so the site feels like the same product. */

:root {
  /* Match the iOS app exactly */
  --bg: #0B0418;
  --bg-deep: #120822;
  --card-1: #8B7CFF;
  --card-2: #5A4DCC;
  --text: #F4F1FF;
  --text-dim: rgba(244, 241, 255, 0.55);
  --text-muted: rgba(244, 241, 255, 0.32);
  --accent: #4ADE80;
  --amber: #FFB340;
  --divider: rgba(255, 255, 255, 0.06);

  --radius-card: 14px;
  --radius-pill: 9999px;
  --radius-phone: 44px;

  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
                 "Helvetica Neue", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 8rem);
  padding-bottom: 4rem;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
    padding-bottom: 3rem;
    text-align: center;
  }
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--card-1), var(--card-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-brand-mark svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 32rem;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
}

/* App Store badge — placeholder until app is live */

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.6rem;
  background: linear-gradient(135deg, var(--card-1), var(--card-2));
  border-radius: var(--radius-card);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 -1px 0 rgba(0, 0, 0, 0.28) inset,
    0 12px 24px rgba(20, 10, 50, 0.45);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

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

.appstore-badge:active {
  transform: translateY(0);
}

.appstore-badge svg {
  width: 24px;
  height: 24px;
}

.appstore-note {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0;
}

/* ---------- Phone Mockup ---------- */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  isolation: isolate;
}

/* Atmospheric ambient glow — sits behind the phone, much larger and softer
   than any box-shadow halo can achieve. Radial gradient + filter:blur gives
   a natural, organic falloff that doesn't follow the phone's rectangle. */
.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 90%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(139, 124, 255, 0.40) 0%,
    rgba(90, 77, 204, 0.22) 28%,
    rgba(90, 77, 204, 0.08) 55%,
    transparent 72%
  );
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 580px;
  background: #050010;
  border-radius: var(--radius-phone);
  padding: 12px;
  box-shadow:
    /* Phone-frame edge highlights (unchanged) */
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    /* Tight purple halo hugging the phone outline */
    0 0 40px rgba(139, 124, 255, 0.45),
    0 0 80px rgba(139, 124, 255, 0.28),
    /* Original dark drop shadows for grounding */
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 50px 100px rgba(20, 10, 50, 0.35);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
}

.phone-content {
  padding: 50px 18px 24px;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 4px 16px 4px;
}

.phone-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.phone-items {
  font-size: 11px;
  color: var(--text-dim);
}

.phone-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: linear-gradient(135deg, var(--card-1), var(--card-2));
  border-radius: var(--radius-card);
  margin-bottom: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    inset 1px 0 0 rgba(255, 255, 255, 0.15),
    inset -1px 0 0 rgba(0, 0, 0, 0.18),
    0 8px 14px rgba(20, 10, 50, 0.6);
}

.phone-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  flex-shrink: 0;
}

.phone-card-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  flex-grow: 1;
}

.phone-pill {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--amber);
  background: rgba(255, 179, 64, 0.15);
  border: 1px solid rgba(255, 179, 64, 0.4);
  border-radius: var(--radius-pill);
  padding: 3px 7px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.phone-pill svg {
  width: 9px;
  height: 9px;
}

.phone-hint {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.02em;
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 5rem 0;
  border-top: 1px solid var(--divider);
}

@media (max-width: 860px) {
  .features {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
  }
}

.feature h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 22rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--card-1), var(--card-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 16px rgba(20, 10, 50, 0.35);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--divider);
  padding: 2rem 1.5rem 3rem;
  max-width: 1180px;
  margin: 0 auto;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

footer nav a {
  color: var(--text-dim);
}

footer nav a:hover {
  color: var(--text);
  opacity: 1;
}

footer .copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0;
}

/* ---------- Legal pages (privacy.html + imprint.html) ---------- */

.legal-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.legal-page .back-link:hover {
  color: var(--text);
  opacity: 1;
}

.legal-page h1 {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-page .updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page a {
  color: var(--card-1);
  text-decoration: underline;
  text-decoration-color: rgba(139, 124, 255, 0.4);
}

.legal-page a:hover {
  text-decoration-color: var(--card-1);
  opacity: 1;
}

.legal-page address {
  font-style: normal;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-page strong {
  color: var(--text);
  font-weight: 600;
}
