/* The public explainer pages (features, how it works, FAQ, guides). Plain HTML, no app code: they have to read
   well to a search engine or an AI assistant that never runs JavaScript. Same paper, ink and indigo as the app. */
@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/site/fonts/fraunces.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Fraunces Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("/site/fonts/fraunces-italic.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Hanken Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/site/fonts/hanken-grotesk.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --surface: #fffdf8;
  --surface-2: #ebe6da;
  --ink: #1c1915;
  --ink-2: #5d584e;
  --ink-3: #8a8478;
  --line: rgba(28, 25, 21, 0.1);
  --line-strong: rgba(28, 25, 21, 0.2);
  --accent: #3d49c8;
  --accent-ink: #ffffff;
  --accent-soft: #e3e5f9;
  --accent-text: #303baa;
  --warn: #8a5200;
  --warn-soft: #f6e8c9;
  --good: #2d6a4c;
  --good-soft: #dcebdf;
  --shadow: 0 1px 2px rgba(28, 25, 21, 0.04), 0 8px 28px rgba(28, 25, 21, 0.07);
  --font-display: "Fraunces Variable", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Hanken Grotesk Variable", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display-settings: "SOFT" 100, "WONK" 1;
  --voice-settings: "SOFT" 60, "WONK" 0;
  --gutter: 16px;
  --measure: 680px;
  --wide: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #131110;
    --surface: #1c1a18;
    --surface-2: #272522;
    --ink: #f3eee4;
    --ink-2: #b3ada0;
    --ink-3: #807a6f;
    --line: rgba(243, 238, 228, 0.1);
    --line-strong: rgba(243, 238, 228, 0.22);
    --accent: #a3acff;
    --accent-ink: #131110;
    --accent-soft: #262a52;
    --accent-text: #bcc3ff;
    --warn: #f0c170;
    --warn-soft: #3a2d12;
    --good: #8fd0ab;
    --good-soft: #1a3226;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 32px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131110;
  --surface: #1c1a18;
  --surface-2: #272522;
  --ink: #f3eee4;
  --ink-2: #b3ada0;
  --ink-3: #807a6f;
  --line: rgba(243, 238, 228, 0.1);
  --line-strong: rgba(243, 238, 228, 0.22);
  --accent: #a3acff;
  --accent-ink: #131110;
  --accent-soft: #262a52;
  --accent-text: #bcc3ff;
  --warn: #f0c170;
  --warn-soft: #3a2d12;
  --good: #8fd0ab;
  --good-soft: #1a3226;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 32px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  /* Anything scrolled to (an anchor, a focused field) lands below the sticky header, not under it. */
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: var(--accent-text);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
img,
svg {
  max-width: 100%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 10px;
}
.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------ header */
.s-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.s-top-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 10px var(--gutter);
  padding-top: max(10px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: 16px;
}
.s-brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.s-brand:hover {
  text-decoration: none;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-variation-settings: var(--display-settings);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark-mark {
  flex: none;
  width: 1.02em;
  height: 1.02em;
  margin-right: -0.045em;
  transform: translateY(0.2em);
}
.s-brand-sub {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-top: 6px;
}
.s-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.s-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 999px;
}
.s-nav a:hover,
.s-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}
.s-nav .s-nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 9px 16px;
  margin-left: 6px;
  font-weight: 600;
}
.s-nav .s-nav-cta:hover {
  background: var(--ink);
  color: var(--bg);
  opacity: 0.88;
}
@media (max-width: 760px) {
  .s-nav .s-nav-link {
    display: none;
  }
}

/* ------------------------------------------------------------ layout */
main {
  display: block;
}
.s-wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.s-wide {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.s-crumbs {
  font-size: 14px;
  color: var(--ink-3);
  padding-top: 22px;
}
.s-crumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.s-crumbs li + li::before {
  content: "›";
  margin-right: 6px;
}
.s-crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}
.s-hero {
  padding: 36px 0 18px;
}
.s-kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 600;
  margin: 0 0 12px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-variation-settings: var(--display-settings);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: clamp(34px, 7vw, 56px);
  margin: 0 0 16px;
}
h1 em,
h2 em {
  font-style: italic;
  color: var(--accent-text);
}
h2 {
  font-size: clamp(26px, 4.6vw, 34px);
  margin: 48px 0 12px;
}
h3 {
  font-size: 21px;
  margin: 28px 0 6px;
}
.s-lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.s-body p,
.s-body li {
  text-wrap: pretty;
}
.s-body ul,
.s-body ol {
  padding-left: 1.2em;
}
.s-body li {
  margin: 6px 0;
}
.s-body li::marker {
  color: var(--ink-3);
}
.s-answer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 8px 0 26px;
  box-shadow: var(--shadow);
}
.s-answer p {
  margin: 0;
}
.s-answer .s-answer-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 6px;
}
.s-note {
  background: var(--warn-soft);
  color: var(--ink);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 16px;
}
.s-note strong {
  color: var(--warn);
}
.s-soon {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--warn);
  background: var(--warn-soft);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 6px;
  vertical-align: 0.15em;
  white-space: nowrap;
}

/* ------------------------------------------------------------ buttons */
.s-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 8px;
}
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}
.s-btn:hover {
  text-decoration: none;
  border-color: var(--ink-3);
}
.s-btn.is-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.s-btn.is-primary:hover {
  filter: brightness(1.06);
}

