/* SMS Apps — shared styles. System fonts only, no third-party requests.
   Light and dark follow the visitor's system setting. */

:root {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5d6270;
  --line: #e3e5ea;
  --accent: #0a84ff;
  --accent-text: #ffffff;
  --navy: #0a1628;
  --radius: 18px;
  --max: 1040px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1017;
    --surface: #161a23;
    --text: #eef0f4;
    --muted: #a2a8b6;
    --line: #262b37;
    --accent: #3d9bff;
  }
}

* { 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(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Type */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin-top: 8px; }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .app-icon { width: 112px; height: 112px; margin-bottom: 20px; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 16px;
  border: 1px solid var(--line); color: var(--text); background: var(--surface);
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.08); }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* App grid (home) */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.app-card {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
}
.app-card:hover { text-decoration: none; border-color: var(--muted); }
.app-card img { width: 72px; height: 72px; flex: none; }
.app-card h3 { margin-bottom: 4px; }
.app-card p { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.app-card .platforms { font-size: 13px; color: var(--muted); }

/* Square, full-bleed icons get the platform's rounded shape; Mac icons already have theirs. */
.icon-square { border-radius: 22.5%; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 24px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }
.kbd {
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, sans-serif; padding: 2px 6px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg); white-space: nowrap;
}

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 700; display: grid; place-items: center; font-size: 15px;
}
.steps b { display: block; }

/* Long-form pages (privacy, support) */
.doc { max-width: 720px; padding: 56px 0; }
.doc h2 { font-size: 22px; margin-top: 34px; }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 15px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }

@media (max-width: 560px) {
  .nav { gap: 14px; font-size: 14px; }
  .hero { padding: 48px 0 40px; }
  section { padding: 44px 0; }
}

/* Desk Cockpit: a dusk sky over mountains, matching the app icon. */
.hero.dusk {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #232a5c 0%, #3f4590 34%, #8a6fa6 62%, #d79a8e 82%, #f3b36d 100%);
  padding-bottom: 150px;
}
.hero.dusk::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 140px; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140' preserveAspectRatio='none'%3E%3Cpath fill='%23a07fa8' fill-opacity='.85' d='M0 90 L90 40 L150 70 L260 10 L330 60 L400 35 L480 75 L560 20 L640 65 L720 30 L800 70 L900 15 L980 60 L1060 35 L1200 80 V140 H0Z'/%3E%3Cpath fill='%234a3a6c' d='M0 115 L120 75 L200 100 L320 60 L430 105 L520 80 L640 110 L760 70 L870 105 L980 85 L1090 110 L1200 90 V140 H0Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero.dusk .wrap { position: relative; z-index: 1; }
.hero.dusk h1 { color: #fff; text-shadow: 0 2px 18px rgba(20, 16, 50, .35); }
.hero.dusk .lede { color: rgba(255, 255, 255, .88); }
.hero.dusk .note { color: rgba(255, 255, 255, .8); }
.hero.dusk .app-icon { width: 168px; height: 168px; filter: drop-shadow(0 14px 28px rgba(10, 8, 30, .45)); }
.btn.amber { background: #ffb43c; border-color: #ffb43c; color: #2a1c06; box-shadow: 0 0 24px rgba(255, 180, 60, .55); }
.btn.amber:hover { filter: brightness(1.06); text-decoration: none; }
.hero.dusk .btn:not(.amber) { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
