/* ChatNano's site: the app's look (Manrope, macOS system colours, the logo's gradient), no scripts. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
  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;
}

:root {
  color-scheme: light dark;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --brand-gradient: linear-gradient(90deg, #c82a8e 0%, #c92372 25%, #cd2256 50%, #cc2642 75%, #c63036 100%);
  --accent: #cd2256;
  --background: #ffffff;
  --label: rgba(0, 0, 0, 0.85);
  --secondary-label: rgba(0, 0, 0, 0.55);
  --separator: rgba(0, 0, 0, 0.1);
  --group-background: rgba(0, 0, 0, 0.025);
  --sidebar-background: #f4f4f6;
  --sidebar-selection: rgba(0, 0, 0, 0.08);
  --bubble-incoming: #e9e9eb;
  --bar: rgba(255, 255, 255, 0.82);
  --window-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18), 0 30px 80px rgba(0, 0, 0, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #e5336b;
    --background: #1e1e1e;
    --label: rgba(255, 255, 255, 0.86);
    --secondary-label: rgba(255, 255, 255, 0.58);
    --separator: rgba(255, 255, 255, 0.1);
    --group-background: rgba(255, 255, 255, 0.04);
    --sidebar-background: #262628;
    --sidebar-selection: rgba(255, 255, 255, 0.1);
    --bubble-incoming: #3a3a3c;
    --bar: rgba(30, 30, 30, 0.82);
    --window-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.14), 0 30px 80px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--label);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent);
  outline-offset: 2px;
  border-radius: 4px;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header and footer ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.site-header nav a {
  color: var(--secondary-label);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--label);
}

.site-footer {
  margin-top: 72px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--separator);
  font-size: 14px;
  color: var(--secondary-label);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
}

/* ---------- Home ---------- */

.hero {
  padding: 56px 0 24px;
  text-align: center;
}

.hero img {
  display: block;
  margin: 0 auto 20px;
}

.hero h1 {
  margin: 0;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 520px;
  margin: 14px auto 0;
  font-size: 20px;
  color: var(--secondary-label);
}

.availability {
  display: inline-block;
  margin-top: 28px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.intro {
  margin: 48px 0 0;
  font-size: 17px;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 18px 20px;
  border: 1px solid var(--separator);
  border-radius: 12px;
  background: var(--group-background);
}

.features h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.features p {
  margin: 0;
  font-size: 15px;
  color: var(--secondary-label);
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 18px;
  }

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

/* ---------- Policies ---------- */

.document {
  padding-top: 88px;
}

.document h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.updated {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--secondary-label);
}

.document p,
.document li {
  font-size: 17px;
  line-height: 1.7;
}

.document > p {
  margin: 16px 0;
}

.summary {
  margin: 40px 0 32px;
  padding: 24px 28px;
  border: 1px solid var(--separator);
  border-radius: 12px;
  background: var(--group-background);
}

.summary p:first-child {
  margin-top: 0;
}

.summary p:last-child,
.summary ul:last-child {
  margin-bottom: 0;
}

