/*
 * Dan public site.
 *
 * Served under a strict Content-Security-Policy
 *   default-src 'none'; style-src 'self'; img-src 'self'; font-src 'self'
 * so this is the only stylesheet, there is no JavaScript, and fonts and images
 * are same-origin. Font URLs below are filled in with content-hashed paths by
 * scripts/build-site.mjs (the __FONT_*__ tokens).
 */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/manrope-latin-ext.c184517a0e8a.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/manrope-latin.14be4114dcfd.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;

  --bg: #f6f7f4;
  --bg-sunken: #eef0ea;
  --surface: #ffffff;
  --surface-2: #f4f5f1;
  --ink: #16181d;
  --ink-soft: #40454d;
  --ink-muted: #62686f;
  --accent: #0a63e0;
  --accent-ink: #0a4aa8;
  --on-accent: #ffffff;
  --accent-wash: #e7effc;
  --mint: #e7f2ea;
  --mint-ink: #16794353;
  --mint-text: #115c34;
  --line: #e5e7e0;
  --line-strong: #d3d6cd;
  --frame: #14161b;
  --shadow-sm: 0 1px 2px rgb(20 22 27 / 5%), 0 8px 20px -12px rgb(20 22 27 / 18%);
  --shadow-md: 0 2px 6px rgb(20 22 27 / 6%), 0 24px 48px -22px rgb(20 22 27 / 26%);
  --shadow-lg: 0 2px 8px rgb(20 22 27 / 8%), 0 40px 80px -28px rgb(20 22 27 / 34%);

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --wrap: 71rem;
  --measure: 44rem;
  --radius: 1.5rem;
  --radius-sm: 0.85rem;
  --radius-lg: 2rem;
  --header-h: 4.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --bg-sunken: #10131a;
    --surface: #151922;
    --surface-2: #10141c;
    --ink: #edeff3;
    --ink-soft: #c2c8d2;
    --ink-muted: #939cab;
    --accent: #64a9ff;
    --accent-ink: #9cc7ff;
    --on-accent: #06101d;
    --accent-wash: #14263f;
    --mint: #12241b;
    --mint-ink: #2f7c4f66;
    --mint-text: #7fd6a1;
    --line: #212734;
    --line-strong: #2f3746;
    --frame: #05070b;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%), 0 10px 24px -14px rgb(0 0 0 / 60%);
    --shadow-md: 0 2px 6px rgb(0 0 0 / 45%), 0 28px 56px -24px rgb(0 0 0 / 72%);
    --shadow-lg: 0 2px 10px rgb(0 0 0 / 50%), 0 44px 90px -30px rgb(0 0 0 / 82%);
  }
}

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

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

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

