/* Tulio site. Tokens follow the Modernist design system, dark by default. No external resources. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/archivo-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --color-bg: #0f0e0d;
  --color-text: #efedec;
  --color-accent: #ec3013;
  --color-accent-600: #ff8a74;
  --color-accent-700: #ff7058;
  --color-divider: #57534f;
  --color-neutral-300: #34312e;
  --color-neutral-400: #4a4642;
  --color-neutral-600: #a9a4a0;
  --font: "Archivo", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font: 400 15px/1.55 var(--font); }
h1, h2, h3 { font-family: var(--font); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-600); }
img { display: block; max-width: 100%; height: auto; }
section { scroll-margin-top: 64px; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--color-neutral-600); }
.small { font-size: 13px; }
.num { font-weight: 700; color: var(--color-accent-700); font-size: 13px; }

/* buttons and tags */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  font: 800 14px/1.2 var(--font); text-decoration: none; color: var(--color-text);
  padding: 8px 14.4px; border: 1px solid transparent;
}
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: #dd2b0f; color: var(--color-bg); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.tag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: 0.02em; padding: 3px 10px; }
.tag-accent, .tag-now { background: #fff2ef; color: #7c1405; }
.tag-next { background: #f8f4f4; color: #444141; }
.tag-planned { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* app icon */
.app-icon { background: #eef1f3; border-radius: 22.37%; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(20, 32, 42, 0.12); flex: none; }
.app-icon img { width: 100%; height: 100%; }
.app-icon-sm { width: 32px; height: 32px; }
.app-icon-lg { width: 112px; height: 112px; }
.app-icon-xl { width: 160px; height: 160px; }

/* header */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--color-accent); z-index: 20; }
.topbar { position: sticky; top: 0; z-index: 10; background: var(--color-bg); border-bottom: 2px solid var(--color-divider); }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-name { font-weight: 800; font-size: 20px; }
.topnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 14px; }
.topnav a, .footnav a { text-decoration: none; color: inherit; }
.lang { display: flex; border: 2px solid var(--color-divider); }
.topnav .lang a { font-size: 12px; font-weight: 700; padding: 4px 10px; }
.topnav .lang a[aria-current] { background: var(--color-text); color: var(--color-bg); }

/* hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; padding: 72px 0 64px; align-items: center; border-bottom: 2px solid var(--color-divider); overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1; letter-spacing: -0.03em; }
.lead { font-size: 20px; line-height: 1.5; max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mission { font-size: 16px; line-height: 1.55; max-width: 520px; padding-left: 16px; border-left: 2px solid var(--color-accent); }
.hero-shots { display: flex; gap: 16px; padding-bottom: 16px; }
.shot { width: calc(50% - 8px); min-width: 0; }
.shot-1 { animation: rise 1s var(--ease) 0.2s both; }
.shot-2 { margin-top: 48px; animation: rise 1s var(--ease) 0.45s both; }
.shot-2 img { animation: bob 6s ease-in-out 1.5s infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border-bottom: 2px solid var(--color-divider); }
.pillar { padding: 32px 24px 32px 0; display: flex; flex-direction: column; gap: 8px; }
.pillar h3 { font-size: 22px; }
.pillar p { line-height: 1.55; }
.pillar:nth-child(2) { transition-delay: 0.12s; }
.pillar:nth-child(3) { transition-delay: 0.24s; }

/* section frame */
.block { padding: 72px 0; }
.block.bordered { border-top: 2px solid var(--color-divider); }
#features { padding-bottom: 24px; }
.block > h2 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.02em; margin-bottom: 12px; }
.intro { font-size: 18px; line-height: 1.5; max-width: 620px; margin-bottom: 24px; }

/* features */
.features { counter-reset: feature; }
.feature { counter-increment: feature; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; padding: 40px 0; border-top: 2px solid var(--color-divider); align-items: center; }
.feature-copy { display: flex; flex-direction: column; gap: 10px; }
.feature-num::before { content: counter(feature, decimal-leading-zero); }
.feature h3 { font-size: 28px; }
.feature p { font-size: 17px; line-height: 1.55; max-width: 480px; }
.feature-media { display: flex; gap: 16px; align-items: flex-start; transition-delay: 0.15s; }
.feature-media img { height: auto; max-height: 420px; width: auto; max-width: calc(50% - 8px); }
.feature:nth-child(even) .feature-copy { order: 2; }
.feature:nth-child(even) .feature-media { justify-content: flex-end; }
.feature-media:has(.themes) { display: block; }

/* themes: a real screenshot of each. Without script they all show in a grid; with it, one at a time and the dots
   switch between them (no scrolling). */
