/* Ampy website. One stylesheet, no frameworks, no web fonts: the system font stack loads instantly. */

:root {
  color-scheme: dark light;
  --bg: #101418;
  --surface: #181d22;
  --surface-2: #20262c;
  --line: #2a3138;
  --text: #f2f5f7;
  --muted: #a9b4be;
  --accent: #34c759;
  --accent-ink: #062b12;
  --pro: #ffc24a;
  --pro-fill: #ffb020;
  --pro-ink: #1f1400;
  --radius: 20px;
  --max: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8f9;
    --surface: #ffffff;
    --surface-2: #eef2f4;
    --line: #dde3e7;
    --text: #12181d;
    --muted: #55616b;
    --accent: #12813a;
    --accent-ink: #ffffff;
    --pro: #955700;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--accent); text-underline-offset: 3px; }

a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

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

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.975rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Sections */

section { padding: 64px 0; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }

h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.01em; }

h3 { font-size: 1.15rem; }

.lead {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 38em;
  margin: 0 0 28px;
}

.section-intro {
  color: var(--muted);
  max-width: 40em;
  margin: 0 0 32px;
}

/* Hero */

.hero { padding-top: 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: linear-gradient(135deg, #4568dc, #b06ab3);
  border-radius: var(--radius);
  padding: 18px;
}

.hero-shots .wide { grid-column: 1 / -1; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-ink);
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 14px 0 0;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feature p { margin: 0; color: var(--muted); }

.feature h4 { font-size: 1.075rem; line-height: 1.3; margin: 0 0 8px; }

.feature-group + .feature-group { margin-top: 40px; }

.feature-group > h3 { color: var(--muted); font-weight: 600; margin-bottom: 16px; }

/* Real app screens under a feature group, side by side and top-aligned. */
.screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  align-items: start;
  gap: 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.screens figure { margin: 0; text-align: center; }

.screens img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.screens figcaption { margin-top: 8px; font-size: 0.975rem; color: var(--muted); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Get Pro card: the app's gold-bordered card, on the web */

.pro-card {
  margin-top: 24px;
  background: var(--surface);
  border: 2px solid var(--pro-fill);
  border-radius: var(--radius);
  padding: 24px;
}

.pro-card h3 { font-size: 1.4rem; margin-bottom: 8px; }

.pro-card > p:first-of-type { color: var(--muted); margin: 0 0 20px; max-width: 40em; }

.button.pro { background: var(--pro-fill); color: var(--pro-ink); }

/* Free vs Pro table */

.compare-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: middle;
  border-top: 1px solid var(--line);
}

.compare thead th {
  border-top: 0;
  font-size: 1.1rem;
  background: var(--surface-2);
}

.compare thead .price {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.compare tbody th { font-weight: 500; }

.compare td { color: var(--muted); width: 26%; }

.compare .pro-col { background: color-mix(in srgb, var(--pro-fill) 8%, transparent); }

.compare thead .pro-col { color: var(--pro); }

.yes, .no {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.yes { background: var(--accent); -webkit-mask-image: url(/images/check.svg); mask-image: url(/images/check.svg); }

.no { background: var(--muted); opacity: 0.6; -webkit-mask-image: url(/images/dash.svg); mask-image: url(/images/dash.svg); }

/* Galleries */

.gallery-group + .gallery-group { margin-top: 36px; }

.gallery-group > h3 { color: var(--muted); font-weight: 600; margin-bottom: 16px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery figure { margin: 0; text-align: center; }

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #4568dc, #b06ab3);
  border-radius: 18px;
  padding: 10px;
}

.gallery figcaption { margin-top: 8px; font-size: 0.975rem; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--pro);
  background: color-mix(in srgb, var(--pro-fill) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--pro-fill) 55%, transparent);
  border-radius: 999px;
  padding: 0 8px;
  margin-left: 6px;
  vertical-align: 0.15em;
}

.tag.free {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.tag.free { color: var(--accent); }

/* FAQ */

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
}

.faq details + details { margin-top: 10px; }

.faq summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 56px;
  display: flex;
  align-items: center;
}

.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Prose pages: privacy, support */

.prose { max-width: 46em; }

.prose h2 { font-size: 1.4rem; margin-top: 36px; }

.prose p, .prose li { color: var(--muted); }

.prose strong { color: var(--text); }

.prose .updated { font-size: 0.95rem; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 24px 0;
}

.contact-card p { margin: 0; }

.contact-card a { font-size: 1.2rem; font-weight: 700; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav { display: flex; gap: 20px; }

.site-footer a { color: var(--muted); }

/* Phones and small tablets */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  section { padding: 48px 0; }
  .site-nav { gap: 14px; }
  .site-nav .optional { display: none; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .screens { grid-template-columns: 1fr 1fr; gap: 14px; }
  .compare th, .compare td { padding: 12px 10px; font-size: 0.95rem; }
  .compare td { width: 24%; }
  .button { width: 100%; }
}
