/* Contact+ website. Colours are the iOS brand tokens
   (ContactsPlus/Resources/Assets.xcassets: Brand, BrandMint, BrandSoft). */
:root {
  --brand: #163c32;
  --mint: #4ddab0;
  --brand-soft: #b2f6e0;
  --on-brand: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f3f7f5;
  --card: #ffffff;
  --text: #13211d;
  --text-2: #4b5a55;
  --line: #dde6e2;
  --shadow: 0 2px 8px rgba(19, 33, 29, 0.06), 0 12px 32px rgba(19, 33, 29, 0.06);
  --radius: 16px;
  --max: 1100px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4ddab0;
    --brand-soft: #163c32;
    --on-brand: #0b211c;
    --bg: #0d1513;
    --bg-alt: #121d1a;
    --card: #17231f;
    --text: #e8f0ed;
    --text-2: #a3b3ad;
    --line: #26342f;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

* { 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, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--text-2); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.site-nav .button { color: var(--on-brand); }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.button.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }

/* Hero */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 5.5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; }
.lead { font-size: 20px; color: var(--text-2); margin: 0 0 28px; max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; flex-direction: column; padding: 10px 18px; border-radius: 12px;
  background: var(--text); color: var(--bg); text-decoration: none; min-width: 168px;
}
.store small { font-size: 12px; opacity: 0.75; }
.store strong { font-size: 17px; }
.note { font-size: 14px; color: var(--text-2); margin-top: 12px; }

/* Illustrated app card (not a screenshot) */
.preview { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 20px; }
.preview h3 { margin: 0 0 4px; font-size: 20px; }
.preview .sub { margin: 0 0 16px; color: var(--text-2); font-size: 15px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 15px; flex: none; }
.row .who { flex: 1; min-width: 0; }
.row .who b { display: block; font-size: 16px; }
.row .who span { color: var(--text-2); font-size: 14px; }
.row .when { font-size: 14px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.chip { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--text); font-size: 14px; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
.section-lead { color: var(--text-2); font-size: 19px; margin: 0 0 36px; max-width: 40em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .icon svg { stroke: var(--brand); } }

.privacy-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.cta { text-align: center; }
.cta .stores { justify-content: center; }

/* Legal and help pages */
.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(32px, 4.5vw, 44px); }
.page h2 { font-size: 24px; margin-top: 40px; }
.page h3 { font-size: 19px; margin-top: 28px; }
.page p, .page li { color: var(--text); }
.page li { margin: 6px 0; }
.updated { color: var(--text-2); font-size: 15px; }
.callout { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.steps { padding-left: 22px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--text-2); }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 16px 0; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text-2); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 15px; color: var(--text-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--text-2); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .privacy-list { grid-template-columns: 1fr; }
  .site-nav .hide-sm { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .site-nav { gap: 14px; }
  .store { min-width: 0; flex: 1; }
  table { font-size: 14px; }
}
