/* The app's colors: Activity.run fill, ink, and deep (App/Sources/Views/Theme.swift). */
:root {
  --green: #40d16b;
  --ink: #002b12;
  --deep: #0d7833;
  --bg: #f6f7f5;
  --card: #ffffff;
  --text: #121614;
  --muted: #4d5651;
  --line: #e1e5e2;
  --link: var(--deep);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1310;
    --card: #17201a;
    --text: #eef3ef;
    --muted: #a8b3ab;
    --line: #26322a;
    --link: var(--green);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header.top { padding: 18px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav a { margin-left: 18px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }

.hero { padding: 40px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg); text-decoration: none;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 17px;
}
.store svg { width: 22px; height: 22px; fill: currentColor; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

.phone {
  border-radius: 38px; border: 8px solid #1b1f1c; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 43, 18, 0.35);
  max-width: 320px; margin: 0 auto; background: #1b1f1c;
}

section { padding: 56px 0; }
section h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.01em; margin: 0 0 12px; }
section p.intro { color: var(--muted); font-size: 19px; margin: 0 0 36px; max-width: 38em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.feature .badge {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--green); color: var(--ink); font-weight: 800; margin-bottom: 14px;
}
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery .phone { border-width: 6px; border-radius: 30px; }

.private { background: var(--green); color: var(--ink); border-radius: 24px; padding: 40px; }
.private h2 { margin-top: 0; }
.private p { font-size: 19px; margin: 0; max-width: 36em; }

article { max-width: 720px; padding: 24px 0 64px; }
article h1 { font-size: 40px; letter-spacing: -0.01em; margin: 0 0 8px; }
article h2 { font-size: 22px; margin: 32px 0 8px; }
article .date { color: var(--muted); margin: 0 0 24px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); margin-right: 16px; }
footer .disclaimer { flex-basis: 100%; }

@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .private { padding: 28px; }
  nav a { margin-left: 12px; }
}

article ul { padding-left: 22px; }
article li { margin-bottom: 6px; }

/* Apple's badge rules: the official artwork, unchanged, at least 40 px tall, with clear space of a quarter of its height. */
.badge-link { display: inline-block; padding: 13px 0; }
.badge-link img { height: 53px; width: auto; }
