:root {
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #5f5f66;
  --accent: #C4540F;
  --rule: #e3e3e8;
  --draft-bg: #fff4d6;
  --draft-fg: #5c4400;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px rgba(20, 20, 60, 0.08);
  --ambient-1: rgba(196, 84, 15, 0.24);
  --ambient-2: rgba(0, 170, 200, 0.20);
  --ambient-3: rgba(255, 110, 160, 0.16);
  --radius-lg: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --fg: #f2f2f5;
    --muted: #a3a3ad;
    --accent: #FFA552;
    --rule: #2c2c33;
    --draft-bg: #3a2f10;
    --draft-fg: #ffe6a3;
    --glass-bg: rgba(30, 30, 36, 0.55);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.10);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.40);
    --ambient-1: rgba(255, 165, 82, 0.22);
    --ambient-2: rgba(0, 170, 200, 0.18);
    --ambient-3: rgba(255, 110, 160, 0.14);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 4.5rem;
}

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

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

/* Glass */
.glass,
.guide-body ol > li {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  border-radius: var(--radius-lg);
}

/* Shown only because html has no background, so body's background paints
   the canvas beneath it; never give html a background or this disappears. */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, var(--ambient-1), transparent 45%),
    radial-gradient(circle at 85% 30%, var(--ambient-2), transparent 45%),
    radial-gradient(circle at 50% 90%, var(--ambient-3), transparent 45%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass,
  .guide-body ol > li,
  .site-header {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: var(--rule);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass,
  .guide-body ol > li,
  .site-header {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: var(--rule);
  }
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.wrap-wide {
  max-width: 68rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
}

.brand {
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a {
  display: inline-block;
  margin-left: 1rem;
  padding: 0.5rem 0;
  color: var(--muted);
  text-decoration: none;
}

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

main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.eyebrow {
  font-size: 0.9375rem;
  color: var(--muted);
  font-weight: 600;
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
}

.hero-shot { margin: 0; justify-self: center; }

.hero-shot img {
  display: block;
  width: min(100%, 20rem);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.18));
}

.promises {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 3rem 0;
}

.promises li {
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

@media (min-width: 52rem) {
  .hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0 2rem;
  }
}

.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.draft {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--draft-bg);
  color: var(--draft-fg);
  font-size: 0.9375rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

/* Call to action */
.cta {
  margin: 1.5rem 0;
}

.cta-note {
  color: var(--muted);
}

/* Home */
.wrap-wide section h2 {
  margin: 3rem 0 1.25rem;
}

.glass > h2:first-child {
  margin-top: 0;
}

.step-cards,
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 36rem) {
  .step-cards,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 52rem) {
  .step-cards,
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card,
.feature-card {
  padding: 1.25rem 1.5rem;
}

.step-card h3,
.feature-card h3 {
  margin: 0 0 0.375rem;
  font-size: 1.125rem;
}

.step-cards {
  counter-reset: step;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.privacy {
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

/* A sideways swipe strip (ADR 0006): screens large enough to read, no script. */
.screenshot-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1rem;
}

.screenshot-row > figure,
.screenshot-row > a {
  flex: 0 0 clamp(15rem, 72vw, 19rem);
  margin: 0;
  scroll-snap-align: center;
}

.screenshot-row img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
}

.screenshot-row figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.standouts { display: grid; gap: 1.5rem; }

.standout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; align-items: center; padding: 1.5rem; }

.standout:nth-of-type(even) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }

.standout:nth-of-type(even) picture { order: 2; }

.standout img { width: 100%; height: auto; display: block; }

@media (max-width: 40rem) {
  .standout,
  .standout:nth-of-type(even) { grid-template-columns: 1fr; }
}

.pricing {
  max-width: 36rem;
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
}

.faq details {
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  content: "+" / "";
  float: right;
}

.faq details[open] summary::after {
  content: "\2212";
  content: "\2212" / "";
}

.faq details p {
  margin: 0.75rem 0 0;
}

.closing {
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  text-align: center;
  background: linear-gradient(var(--glass-bg), var(--glass-bg)), url("/assets/img/closing-light.webp") center / cover;
}

@media (prefers-color-scheme: dark) {
  .closing {
    background: linear-gradient(var(--glass-bg), var(--glass-bg)), url("/assets/img/closing-dark.webp") center / cover;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .closing {
    background: var(--bg);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .closing {
    background: var(--bg);
  }
}

/* Guides */
.guides-head,
.guide-head {
  max-width: 44rem;
  padding: 2rem 0 0.5rem;
}

.guides-head h1,
.guide-head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.guide {
  display: grid;
  gap: 0 3rem;
}

.guide-body {
  max-width: 42rem;
}

.guide-body h2 {
  font-size: 1.375rem;
  margin: 2.5rem 0 0.75rem;
}

.guide-body ol {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.75rem;
  counter-reset: step;
}

/* Block, not grid or flex: those would split the text and its bold words into items. */
.guide-body ol > li {
  position: relative;
  padding: 1rem 1.25rem 1rem 4.25rem;
}

.guide-body ol > li > p {
  margin: 0;
}

.guide-body ol > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.ways {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.ways > li {
  padding: 1.25rem;
}

.ways strong {
  display: block;
  margin-bottom: 0.375rem;
}

.note {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
}

.note > :first-child {
  margin-top: 0;
}

.note > :last-child {
  margin-bottom: 0;
}

.guide-shot {
  margin: 2.5rem 0 0;
}

.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-shot-screens img {
  width: min(100%, 18rem);
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.18));
}

.guide-shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 52rem) {
  .guide {
    grid-template-columns: minmax(0, 1fr) 18rem;
    grid-template-areas: "head shot" "body shot";
    align-items: start;
  }

  .guide-head { grid-area: head; }
  .guide-body { grid-area: body; }

  .guide-shot {
    grid-area: shot;
    margin-top: 2rem;
  }
}

