:root {
  color-scheme: light dark;
  --ink: #12151d;
  --muted: #5e6674;
  --subtle: #8b93a1;
  --line: #e4e8ef;
  --paper: #ffffff;
  --wash: #f4f6fa;
  --chip: #edf3ff;
  --blue: #3b66e4;
  --green: #2f9f69;
  --amber: #d98527;
  --link: #3b66e4;
  --shadow: 0 28px 90px rgba(27, 36, 56, 0.18);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f0f3f8;
    --muted: #a2abb8;
    --subtle: #77808e;
    --line: #262d38;
    --paper: #101319;
    --wash: #171c24;
    --chip: #1d2634;
    --blue: #6f92f2;
    --green: #46b57f;
    --amber: #e39a45;
    --link: #8caaf5;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* The family ring: MacSweep's tri-color disk ring (Safe / Review / Don't delete)
   carried up to the parent brand. Blue = scan, green = safe, amber = review. */
.ring {
  --ring-w: 26%;
  display: inline-block;
  border-radius: 50%;
  background: conic-gradient(
    from -84deg,
    var(--blue) 0deg 118deg,
    transparent 118deg 134deg,
    var(--green) 134deg 226deg,
    transparent 226deg 242deg,
    var(--amber) 242deg 344deg,
    transparent 344deg 360deg
  );
  -webkit-mask: radial-gradient(closest-side, transparent calc(99% - var(--ring-w)), #000 calc(100% - var(--ring-w)));
  mask: radial-gradient(closest-side, transparent calc(99% - var(--ring-w)), #000 calc(100% - var(--ring-w)));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px 64px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #151922;
}

.brand-mark .ring {
  width: 20px;
  height: 20px;
}

.nav-links,
.hero-actions,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-links a,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr);
  align-items: center;
  gap: 48px;
  padding: 108px 64px 96px;
  background:
    radial-gradient(1100px 520px at 82% 8%, var(--chip), transparent 70%),
    var(--wash);
}

.hero-content {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: 62px;
  line-height: 1.02;
}

h2 {
  font-size: 40px;
  line-height: 1.1;
}

h3 {
  font-size: 24px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
}

.proof-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: #ffffff;
  background: var(--green);
  border-radius: 50%;
  font-size: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

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

.button-secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: color-mix(in srgb, var(--ink) 30%, transparent);
}

/* Hero signature: the family ring at display size, with both app icons docked on it. */
.hero-figure {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 400px;
}

.hero-figure .ring {
  --ring-w: 17%;
  width: min(340px, 78%);
  aspect-ratio: 1;
}

.hero-app {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.hero-app img {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-app span {
  padding: 4px 11px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-app-macsweep {
  top: 9%;
  right: 8%;
}

.hero-app-flutely {
  bottom: 7%;
  left: 10%;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.intro-band div {
  min-height: 128px;
  padding: 28px 34px;
  border-right: 1px solid var(--line);
}

.intro-band div:last-child {
  border-right: 0;
}

.intro-band strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.intro-band span,
.section-heading p,
.product-card p,
.trust-grid p,
.maker-note p,
.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.62;
}

.section {
  padding: 96px 64px;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 44px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.product-media {
  height: 290px;
  overflow: hidden;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.product-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.product-body {
  padding: 30px;
}

.product-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(23, 30, 45, 0.18);
}

.product-kicker {
  margin: 0 0 8px;
  color: var(--blue) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
}

.product-points li {
  padding: 7px 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.trust-section {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-grid article {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.trust-grid h3 {
  font-size: 19px;
}

.trust-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--blue);
  background: var(--chip);
  border-radius: 10px;
}

.trust-symbol svg {
  width: 20px;
  height: 20px;
}

.faq-section {
  padding-top: 0;
}

.faq-list {
  max-width: 840px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 20px 4px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.faq-list summary:hover {
  color: var(--link);
}

.faq-list p {
  margin: 0;
  padding: 0 4px 22px;
  color: var(--muted);
  line-height: 1.62;
  max-width: 720px;
}

.faq-list code {
  padding: 2px 5px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.92em;
}

.maker-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 620px);
  gap: 42px;
  align-items: start;
}

.maker-note p {
  font-size: 17px;
}

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

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 42px 64px 20px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer-legal {
  padding: 0 64px 34px;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.6;
}

.text-page {
  background: var(--wash);
}

.legal-page {
  max-width: 860px;
  margin: 64px auto 100px;
  padding: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.legal-page h1 {
  font-size: 48px;
  line-height: 1.04;
}

.legal-page h2 {
  margin-top: 34px;
  font-size: 26px;
}

.legal-page code,
.legal-page pre {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.92em;
}

.legal-page code {
  padding: 2px 5px;
}

.legal-page pre {
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 8px;
}

.legal-page pre code {
  padding: 0;
  border: 0;
  background: none;
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 96px 28px;
}

.error-page .ring {
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
}

@media (max-width: 1180px) {
  .intro-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-band div {
    border-bottom: 1px solid var(--line);
  }

  .intro-band div:nth-child(2n) {
    border-right: 0;
  }

  .intro-band div:nth-child(n + 3) {
    border-bottom: 0;
  }

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

@media (max-width: 980px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .footer-legal {
    padding-left: 28px;
    padding-right: 28px;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 76px;
    padding-bottom: 64px;
    gap: 24px;
  }

  .hero-figure {
    min-height: 340px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 19px;
  }

  .product-grid,
  .maker-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .nav-links {
    width: 100%;
    gap: 12px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-figure {
    min-height: 300px;
  }

  .hero-app img {
    width: 64px;
    height: 64px;
    border-radius: 15px;
  }

  .intro-band {
    grid-template-columns: 1fr;
  }

  .intro-band div {
    padding: 24px 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-band div:nth-child(n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .intro-band div:last-child {
    border-bottom: 0;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    height: 220px;
  }

  .product-body,
  .trust-grid article,
  .legal-page {
    padding: 24px;
  }

  .legal-page {
    margin: 28px;
  }

  .legal-page h1 {
    font-size: 34px;
  }
}