/* ------------------------------------------------------------ cards */
.s-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 18px 0 8px;
}
.s-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
}
.s-card h3 {
  margin-top: 0;
  font-size: 20px;
}
.s-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}
.s-card a.s-card-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 15px;
}
a.s-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}
a.s-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
a.s-card .s-card-go {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-text);
}

/* A chat bubble, for the examples. */
.s-chat {
  background: var(--surface-2);
  border-radius: 20px;
  padding: 16px;
  margin: 16px 0 24px;
  display: grid;
  gap: 8px;
}
.s-chat p {
  margin: 0;
  max-width: 86%;
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.4;
}
.s-chat .them {
  background: var(--surface);
  justify-self: start;
  border-bottom-left-radius: 6px;
}
.s-chat .you {
  background: var(--accent);
  color: var(--accent-ink);
  justify-self: end;
  border-bottom-right-radius: 6px;
  font-family: var(--font-display);
  font-variation-settings: var(--voice-settings);
}
.s-chat .who {
  font-size: 12px;
  color: var(--ink-3);
  padding: 0 4px;
  background: none;
  justify-self: start;
}
.s-chat .who.is-you {
  justify-self: end;
}
.s-chat .owner {
  background: var(--warn-soft);
  justify-self: center;
  max-width: 100%;
  font-size: 15px;
  text-align: center;
}

/* Steps. */
.s-steps {
  counter-reset: step;
  list-style: none;
  padding: 0 !important;
  margin: 18px 0;
  display: grid;
  gap: 12px;
}
.s-steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px 16px 62px;
  margin: 0 !important;
}
.s-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.s-steps strong {
  display: block;
}

/* Tables (comparisons). */
.s-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.s-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.s-table th,
.s-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.s-table tr:last-child td {
  border-bottom: 0;
}
.s-table th {
  font-weight: 600;
  background: var(--surface-2);
}

/* FAQ. */
.s-faq {
  margin: 10px 0 30px;
}
.s-faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 10px 0;
  padding: 0 18px;
}
.s-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  position: relative;
}
.s-faq summary::-webkit-details-marker {
  display: none;
}
.s-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 22px;
  color: var(--ink-3);
  font-weight: 400;
}
.s-faq details[open] summary::after {
  content: "–";
}
.s-faq .s-faq-a {
  padding: 0 0 16px;
  color: var(--ink-2);
}
.s-faq .s-faq-a p {
  margin: 0 0 10px;
}
.s-faq-group {
  margin-top: 36px;
}

/* The closing call to action. */
.s-close {
  margin: 56px 0 0;
  padding: 34px 24px;
  border-radius: 28px;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}
.s-close h2 {
  color: var(--bg);
  margin: 0 0 10px;
}
.s-close h2 em {
  color: inherit;
}
.s-close p {
  color: color-mix(in srgb, var(--bg) 76%, transparent);
  margin: 0 auto 18px;
  max-width: 460px;
}
.s-close .s-ctas {
  justify-content: center;
}
.s-close .s-btn {
  background: transparent;
  color: var(--bg);
  border-color: color-mix(in srgb, var(--bg) 40%, transparent);
}
.s-close .s-btn.is-primary {
  background: var(--bg);
  color: var(--ink);
  border-color: transparent;
}

/* WhatsApp's rules, said in full on /safety; elsewhere one quiet line points there. */
.s-risk-link {
  margin: 36px 0 0;
  font-size: 15px;
}
.s-risk-link a {
  color: var(--ink-2);
}

/* Related reading. */
.s-related {
  margin-top: 48px;
}

/* ------------------------------------------------------------ tool */
.s-tool {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin: 18px 0 28px;
}
.s-tool fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
}
.s-tool legend {
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}
.s-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.s-chips label {
  position: relative;
}
.s-chips input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}
.s-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 15px;
  cursor: pointer;
  user-select: none;
}
.s-chips input:checked + span {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.s-chips input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.s-tool .s-field {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
}
.s-tool .s-field span {
  font-weight: 600;
}
.s-tool input[type="text"] {
  font: inherit;
  font-size: 16px;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  padding: 0 14px;
  width: 100%;
}
.s-out {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 16px;
  font-family: var(--font-display);
  font-variation-settings: var(--voice-settings);
  font-size: 18px;
  line-height: 1.45;
  min-height: 80px;
  white-space: pre-wrap;
  margin: 0 0 12px;
}
.s-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.s-tool-row button {
  font: inherit;
  cursor: pointer;
}
.s-copied {
  color: var(--good);
  font-size: 15px;
}
.s-examples p {
  font-family: var(--font-display);
  font-variation-settings: var(--voice-settings);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 8px 0;
}

/* ------------------------------------------------------------ footer */
.s-foot {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
  font-size: 15px;
  color: var(--ink-2);
}
.s-foot-cols {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.s-foot h2 {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
  font-weight: 600;
}
.s-foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.s-foot li {
  margin: 6px 0;
}
.s-foot a {
  color: var(--ink-2);
  text-decoration: none;
}
.s-foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.s-foot-about {
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-3);
  max-width: 640px;
}

@media (max-width: 520px) {
  body {
    font-size: 16.5px;
  }
  .s-lede {
    font-size: 18.5px;
  }
  .s-hero {
    padding-top: 24px;
  }
  .s-close {
    padding: 28px 18px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.s-card {
    transition: none;
  }
}
