/*
 * Significance Balance landing page (#179).
 *
 * Mobile-first, deliberately: every breakpoint below widens with `min-width`, so
 * the narrow layout is the base case rather than a correction applied to a
 * desktop one. A `max-width` query would invert that, and the phone is where the
 * audience arrives from.
 *
 * No hard pixel width sits on a layout container either — containers cap with
 * `max-width` so they can always shrink. Those two rules together are what keeps
 * the page from scrolling sideways on a 320px phone. #328 removed the Dart suite
 * that pinned both, so check it in a browser at 320px instead.
 *
 * No web font and no external asset: the page must render from `file://`.
 */

:root {
  --ink: #16181d;
  --ink-soft: #4a5060;
  --paper: #fdfcfa;
  --paper-raised: #ffffff;
  --line: #e4e2dd;
  --accent: #3f6f5b;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0eb;
  --radius: 14px;
  --gutter: 20px;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f1ee;
    --ink-soft: #a8adb8;
    --paper: #14161a;
    --paper-raised: #1c1f25;
    --line: #2c3039;
    --accent: #7fbfa3;
    --accent-ink: #10231b;
    --accent-soft: #1e2b25;
  }
}

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu,
    "Helvetica Neue", Arial, sans-serif;
  /* rem, not px: a reader who set a 20px browser default keeps it. The same
     rendered size at the 16px default, without overriding the preference. */
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.0625rem;
}

p {
  margin: 0 0 1em;
}

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

.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
  z-index: 2;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px var(--gutter);
  align-items: baseline;
  justify-content: space-between;
  max-width: 60rem;
  margin: 0 auto;
  padding: var(--gutter);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* Three plain links, so switching language needs no script and each locale keeps
   its own URL. The active one is marked with aria-current, which is also what
   styles it — no second source of truth for "which language is this". */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.lang-switch a {
  color: var(--ink-soft);
  text-decoration: none;
}

.lang-switch a:hover,
.lang-switch a:focus {
  color: var(--accent);
  text-decoration: underline;
}

.lang-switch a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9375rem;
}

.site-header nav a,
.site-footer nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus,
.site-footer nav a:hover,
.site-footer nav a:focus {
  color: var(--accent);
  text-decoration: underline;
}

main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero {
  padding: 2.5rem 0 1rem;
}

/* The app icon, at the size the store shows it. 22% is iOS's own corner radius as
   a share of the side, so the square asset reads as an app icon rather than as a
   photo. It grows at the first breakpoint, not here. */
.app-icon {
  display: block;
  width: 88px;
  height: auto;
  margin: 0 0 1.25rem;
  border-radius: 22%;
}

.tagline {
  max-width: var(--measure);
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.lede {
  max-width: var(--measure);
}

.section {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.section > p {
  max-width: var(--measure);
}

.section-note {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  /* 44px is Apple's minimum touch target, and the gutter keeps two buttons from
     sharing a thumb's worth of screen. */
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-quiet {
  background: transparent;
  color: var(--accent);
}

.button:hover,
.button:focus {
  filter: brightness(1.08);
}

.feature-grid,
.shot-grid {
  display: grid;
  gap: var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-grid > li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.feature-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.shot-grid > li {
  text-align: center;
}

.shot-grid p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* The frame scales with its column, so a phone shows one full-width mock rather
   than three cropped ones. */
.shot {
  width: 100%;
  max-width: 15rem;
  height: auto;
}

.shot-frame {
  fill: var(--paper-raised);
  stroke: var(--line);
  stroke-width: 2px;
}

.shot-block,
.shot-chip {
  fill: var(--line);
}

.shot-accent {
  fill: var(--accent-soft);
}

.shot-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

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

.policy {
  max-width: var(--measure);
  padding: 2rem 0 3rem;
}

.policy h2 {
  margin-top: 2rem;
  font-size: 1.1875rem;
}

.policy ul {
  padding-left: 1.25rem;
}

.policy li {
  margin-bottom: 0.5em;
}

.policy-meta {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

@media (min-width: 40rem) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 4rem 0 2rem;
  }

  .app-icon {
    width: 128px;
  }

  .section {
    padding: 3rem 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* No `@media (prefers-reduced-motion: reduce)` block: the stylesheet declares no
   transition, animation or scroll-behaviour, so there is nothing for one to turn
   off. Add it alongside the first motion this page acquires, not before. */
