/* catalogsweep.com. The developer's own photo up top, the real app front and centre, little text.
   Newsreader for headings (self-hosted, OFL), the Mac's own system font for reading; the app's green for actions. */

@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #EEF0EE;
  --sheet: #F8F9F7;
  --ink: #1A1E1D;
  --ink-2: #4C5551;
  --ink-3: #6E7773;
  --rule: #CFD5D1;
  --film: #232725;
  --edge: #D7A84B;
  --green: #2F6B57;
  --on-green: #FFFFFF;
  --grease: #C2362B;
  --shadow: 0 1px 2px rgba(26, 30, 29, .10), 0 18px 40px -18px rgba(26, 30, 29, .45);
  --serif: "Newsreader", "New York", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page: min(1120px, 100% - 32px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151918;
    --sheet: #1C211F;
    --ink: #ECEFED;
    --ink-2: #AAB3AE;
    --ink-3: #8A938E;
    --rule: #323936;
    --film: #0D100F;
    --green: #8DBBA5;
    --on-green: #10201A;
    --grease: #E4594C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--green); color: var(--on-green); padding: 10px 14px;
  border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; max-width: 14ch; }
h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; max-width: 18ch; }
h3 { font-size: 17px; line-height: 1.35; margin: 0 0 6px; font-weight: 600; }
p { margin: 0 0 14px; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.meta { font-size: 14px; color: var(--ink-3); margin-top: 14px; }
.fine { font-size: 14px; color: var(--ink-3); max-width: 60em; }

/* Header and footer */
.top { width: var(--page); margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--ink);
  text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
.bottom { width: var(--page); margin: 96px auto 0; padding: 28px 0 48px; border-top: 1px solid var(--rule);
  font-size: 15px; color: var(--ink-2); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row p a { margin-right: 20px; color: var(--ink-2); }
.footer-row p a:hover { color: var(--ink); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.store, .button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--green); color: var(--on-green); font-weight: 600; font-size: 16px; text-decoration: none; }
.store.soon { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); cursor: default; }
.text-link { font-weight: 600; }

main > section { width: var(--page); margin: 0 auto; padding-top: 112px; }
@media (max-width: 720px) { main > section { padding-top: 80px; } }

/* Hero: full-bleed photo, header and text on it, always light-on-dark */
.home > .hero { width: 100%; max-width: none; padding: 0 !important; position: relative; min-height: min(86vh, 780px);
  display: flex; align-items: flex-end; color: #fff; isolation: isolate; padding-top: 140px !important; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 50% 30%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,10,9,.45) 0%, rgba(6,10,9,0) 22%, rgba(6,10,9,.18) 50%, rgba(6,10,9,.80) 100%),
    linear-gradient(90deg, rgba(6,10,9,.35) 0%, rgba(6,10,9,0) 55%); }
.hero-text { width: var(--page); margin: 0 auto; padding: 0 0 200px; }
.hero h1 { color: #fff; font-size: clamp(42px, 6.2vw, 80px); max-width: 17ch; margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero .lead { color: rgba(255,255,255,.88); font-size: clamp(18px, 1.6vw, 21px); max-width: 33em; }
.hero .meta { color: rgba(255,255,255,.75); }
.credit { position: absolute; right: 16px; bottom: 142px; margin: 0; font-size: 12px; color: rgba(255,255,255,.6); }
@media (max-width: 720px) { .credit { display: none; } .hero-text { padding-bottom: 120px; } }

.top.on-photo { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
@media (max-width: 560px) { .top nav { gap: 16px; } .top nav a { font-size: 14px; } }
.top.on-photo .brand, .top.on-photo nav a { color: #fff; }
.top.on-photo nav a { color: rgba(255,255,255,.85); }
.top.on-photo nav a:hover { color: #fff; }

/* The app, overlapping the bottom of the photo */
.showcase { padding-top: 0 !important; margin-top: -130px !important; position: relative; z-index: 1; }
.showcase .window { width: min(1040px, 100%); margin: 0 auto; box-shadow: 0 30px 80px -20px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.2); }
@media (max-width: 720px) { .showcase { margin-top: -70px !important; } }

/* Three reasons to trust it */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; gap: 28px; } }
.trust div { border-top: 2px solid var(--green); padding-top: 18px; }
.trust h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 10px; }
.trust p { color: var(--ink-2); margin: 0; }

/* Never offered */
.never h2 { margin-bottom: 24px; }
.chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--rule);
  font-size: 15px; color: var(--ink); }
.chips li::before { content: "\2713"; color: var(--green); font-weight: 700; margin-right: 8px; }

/* Text and screenshot side by side */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.split.reverse .copy { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse .copy { order: 0; } }
.copy h2 { margin-bottom: 18px; }
.copy p { color: var(--ink-2); max-width: 34em; font-size: 18px; }
.window { border-radius: 1.96% / 2.63%; box-shadow: var(--shadow); outline: 1px solid rgba(0,0,0,.55); outline-offset: -1px; }  /* matches the 25 px corners cut in the image */
dl { margin: 24px 0 0; }
dt { font-weight: 600; margin-top: 16px; }
dt::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); margin-right: 10px; vertical-align: 1px; }
dt:nth-of-type(2)::before { background: var(--edge); }
dt:nth-of-type(3)::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
dd { margin: 4px 0 0 19px; color: var(--ink-2); max-width: 32em; }

.intro { color: var(--ink-2); max-width: 40em; margin-top: 18px; }

/* Backup and price */
.backup h2 { margin-bottom: 18px; }
.backup .lead { font-size: 19px; }
.price { text-align: center; }
.price h2 { margin: 0 auto 14px; max-width: none; }
.price .lead { margin: 0 auto; }
.price .actions { justify-content: center; }
.amount { font-family: var(--serif); font-size: clamp(64px, 9vw, 104px); line-height: 1; margin: 0 0 14px; }
.amount span { display: block; font-family: var(--sans); font-size: 15px; color: var(--ink-3); margin-top: 8px; }
.store.light { background: #fff; color: #10201A; }
.store.light.soon { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Questions */
.faq h2 { margin-bottom: 20px; }
details { border-top: 1px solid var(--rule); padding: 16px 0; max-width: 46em; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 32px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: -3px; font-size: 22px; font-weight: 400;
  color: var(--ink-3); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--ink-2); margin: 10px 0 2px; }
.more { margin-top: 24px; color: var(--ink-2); }

/* Support, Privacy, Terms */
.doc { width: min(760px, 100% - 32px); margin: 0 auto; padding-top: 48px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); max-width: none; margin-bottom: 22px; }
.doc h2 { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: 0; margin: 34px 0 8px;
  max-width: none; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .lead { color: var(--ink-2); }
.doc a { overflow-wrap: anywhere; }
