.website {
  font-size: 17px;
  line-height: 1.55;
  --edge: 24px;
  --hero: #ffc531;
  --cta: light-dark(#17182b, #ffc531);
  --on-cta: light-dark(#f4f1ea, #17182b);
  --cta-hover: light-dark(#2c2e4d, #ffd666);
}
.website h1, .website h2, .website h3, .website .figure { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; }
.website p { color: var(--muted); }
.shell { width: min(1160px, calc(100% - 2 * var(--edge))); max-width: none; margin-inline: auto; padding: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; inset: 12px auto auto 12px; padding: 8px 16px; background: var(--surface); border-radius: var(--radius); z-index: 3; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Header and footer */
/* The sun band keeps its light palette in dark mode too. */
.website:has(> .home) .mast, .hero { color-scheme: light; color: var(--ink); }
.website:has(> .home) .mast { background: var(--hero); }
.mast nav, .foot .shell { display: flex; justify-content: space-between; align-items: center; gap: 8px 28px; flex-wrap: wrap; padding-block: 14px; }
.website .brand { margin: 0; font: 600 1.05rem/1.2 var(--font); text-decoration: none; }
.nav-links, .foot nav { display: flex; gap: 0 28px; flex-wrap: wrap; }
.nav-links a, .foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; }
.nav-links a:hover, .foot nav a:hover { text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.foot { margin-block-start: 96px; border-top: 1px solid var(--line); }
.foot .shell { padding-block: 22px; }

/* Buttons */
.buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.website .button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 24px; border: 2px solid var(--cta); border-radius: 8px; background: var(--cta); color: var(--on-cta); font: 600 1rem/1.2 var(--font); text-decoration: none; transition: background-color 120ms ease, border-color 120ms ease; }
.website .button:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.website .button.secondary { background: transparent; color: var(--ink); border-color: currentColor; }
.website .button.secondary:hover { background: var(--ink); color: var(--canvas); border-color: var(--ink); }

/* Hero */
.home { padding-block: 0; }
.hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 80px); border-image: conic-gradient(var(--hero) 0 0) fill 0 / 0 / 2px 100vmax 0; }
.hero-copy { min-width: 0; }
.hero h1 { margin: 0 0 20px; font-size: clamp(3.2rem, 6.6vw, 5.8rem); line-height: .96; letter-spacing: -.025em; text-wrap: balance; }
.website .hero-sub { margin: 0 0 28px; max-width: 24ch; font: 400 clamp(1.2rem, 1.8vw, 1.4rem)/1.35 var(--font); color: var(--ink); text-wrap: balance; }
.install-actions { display: grid; gap: 10px; justify-items: start; }
.store-pending { font-size: .88rem; color: var(--ink); opacity: .8; }
.website .hero-trial { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0; font-weight: 500; color: var(--ink); }
.hero-trial b { display: inline-grid; place-items: center; min-width: 44px; height: 32px; padding-inline: 10px; border-radius: 4px; background: #17182b; color: #ffc531; font: 600 1.05rem/1 var(--font); font-variant-numeric: tabular-nums; }

/* The demo: a chat, the right-click menu and the real preview */
.scene { position: relative; min-width: 0; margin: 0; scroll-margin-top: 16px; }
.stage { position: relative; min-height: 470px; padding-inline-end: 33%; padding-block: 8px 0; }
.chat { position: relative; background: light-dark(#fff, #101119); border: 1px solid #17182b; border-radius: 12px; box-shadow: 6px 6px 0 #17182b; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--coral); color: #17182b; font-weight: 600; }
.chat-name { font-weight: 600; }
.chat-lang { margin-inline-start: auto; padding: 3px 10px; border-radius: 4px; background: var(--coral-soft); font-size: .8rem; font-weight: 600; }
.chat-log { display: grid; gap: 6px; padding: 18px 18px 22px; }
.website .chat-day { justify-self: center; margin: 0 0 6px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.website .bubble { justify-self: start; max-width: 30ch; margin: 0; padding: 10px 14px; border-radius: 12px 12px 12px 3px; background: var(--coral-soft); color: var(--ink); line-height: 1.4; }
.composer { display: grid; gap: 6px; min-height: 8.4em; margin: 0 14px 14px; padding: 12px 14px; align-content: start; border: 1px solid var(--line); border-radius: 8px; }
.composer-label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.website .composer p { margin: 0; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
.composer mark { padding-block: 2px; background: var(--sun); color: #17182b; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.scene[data-stage="preview"] .composer mark { background: var(--sun-soft); color: var(--ink); }
.scene[data-stage="replace"] .case-translation { animation: land 420ms ease both; }
@keyframes land { from { background: var(--coral-soft); } to { background: transparent; } }

.menu { position: absolute; z-index: 2; inset: auto auto 34px 44%; display: grid; gap: 2px; min-width: 214px; padding: 5px; border-radius: 8px; background: light-dark(#fff, #262840); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .86rem; opacity: 0; transform: translateY(6px) scale(.97); transform-origin: top left; transition: opacity 160ms ease, transform 160ms ease; pointer-events: none; }
.menu span { padding: 6px 10px; border-radius: 5px; color: var(--muted); }
.menu .menu-pick { display: flex; align-items: center; gap: 8px; background: var(--night); color: var(--on-night); font-weight: 600; }
.menu img { border-radius: 4px; }
.scene[data-stage="select"] .menu { opacity: 1; transform: none; }

.case-shot { position: absolute; z-index: 3; inset: 56px 0 auto auto; width: min(47%, 300px); transition: opacity 200ms ease, transform 200ms ease; transform-origin: 20% 60%; }
.case-shot img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 4px #17182b1f, 0 24px 48px -16px #17182b80; }
.scene[data-stage="select"] .case-shot, .scene[data-stage="replace"] .case-shot { opacity: 0; transform: translateY(8px) scale(.96); pointer-events: none; }

/* The same word in other languages, set like chat bubbles around the demo. */
.thanks { position: absolute; z-index: 1; inset-inline-end: 0; margin: 0; padding: 7px 12px; font-size: .92rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.thanks-1 { inset-block-start: 6px; inset-inline-end: 4%; border-radius: 10px 10px 3px 10px; background: var(--night); color: var(--on-night); }
.thanks-2 { inset-block-start: 46%; inset-inline-end: 6%; border-radius: 10px 10px 10px 3px; background: var(--coral); color: #17182b; }
.thanks-3 { inset-block-end: 20px; inset-inline-end: auto; inset-inline-start: 8%; border-radius: 10px 10px 3px 10px; background: light-dark(#fff, #34364d); color: var(--ink); }

.case-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 14px; }
.case-controls button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px 8px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); font-weight: 600; }
.case-controls button:hover { background: transparent; border-color: var(--ink); }
.case-controls button[aria-pressed="true"] { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
.case-controls img { width: 20px; height: 20px; }
.case-controls button[aria-pressed="true"] img { filter: invert(1); }

/* Sections */
.home > section { margin-block-start: clamp(72px, 9vw, 120px); }
.home > section > h2 { margin: 0 0 32px; max-width: 18ch; font-size: clamp(2.2rem, 3.8vw, 3.3rem); line-height: 1.02; text-wrap: balance; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { display: grid; align-content: start; justify-items: start; padding: 24px 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--surface); }
.tile img { width: clamp(104px, 10vw, 128px); height: auto; margin: 0 0 20px -4px; border-radius: 50%; background: light-dark(transparent, #f4f1ea); }
.tile h3 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.1; }
.website .tile p { margin: 0; }
.tile kbd { padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--sunken); color: var(--ink); font: 600 .86em/1.4 var(--font); white-space: nowrap; }

/* Pricing on the home page */
.home-pricing { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 16px 40px; align-items: start; }
.home-pricing > h2, .home-pricing > .plan-more { grid-column: 1 / -1; }
.trial-card { display: grid; gap: 4px; justify-items: start; padding: 28px; border-radius: var(--radius-large); background: var(--sun); color: #17182b; }
.trial-card .figure { font-size: 5.2rem; line-height: .85; letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.trial-card span { max-width: 18ch; margin-block: 6px 16px; font-weight: 500; line-height: 1.35; }
.website .trial-card .button { background: #17182b; border-color: #17182b; color: #f4f1ea; }
.website .trial-card .button:hover { background: #2c2e4d; border-color: #2c2e4d; }
.plan-table { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.plan-table th, .plan-table td { padding: 16px 12px; text-align: start; vertical-align: middle; border-bottom: 1px solid var(--line); }
.plan-table thead th { padding-block: 0 8px; font-size: .82rem; font-weight: 600; color: var(--muted); border-bottom-color: var(--line-strong); }
.plan-table tbody th { padding-inline-start: 0; font: 600 1.5rem/1.15 var(--display); letter-spacing: -.01em; }
.plan-table th small { display: block; margin-block-start: 2px; font: 400 .88rem/1.4 var(--font); letter-spacing: 0; color: var(--muted); }
.plan-minimum { display: inline-block; white-space: nowrap; }
.plan-table thead th:not(:first-child), .plan-table td { text-align: center; }
.plan-table td { width: 22%; }
.plan-table td a { display: inline-grid; justify-items: center; align-content: center; width: 100%; max-width: 108px; min-height: 46px; padding: 4px 14px; border-radius: 6px; border: 1px solid var(--line-strong); font: 600 1.2rem/1.1 var(--font); text-decoration: none; white-space: nowrap; transition: background-color 120ms ease, border-color 120ms ease; }
.plan-table td a:hover { background: var(--sun); border-color: var(--sun); color: #17182b; }
.plan-table td small { font: 500 .76rem/1.2 var(--font); }
.plan-side { display: grid; gap: 16px; }
.website .plan-pack { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; }
.plan-pack a, .plan-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.website .plan-more { margin: 0; }

/* Questions */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 0 40px; align-items: start; }
.faq > h2 { margin: 0; }
.faq-list { display: grid; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; cursor: pointer; font-size: 1.08rem; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.6rem/1 var(--font); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.website .faq details p { max-width: 60ch; margin: 0 0 20px; }

/* Pricing and policy pages */
.document { padding-block: clamp(40px, 7vw, 80px) 0; }
.document h1 { margin: 0 0 16px; font-size: clamp(2.8rem, 5.6vw, 4.6rem); line-height: .98; letter-spacing: -.025em; text-wrap: balance; }
.document h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.08; }
.website .lede { max-width: 36ch; margin-block: 0 32px; font-size: 1.2rem; color: var(--ink); }
.document.prose { max-width: 720px; }
.prose h2 { margin-top: 40px; }
.prose p, .prose li { overflow-wrap: anywhere; max-width: 68ch; }
.document > p { max-width: 72ch; }
.offers { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block-end: 40px; }
.offer { display: flex; flex-direction: column; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--surface); }
.offer:first-child { border-color: var(--sun); background: var(--sun); color: #17182b; }
.website .offer:first-child p, .offer:first-child small { color: #17182b; }
.website .offer:first-child .button { background: #17182b; border-color: #17182b; color: #f4f1ea; }
.offer h3 { margin: 0 0 14px; font: 600 .95rem/1.2 var(--font); letter-spacing: .01em; }
.offer p { margin-block: 0 12px; }
.offer strong { display: block; font: 600 3.4rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.offer:first-child strong { color: #17182b; }
.offer small { font-size: .86rem; }
.offer .buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: auto; padding-block-start: 8px; }
.offer .buttons > :only-child { grid-column: 1 / -1; }
.website .offer .button { min-height: 44px; padding: 6px 8px; }
.billing-details { border-block: 1px solid var(--line); }
.billing-details summary { display: flex; align-items: center; min-height: 56px; cursor: pointer; font-weight: 600; }
.pack-links { display: flex; gap: 8px 24px; flex-wrap: wrap; font-weight: 600; }
.website .pack-label { margin: 8px 0 0; font-size: .82rem; font-weight: 600; color: var(--muted); }
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-block: 0 16px; }
.pack { display: grid; justify-items: start; gap: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; line-height: 1.25; transition: background-color 120ms ease, border-color 120ms ease; }
.pack:hover { background: var(--sun); border-color: var(--sun); color: #17182b; }
.pack:hover small { background: #17182b; color: #f4f1ea; }
.pack strong { font: 600 1.7rem/1.05 var(--display); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.pack span { font-size: .82rem; color: inherit; opacity: .75; }
.pack b { margin-block-start: 10px; font: 600 1.05rem/1.2 var(--font); font-variant-numeric: tabular-nums; }
.pack small { margin-block-start: 6px; padding: 1px 6px; border-radius: 4px; background: var(--sun); color: #17182b; font-size: .72rem; font-weight: 600; }
.pack-team small { background: var(--coral-soft); color: var(--ink); }
.facts { display: grid; gap: 6px; max-width: 64ch; margin: 0 0 32px; padding: 0; list-style: none; color: var(--muted); }
.facts li { position: relative; padding-inline-start: 20px; }
.facts li::before { content: ""; position: absolute; inset: .62em auto auto 2px; width: 7px; height: 7px; background: var(--sun); }
.billing-details .facts { margin-block: 4px 16px; }

@media (max-width: 1100px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .scene { width: min(100%, 640px); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-pricing, .faq { grid-template-columns: 1fr; }
  .faq > h2 { margin-block-end: 24px; }
}
@media (max-width: 600px) {
  .website { --edge: 16px; font-size: 16px; }
  .mast nav { padding-block: 8px; }
  .nav-links { gap: 0 18px; }
  .hero h1 { font-size: clamp(2.8rem, 13.5vw, 3.6rem); }
  .stage { padding-inline-end: 0; padding-block: 0 12px; }
  .chat { box-shadow: 4px 4px 0 #17182b; }
  .thanks { display: none; }
  .case-shot { position: static; width: min(100%, 320px); margin: 18px auto 0; }
  .scene[data-stage="select"] .case-shot, .scene[data-stage="replace"] .case-shot { display: none; }
  .menu { inset: auto 12px 22px auto; }
  .case-controls { gap: 2px; }
  .case-controls button { gap: 6px; padding-inline: 8px 12px; font-size: .95rem; }
  .case-controls img { width: 18px; height: 18px; }
  .tiles, .offers { grid-template-columns: 1fr; }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; padding: 16px 20px 16px 14px; }
  .tile img { grid-row: 1 / span 2; width: 88px; margin: 0; }
  .tile h3 { align-self: end; font-size: 1.25rem; }
  .website .tile p { align-self: start; }
  .plan-table th, .plan-table td { padding: 12px 6px; }
  .plan-table tbody th { font-size: 1.25rem; }
  .plan-table td { width: 27%; }
  .plan-table td a { min-width: 60px; padding-inline: 8px; font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .case-shot, .menu, .website .button, .plan-table td a { transition: none; }
  .scene[data-stage="replace"] .case-translation { animation: none; }
}