/* A wide detail crop needs the body's full width to stay readable (ADR 0006), so it
   sits under the headline, above the steps, on every screen size. */
.guide-highlights {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "shot" "body";
}

.guide-highlights .guide-shot {
  max-width: 42rem;
  margin: 1.5rem 0 0.5rem;
}

.guide-cards {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .guide-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 52rem) {
  .guide-cards-small {
    grid-template-columns: repeat(3, 1fr);
  }
}

.guide-cards-small {
  margin: 0;
}

/* The heading's link covers the whole card, so the card is one target. */
.guide-card {
  position: relative;
  padding: 1.5rem;
}

.guide-card:hover,
.guide-card:focus-within {
  border-color: var(--accent);
}

.guide-card h2,
.guide-card h3 {
  margin: 0 0 0.375rem;
  font-size: 1.1875rem;
  line-height: 1.3;
}

.guide-card h3 {
  font-size: 1.0625rem;
}

.guide-card a {
  color: var(--fg);
  text-decoration: none;
}

.guide-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.guide-card a:focus-visible {
  outline: none;
}

.guide-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.guide-card-shot {
  height: 13rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.guide-card-shot picture {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.guide-card-shot img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* A tall phone shows its top half and fades out, rather than shrinking to a sliver. */
.guide-card-shot-screens picture {
  align-items: flex-start;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
}

.guide-card-shot-screens img {
  width: 10rem;
  max-height: none;
}

/* Support */
.support-lead {
  color: var(--muted);
  margin-bottom: 2rem;
}

.support-contact {
  padding: 1.5rem 1.25rem;
  margin: 2.5rem 0 3rem;
}

.support-contact p {
  margin: 0.5rem 0 0;
}

.support-email {
  font-size: 1.25rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.support-company {
  color: var(--muted);
}

/* Privacy policy. Not .privacy: that is the home page's privacy card. */
.policy-meta {
  color: var(--muted);
  margin-bottom: 2rem;
}

.policy {
  margin-bottom: 3rem;
}

.policy h2 {
  margin: 2.5rem 0 0.75rem;
}

.policy-summary {
  padding: 1.5rem 1.25rem;
}

.policy-summary h2 {
  margin-top: 0;
}

.policy-summary p {
  margin-bottom: 0;
}

/* Press */
.press-facts dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.press-facts dt {
  color: var(--muted);
}

.press-facts dd {
  margin: 0;
}

.press-icon img {
  height: 6rem;
  border-radius: 1.25rem;
  border: 1px solid var(--rule);
}

.site-footer nav {
  margin-bottom: 0.5rem;
}

.site-footer nav a {
  margin-right: 1rem;
  color: var(--muted);
}

/* Arrival animation */
.arrival {
  margin: 2.5rem 0 0;
}

.arrival-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 24rem) 4rem 13rem;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem 0;
}

.finder {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.finder-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.finder-bar .dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }

.finder-title {
  margin-left: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.finder-body {
  display: flex;
  min-height: 9rem;
  font-size: 0.85rem;
}

.finder-sidebar {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  width: 7rem;
  border-right: 1px solid var(--rule);
}

.finder-sidebar .selected {
  padding: 0.2rem 0.4rem;
  border-radius: 0.35rem;
  background: var(--accent);
  color: var(--bg);
}

.finder-main {
  position: relative;
  flex: 1;
  padding: 0.5rem 0.75rem;
  color: var(--muted);
}

.arrival-file {
  position: absolute;
  left: 50%;
  top: 2.5rem;
  margin-left: -1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  animation: arrival-file 6s infinite;
  animation-delay: 0s;
}

.file-icon {
  position: relative;
  width: 2.25rem;
  height: 2.75rem;
  border-radius: 0.2rem;
  background: var(--bg, #fff);
  border: 2px solid var(--muted);
}

.file-icon::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--muted);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.arrival-cloud {
  justify-self: center;
  color: var(--muted);
  animation: arrival-cloud 6s infinite;
  animation-delay: 0s;
}

.arrival-phone {
  position: relative;
  aspect-ratio: 800 / 1685;
}

.arrival-phone picture,
.arrival-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.arrival-phone .after {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: arrival-after 6s infinite;
  animation-delay: 0s;
}

.arrival figcaption {
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
}

@keyframes arrival-file {
  0% { transform: translateX(-6rem); opacity: 0; }
  5% { opacity: 1; }
  30% { transform: translateX(0); opacity: 1; }
  90% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(0); opacity: 0; }
}

@keyframes arrival-cloud {
  0%, 30% { transform: scale(1); color: var(--muted); }
  42% { transform: scale(1.15); color: var(--accent); }
  55%, 100% { transform: scale(1); color: var(--muted); }
}

@keyframes arrival-after {
  0%, 55% { opacity: 0; }
  65%, 95% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 46rem) {
  .arrival-stage {
    grid-template-columns: minmax(0, 24rem);
  }
  .arrival-cloud {
    display: none;
  }
  .arrival-phone {
    width: 13rem;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arrival-file, .arrival-cloud, .arrival-phone .after { animation: none; }
  .arrival-file { opacity: 1; transform: none; }
  .arrival-stage { grid-template-columns: minmax(0, 24rem) 4rem 20rem; }
  .arrival-phone {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    aspect-ratio: auto;
  }
  .arrival-phone .after { position: static; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 46rem) {
  .arrival-stage { grid-template-columns: minmax(0, 24rem); }
  .arrival-phone { width: 20rem; }
}