.themes { display: flex; flex-wrap: wrap; gap: 16px; }
.themes figure { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.themes img { height: 240px; width: auto; object-fit: contain; }
.themes figcaption { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.themes.carousel { display: grid; justify-items: start; }
.themes.carousel figure {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(48px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0s 0.55s;
}
.themes.carousel figure.before { transform: translateX(-48px); }
.themes.carousel figure.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.themes.carousel.setup figure { transition: none; }
.themes.carousel img { height: 420px; max-width: 100%; }
.dots { display: flex; gap: 2px; margin-top: 12px; }
.dot { width: 22px; height: 22px; padding: 6px; border: 0; border-radius: 50%; background: var(--color-neutral-400); background-clip: content-box; cursor: pointer; }
.dot:hover { background-color: var(--color-neutral-600); }
.dot[aria-current="true"] { background-color: var(--color-accent); }

/* developers */
.dev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); border-top: 2px solid var(--color-divider); border-bottom: 2px solid var(--color-divider); }
.dev { padding: 28px 24px 32px; border-left: 2px solid var(--color-divider); }
.dev:first-child { padding-left: 0; border-left: 0; }
.dev h3 { font-size: 22px; margin: 8px 0; }
.dev p { line-height: 1.55; margin-bottom: 16px; }
.mime { display: block; font: 13px ui-monospace, Menlo, monospace; padding: 12px; background: var(--color-text); color: var(--color-bg); overflow-wrap: anywhere; }
.dev-shots { display: flex; flex-wrap: wrap; gap: 32px; padding: 40px 0 8px; }
.dev-shots figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.dev-shots img { height: 420px; width: auto; }
.dev-shots figcaption { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* roadmap */
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); border-top: 2px solid var(--color-divider); border-bottom: 2px solid var(--color-divider); }
.version { padding: 24px 20px 32px; border-left: 2px solid var(--color-divider); display: flex; flex-direction: column; gap: 12px; position: relative; }
.version:first-child { border-left: 0; }
.version .tag { align-self: flex-start; }
.version-number { font-weight: 800; font-size: 32px; }
.version h3 { font-size: 18px; }
.version > div:last-child { font-size: 15px; line-height: 1.55; }
.version-bar { position: absolute; left: 0; right: 0; top: -2px; height: 4px; background: var(--color-neutral-400); transform-origin: left; transition: transform 1.1s var(--ease) 0.25s; }
.js .version-bar { transform: scaleX(0); }
.version-now .version-bar { background: var(--color-accent); }
.version-next .version-bar { background: var(--color-text); }
.js .version.in .version-bar { transform: scaleX(1); }
.version:nth-child(2) { transition-delay: 0.12s; }
.version:nth-child(3) { transition-delay: 0.24s; }
.version:nth-child(4) { transition-delay: 0.36s; }
.version:nth-child(5) { transition-delay: 0.48s; }
.version:nth-child(6) { transition-delay: 0.6s; }
.note { margin-top: 24px; max-width: 640px; }

/* support, privacy, terms */
.doc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 48px; }
.doc-sticky { position: sticky; top: 96px; }
.doc-sticky h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; margin-bottom: 12px; }
.doc-sticky .muted { margin-bottom: 16px; }
.lead-sm { font-size: 18px; line-height: 1.5; margin-bottom: 24px; }
.mail { font-weight: 700; font-size: 20px; text-decoration: none; }
.doc-body { max-width: 640px; }
.doc-section { padding-bottom: 28px; }
.doc-section h3 { font-size: 20px; margin-bottom: 10px; }
.doc-section p { font-size: 16px; line-height: 1.65; margin-bottom: 10px; }
.doc-item { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--color-neutral-300); font-size: 16px; line-height: 1.55; }
.dash { color: var(--color-accent-700); font-weight: 700; }

/* press */
#press { padding-bottom: 80px; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 48px; padding: 40px 0; border-top: 2px solid var(--color-divider); }
.press-grid h3, .press-shots h3 { font-size: 24px; margin-bottom: 16px; }
.press-desc { font-size: 17px; line-height: 1.55; margin-bottom: 16px; }
.facts { margin: 0; border-top: 2px solid var(--color-divider); }
.facts div { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--color-neutral-300); font-size: 15px; }
.facts dt { width: 130px; flex: none; color: var(--color-neutral-600); }
.facts dd { margin: 0; }
.icon-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.icon-note { margin-top: 16px; line-height: 1.5; font-size: 14px; }
.press-shots { padding-top: 40px; border-top: 2px solid var(--color-divider); }
.shot-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; }
.shot-strip a { flex: none; }
.shot-strip img { height: 360px; width: auto; }

/* footer */
.footer { border-top: 2px solid var(--color-divider); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 32px; line-height: 1.6; }
.footer .brand-name { font-size: 18px; }
.footnav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; font-size: 14px; }
.legal { font-size: 12px; max-width: 360px; line-height: 1.5; }

/* scroll reveal: content is visible unless the script that reveals it is running */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.version { opacity: 1; transform: none; transition: none; }

@media (max-width: 640px) {
  .dev, .dev:first-child { padding-left: 0; border-left: 0; border-top: 2px solid var(--color-divider); }
  .dev:first-child { border-top: 0; }
  .version, .version:first-child { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .themes.carousel figure { transition: none !important; }
  .js .rv, .shot-1, .shot-2, .shot-2 img, .version-bar { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .version-bar { transform: scaleX(1) !important; }
}