a {
  color: var(--accent-ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.06em;
}

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

:focus-visible {
  border-radius: 0.4rem;
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- skip / a11y */

.skip-link {
  position: fixed;
  z-index: 30;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.7rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-220%);
}

.skip-link:focus {
  color: var(--bg);
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
}

.site-header.is-solid,
.site-header {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  min-height: var(--header-h);
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.wordmark {
  display: block;
  width: 5.6rem;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

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

.lang {
  display: flex;
  flex-wrap: wrap;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  gap: 0.1rem;
}

.lang a {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.lang a:hover {
  color: var(--ink);
}

.lang a[aria-current="page"] {
  background: var(--accent-wash);
  color: var(--accent-ink);
}

.lang-full {
  display: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(1.75rem, 3.5vw, 2.75rem);
}

.hero::before {
  position: absolute;
  z-index: 0;
  content: "";
  background:
    radial-gradient(46rem 26rem at 78% -8%, var(--accent-wash), transparent 68%),
    radial-gradient(40rem 24rem at 4% 8%, color-mix(in srgb, var(--mint) 70%, transparent), transparent 70%);
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}

.hero-copy {
  max-width: 34rem;
}

.hero h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  letter-spacing: -0.035em;
}

.hero h1 span {
  display: block;
}

.hero h1 span + span {
  color: var(--ink-soft);
}

.hero .lede {
  max-width: 30rem;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.55;
}

/* Apple's badge artwork, shown unmodified. Apple asks for clear space of at
   least a quarter of the badge's height (0.75rem here) and a height of at least
   40px; nothing sits closer than the 1.75rem margins around it. */
.app-store-badge {
  display: inline-block;
  margin-top: 1.75rem;
  border-radius: 0.6rem;
  line-height: 0;
}

.app-store-badge img {
  width: auto;
  height: 3rem;
}

.hero-media {
  position: relative;
  justify-self: center;
}

/* device frame */

.phone {
  position: relative;
  width: min(15rem, 62vw);
  padding: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 2.4rem;
  background: var(--frame);
  box-shadow: var(--shadow-lg);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 2rem;
}

/* --------------------------------------------------------------------- marks */

.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.3rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.marks li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.marks li::before {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--accent);
  content: "";
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}

:root {
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 4.5 6.5 12 2.5 8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

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

.section {
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* feature rows */

.features {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.feature {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.feature-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.5rem, 4vw, 2.25rem) 0;
  background: var(--accent-wash);
}

.feature:nth-child(4n + 2) .feature-media,
.feature:nth-child(4n + 3) .feature-media {
  background: var(--mint);
}

.shot {
  width: min(17rem, 80%);
  height: 13rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 1rem 1rem 0 0;
  background: #000;
  box-shadow: 0 -1px 2px rgb(20 22 27 / 5%), 0 20px 40px -20px rgb(20 22 27 / 30%);
}

.shot img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: top center;
}

.feature-copy {
  padding: clamp(1.35rem, 3vw, 1.9rem);
}

.feature-copy h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -0.025em;
}

.feature-copy p {
  margin-top: 0.6rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

/* checks grid */

.checks {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

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

.check {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.check-icon {
  display: flex;
  width: 2.9rem;
  height: 2.9rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  margin-bottom: 1rem;
  background: var(--accent);
  color: var(--on-accent);
}

.check-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.check h3 {
  font-size: 1.1rem;
  font-weight: 720;
  letter-spacing: -0.015em;
}

.check p {
  margin-top: 0.4rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* privacy band */

.privacy-band {
  background: var(--bg-sunken);
}

.privacy-card {
  display: grid;
  align-items: center;
  gap: 1.25rem 3rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--mint-ink);
  border-radius: var(--radius-lg);
  background: var(--mint);
  grid-template-columns: 1fr;
}

.privacy-card .eyebrow {
  color: var(--mint-text);
}

.privacy-card h2 {
  max-width: 22ch;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  letter-spacing: -0.03em;
}

.privacy-card p {
  max-width: 46ch;
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.privacy-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  color: var(--mint-text);
  font-weight: 700;
  text-decoration: none;
}

.privacy-card a:hover {
  text-decoration: underline;
}

.arrow::after {
  content: "→";
}

/* closing */

.closing {
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.closing h2 {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(2rem, 4.6vw, 3rem);
  letter-spacing: -0.035em;
}

.closing p {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.closing-contact {
  margin-top: 1.5rem;
  font-size: 0.98rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.footer-inner {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}

.footer-brand .wordmark {
  width: 5rem;
  color: var(--ink);
}

.footer-brand p {
  max-width: 24rem;
  margin-top: 0.9rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.footer-cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-col h2 {
  margin-bottom: 0.7rem;
  color: var(--ink-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 0.4rem;
}

.footer-col a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem 1.75rem;
  border-top: 1px solid var(--line);
  gap: 1rem;
}

.footer-bottom .lang {
  background: var(--bg);
}

.footer-copyright {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.footer-trademarks {
  flex-basis: 100%;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

/* ------------------------------------------------------------- legal pages */

.doc {
  width: min(100% - 2.5rem, var(--measure));
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 8vw, 5rem);
}

.doc-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.doc-header .back-link:hover {
  text-decoration: underline;
}

.doc-header .back-link::before {
  content: "←";
}

.doc-header h1 {
  margin-top: 1rem;
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  letter-spacing: -0.03em;
}

.doc-meta {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.toc {
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 2rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.toc-title {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  gap: 0.15rem 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  list-style: none;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  padding: 0.3rem 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  gap: 0.55rem;
  text-decoration: none;
}

.toc a::before {
  flex: none;
  width: 1.3rem;
  color: var(--ink-muted);
  content: counter(toc) ".";
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.toc a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}

.doc-body {
  margin-top: 2.5rem;
  font-size: 1.03rem;
  line-height: 1.68;
}

.doc-body h2 {
  padding-top: 1.85rem;
  border-top: 1px solid var(--line);
  margin: 2.25rem 0 1rem;
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.doc-body > h2:first-child {
  padding-top: 0;
  border-top: 0;
  margin-top: 0;
}

.doc-body p {
  margin: 0 0 1.05rem;
}

.doc-body ul {
  margin: 0 0 1.05rem;
  padding-left: 1.3rem;
}

.doc-body li {
  margin-bottom: 0.5rem;
  padding-left: 0.2rem;
}

.doc-body li::marker {
  color: var(--accent);
}

.doc-body strong {
  font-weight: 700;
}

/* ---------------------------------------------------------------- 404 page */

.notfound {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  padding-block: clamp(4rem, 14vw, 9rem);
  text-align: center;
}

.notfound .wrap {
  max-width: 34rem;
}

.notfound h1 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.notfound p {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.notfound a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  text-decoration: none;
}

.notfound a:hover {
  background: var(--accent-ink);
  color: var(--on-accent);
}

/* --------------------------------------------------------------- responsive */

@media (min-width: 52rem) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }

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

  .privacy-card {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }

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

@media (min-width: 30rem) {
  .lang-full {
    display: inline;
  }

  .lang-short {
    display: none;
  }
}

@media (max-width: 30rem) {
  .nav {
    order: 3;
    width: 100%;
  }

  .nav a:first-child {
    padding-left: 0;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    backdrop-filter: none;
    background: var(--bg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: var(--line-strong);
    --ink-muted: var(--ink-soft);
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .skip-link,
  .doc-header .back-link {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .doc {
    width: auto;
    padding-top: 0;
  }

  .doc-body h2 {
    break-after: avoid;
  }

  .doc-body a {
    color: #000;
  }
}
