/* MindfulBlock landing — palette mirrors ios-app Assets.xcassets/Colors */
:root {
  --accent: #ff6b4a;
  --accent-strong: #f05532;
  --bg: #ebe4db;
  --card: #ffffff;
  --text: #000000;
  --text-secondary: #4a4a4a;
  --text-tertiary: #8b8680;
  --on-accent: #fff6f0;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --card: #191919;
    --text: #f2f2f2;
    --text-secondary: #b0b0b0;
    --text-tertiary: #a19c96;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  position: relative;
}

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

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Decorative tilted coral blocks echoing the app icon */
.deco-field {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  z-index: 0;
}

.deco {
  position: absolute;
  background: var(--accent);
  border-radius: 12px;
  opacity: 0.9;
}

.deco-1 { width: 160px; height: 160px; top: 6%; left: -60px; transform: rotate(-14deg); }
.deco-2 { width: 120px; height: 120px; top: -45px; left: 38%; transform: rotate(9deg); }
.deco-3 { width: 140px; height: 140px; top: 18%; right: -55px; transform: rotate(-8deg); }
.deco-4 { width: 95px; height: 95px; bottom: 24%; left: 8%; transform: rotate(12deg); }
.deco-5 { width: 150px; height: 150px; bottom: -55px; left: 44%; transform: rotate(-11deg); }
.deco-6 { width: 105px; height: 105px; bottom: 12%; right: 6%; transform: rotate(7deg); }

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

/* Hero — fills the space between header and footer */
main {
  flex: 1;
  display: flex;
  align-items: center;
}

.hero {
  width: 100%;
  padding: 48px 0;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

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

.hero .subline {
  margin-top: 20px;
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 38ch;
}

.hero .cta-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  justify-self: center;
}

.hero-phone {
  width: min(280px, 70vw);
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.18));
  transform: rotate(3deg);
}

/* App Store badge */
.appstore-badge {
  display: inline-block;
  line-height: 0;
}

.appstore-badge img {
  height: 52px;
  width: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

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

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

/* Legal pages (privacy.html) */
main.legal {
  display: block;
}

.legal {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 36px 0 10px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
}

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

/* Responsive */
@media (max-width: 820px) {
  .hero {
    padding: 32px 0 40px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero .subline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .cta-row {
    justify-content: center;
  }

  .hero-phone {
    width: min(210px, 55vw);
  }

  /* fewer, smaller shapes on small screens so they never sit behind text */
  .deco-2,
  .deco-4,
  .deco-5 {
    display: none;
  }

  .deco-1 {
    width: 100px;
    height: 100px;
    top: 2%;
    left: -55px;
  }

  .deco-3 {
    top: 26%;
  }
}