.document h2 {
  margin: 56px 0 12px;
  font-size: 24px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.document ul {
  padding-left: 22px;
}

.document li + li {
  margin-top: 6px;
}

/* ---------- Not found ---------- */

.not-found {
  padding: 96px 0 24px;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
}

/* ---------- Home page ---------- */

.wide {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.narrow {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* A bar like the app's title bar: frosted, with a hairline below. */
.home .site-header.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: block;
  padding: 0;
  background: var(--bar);
  backdrop-filter: saturate(180%) blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}

.home .site-header nav {
  margin-left: auto;
}

.pill {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.pill.small {
  padding: 5px 14px;
  font-size: 13px;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.home .hero {
  padding-top: 88px;
  padding-bottom: 0;
}

.home .hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.home .lead {
  max-width: 600px;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}

/* The app, drawn in its own colours. */
.window {
  display: grid;
  grid-template-columns: 230px 1fr;
  height: 440px;
  margin: 64px auto 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--background);
  box-shadow: var(--window-shadow);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

.window-sidebar {
  padding: 14px 10px;
  background: var(--sidebar-background);
  border-right: 1px solid var(--separator);
}

.hero .window img {
  display: inline;
  margin: 0;
}

.window-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px 14px;
  font-weight: 700;
}

.window-section {
  margin: 10px 8px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary-label);
}

.window-row {
  padding: 7px 10px;
  border-radius: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-row.selected {
  background: var(--sidebar-selection);
}

.window-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.window-title {
  padding: 14px;
  text-align: center;
  font-weight: 600;
}

.window-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.chevron {
  fill: none;
  stroke: var(--secondary-label);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.window-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 32px;
}

.bubble {
  max-width: 72%;
  padding: 9px 14px;
  border-radius: 18px;
}

.bubble.out {
  align-self: flex-end;
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 500;
}

.bubble.in {
  align-self: flex-start;
  background: var(--bubble-incoming);
}

.thought,
.meta {
  padding: 0 14px;
  font-size: 12px;
  color: var(--secondary-label);
}

.window-composer {
  margin: 0 32px 18px;
  padding: 9px 16px;
  border: 1px solid var(--separator);
  border-radius: 19px;
  color: var(--secondary-label);
}

.section {
  padding-top: 112px;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
}

.section-lead {
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 18px;
  color: var(--secondary-label);
  text-align: center;
}

.feature-grid,
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.feature-grid li,
.model {
  padding: 24px;
  border: 1px solid var(--separator);
  border-radius: 14px;
  background: var(--group-background);
}

.feature-grid svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-grid h3,
.model h3 {
  margin: 12px 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.feature-grid p,
.model p {
  margin: 0;
  font-size: 15px;
  color: var(--secondary-label);
}

.model-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.model-top h3 {
  margin: 0;
  font-size: 20px;
}

.tag {
  padding: 2px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.model p {
  margin-top: 6px;
}

.model dl {
  margin: 18px 0 0;
  border-top: 1px solid var(--separator);
}

.model dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--separator);
  font-size: 14px;
}

.model dl div:last-child {
  border-bottom: 0;
}

.model dd {
  margin: 0;
  color: var(--secondary-label);
  text-align: right;
}

.footnote {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--secondary-label);
  text-align: center;
}

.privacy-band {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: 56px 32px;
  border-radius: 20px;
  background: var(--group-background);
  border: 1px solid var(--separator);
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 30px;
}

.checks li::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-gradient);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9'/%3E%3C/svg%3E");
}

.checks li::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 6px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

#faq .section-title {
  margin-bottom: 32px;
}

details {
  border-bottom: 1px solid var(--separator);
}

summary {
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

summary::after {
  content: '+';
  float: right;
  color: var(--secondary-label);
  font-weight: 400;
}

details[open] summary::after {
  content: '−';
}

details p {
  margin: -6px 0 18px;
  color: var(--secondary-label);
}

.closing {
  padding-top: 120px;
  text-align: center;
}

.closing h2 {
  margin: 20px 0 24px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
}

.home .site-footer {
  margin-top: 120px;
  padding: 40px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 8px 0 0;
}

.footer-inner .brand {
  color: var(--label);
}

.footer-inner nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner nav a {
  text-decoration: none;
}

/* The links, with the copyright line under them, at the footer's right. */
.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-inner .copyright {
  margin: 0;
}

@media (max-width: 860px) {
  .footer-legal {
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .home .site-header nav {
    display: none;
  }

  .home .site-header .pill {
    margin-left: auto;
  }

  .feature-grid,
  .model-grid,
  .checks {
    grid-template-columns: 1fr;
  }

  .window {
    grid-template-columns: 1fr;
    height: auto;
  }

  .window-sidebar {
    display: none;
  }

  .window-chat {
    padding: 8px 16px 16px;
  }

  .window-composer {
    margin: 0 16px 16px;
  }

  .bubble {
    max-width: 88%;
  }

  .section {
    padding-top: 80px;
  }
}
