/* Fight shared site styles */

:root {
  --ink: #0a0a0b;
  --ink-2: #16161a;
  --ink-3: #24242a;
  --paper: #ffffff;
  --paper-2: #f6f6f7;
  --text: #1e1e1e;
  --text-2: #5a5a5f;
  --text-3: #8e8e94;
  --red: #cc0000;
  --red-hot: #ff0000;
  /* Matches AppColors.gold (#EEC96A) and the app's calendar green. */
  --gold: #eec96a;
  --green: #34c759;
  --line: rgba(0, 0, 0, 0.09);
  --line-dark: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.22);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hot); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 720px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav.on-dark {
  background: rgba(10, 10, 11, 0.96);
  border-bottom: 1px solid var(--line-dark);
}

.nav-inner {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-right: auto;
}

.brand:hover { color: var(--text); }
.nav.on-dark .brand { color: #fff; }

.brand svg { width: 17px; height: 26px; display: block; }
.nav.on-dark .brand svg .mark-body { fill: #fff; }
.nav.on-dark .brand svg .mark-outline { stroke: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--red); }
.nav.on-dark .nav-links a { color: rgba(255, 255, 255, 0.68); }
.nav.on-dark .nav-links a:hover { color: #fff; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-cta:hover { background: var(--red); transform: translateY(-1px); }
.nav.on-dark .nav-cta { background: #fff; color: var(--ink) !important; }
.nav.on-dark .nav-cta:hover { background: var(--red); color: #fff !important; }

@media (max-width: 700px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #000;
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.appstore.light {
  background: #fff;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}

.appstore svg { width: 22px; height: 26px; flex-shrink: 0; }
.appstore .txt { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.appstore .txt small { font-size: 10px; font-weight: 400; letter-spacing: 0.2px; opacity: 0.9; }
.appstore .txt strong { font-size: 19px; font-weight: 600; letter-spacing: -0.2px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  padding: 12px 4px;
}

.btn-ghost:hover { color: var(--red); }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow.on-dark { color: #ff4d4d; }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; font-weight: 700; }

.section-title {
  font-size: clamp(30px, 4.4vw, 44px);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 17.5px;
  color: var(--text-2);
  line-height: 1.62;
  max-width: 620px;
}

.section {
  padding: 96px 0;
}

.section.tight { padding: 68px 0; }
.section.alt { background: var(--paper-2); }

.section.dark {
  background: var(--ink);
  color: #fff;
}

.section.dark .section-sub { color: rgba(255, 255, 255, 0.66); }

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  width: 262px;
  flex-shrink: 0;
  border-radius: 44px;
  padding: 9px;
  background: linear-gradient(160deg, #3a3a40, #0d0d0f 45%, #2a2a2f);
  box-shadow: var(--shadow-lg);
}

.phone::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 20px;
  background: #0a0a0b;
  border-radius: 999px;
  z-index: 2;
}

.phone img {
  border-radius: 36px;
  width: 100%;
  display: block;
  background: #fff;
}

.phone.sm { width: 208px; border-radius: 36px; padding: 7px; }
.phone.sm::after { width: 58px; height: 16px; top: 16px; }
.phone.sm img { border-radius: 30px; }

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

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  padding: 64px 0 40px;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand .brand { color: #fff; font-size: 19px; margin-bottom: 12px; }
.footer-brand .brand svg .mark-body { fill: #fff; }
.footer-brand .brand svg .mark-outline { stroke: #fff; }
.footer-brand p { max-width: 280px; line-height: 1.6; color: rgba(255, 255, 255, 0.55); }

.footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(255, 255, 255, 0.62); }
.footer ul a:hover { color: #fff; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.42);
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  transition: background 0.15s ease, transform 0.15s ease;
}

.social a:hover { background: var(--red); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; fill: #fff; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Legal / prose pages ---------- */

.page-head {
  padding: 64px 0 34px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 10px; }
.page-head .updated { font-size: 14px; color: var(--text-3); }

.prose { padding: 44px 0 90px; }
.prose h2 {
  font-size: 21px;
  margin: 38px 0 12px;
  letter-spacing: -0.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16.5px; margin: 24px 0 8px; }
.prose p { color: var(--text-2); margin-bottom: 14px; font-size: 16px; }
.prose ul { list-style: none; margin: 4px 0 16px; }
.prose ul li {
  color: var(--text-2);
  font-size: 16px;
  padding: 5px 0 5px 21px;
  position: relative;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.prose strong { color: var(--text); font-weight: 600; }

.callout {
  background: rgba(204, 0, 0, 0.045);
  border: 1px solid rgba(204, 0, 0, 0.16);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 26px 0;
}

.callout p:last-child { margin-bottom: 0; }
