/* BetterCal website. Apple's product-page grammar: system font, generous space, one accent
   (the app icon's red), and the app itself doing the talking. Light and dark follow the system. */

:root {
  --bg: #fbfbfd;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --card: #f5f5f7;
  --line: #d2d2d7;
  --accent: #e8473a;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --card: #1c1c1e;
    --line: #38383a;
    --accent: #ff6a5c;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.47;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

/* Side margins and padding only, so sections keep their own vertical spacing. */
.wrap { max-width: 980px; margin-left: auto; margin-right: auto; padding-left: 22px; padding-right: 22px; }

/* ---- navigation ---- */

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  font-size: 14px;
}

nav .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
}
nav .brand:hover { text-decoration: none; }
nav .brand img { width: 24px; height: 24px; }
nav .links a { color: var(--secondary); margin-left: 22px; }

/* ---- hero ---- */

.hero { text-align: center; padding-top: 72px; }

.hero .icon {
  width: 128px;
  height: 128px;
  filter: drop-shadow(0 8px 24px rgba(232, 71, 58, 0.28));
}

h1 {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 24px;
}

.lead {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.35;
  color: var(--secondary);
  max-width: 680px;
  margin: 16px auto 0;
}

.availability {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 20px;
  border-radius: 980px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
}

/* ---- phones ---- */

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
  margin: 64px auto 0;
}

/* Bezel 1350x2760 with a transparent screen cutout at x=72 y=69 w=1206 h=2622, exactly an
   iPhone 17 Pro screenshot. The screen sits in the cutout by percentages, with the ring's
   inner corner radius (190px on a 1206px screen), so any width works. */
.phone {
  position: relative;
  width: 260px;
  aspect-ratio: 1350 / 2760;
  flex-shrink: 0;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.16));
}
.phone.center { width: 300px; }

.phone .screen {
  position: absolute;
  left: 5.3333%;
  top: 2.5%;
  width: 89.3333%;
  height: 95%;
  border-radius: 15.75% / 7.246%;
  background: #05070a;
  object-fit: cover;
}

.phone .bezel { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (max-width: 860px) {
  .phones .phone:not(.center) { display: none; }
}

/* ---- features ---- */

section { margin-top: 112px; }

h2 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--secondary);
  font-size: 21px;
  max-width: 640px;
  margin: 14px auto 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
  list-style: none;
  padding: 0;
}

.features li {
  background: var(--card);
  border-radius: 22px;
  padding: 30px 28px;
}

.features h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.features p { color: var(--secondary); margin-top: 8px; }

/* ---- split section: text beside one phone ---- */

.split {
  display: flex;
  align-items: center;
  gap: 72px;
  justify-content: center;
}
.split .text { max-width: 420px; }
.split h2, .split .section-lead { text-align: left; margin-left: 0; }
.split .example {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--card);
  font-size: 19px;
}
.split .example span { display: block; color: var(--accent); font-size: 15px; margin-top: 6px; }

@media (max-width: 860px) {
  .split { flex-direction: column-reverse; gap: 40px; }
  .split h2, .split .section-lead { text-align: center; }
}

/* ---- privacy band ---- */

.privacy-band {
  background: var(--card);
  padding: 80px 0;
  text-align: center;
}
.privacy-band .section-lead { margin-bottom: 20px; }

/* ---- footer ---- */

footer {
  padding: 28px 0 40px;
  font-size: 12px;
  color: var(--secondary);
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--secondary); }

/* ---- legal text ---- */

.legal { max-width: 720px; padding-top: 64px; padding-bottom: 96px; }
.legal h1 { font-size: 48px; margin-top: 0; }
.legal .updated { color: var(--secondary); margin-top: 8px; }
.legal h2 { text-align: left; font-size: 24px; margin-top: 48px; letter-spacing: -0.01em; }
.legal p, .legal ul { margin-top: 14px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal .summary {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--card);
  font-size: 19px;
}
