/* Babedoo's site styles. Colors follow the app: iOS system colors and the widgets' green-to-blue gradient.
   The page follows the visitor's light or dark appearance; there's no switcher. */

:root {
  color-scheme: light dark;

  --background: #ffffff;
  --grouped-background: #f2f2f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --secondary-text: #6e6e73;
  --separator: rgba(60, 60, 67, 0.18);
  --green: #34c759;
  --blue: #007aff;
  --link: #0066d6;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.10);

  --gradient: linear-gradient(90deg, var(--green), var(--blue));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 20px;
  --content-width: 1080px;
  --reading-width: 680px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000;
    --grouped-background: #1c1c1e;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --secondary-text: #a1a1a6;
    --separator: rgba(84, 84, 88, 0.6);
    --green: #30d158;
    --blue: #0a84ff;
    --link: #409cff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display-font);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 19px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}
.site-nav a { color: var(--secondary-text); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* App Store badge: black on light backgrounds, white on dark, as Apple's guidelines ask. */

.app-store-badge { display: inline-block; }
.app-store-badge img { height: 48px; width: auto; }

/* Home: hero */

.hero {
  padding: 48px 0 56px;
}

.hero .container {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 9vw, 64px);
  font-weight: 700;
}

.hero .tagline {
  margin: 12px 0 0;
  font-size: clamp(21px, 4vw, 26px);
  font-weight: 600;
}

.hero .lede {
  margin: 16px 0 28px;
  max-width: 34em;
  color: var(--secondary-text);
  font-size: 19px;
}

.hero-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1360 / 766;
  width: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero { padding: 72px 0 80px; }
  .hero .container { grid-template-columns: 5fr 6fr; gap: 56px; }
}

/* Home: features */

.features {
  background: var(--grouped-background);
  padding: 64px 0;
}

.features > .container > h2 {
  font-size: clamp(30px, 6vw, 40px);
  text-align: center;
  margin-bottom: 48px;
}

.feature {
  display: grid;
  max-width: 880px;
  margin: 0 auto;
  gap: 32px;
  align-items: center;
  justify-items: center;
}

.feature + .feature { margin-top: 72px; }

.feature-text { max-width: 30em; }

.feature h3 {
  font-size: clamp(24px, 5vw, 30px);
  margin-bottom: 12px;
}

.feature p {
  margin: 0;
  color: var(--secondary-text);
}

.feature p + p { margin-top: 12px; }

.phone {
  width: min(280px, 72vw);
  border-radius: 40px;
  border: 8px solid #1d1d1f;
  background: #1d1d1f;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone img {
  border-radius: 32px;
  aspect-ratio: 1290 / 2796;
  width: 100%;
}

@media (prefers-color-scheme: dark) {
  .phone { border-color: #3a3a3c; background: #3a3a3c; }
}

@media (min-width: 800px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; justify-items: start; }
  .feature .phone { justify-self: center; }
  .feature.image-first .phone { order: -1; }
}

/* Home: privacy and call to action */

.callout {
  padding: 64px 0;
  text-align: center;
}

.callout h2 {
  font-size: clamp(28px, 6vw, 40px);
  margin-bottom: 16px;
}

.callout p {
  margin: 0 auto 28px;
  max-width: 34em;
  color: var(--secondary-text);
  font-size: 19px;
}

.callout + .callout { border-top: 1px solid var(--separator); }

/* Reading pages: privacy, support, not found */

.page {
  padding: 48px 0 64px;
}

.prose {
  max-width: var(--reading-width);
}

.prose h1 {
  font-size: clamp(34px, 7vw, 44px);
  font-weight: 700;
}

.prose .meta {
  margin: 8px 0 32px;
  color: var(--secondary-text);
}

.prose h2 {
  font-size: 22px;
  margin: 36px 0 8px;
}

.prose h3 {
  font-size: 18px;
  margin: 24px 0 4px;
}

.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 4px; }

.contact-card {
  margin: 24px 0 8px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--grouped-background);
}

.contact-card p { margin: 0; }
.contact-card p + p { margin-top: 4px; color: var(--secondary-text); font-size: 15px; }
.contact-card a { font-weight: 600; font-size: 19px; overflow-wrap: anywhere; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--separator);
  padding: 32px 0 40px;
  color: var(--secondary-text);
  font-size: 14px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.site-footer a { color: var(--secondary-text); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }
