/*
 * modelsauce.com — the website's one stylesheet (2026-11-11).
 *
 * The app's look, from the PWA's app.css: its dark violet palette, its two
 * typefaces and the logo's spectrum. The fonts are served from this site
 * (fonts/, copied from the PWA's @fontsource packages, Latin subset, which
 * covers French), so a visit asks nothing of Google or anyone else: no
 * third-party request, as the privacy policy says.
 *
 * Two languages in one page: every piece of text exists in both, marked
 * data-l="fr" / data-l="en", and the one not chosen is hidden by the rule
 * below. lang.js chooses, from a saved choice or the browser, before the
 * page is drawn; French is the default, also without script.
 */

@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'Google Sans Flex Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 1 1000;
  src: url(/fonts/google-sans-flex-latin-wght-normal.woff2) format('woff2-variations');
}

:root {
  --bg: #0c0a14;
  --bg-surface: #15121f;
  --bg-elevated: #1d1929;
  --border: #2a2539;
  --border-light: #3a3450;
  --text: #f1eefa;
  --text-2: #b9b1d0;
  --text-muted: #8a80a6;
  --accent: #a28bff;
  --accent-hover: #b8a6ff;
  --accent-dim: rgba(162, 139, 255, 0.16);
  --accent-fill: #7352f5;
  --accent-fill-hover: #6545e8;
  --brand-rainbow: linear-gradient(90deg, #ff3d3d 0%, #ff9a1f 14%, #ffd60a 29%, #36d96b 43%, #19c8f0 57%, #3d6bff 71%, #9b4dff 86%, #ff3fc8 100%);
  --font-display: 'Bricolage Grotesque Variable', 'Google Sans Flex Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Google Sans Flex Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
  color-scheme: dark;
}

/* The language not chosen. */
html[lang='fr-CA'] [data-l='en'],
html[lang='en'] [data-l='fr'] {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 10, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--brand-rainbow);
  opacity: 0.55;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font: 700 21px/1 var(--font-display);
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--text);
}
.brand img {
  width: 32px;
  height: 32px;
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  color: var(--text-2);
  font-size: 15px;
}
.nav a:hover {
  color: var(--text);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-toggle {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-2);
  font: 500 14px/1 var(--font-body);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font: 600 16px/1 var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-fill);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-fill-hover);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}
.btn-small {
  padding: 9px 16px;
  font-size: 14px;
}
.btn[aria-disabled='true'] {
  color: var(--text-muted);
  border-color: var(--border);
  cursor: default;
}
.soon {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 999px;
}

/* --- Hero --- */
.hero {
  padding: 84px 0 72px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -120px 0 auto 0;
  height: 520px;
  background: radial-gradient(60% 60% at 70% 30%, rgba(115, 82, 245, 0.28), transparent 70%),
    radial-gradient(40% 50% at 15% 10%, rgba(255, 63, 200, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 750;
}
.rainbow-text {
  background: var(--brand-rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  color: var(--text-2);
  font-size: 19px;
  margin: 22px 0 30px;
  max-width: 34em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.fine {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
}

/* The chat card: a drawing of the app, in HTML. */
.chat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  position: relative;
}
.chat-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: var(--brand-rainbow);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}
.model-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.model-tab {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.model-tab.on {
  color: var(--text);
  background: var(--accent-dim);
  border-color: rgba(162, 139, 255, 0.45);
}
.bubble {
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 15px;
  margin-bottom: 10px;
}
.bubble.user {
  background: #1f1a2f;
  border: 1px solid #2e2942;
  margin-left: 18%;
}
.bubble.ai {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin-right: 8%;
}
.bubble.ai ol {
  margin: 6px 0 0;
  padding-left: 20px;
}
.bubble.ai li {
  margin: 2px 0;
}
.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  color: var(--text-muted);
  font-size: 15px;
}
.composer span:first-child {
  flex: 1;
}
.send-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #ff3d3d, #ff9a1f, #ffd60a, #36d96b, #19c8f0, #3d6bff, #9b4dff, #ff3fc8, #ff3d3d);
}

/* --- Sections --- */
section {
  padding: 72px 0;
}
.section-head {
  max-width: 40em;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 720;
}
.section-head p {
  color: var(--text-2);
  margin: 14px 0 0;
  font-size: 18px;
}
.models {
  padding: 8px 0 40px;
}
.models .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
}
.models strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 {
  font-size: 20px;
  font-weight: 680;
  margin: 14px 0 8px;
}
.card p {
  color: var(--text-2);
  margin: 0;
  font-size: 16px;
}
.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
}
.icon svg {
  width: 22px;
  height: 22px;
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-left: 6px;
  vertical-align: 2px;
}

/* --- Pricing --- */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
}
.plan {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.plan.pro {
  position: relative;
  background: linear-gradient(180deg, rgba(115, 82, 245, 0.12), rgba(21, 18, 31, 1) 60%);
  border-color: rgba(162, 139, 255, 0.45);
}
.plan.pro::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--brand-rainbow);
  border-radius: 2px;
}
.plan h3 {
  font-size: 22px;
}
.price {
  font: 750 40px/1.1 var(--font-display);
  margin: 14px 0 4px;
}
.price small {
  font: 500 16px var(--font-body);
  color: var(--text-muted);
}
.price-note {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 18px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  flex: 1;
}
.plan li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
  color: var(--text-2);
}
.plan li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn {
  align-self: flex-start;
}

/* --- FAQ --- */
.faq {
  max-width: 820px;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font: 600 18px/1.4 var(--font-body);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  color: var(--text-2);
  margin: 12px 0 0;
}

/* --- Closing band --- */
.closing {
  text-align: center;
}
.closing .box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 24px;
  position: relative;
  overflow: hidden;
}
.closing .box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 50% 0%, rgba(115, 82, 245, 0.25), transparent 70%);
  pointer-events: none;
}
.closing img {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  position: relative;
}
.closing h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 26px;
  position: relative;
}
.closing .btn {
  position: relative;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}

/* --- Small pages: payment return, not found --- */
.small-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.small-page .card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  padding: 40px 28px;
}
.small-page .card img {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
}
.small-page h1 {
  font-size: 28px;
  margin: 12px 0 10px;
}
.small-page .card p {
  margin: 0 0 12px;
}
.small-page .lang-toggle {
  margin-top: 18px;
}

/* --- Narrow screens --- */
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  body {
    font-size: 16px;
  }
  .site-header .wrap {
    gap: 10px;
  }
  .brand span {
    display: none;
  }
  .header-actions .btn-primary {
    padding: 9px 14px;
  }
  .lede {
    font-size: 17px;
  }
  .grid,
  .plans {
    grid-template-columns: 1fr;
  }
  section {
    padding: 52px 0;
  }
  .bubble.user {
    margin-left: 10%;
  }
  .bubble.ai {
    margin-right: 0;
  }
  .plan {
    padding: 24px;
  }
}
