/* Crumpl — crumpl.net
   Palette lifted from the app icon:
   navy #1d2d3d · paper #f2f2f3 · steel #749dc4 · grey #bdc1c5 */

:root {
  --navy:        #1d2d3d;
  --navy-deep:   #16232f;
  --navy-raised: #24374a;
  --paper:       #f2f2f3;
  --steel:       #749dc4;
  --steel-bright:#93b5d6;
  --grey:        #bdc1c5;
  --muted:       #8e9aa6;
  --line:        rgba(242, 242, 243, 0.10);
  --line-strong: rgba(242, 242, 243, 0.18);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --measure: 40rem;
  --wide: 68rem;
}

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

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--steel-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(147, 181, 214, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover { color: var(--paper); border-bottom-color: var(--paper); }

::selection { background: var(--steel); color: var(--navy-deep); }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--measure); }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(29, 45, 61, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
  border: 0;
  font-size: 1.0625rem;
}
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.site-head nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9375rem;
}
.site-head nav a {
  color: var(--muted);
  border: 0;
}
.site-head nav a:hover { color: var(--paper); }

/* On narrow screens the header has no room for in-page anchors — drop them
   and keep only the two links Apple's reviewers (and users) actually need. */
@media (max-width: 32rem) {
  .site-head nav { gap: 1.125rem; font-size: 0.875rem; }
  .site-head nav a[href^="#"] { display: none; }
  .brand { font-size: 1rem; }
}

/* ---------- hero ---------- */

.hero {
  padding: 5.5rem 0 4rem;
  text-align: center;
  background:
    radial-gradient(80rem 34rem at 50% -14rem, rgba(116, 157, 196, 0.22), transparent 70%);
}
.hero .app-icon {
  width: 108px;
  height: 108px;
  margin: 0 auto 1.75rem;
  border-radius: 24px;
  box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.6);
}
h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.lede {
  margin: 0 auto;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--grey);
  line-height: 1.55;
}
.platforms {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cta-row {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--steel);
  color: var(--navy-deep);
  border-color: var(--steel);
}
.btn-primary:hover { background: var(--steel-bright); border-color: var(--steel-bright); color: var(--navy-deep); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.btn-disabled {
  background: rgba(242, 242, 243, 0.06);
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}
.btn-disabled:hover { transform: none; }

/* ---------- sections ---------- */

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

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
p { margin: 0 0 1.125rem; }
p:last-child { margin-bottom: 0; }

.section-intro { max-width: 42rem; color: var(--grey); }
.section-intro strong { color: var(--paper); font-weight: 600; }

.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.card {
  background: var(--navy-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
}
.card p { color: var(--grey); font-size: 0.9375rem; margin: 0; }
.card .tag {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* MEASURED: --steel on --navy-raised is 4.28:1, under the 4.5:1 floor, and
     this is the worst place to be under it — 12px, uppercase, letter-spaced.
     --steel-bright on the same ground is 5.71:1. Same family, no new token.
     Every other pair in this stylesheet passes; this was the only one. */
  color: var(--steel-bright);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* checklist */
.checks { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 42rem; }
.checks li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--grey);
  font-size: 0.9375rem;
}
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 1.2rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--steel);
}
.checks li strong { color: var(--paper); font-weight: 600; }

/* nope-list, for the "does not do" section */
.nots { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.nots li {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: rgba(242, 242, 243, 0.04);
  color: var(--grey);
  font-size: 0.9375rem;
}
.nots li::before { content: "\2715"; color: var(--steel); margin-right: 0.6rem; font-size: 0.8em; }

/* ---------- shots ---------- */

.shots {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr);
  align-items: center;
}
.shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--navy-deep);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}
.shot img { width: 100%; }
.shot--phone {
  max-width: 232px;
  margin: 0 auto;
  border-radius: 26px;
}
@media (max-width: 44rem) {
  .shots { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.site-foot nav { display: flex; gap: 1.5rem; }
.site-foot a { color: var(--muted); border: 0; }
.site-foot a:hover { color: var(--paper); }

/* ---------- document pages (privacy, support) ---------- */

.doc { padding: 3.5rem 0 4rem; }
.doc .wrap { max-width: 44rem; }
.doc h1 {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.doc .updated {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 2.5rem;
}
.doc h2 {
  font-size: 1.3125rem;
  margin: 2.75rem 0 0.875rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 2rem; }
.doc h3 { margin: 1.75rem 0 0.5rem; }
.doc p, .doc li { color: var(--grey); }
.doc strong { color: var(--paper); font-weight: 600; }
.doc ul { padding-left: 1.25rem; margin: 0 0 1.125rem; }
.doc li { margin-bottom: 0.4rem; }
.doc li::marker { color: var(--steel); }

.callout {
  background: var(--navy-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--steel);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
}
.callout p { margin: 0; color: var(--paper); }

.contact-box {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--navy-raised);
}
.contact-box p { margin: 0 0 0.5rem; }
.contact-box .addr {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--paper);
}

/* ---------- print ---------- */

@media print {
  body { background: #fff; color: #111; }
  .site-head, .site-foot nav, .callout { background: none; }
  a { color: #111; }
}
