/* Accordion Compressor website. Same look as the app and its App Store screenshots:
   white paper, heavy black type, iOS system orange. No web fonts and no scripts
   (the hosting CSP allows neither), so the type is Apple's system face. */

:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --mist: #f2f2f7;          /* iOS grouped background */
  --ink: #000000;
  --graphite: #6e6e73;
  --line: rgba(60, 60, 67, 0.18);
  --orange: #ff9500;        /* systemOrange, the app's accent */
  --orange-text: #b35c00;   /* the same orange, dark enough for text on white */
  --orange-fill: #e57a00;   /* button fill that keeps white text readable */
  --radius-tile: 28px;
  --shell: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000;
    --mist: #1c1c1e;
    --ink: #ffffff;
    --graphite: #98989d;
    --line: rgba(84, 84, 88, 0.6);
    --orange: #ff9f0a;
    --orange-text: #ff9f0a;
    --orange-fill: #ff9f0a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.shell {
  width: min(100% - 32px, var(--shell));
  margin: 0 auto;
}

/* Header: the real app icon, the name, three plain links. */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 22.37%;   /* the iOS icon corner */
  box-shadow: 0 0 0 0.5px var(--line);
}

.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--graphite); font-size: 15px; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* Home: hero. The headline is set like the store tiles: heavy, tight, left. */

.hero-home { padding: clamp(40px, 9vw, 112px) 0 clamp(36px, 6vw, 64px); }

.display {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 10.5vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.display .line { display: block; }

/* The one moment on the page: the last word closes like bellows, once. */
.display .squeeze {
  display: inline-block;
  transform-origin: left center;
  transform: scaleX(0.62);
  animation: bellows 1.1s cubic-bezier(0.65, 0, 0.2, 1) 0.35s both;
}

@keyframes bellows {
  from { transform: scaleX(1); }
  to { transform: scaleX(0.62); }
}

@media (prefers-reduced-motion: reduce) {
  .display .squeeze { animation: none; }
}

.hero-lede {
  max-width: 34em;
  margin: clamp(22px, 3vw, 32px) 0 0;
  color: var(--graphite);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--orange-fill);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { filter: brightness(1.06); text-decoration: none; }

@media (prefers-color-scheme: dark) {
  .button { color: #000000; }
}

.hero-note { margin: 0; color: var(--graphite); font-size: 15px; }

/* The App Store tiles, side by side, swiped like on the store page. */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(200px, 26vw, 300px);
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0;
  padding: 4px max(16px, calc((100vw - var(--shell)) / 2)) 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(16px, calc((100vw - var(--shell)) / 2));
  list-style: none;
}

.rail li { scroll-snap-align: start; }

.rail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 1390;
  border-radius: var(--radius-tile);
  background: var(--mist);
  box-shadow: 0 0 0 1px var(--line);
}

@media (prefers-color-scheme: dark) {
  .rail img { box-shadow: none; }
}

/* Sections under the rail: plain columns of text, no card kit. */

.section {
  padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}

.section-title {
  max-width: 14em;
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step);
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #000000;
  font-weight: 800;
  font-size: 17px;
}

.steps h3, .split h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.steps p, .split p { margin: 0; color: var(--graphite); }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
}

.split p + p { margin-top: 12px; }

.closing {
  padding: clamp(56px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.closing .display { font-size: clamp(40px, 7vw, 88px); }

/* Footer, shared by every page. */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--graphite);
  font-size: 14px;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--graphite); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--ink); }

/* Policy and support pages: one readable column on the grouped background. */

.page-doc { background: var(--mist); }
.page-doc .site-header, .page-doc .site-footer { border-color: var(--line); }

.doc-head { max-width: 760px; padding: clamp(28px, 6vw, 64px) 0 28px; }

.eyebrow { color: var(--orange-text); font-size: 15px; font-weight: 700; }

.doc-head h1 {
  margin: 6px 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.lede { max-width: 640px; margin: 0; color: var(--graphite); font-size: 19px; }
.updated { margin-top: 14px; color: var(--graphite); font-size: 14px; }

.document {
  max-width: 760px;
  margin-bottom: clamp(40px, 8vw, 80px);
  padding: clamp(24px, 5vw, 48px);
  border-radius: 24px;
  background: var(--paper);
}

.document section + section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.document h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.document p, .document ul { margin: 0 0 14px; }
.document p:last-child, .document ul:last-child { margin-bottom: 0; }
.document li + li { margin-top: 7px; }

.notice {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--mist);
  font-size: 15px;
}

@media (max-width: 760px) {
  .steps, .split { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { gap: 18px; }
  .brand span { font-size: 16px; }
}
