Your team of AI agents, on your Mac, Windows or Linux. Agents that talk in channels, write code, review each other and use your tools, on the Claude Code, Codex, OpenCode or Pi you already have. Anything that touches the real world waits for your yes.
TypeScript agent-teamagentic-aiai-agentsai-assistantclaude-codecodexcursorelectrongrokgrok-bot-alternativelinuxlocal-firstmacosmcpmulti-agentopenclaw-alternativeopencodewindows
Tucano Pro on the site: early-access waitlist, plans and prices (#195)
Eduardo Machadobbb5a7d9f918
diff --git a/site/build.mjs b/site/build.mjsindex dfbb4a9..090f5cd 100644--- a/site/build.mjs+++ b/site/build.mjs@@ -61,10 +61,17 @@ const links = (lang, urls) => `<meta property="og:url" content="${urls[lang]}">const out = {} // dist path → htmlconst sitemap = [] // [{ urls }]+// The waitlist's anti-robot check (Cloudflare Turnstile): its public site key, for tucano.sh. The+// secret that goes with it is the worker's (`npx wrangler secret put TURNSTILE_SECRET`). To try the+// form on localhost, build with Cloudflare's test key, which lets everyone through:+// TURNSTILE_SITE_KEY=1x00000000000000000000AA node build.mjs+const TURNSTILE_SITE_KEY = process.env.TURNSTILE_SITE_KEY || '0x4AAAAAAF4S07mYq5opawzS'+if (TURNSTILE_SITE_KEY.startsWith('1x0000')) console.warn('build.mjs: the waitlist uses Turnstile\'s test key: not for tucano.sh')+// ---------- the home page: Portuguese in its head, English in its script's META.en ----------{const file = 'index.html'- const src = read(file)+ const src = read(file).replaceAll('__TURNSTILE_SITE_KEY__', TURNSTILE_SITE_KEY)const en = src.match(/en: \{\s*title: '([^']+)',\s*desc: '([^']+)',\s*og: '([^']+)'/)if (!en) throw new Error('build.mjs: META.en not found in index.html')const META = {@@ -117,9 +124,16 @@ const PAGES = [{ file: 'alternativa-openclaw.html', 'pt-BR': 'alternativa-openclaw/', en: 'en/openclaw-alternative/' },{ file: 'suporte.html', 'pt-BR': 'suporte/', en: 'en/support/' },{ file: 'privacidade.html', 'pt-BR': 'privacidade/', en: 'en/privacy/', faq: false }, // no questions: no FAQPage+ { file: 'pro.html', 'pt-BR': 'pro/', en: 'en/pro/' },]++// The home page's look and its Tucano Pro script, for the pages that ask for them (pro.html):+// one source for the styles and the waitlist form, so the two pages can't drift apart.+const home = read('index.html')+const HOME_STYLE = home.slice(home.indexOf('<style>'), home.indexOf('</style>') + '</style>'.length)+const PRO_SCRIPT = home.slice(home.lastIndexOf('<script src="https://challenges.cloudflare.com'), home.lastIndexOf('</script>') + '</script>'.length)for (const page of PAGES) {- const src = read(page.file)+ const src = read(page.file).replaceAll('<!-- STYLE:home -->', HOME_STYLE).replaceAll('<!-- SCRIPT:pro -->', PRO_SCRIPT).replaceAll('__TURNSTILE_SITE_KEY__', TURNSTILE_SITE_KEY)const urls = { 'pt-BR': `${SITE}/${page['pt-BR']}`, en: `${SITE}/${page.en}` }const faq = page.faq === false ? null : faqOf(src, page.file)const title = (lang) => lang === 'en' ? src.match(/<title data-en="([^"]+)">/)[1] : src.match(/<title[^>]*>([^<]+)<\/title>/)[1]diff --git a/site/index.html b/site/index.htmlindex 179fae7..bd3323b 100644--- a/site/index.html+++ b/site/index.html@@ -481,6 +481,94 @@ footer a:hover { color: #EDE7DA; }.rv { opacity: 1; transform: none; }.hero h1 .swoosh svg path { stroke-dashoffset: 0; }}+/* ---------- Tucano Pro (beta) ---------- */+nav.links a .beta, .beta { display: inline-grid; place-items: center; height: 18px; padding: 0 7px; margin-left: 6px; border-radius: 99px; background: var(--beak); color: var(--ink); font: 700 10.5px/1 var(--sans); letter-spacing: .04em; vertical-align: 2px; }+.hero .pro-line { margin-top: 10px; font-size: 14px; color: var(--ink-3); }+.hero .pro-line a { color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(20, 15, 5, .25); }+.hero .pro-line a:hover { color: var(--ink); text-decoration-color: currentColor; }+/* the email, alone: one field and the button, in a pill */+.join { position: relative; display: flex; align-items: center; gap: 8px; max-width: 520px; height: 60px; padding: 6px 6px 6px 22px; border-radius: 99px; background: var(--paper); box-shadow: 0 0 0 1px rgba(20,15,5,.06), 0 24px 50px -24px rgba(20, 15, 5, .45); }+.join input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: 500 16px/1 var(--sans); color: var(--ink); outline: none; }+.join input::placeholder { color: var(--ink-3); }+.join:focus-within { box-shadow: 0 0 0 2px var(--beak), 0 24px 50px -24px rgba(20, 15, 5, .45); }+.join button { flex: none; height: 48px; padding: 0 22px; border: 0; border-radius: 99px; background: var(--beak); color: var(--ink); font: 600 15.5px/1 var(--sans); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); transition: transform .2s var(--spring), background .2s; }+.join button:hover { background: #FF9A3D; transform: translateY(-1px); }+.join button[disabled] { opacity: .6; transform: none; }+.join-fine { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); max-width: 520px; }+.join-fine a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }+.join-msg { margin-top: 14px; font-size: 15px; font-weight: 600; max-width: 520px; }+.join-msg.ok { display: flex; align-items: center; gap: 10px; }+.join-msg.ok::before { content: '✓'; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 14px; }+.join-msg.no { color: var(--beak-2); }+.join .cf-turnstile { position: absolute; left: 0; top: calc(100% + 10px); }+@media (max-width: 640px) {+ .join { height: auto; flex-direction: column; align-items: stretch; padding: 8px; border-radius: 22px; }+ .join input { height: 48px; padding: 0 12px; }+ .join button { width: 100%; }+}++/* the phone at 3 a.m.: the computer is off, the team isn't */+.phone { position: relative; width: 300px; height: 600px; border-radius: 52px; padding: 12px; background: #0B0A09; box-shadow: 0 0 0 2px #2A2622, 0 60px 100px -40px rgba(0,0,0,.7); }+.phone .scr { position: relative; height: 100%; border-radius: 41px; overflow: hidden; background: radial-gradient(120% 70% at 30% 0%, #3A2A1C 0%, #16120F 55%, #0E0C0A 100%); color: #fff; }+.phone .isl { position: absolute; left: 50%; top: 11px; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #000; }+.phone .clock { margin-top: 64px; text-align: center; }+.phone .clock small { display: block; font: 600 14px/1 var(--sans); color: rgba(255,255,255,.7); }+.phone .clock b { display: block; margin-top: 6px; font: 300 78px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }+.phone .notes { position: absolute; left: 10px; right: 10px; bottom: 26px; display: flex; flex-direction: column; gap: 8px; }+.note { padding: 12px 13px; border-radius: 22px; background: rgba(245, 240, 232, .16); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); font-size: 13px; line-height: 1.35; color: #fff; animation: noteIn .55s var(--spring) both; }+@keyframes noteIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }+.note .hd { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.72); }+.note .hd svg { width: 20px; height: 20px; border-radius: 6px; }+.note .hd span { margin-left: auto; }+.note b { display: block; margin-top: 6px; font-weight: 650; }+.note p { color: rgba(255,255,255,.88); }+.note .acts { display: flex; gap: 6px; margin-top: 10px; }+.note .acts i { position: relative; flex: 1; height: 34px; border-radius: 12px; display: grid; place-items: center; font: 600 13px/1 var(--sans); font-style: normal; background: rgba(255,255,255,.14); }+.note .acts i.yes { background: #fff; color: var(--ink); }+.note .acts i.yes.tap::after { content: ''; position: absolute; inset: -5px; border-radius: 16px; border: 2px solid var(--beak); animation: nudge 1s ease-out infinite; }+.note.ok { background: rgba(31, 157, 85, .32); }+.note.gone { animation: noteOut .35s var(--ease) forwards; }+@keyframes noteOut { to { opacity: 0; transform: scale(.96); } }+.laptop { position: absolute; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); white-space: nowrap; animation: bob 6s ease-in-out infinite; font-size: 13px; }+.laptop svg { width: 34px; height: 24px; }+.laptop b { display: block; font-size: 13.5px; line-height: 1.2; }+.laptop small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.2; }+.pro { position: relative; padding: 140px 0; background: var(--ink); color: #EDE7DA; border-radius: 48px; margin: 0 12px; overflow: hidden; }+.pro .glow { position: absolute; left: -200px; bottom: -260px; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 140, 36, .2), transparent 65%); pointer-events: none; }+.pro .grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 60px; align-items: center; }+.pro .eyebrow { color: #CFC6B8; }+.pro .h2 em { color: var(--beak); }+.pro .lead { color: #A39A8E; margin-top: 22px; }+.pro .join { margin-top: 38px; }+.pro .join-fine { color: #8C8478; }+.pro .join-msg.ok { color: #EDE7DA; }+.pro .stage { position: relative; display: grid; place-items: center; }+.profacts { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 640px; }+.profacts div { padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,.04); font-size: 14px; color: #A39A8E; line-height: 1.45; }+.profacts b { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }+.plans3 small { display: inline-grid; place-items: center; height: 20px; padding: 0 8px; margin-bottom: 10px; border-radius: 99px; background: rgba(255,255,255,.08); color: #CFC6B8; font: 700 10.5px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; }+.plans3 .on { background: rgba(255, 140, 36, .12); box-shadow: inset 0 0 0 1px rgba(255, 140, 36, .35); }+.plans3 .on small { background: var(--beak); color: var(--ink); }+.plans3 .price { display: block; margin-top: 10px; font: 700 20px/1 var(--display); letter-spacing: -.02em; color: #fff; }+.plans3 .price small { all: unset; font: 500 13px/1 var(--sans); color: #A39A8E; letter-spacing: 0; }+.plans-link { display: inline-block; margin-top: 18px; color: #EDE7DA; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(237, 231, 218, .3); }+.plans-link:hover { text-decoration-color: currentColor; }+@media (max-width: 1080px) { .pro .grid { grid-template-columns: minmax(0, 1fr); gap: 70px; } }+@media (max-width: 640px) { .pro { border-radius: 30px; margin: 0 6px; padding: 90px 0; } .profacts { grid-template-columns: 1fr; } .phone { transform: scale(.88); } }+/* the Pro, where the page opens */+.news { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 5px 0 5px; border-radius: 99px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 12px 26px -16px rgba(40, 25, 5, .4); text-decoration: none; font: 600 14px/1 var(--sans); color: var(--ink); transition: transform .2s var(--spring), box-shadow .2s; }+.news:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--ink-3), 0 16px 30px -16px rgba(40, 25, 5, .45); }+.news .beta { margin: 0; height: 28px; padding: 0 10px; font-size: 11px; vertical-align: 0; }+.news .go { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--ink); color: var(--cream); font-size: 13px; }+.hero .news + .eyebrow { margin-top: 22px; display: flex; }+.btn.pro-btn { gap: 8px; background: var(--ink); color: var(--cream); }+.btn.pro-btn .beta { margin: 0; vertical-align: 0; }+.btn.pro-btn svg { width: 18px; height: 18px; }+.hero-join { flex-basis: 100%; }+.hero-join .join { margin-top: 4px; animation: rise .45s var(--ease) both; }+.hero-join .join-fine { margin-top: 10px; }+@media (max-width: 640px) { .news { padding: 0 16px 0 5px; font-size: 13.5px; } .news .go { display: none; } .news::after { content: "→"; } }+.join .ts { position: absolute; left: 0; top: calc(100% + 10px); z-index: 3; }</style><!-- Analytics (PostHog), only on tucano.sh. Nothing is stored in the visitor's browser(persistence: memory): no cookies, so no cookie banner. -->@@ -526,6 +614,7 @@ if (/(^|\.)tucano\.sh$/.test(location.hostname)) {<a href="#faz"><span lang="pt-BR">O que faz</span><span lang="en">What it does</span></a><a href="#regras"><span lang="pt-BR">Suas regras</span><span lang="en">Your rules</span></a><a href="#tuca"><span lang="pt-BR">O Tuca</span><span lang="en">Meet Tuca</span></a>+ <a href="#pro">Pro<span class="beta">BETA</span></a><a href="#perguntas"><span lang="pt-BR">Perguntas</span><span lang="en">FAQ</span></a></nav><div class="right">@@ -542,12 +631,23 @@ if (/(^|\.)tucano\.sh$/.test(location.hostname)) {<section class="hero"><div class="wrap hero__grid"><div>+ <a class="news rv" href="#pro" data-pro-where="pill"><span class="beta">BETA</span><span lang="pt-BR">Tucano Pro: seu time na nuvem</span><span lang="en">Tucano Pro: your team in the cloud</span><span class="go"><span lang="pt-BR">Entrar na lista →</span><span lang="en">Join the waitlist →</span></span></a><div class="eyebrow rv"><span lang="pt-BR">Grátis, open source, no Mac, no Linux e no Windows</span><span lang="en">Free, open source, on Mac, Linux and Windows</span></div><h1 class="display rv"><span lang="pt-BR">Seu time de agentes de IA. </span><span lang="en">Your AI agent team. </span><span class="swoosh"><span lang="pt-BR">Suas regras.</span><span lang="en">Your rules.</span><svg viewBox="0 0 300 30" preserveAspectRatio="none"><path pathLength="1" d="M4 22 C 80 6, 200 4, 296 14" stroke="#FF8C24" stroke-width="9" stroke-linecap="round" fill="none"/></svg></span></h1><p class="lead rv"><span lang="pt-BR">Agentes que conversam em canais, programam, revisam um ao outro e usam as ferramentas do seu time. Eles fazem o trabalho; o que mexe no mundo espera o seu sim.</span><span lang="en">Agents that talk in channels, write code, review each other and use your team’s tools. They do the work; anything that touches the real world waits for your yes.</span></p><div class="actions rv"><a class="btn btn--beak" data-dl href="https://github.com/eduwxyz/tucano/releases/latest/download/tucano-mac-arm64.dmg"><span lang="pt-BR">Baixar pro Mac</span><span lang="en">Download for Mac</span></a>+ <button type="button" class="btn pro-btn" data-pro-open aria-expanded="false"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M17.5 19a4.5 4.5 0 0 0 .5-8.97A6 6 0 0 0 6.34 9.5 4.75 4.75 0 0 0 6.75 19z"/></svg><span lang="pt-BR">Tucano Pro, na nuvem</span><span lang="en">Tucano Pro, in the cloud</span><span class="beta">BETA</span></button><p class="also"><span lang="pt-BR">Também pra </span><span lang="en">Also for </span><a data-dl data-os="windows" href="https://github.com/eduwxyz/tucano/releases/latest/download/tucano-win-x64.exe">Windows</a><span lang="pt-BR"> e </span><span lang="en"> and </span><a data-dl data-os="linux" href="https://github.com/eduwxyz/tucano/releases/latest/download/tucano-linux-amd64.deb">Linux</a></p>+ <div class="hero-join" hidden><form class="join" novalidate>+ <input type="email" name="email" autocomplete="email" aria-label="E-mail" required>+ <input type="text" name="website" tabindex="-1" autocomplete="off" aria-hidden="true" style="position:absolute;left:-10000px;width:1px;height:1px">+ <button type="submit"><span lang="pt-BR">Entrar na lista</span><span lang="en">Join the waitlist</span></button>+ <div class="ts"></div>+</form>+<p class="join-msg" hidden></p>+<p class="join-fine"><span lang="pt-BR">Acesso antecipado, pago e com vagas limitadas: quando chegar a sua vez, o convite traz o link pra assinar. 7 dias pra desistir com reembolso. Ao entrar, você concorda com os <a href="/pro/#termos">termos do beta</a> e a <a href="/privacidade/">privacidade</a>.</span><span lang="en">Paid early access, with limited spots: when it's your turn, the invite comes with the link to subscribe. 7 days to cancel for a full refund. By joining, you agree to the <a href="/en/pro/#termos">beta terms</a> and the <a href="/en/privacy/">privacy policy</a>.</span></p>+</div><div class="cmd"><code><b>curl</b> -fsSL <span>…/releases/latest/download/</span>install.sh | sh</code><button class="copy" data-copy="curl -fsSL https://github.com/eduwxyz/tucano/releases/latest/download/install.sh | sh">Copiar</button></div><a class="btn btn--ghost" href="#ao-vivo"><span lang="pt-BR">Ver ao vivo ↓</span><span lang="en">Watch it live ↓</span></a></div>@@ -772,6 +872,38 @@ if (/(^|\.)tucano\.sh$/.test(location.hostname)) {</div></section>+<!-- ============ Tucano Pro (beta) ============ -->+<section class="pro" id="pro">+ <div class="glow" aria-hidden="true"></div>+ <div class="stars" id="proStars" aria-hidden="true"></div>+ <div class="wrap grid">+ <div class="rv">+ <div class="eyebrow"><span lang="pt-BR">Tucano Pro · beta</span><span lang="en">Tucano Pro · beta</span></div>+ <h2 class="h2" style="margin-top:18px"><span lang="pt-BR">Feche o notebook. <em>O time continua.</em></span><span lang="en">Close the laptop. <em>The team keeps going.</em></span></h2>+ <p class="lead"><span lang="pt-BR">No Tucano Pro, o seu Tucano roda na nuvem, 24 horas. Use a assinatura de IA que você já tem, ou deixe a IA com a gente. Sem instalar nada: você usa no navegador ou no iPhone, de qualquer lugar.</span><span lang="en">With Tucano Pro, your Tucano runs in the cloud, around the clock. Use the AI subscription you already have, or leave the AI to us. Nothing to install: use it in the browser or on your iPhone, from anywhere.</span></p>+ <form class="join" novalidate>+ <input type="email" name="email" autocomplete="email" aria-label="E-mail" required>+ <input type="text" name="website" tabindex="-1" autocomplete="off" aria-hidden="true" style="position:absolute;left:-10000px;width:1px;height:1px">+ <button type="submit"><span lang="pt-BR">Entrar na lista</span><span lang="en">Join the waitlist</span></button>+ <div class="ts"></div>+</form>+<p class="join-msg" hidden></p>+<p class="join-fine"><span lang="pt-BR">Acesso antecipado, pago e com vagas limitadas: quando chegar a sua vez, o convite traz o link pra assinar. 7 dias pra desistir com reembolso. Ao entrar, você concorda com os <a href="/pro/#termos">termos do beta</a> e a <a href="/privacidade/">privacidade</a>.</span><span lang="en">Paid early access, with limited spots: when it's your turn, the invite comes with the link to subscribe. 7 days to cancel for a full refund. By joining, you agree to the <a href="/en/pro/#termos">beta terms</a> and the <a href="/en/privacy/">privacy policy</a>.</span></p>++ <div class="profacts plans3">+ <div><small><span lang="pt-BR">Grátis</span><span lang="en">Free</span></small><b><span lang="pt-BR">No seu computador</span><span lang="en">On your computer</span></b><span lang="pt-BR">O Tucano de sempre, com a sua IA.</span><span lang="en">The Tucano you know, with your AI.</span><span class="price"><span lang="pt-BR">R$ 0<small>/mês</small></span><span lang="en">US$0<small>/mo</small></span></span></div>+ <div><small>Beta</small><b><span lang="pt-BR">Na nuvem, com a sua IA</span><span lang="en">In the cloud, with your AI</span></b><span lang="pt-BR">Claude, ChatGPT, Gemini e outros: você conecta a que já paga.</span><span lang="en">Claude, ChatGPT, Gemini and more: connect the one you pay for.</span><span class="price"><span lang="pt-BR">R$ 79<small>/mês</small></span><span lang="en">US$15<small>/mo</small></span></span></div>+ <div class="on"><small>Beta</small><b><span lang="pt-BR">Na nuvem, com a IA inclusa</span><span lang="en">In the cloud, AI included</span></b><span lang="pt-BR">Nada pra configurar: abre e usa.</span><span lang="en">Nothing to set up: open it and go.</span><span class="price"><span lang="pt-BR">R$ 169<small>/mês</small></span><span lang="en">US$32<small>/mo</small></span></span></div>+ </div>+ <a class="plans-link" href="/pro/#planos" data-en-href="/en/pro/#planos" data-pro-where="plans"><span lang="pt-BR">Ver os planos em detalhe →</span><span lang="en">See the plans in detail →</span></a>+ </div>+ <div class="stage rv" aria-hidden="true">+ <div class="phone"><div class="scr"><div class="isl"></div><div class="clock"><small><span lang="pt-BR">quarta-feira, 12 de novembro</span><span lang="en">Wednesday, November 12</span></small><b id="proClock">3:12</b></div><div class="notes" id="proNotes"></div></div></div>+ <div class="laptop" style="left:-12%;top:-3%"><svg viewBox="0 0 34 24"><rect x="4" y="16" width="26" height="3" rx="1.5" fill="#141210"/><rect x="6" y="13" width="22" height="3" rx="1" fill="#8C8478"/></svg><div><b><span lang="pt-BR">Seu notebook</span><span lang="en">Your laptop</span></b><small><span lang="pt-BR">fechado desde 23:40</span><span lang="en">closed since 11:40 p.m.</span></small></div></div>+ </div>+ </div>+</section>+<!-- ============ install ============ --><section class="install" id="instalar"><div class="wrap grid">@@ -796,7 +928,8 @@ if (/(^|\.)tucano\.sh$/.test(location.hostname)) {<div class="wrap grid"><div class="rv"><div class="eyebrow"><span lang="pt-BR">Perguntas</span><span lang="en">FAQ</span></div><h2 class="h2" style="margin-top:18px"><span lang="pt-BR">O que todo mundo <em>pergunta primeiro.</em></span><span lang="en">What everyone <em>asks first.</em></span></h2></div><div class="qa rv">- <details open><summary><span lang="pt-BR">Quanto custa?</span><span lang="en">How much does it cost?</span></summary><p><span lang="pt-BR">Nada. O Tucano é grátis, sem recurso trancado. Você usa o plano do Claude ou do ChatGPT que já paga, os seus provedores, ou o gateway da empresa.</span><span lang="en">Nothing. Tucano is free, with no locked features. You use the Claude or ChatGPT plan you already pay for, your own providers, or your company’s gateway.</span></p></details>+ <details open><summary><span lang="pt-BR">Quanto custa?</span><span lang="en">How much does it cost?</span></summary><p><span lang="pt-BR">Nada. O Tucano é grátis, sem recurso trancado. Você usa o plano do Claude ou do ChatGPT que já paga, os seus provedores, ou o gateway da empresa. Se preferir na nuvem, sem deixar o computador ligado, o <a href="/pro/">Tucano Pro</a> custa R$ 79/mês com a sua IA, ou R$ 169/mês com a IA inclusa.</span><span lang="en">Nothing. Tucano is free, with no locked features. You use the Claude or ChatGPT plan you already pay for, your own providers, or your company’s gateway. If you’d rather run it in the cloud, without keeping your computer on, <a href="/en/pro/">Tucano Pro</a> is US$15/mo with your AI, or US$32/mo with the AI included.</span></p></details>+ <details><summary><span lang="pt-BR">E se eu não quiser instalar nada?</span><span lang="en">What if I don’t want to install anything?</span></summary><p><span lang="pt-BR">Entre na lista do <a href="#pro">Tucano Pro</a>, em beta: a gente hospeda o seu Tucano, e você usa a assinatura de IA que já tem ou a IA inclusa. No navegador ou no iPhone, de qualquer lugar.</span><span lang="en">Join the waitlist for <a href="#pro">Tucano Pro</a>, in beta: we host your Tucano, and you use the AI subscription you already have or the AI included. In the browser or on your iPhone, from anywhere.</span></p></details><details><summary><span lang="pt-BR">Preciso de chave de API?</span><span lang="en">Do I need an API key?</span></summary><p><span lang="pt-BR">Não. Ele roda o Claude Code, o Codex, o Cursor, o Gemini, o Grok, o OpenCode ou o Pi já configurados no seu computador. O app nunca vê nem guarda a sua senha.</span><span lang="en">No. It runs Claude Code, Codex, Cursor, Gemini, Grok, OpenCode or Pi as they’re already set up on your computer. The app never sees or stores your password.</span></p></details><details><summary><span lang="pt-BR">É seguro deixar agentes mexendo nas coisas?</span><span lang="en">Is it safe to let agents touch things?</span></summary><p><span lang="pt-BR">Cada agente só usa o que recebeu, ações sensíveis pedem o seu sim (amarrado àquela ação exata) e os comandos rodam num Linux isolado, a não ser que você escolha dar o seu computador.</span><span lang="en">Each agent only uses what it was given, sensitive actions need your yes (tied to that exact action), and commands run on an isolated Linux machine, unless you choose to hand over your own computer.</span></p></details><details><summary><span lang="pt-BR">Onde ficam os meus dados?</span><span lang="en">Where does my data live?</span></summary><p><span lang="pt-BR">No seu computador: conversas, memória, arquivos e logins. O modelo recebe só o que os agentes mandam pra ele, pelo caminho que o seu harness já usa.</span><span lang="en">On your computer: conversations, memory, files and logins. The model only receives what the agents send it, through the path your harness already uses.</span></p></details>@@ -1187,5 +1320,104 @@ setLang(LANG)document.querySelectorAll('main > section, section.end').forEach((s) => io.observe(s))})()</script>+<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit" async defer></script>+<script>+// ---------- Tucano Pro: the waitlist (only the email) and the phone at 3 a.m. ----------+;(() => {+ const T = (pt, en) => (document.documentElement.lang === 'en' ? en : pt)+ // The anti-robot check (Cloudflare Turnstile), only when a form is sent: invisible unless Cloudflare asks.+ const SITEKEY = '__TURNSTILE_SITE_KEY__'+ const humanToken = (form) =>+ new Promise((resolve) => {+ const box = form.querySelector('.ts')+ if (!window.turnstile || !box) return resolve('')+ box.innerHTML = ''+ const done = setTimeout(() => resolve(''), 20000)+ window.turnstile.render(box, { sitekey: SITEKEY, appearance: 'interaction-only', callback: (t) => (clearTimeout(done), resolve(t)), 'error-callback': () => (clearTimeout(done), resolve('')) })+ })+ document.querySelectorAll('form.join input[type=email]').forEach((i) => (i.placeholder = T('[email protected]', '[email protected]')))+ // The Pro where the page opens: the pill goes to the section; the button opens the email right there.+ document.querySelectorAll('[data-pro-where]').forEach((a) => a.addEventListener('click', () => window.posthog?.capture?.('pro_hero_click', { where: a.dataset.proWhere })))+ document.querySelectorAll('[data-pro-open]').forEach((b) => b.addEventListener('click', () => {+ const box = document.querySelector('.hero-join')+ box.hidden = false+ b.setAttribute('aria-expanded', 'true')+ box.querySelector('input[type=email]').focus()+ window.posthog?.capture?.('pro_hero_click', { where: 'button' })+ }))+ const stars = document.getElementById('proStars')+ if (stars) for (let i = 0; i < 40; i++) { const e = document.createElement('i'); e.style.left = Math.random() * 100 + '%'; e.style.top = Math.random() * 100 + '%'; e.style.animationDelay = -Math.random() * 3 + 's'; stars.append(e) }+ document.querySelectorAll('form.join').forEach((form) => {+ const msg = form.parentElement.querySelector('.join-msg')+ const show = (kind, text) => { msg.className = `join-msg ${kind}`; msg.textContent = text; msg.hidden = false }+ form.addEventListener('submit', async (e) => {+ e.preventDefault()+ const email = form.email.value.trim()+ if (!/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(email)) return show('no', T('Confira o seu e-mail.', 'Check your email.'))+ const button = form.querySelector('button')+ button.disabled = true+ try {+ const p = new URLSearchParams(location.search)+ const token = await humanToken(form)+ const r = await fetch('/api/lista', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ email, consent: true, lang: document.documentElement.lang === 'en' ? 'en' : 'pt', source: p.get('ref') || p.get('utm_source') || 'home', website: form.website?.value || '', turnstile: token }) })+ const out = await r.json().catch(() => ({}))+ if (!r.ok) throw new Error(out.error || '')+ form.hidden = true+ window.posthog?.capture?.('pro_waitlist_joined', { where: form.closest('.hero') ? 'hero' : 'section', lang: document.documentElement.lang })+ show('ok', T('Pronto, você está na lista. A gente te chama por e-mail.', "Done, you're on the list. We'll email you."))+ } catch (err) {+ show('no', err.message || T('Não deu pra salvar agora. Tente de novo em um minuto.', "Couldn't save it right now. Try again in a minute."))+ window.turnstile?.reset()+ } finally {+ button.disabled = false+ }+ })+ })++ // The phone: a trigger at night, the agent asks, you say yes from bed, it ships. Plays when seen.+ const notes = document.getElementById('proNotes')+ if (!notes) return+ const clock = document.getElementById('proClock')+ const still = /[?&]shot/.test(location.search) || matchMedia('(prefers-reduced-motion: reduce)').matches+ const wait = (ms) => new Promise((r) => setTimeout(r, ms))+ const icon = '<svg><use href="#mark"/></svg>'+ const note = (time, title, body, extra = '') => {+ const n = document.createElement('div')+ n.className = 'note'+ n.innerHTML = `<div class="hd">${icon}TUCANO<span>${time}</span></div><b>${title}</b><p>${body}</p>${extra}`+ notes.append(n)+ return n+ }+ const steps = () => [+ ['03:12', () => note(T('agora', 'now'), 'Leo', T('Erro novo no Pix. Achei a causa e escrevi a correção.', 'New error in Apple Pay. Found the cause and wrote the fix.'))],+ ['03:12', () => note(T('agora', 'now'), T('Leo precisa do seu sim', 'Leo needs your yes'), T('Subir a correção do Pix pra produção?', 'Ship the Apple Pay fix to production?'), `<div class="acts"><i>${T('Recusar', 'Decline')}</i><i class="yes">${T('Aprovar', 'Approve')}</i></div>`)],+ ]+ async function play() {+ for (;;) {+ notes.innerHTML = ''+ clock.textContent = '3:12'+ const [first, ask] = steps()+ if (still) {+ first[1]()+ const n = note(T('agora', 'now'), 'Leo', T('No ar. Zero erros desde 03:14.', 'Live. Zero errors since 3:14.'))+ n.classList.add('ok')+ return+ }+ await wait(900); first[1]()+ await wait(1800); const a = ask[1]()+ await wait(1400); a.querySelector('.yes').classList.add('tap')+ await wait(1600)+ a.classList.add('ok'); a.querySelector('.acts').outerHTML = `<p style="margin-top:8px;font-weight:600">${T('Aprovado por você', 'Approved by you')}</p>`+ await wait(1700); clock.textContent = '3:14'+ note(T('agora', 'now'), 'Leo', T('No ar. Zero erros desde 03:14.', 'Live. Zero errors since 3:14.')).classList.add('ok')+ await wait(4200)+ for (const n of notes.children) n.classList.add('gone')+ await wait(500)+ }+ }+ const io = new IntersectionObserver((es) => { if (es.some((e) => e.isIntersecting)) { io.disconnect(); play() } }, { threshold: .3 })+ io.observe(notes)+})()+</script></body></html>diff --git a/site/privacidade.html b/site/privacidade.htmlindex 640888a..95c3f2f 100644--- a/site/privacidade.html+++ b/site/privacidade.html@@ -59,7 +59,7 @@<main><div class="hero">- <div class="eyebrow"><span lang="pt-BR">Política de privacidade · última atualização: 7 de novembro de 2026</span><span lang="en">Privacy policy · last updated: November 7, 2026</span></div>+ <div class="eyebrow"><span lang="pt-BR">Política de privacidade · última atualização: 8 de novembro de 2026</span><span lang="en">Privacy policy · last updated: November 8, 2026</span></div><h1><span lang="pt-BR">Seus dados, <em>em palavras simples.</em></span><span lang="en">Your data, <em>in plain words.</em></span></h1><p class="answer"><span lang="pt-BR">O Tucano roda de três jeitos, e <b>onde ficam os seus dados depende de qual você usa</b>. Esta página explica cada um, o que o app do iPhone guarda, quem é o responsável e como pedir uma cópia ou a exclusão dos seus dados.</span><span lang="en">Tucano runs in three ways, and <b>where your data lives depends on which one you use</b>. This page explains each one, what the iPhone app keeps, who is responsible and how to ask for a copy or deletion of your data.</span></p></div>@@ -99,6 +99,8 @@<h3><span lang="pt-BR">Para quem vai</span><span lang="en">Who it goes to</span></h3><p><span lang="pt-BR">Pra gerar cada resposta, o conteúdo do pedido (a mensagem, o contexto que o agente usa e o que ele lê nos conectores) vai pra <b>Anthropic</b> ou pra <b>OpenAI</b>, passando pelo meu gateway. Veja as políticas delas: <a href="https://www.anthropic.com/legal/privacy">Anthropic</a> e <a href="https://openai.com/policies/privacy-policy/">OpenAI</a>. O servidor fica na <b>Hetzner</b> (<a href="https://www.hetzner.com/legal/privacy-policy/">política</a>).</span><span lang="en">To produce each answer, the request's content (the message, the context the agent uses and what it reads in the connectors) goes to <b>Anthropic</b> or <b>OpenAI</b>, through my gateway. See their policies: <a href="https://www.anthropic.com/legal/privacy">Anthropic</a> and <a href="https://openai.com/policies/privacy-policy/">OpenAI</a>. The server is at <b>Hetzner</b> (<a href="https://www.hetzner.com/legal/privacy-policy/">policy</a>).</span></p><p><span lang="pt-BR">Isso quer dizer que os seus dados saem do Brasil: o servidor fica na Alemanha, e a Anthropic e a OpenAI são empresas dos Estados Unidos.</span><span lang="en">This means your data leaves Brazil: the server is in Germany, and Anthropic and OpenAI are United States companies.</span></p>+ <h3><span lang="pt-BR">O pagamento</span><span lang="en">Payment</span></h3>+ <p><span lang="pt-BR">A assinatura do Tucano Pro é paga no <b>Stripe</b> (<a href="https://stripe.com/privacy">política</a>). Eu recebo o seu nome, e-mail, país e a situação dos pagamentos; o número do cartão fica só com o Stripe.</span><span lang="en">The Tucano Pro subscription is paid through <b>Stripe</b> (<a href="https://stripe.com/privacy">policy</a>). I receive your name, email, country and payment status; the card number stays with Stripe only.</span></p><h3><span lang="pt-BR">Quando é uma empresa</span><span lang="en">When it's a company</span></h3><p><span lang="pt-BR">Quando uma empresa usa o Tucano Pro com o seu time, <b>é a empresa que decide</b> sobre os dados do time (o controlador), e eu trato esses dados em nome dela (o operador). Se você usa o Tucano da sua empresa, os pedidos sobre os seus dados vão primeiro pra ela, e eu ajudo a atendê-los.</span><span lang="en">When a company uses Tucano Pro with its team, <b>the company decides</b> about its team's data (the controller), and I process that data on its behalf (the processor). If you use your company's Tucano, requests about your data go to the company first, and I help it answer them.</span></p></section>@@ -123,6 +125,9 @@<h2><span lang="pt-BR">Este site</span><span lang="en">This site</span></h2><p><span lang="pt-BR">O tucano.sh é servido pela <b>Cloudflare</b>. As fontes vêm do <b>Google Fonts</b>, que recebe o seu endereço IP ao entregá-las.</span><span lang="en">tucano.sh is served by <b>Cloudflare</b>. The fonts come from <b>Google Fonts</b>, which receives your IP address when serving them.</span></p><p><span lang="pt-BR">Só a página inicial usa o <b>PostHog</b> (servidores nos Estados Unidos) pra entender como o site é usado: páginas vistas, saídas, cliques em baixar e no GitHub, e gravações da sessão com tudo o que é digitado escondido. Nada fica guardado no seu navegador: sem cookies. As outras páginas, como esta, não usam o PostHog.</span><span lang="en">Only the home page uses <b>PostHog</b> (servers in the United States) to understand how the site is used: pages viewed, exits, clicks on download and GitHub, and session recordings with everything typed hidden. Nothing is stored in your browser: no cookies. The other pages, like this one, don't use PostHog.</span></p>+ <h3><span lang="pt-BR">A lista do beta do Tucano Pro</span><span lang="en">The Tucano Pro beta waitlist</span></h3>+ <p><span lang="pt-BR">Quem entra na lista deixa <b>só o e-mail</b>. Guardo também o idioma da página, de onde a pessoa veio (como um link de divulgação) e quando entrou. O e-mail fica no <b>Supabase</b> (servidores nos Estados Unidos, <a href="https://supabase.com/privacy">política</a>) e serve só pra mandar o convite do beta e avisos sobre ele. Nada de propaganda de terceiros, e o e-mail não é vendido nem passado adiante.</span><span lang="en">People who join the waitlist leave <b>only their email</b>. I also keep the page's language, where they came from (such as a referral link) and when they joined. The email is stored at <b>Supabase</b> (servers in the United States, <a href="https://supabase.com/privacy">policy</a>) and is used only to send the beta invite and news about it. No third-party advertising, and the email is never sold or passed on.</span></p>+ <p><span lang="pt-BR">Pra barrar robôs, o formulário usa o <b>Cloudflare Turnstile</b>, que olha sinais do navegador, sem cookies de rastreamento. Na página inicial, o PostHog conta os cliques no Tucano Pro e as entradas na lista, sem o e-mail.</span><span lang="en">To keep robots out, the form uses <b>Cloudflare Turnstile</b>, which looks at browser signals, with no tracking cookies. On the home page, PostHog counts clicks on Tucano Pro and sign-ups, without the email.</span></p></section><section class="prose">@@ -130,12 +135,14 @@<ul><li><span lang="pt-BR"><b>Pra prestar o serviço</b> (execução de contrato): guardar o seu Tucano Pro e fazer os agentes funcionarem.</span><span lang="en"><b>To provide the service</b> (performance of a contract): keeping your Tucano Pro and making the agents work.</span></li><li><span lang="pt-BR"><b>Com o seu consentimento:</b> mandar o conteúdo dos pedidos aos provedores de IA, que o app do iPhone pede antes do primeiro uso, e os conectores que você liga. Você pode revogar quando quiser.</span><span lang="en"><b>With your consent:</b> sending the content of requests to the AI providers, which the iPhone app asks for before first use, and the connectors you turn on. You can withdraw it at any time.</span></li>+ <li><span lang="pt-BR"><b>Com o seu consentimento,</b> também: o e-mail da lista do beta, que você deixa ao entrar nela.</span><span lang="en"><b>With your consent,</b> too: the beta waitlist email, which you leave when you join it.</span></li><li><span lang="pt-BR"><b>Legítimo interesse:</b> manter o serviço seguro, como bloquear quem tenta adivinhar códigos de acesso.</span><span lang="en"><b>Legitimate interest:</b> keeping the service secure, such as locking out whoever tries to guess access codes.</span></li></ul><h2><span lang="pt-BR">Por quanto tempo</span><span lang="en">For how long</span></h2><ul><li><span lang="pt-BR"><b>Tucano Pro:</b> os dados ficam enquanto a conta existir.</span><span lang="en"><b>Tucano Pro:</b> the data is kept while the account exists.</span></li>+ <li><span lang="pt-BR"><b>Lista do beta:</b> o e-mail fica até o beta acabar, ou até você pedir pra sair por <a href="mailto:[email protected]">[email protected]</a>. Aí é apagado.</span><span lang="en"><b>Beta waitlist:</b> the email is kept until the beta ends, or until you ask to leave at <a href="mailto:[email protected]">[email protected]</a>. Then it's deleted.</span></li><li><span lang="pt-BR"><b>Quem sai pelo app</b> (Sair deste Tucano): as conversas diretas, as memórias e as rotinas da pessoa são apagadas na hora.</span><span lang="en"><b>Someone who leaves from the app</b> (Leave this Tucano): their direct messages, memories and routines are deleted at once.</span></li><li><span lang="pt-BR"><b>Quem é removido por um admin:</b> o que era só da pessoa fica guardado por 30 dias, caso ela volte, e depois é apagado.</span><span lang="en"><b>Someone removed by an admin:</b> what was theirs alone is kept for 30 days, in case they come back, and then deleted.</span></li><li><!-- CONFIRMAR: prazo --><span lang="pt-BR"><b>Ao cancelar o Tucano Pro:</b> peça a exclusão por <a href="mailto:[email protected]">[email protected]</a>. O container e os dados dele são apagados em até 30 dias depois do pedido.</span><span lang="en"><b>When you cancel Tucano Pro:</b> ask for deletion at <a href="mailto:[email protected]">[email protected]</a>. The container and its data are deleted within 30 days of the request.</span></li>diff --git a/site/pro.html b/site/pro.htmlnew file mode 100644index 0000000..8c4adf3--- /dev/null+++ b/site/pro.html@@ -0,0 +1,278 @@+<!doctype html>+<html lang="pt-BR">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<!-- build.mjs publishes this page twice: as is at /pro/, and with the data-en texts at /en/pro/.+ Its look is the home page's: build.mjs puts index.html's <style> where STYLE:home is. -->+<title data-en="Tucano Pro · Your AI team in the cloud">Tucano Pro · Seu time de IA na nuvem</title>+<meta name="description" content="O Tucano Pro hospeda o seu Tucano: seus agentes trabalham 24 horas, com a assinatura de IA que você já tem ou com a IA inclusa, e você usa no navegador ou no iPhone. Entre na lista do beta." data-en="Tucano Pro hosts your Tucano: your agents work around the clock, with the AI subscription you already have or with the AI included, and you use it in the browser or on your iPhone. Join the beta waitlist.">+<meta property="og:title" content="Tucano Pro · Seu time de IA na nuvem" data-en="Tucano Pro · Your AI team in the cloud">+<meta property="og:description" content="Feche o notebook. O time continua. Entre na lista do beta." data-en="Close the laptop. The team keeps going. Join the beta waitlist.">+<meta property="og:image" content="https://tucano.sh/assets/brand/og.png">+<meta property="og:image:width" content="1200">+<meta property="og:image:height" content="630">+<meta property="og:type" content="website">+<meta name="twitter:card" content="summary_large_image">+<meta name="twitter:image" content="https://tucano.sh/assets/brand/og.png">+<meta name="twitter:site" content="@tucanosh">+<meta name="theme-color" content="#F3EFE6">+<link rel="icon" type="image/png" href="/assets/brand/favicon-32.png">+<link rel="apple-touch-icon" href="/assets/brand/favicon-180.png">+<link rel="preconnect" href="https://fonts.googleapis.com">+<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+<link href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,[email protected],400..800&family=Inter:opsz,[email protected],400..700&display=swap" rel="stylesheet">+<!-- STYLE:home -->+<style>+header .lang a { display: grid; place-items: center; height: 30px; min-width: 38px; padding: 0 10px; border-radius: 99px; font: 600 13px/1 var(--sans); letter-spacing: .03em; color: var(--ink-3); text-decoration: none; }+html[lang="pt-BR"] .lang a[hreflang="pt-BR"], html[lang="en"] .lang a[hreflang="en"] { background: var(--ink); color: var(--cream); }+.prohero { position: relative; padding: 150px 0 90px; overflow: hidden; }+.prohero h1 { font-size: clamp(54px, 7vw, 108px); margin-top: 26px; max-width: 980px; }+.prohero .lead { margin-top: 30px; max-width: 600px; }+.prohero .join { margin-top: 38px; }+.prohero .halo { position: absolute; right: -200px; top: -160px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, #FFE3C4 0%, rgba(255, 227, 196, 0) 68%); pointer-events: none; }+.plans { padding: 150px 0 120px; }+.plans .cards { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }+.plan { position: relative; padding: 32px; border-radius: 30px; background: var(--paper); box-shadow: 0 0 0 1px rgba(20, 15, 5, .05), 0 30px 60px -40px rgba(40, 25, 5, .35); display: flex; flex-direction: column; overflow: hidden; }+.plan .tag { align-self: flex-start; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--cream); font: 600 12.5px/1 var(--sans); color: var(--ink-2); }+.plan h3 { margin-top: 18px; font: 720 34px/1.02 var(--display); letter-spacing: -.045em; }+.plan > p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }+.plan ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }+.plan li { display: flex; gap: 12px; font-size: 15px; line-height: 1.45; }+.plan li::before { content: '✓'; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(31, 157, 85, .12); color: var(--ok); font: 800 11.5px/1 var(--sans); margin-top: 1px; }+.plan > .price { color: var(--ink); }+.plan.ink > .price { color: #fff; }+.plan .price { margin-top: 22px; font: 750 44px/1 var(--display); letter-spacing: -.045em; }+.plan .price small { font: 500 15px/1 var(--sans); letter-spacing: 0; color: var(--ink-3); margin-left: 4px; }+.plan.beak .price small { color: rgba(20, 15, 5, .6); }+.plan.ink .price small { color: #8C8478; }+.plan .foot { margin-top: auto; padding-top: 30px; font-size: 14px; color: var(--ink-3); }+.plan .foot a { color: var(--ink-2); font-weight: 600; }+.plan .logos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }+.plan .logos span { height: 30px; padding: 0 11px; border-radius: 99px; display: inline-flex; align-items: center; background: var(--cream); font: 600 12.5px/1 var(--sans); color: var(--ink-2); }+.plan.beak { background: var(--beak); }+.plan.beak .tag { background: rgba(20,15,5,.1); color: var(--ink); }+.plan.beak > p { color: rgba(20, 15, 5, .72); }+.plan.beak .logos span { background: rgba(255,253,248,.55); }+.plan.beak li::before { background: rgba(20,15,5,.1); color: var(--ink); }+.plan.beak .foot { color: rgba(20, 15, 5, .62); }+.plan.ink { background: var(--ink); color: #EDE7DA; }+.plan.ink .tag { background: var(--beak); color: var(--ink); }+.plan.ink > p { color: #A39A8E; }+.plan.ink li::before { background: rgba(255, 140, 36, .18); color: var(--beak); }+.plan.ink .foot { color: #8C8478; }+.plans .note { margin-top: 22px; font-size: 14.5px; color: var(--ink-3); }+.terms { padding: 20px 0 120px; }+.terms .grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 70px; }+.terms ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }+.terms li { padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }+.terms li b { display: block; color: var(--ink); font: 650 19px/1.3 var(--display); letter-spacing: -.02em; margin-bottom: 4px; }+.end .join { margin-top: 0; }+.end .join-fine { color: #8C8478; }+.end .join-msg.ok { color: #EDE7DA; }+@media (max-width: 1080px) { .plans .cards, .terms .grid { grid-template-columns: minmax(0, 1fr); } .terms .grid { gap: 30px; } }+@media (max-width: 640px) { .prohero { padding: 110px 0 60px; } .plan { padding: 26px; border-radius: 26px; } }+</style>+</head>+<body>+<script>+// A visitor who picked the other language on tucano.sh goes to this page in that language.+;(() => {+ let l+ try { l = localStorage.getItem('tucano-lang') } catch {}+ const other = (l === 'en' || l === 'pt-BR') && l !== document.documentElement.lang && document.querySelector(`link[rel="alternate"][hreflang="${l}"]`)+ if (other) location.replace(other.href)+})()+</script>++<svg width="0" height="0" style="position:absolute" aria-hidden="true">+ <defs>+ <clipPath id="mark-clip"><rect width="100" height="100" rx="28"/></clipPath>+ <symbol id="mark" viewBox="0 0 100 100">+ <g clip-path="url(#mark-clip)">+ <rect width="100" height="100" fill="#F1ECE2"/>+ <circle cx="27" cy="73" r="48" fill="#121212"/>+ <circle cx="38" cy="47" r="14" fill="#fff"/>+ <circle cx="43" cy="47" r="5.5" fill="#121212"/>+ <path d="M53 24 Q84 25 93 44 L96 57 L53 57 Z" fill="#FF8C24"/>+ <path d="M53 57 L95 57 Q86 70 53 71 Z" fill="#E5531F"/>+ <path d="M83 57 A9 12 0 0 1 97 47 L97 57 Z" fill="#121212"/>+ </g>+ </symbol>+ </defs>+</svg>++<header class="top" id="top">+ <div class="wrap">+ <a class="brand" href="/" data-en-href="/en/"><svg><use href="#mark"/></svg><span>tucano</span></a>+ <nav class="links">+ <a href="#pro"><span lang="pt-BR">Na nuvem</span><span lang="en">In the cloud</span></a>+ <a href="#planos"><span lang="pt-BR">Planos</span><span lang="en">Plans</span></a>+ <a href="#termos"><span lang="pt-BR">Termos do beta</span><span lang="en">Beta terms</span></a>+ <a href="#perguntas"><span lang="pt-BR">Perguntas</span><span lang="en">FAQ</span></a>+ </nav>+ <div class="right">+ <div class="lang" role="group" aria-label="Idioma / Language"><a class="langlink" href="/pro/" hreflang="pt-BR">PT</a><a class="langlink" href="/en/pro/" hreflang="en">EN</a></div>+ <a class="btn btn--ghost" href="/" data-en-href="/en/"><span lang="pt-BR">Baixar o Tucano</span><span lang="en">Get Tucano</span></a>+ <a class="btn btn--beak" href="#lista"><span lang="pt-BR">Entrar na lista</span><span lang="en">Join the waitlist</span></a>+ </div>+ </div>+</header>++<main>+<section class="hero prohero" id="lista">+ <div class="halo" aria-hidden="true"></div>+ <div class="wrap" style="position:relative">+ <div class="eyebrow rv"><span lang="pt-BR">Tucano Pro · beta</span><span lang="en">Tucano Pro · beta</span></div>+ <h1 class="display rv"><span lang="pt-BR">Seu time de IA, </span><span lang="en">Your AI team, </span><span class="swoosh"><span lang="pt-BR">sempre ligado.</span><span lang="en">always on.</span><svg viewBox="0 0 300 30" preserveAspectRatio="none"><path pathLength="1" d="M4 22 C 80 6, 200 4, 296 14" stroke="#FF8C24" stroke-width="9" stroke-linecap="round" fill="none"/></svg></span></h1>+ <p class="lead rv"><span lang="pt-BR">A gente hospeda o seu Tucano. Seus agentes trabalham 24 horas, com a assinatura de IA que você já tem ou com a IA inclusa, e você usa no navegador ou no iPhone, de qualquer lugar. Sem instalar nada.</span><span lang="en">We host your Tucano. Your agents work around the clock, with the AI subscription you already have or with the AI included, and you use it in the browser or on your iPhone, from anywhere. Nothing to install.</span></p>+ <div class="rv"><form class="join" novalidate>+ <input type="email" name="email" autocomplete="email" aria-label="E-mail" required>+ <input type="text" name="website" tabindex="-1" autocomplete="off" aria-hidden="true" style="position:absolute;left:-10000px;width:1px;height:1px">+ <button type="submit"><span lang="pt-BR">Entrar na lista</span><span lang="en">Join the waitlist</span></button>+ <div class="ts"></div>+</form>+<p class="join-msg" hidden></p>+<p class="join-fine"><span lang="pt-BR">Acesso antecipado, pago e com vagas limitadas: quando chegar a sua vez, o convite traz o link pra assinar. 7 dias pra desistir com reembolso. Ao entrar, você concorda com os <a href="#termos">termos do beta</a> e a <a href="/privacidade/">privacidade</a>.</span><span lang="en">Paid early access, with limited spots: when it's your turn, the invite comes with the link to subscribe. 7 days to cancel for a full refund. By joining, you agree to the <a href="#termos">beta terms</a> and the <a href="/en/privacy/">privacy policy</a>.</span></p>+</div>+ </div>+</section>++<!-- ============ Tucano Pro (beta) ============ -->+<section class="pro" id="pro">+ <div class="glow" aria-hidden="true"></div>+ <div class="stars" id="proStars" aria-hidden="true"></div>+ <div class="wrap grid">+ <div class="rv">+ <div class="eyebrow"><span lang="pt-BR">Tucano Pro · beta</span><span lang="en">Tucano Pro · beta</span></div>+ <h2 class="h2" style="margin-top:18px"><span lang="pt-BR">Feche o notebook. <em>O time continua.</em></span><span lang="en">Close the laptop. <em>The team keeps going.</em></span></h2>+ <p class="lead"><span lang="pt-BR">No Tucano Pro, o seu Tucano roda na nuvem, 24 horas. Use a assinatura de IA que você já tem, ou deixe a IA com a gente. Sem instalar nada: você usa no navegador ou no iPhone, de qualquer lugar.</span><span lang="en">With Tucano Pro, your Tucano runs in the cloud, around the clock. Use the AI subscription you already have, or leave the AI to us. Nothing to install: use it in the browser or on your iPhone, from anywhere.</span></p>+ <div class="profacts">+ <div><b><span lang="pt-BR">Sua IA ou a nossa</span><span lang="en">Your AI or ours</span></b><span lang="pt-BR">Claude Code, Codex, Gemini e os outros, ou a IA inclusa.</span><span lang="en">Claude Code, Codex, Gemini and the rest, or the AI included.</span></div>+ <div><b><span lang="pt-BR">Sempre ligado</span><span lang="en">Always on</span></b><span lang="pt-BR">Rotinas e gatilhos rodam de madrugada.</span><span lang="en">Routines and triggers run overnight.</span></div>+ <div><b><span lang="pt-BR">Só seu</span><span lang="en">Yours alone</span></b><span lang="pt-BR">Um Tucano isolado, com os seus dados.</span><span lang="en">An isolated Tucano, with your data.</span></div>+ </div>+ </div>+ <div class="stage rv" aria-hidden="true">+ <div class="phone"><div class="scr"><div class="isl"></div><div class="clock"><small><span lang="pt-BR">quarta-feira, 12 de novembro</span><span lang="en">Wednesday, November 12</span></small><b id="proClock">3:12</b></div><div class="notes" id="proNotes"></div></div></div>+ <div class="laptop" style="left:-12%;top:-3%"><svg viewBox="0 0 34 24"><rect x="4" y="16" width="26" height="3" rx="1.5" fill="#141210"/><rect x="6" y="13" width="22" height="3" rx="1" fill="#8C8478"/></svg><div><b><span lang="pt-BR">Seu notebook</span><span lang="en">Your laptop</span></b><small><span lang="pt-BR">fechado desde 23:40</span><span lang="en">closed since 11:40 p.m.</span></small></div></div>+ </div>+ </div>+</section>+++<section class="plans" id="planos">+ <div class="wrap">+ <div class="rv" style="max-width:760px">+ <div class="eyebrow"><span lang="pt-BR">Planos</span><span lang="en">Plans</span></div>+ <h2 class="h2" style="margin-top:18px"><span lang="pt-BR">Do seu computador <em>à nuvem.</em></span><span lang="en">From your computer <em>to the cloud.</em></span></h2>+ </div>+ <div class="cards">+ <article class="plan rv">+ <span class="tag"><span lang="pt-BR">Grátis · open source</span><span lang="en">Free · open source</span></span>+ <h3><span lang="pt-BR">No seu computador</span><span lang="en">On your computer</span></h3>+ <p><span lang="pt-BR">O Tucano de sempre: roda na sua máquina, com a sua assinatura de IA.</span><span lang="en">The Tucano you know: it runs on your machine, with your AI subscription.</span></p>+ <p class="price"><span lang="pt-BR">R$ 0<small>/mês</small></span><span lang="en">US$0<small>/mo</small></span></p>+ <ul>+ <li><span lang="pt-BR">Tudo fica no seu computador</span><span lang="en">Everything stays on your computer</span></li>+ <li><span lang="pt-BR">Funciona enquanto o computador está ligado</span><span lang="en">Works while your computer is on</span></li>+ <li><span lang="pt-BR">No iPhone, pelo Wi-Fi de casa</span><span lang="en">On the iPhone, over your home Wi-Fi</span></li>+ </ul>+ <p class="foot"><a href="/" data-en-href="/en/"><span lang="pt-BR">Baixar pro Mac, Windows ou Linux →</span><span lang="en">Download for Mac, Windows or Linux →</span></a></p>+ </article>+ <article class="plan beak rv">+ <span class="tag"><span lang="pt-BR">Acesso antecipado</span><span lang="en">Early access</span></span>+ <h3><span lang="pt-BR">Na nuvem, com a sua IA</span><span lang="en">In the cloud, with your AI</span></h3>+ <p><span lang="pt-BR">A gente hospeda; você conecta a assinatura que já paga.</span><span lang="en">We host it; you connect the subscription you already pay for.</span></p>+ <p class="price"><span lang="pt-BR">R$ 79<small>/mês</small></span><span lang="en">US$15<small>/mo</small></span></p>+ <div class="logos"><span>Claude Code</span><span>Codex</span><span>Gemini</span><span>Cursor</span><span>OpenCode</span><span>Pi</span><span>Grok</span></div>+ <ul>+ <li><span lang="pt-BR">Rotinas e gatilhos 24 horas, com o computador desligado</span><span lang="en">Routines and triggers around the clock, with your computer off</span></li>+ <li><span lang="pt-BR">No iPhone, de qualquer lugar</span><span lang="en">On the iPhone, from anywhere</span></li>+ <li><span lang="pt-BR">Você entra na sua conta de IA pelo próprio Tucano</span><span lang="en">You sign in to your AI account from within Tucano</span></li>+ </ul>+ <p class="foot"><span lang="pt-BR">Pra quem já tem Claude, ChatGPT ou outro plano.</span><span lang="en">For people who already have Claude, ChatGPT or another plan.</span></p>+ </article>+ <article class="plan ink rv">+ <span class="tag"><span lang="pt-BR">Acesso antecipado</span><span lang="en">Early access</span></span>+ <h3><span lang="pt-BR">Na nuvem, com a IA inclusa</span><span lang="en">In the cloud, AI included</span></h3>+ <p><span lang="pt-BR">Nada pra configurar: abre e usa.</span><span lang="en">Nothing to set up: open it and go.</span></p>+ <p class="price"><span lang="pt-BR">R$ 169<small>/mês</small></span><span lang="en">US$32<small>/mo</small></span></p>+ <ul>+ <li><span lang="pt-BR">Sem conta na Anthropic ou na OpenAI, sem chave</span><span lang="en">No Anthropic or OpenAI account, no key</span></li>+ <li><span lang="pt-BR">Rotinas e gatilhos 24 horas</span><span lang="en">Routines and triggers around the clock</span></li>+ <li><span lang="pt-BR">No iPhone, de qualquer lugar</span><span lang="en">On the iPhone, from anywhere</span></li>+ <li><span lang="pt-BR">Um limite mensal de uso de IA</span><span lang="en">A monthly AI usage limit</span></li>+ </ul>+ <p class="foot"><span lang="pt-BR">Pra quem não quer saber de assinatura de IA.</span><span lang="en">For people who'd rather skip AI subscriptions.</span></p>+ </article>+ </div>+ <p class="note rv"><span lang="pt-BR">Preço de acesso antecipado: quem entra agora mantém esse valor. As vagas abrem aos poucos; o convite chega por e-mail com o link pra assinar o plano que você escolher.</span><span lang="en">Early-access price: whoever joins now keeps it. Spots open a few at a time; the invite arrives by email with the link to subscribe to the plan you choose.</span></p>+ </div>+</section>++<section class="terms" id="termos">+ <div class="wrap grid">+ <div class="rv"><div class="eyebrow"><span lang="pt-BR">Termos do beta</span><span lang="en">Beta terms</span></div><h2 class="h2" style="margin-top:18px"><span lang="pt-BR">O combinado, <em>em cinco linhas.</em></span><span lang="en">The deal, <em>in five lines.</em></span></h2></div>+ <ul class="rv">+ <li><b><span lang="pt-BR">Pago, com 7 dias de garantia</span><span lang="en">Paid, with a 7-day guarantee</span></b><span lang="pt-BR">R$ 79/mês com a sua IA, ou R$ 169/mês com a IA inclusa, no cartão, todo mês. Se desistir em até 7 dias, devolvemos tudo; depois, cancele quando quiser, sem multa, e o acesso vai até o fim do mês pago.</span><span lang="en">US$15/mo with your AI, or US$32/mo with the AI included, by card, monthly. Cancel within 7 days for a full refund; after that, cancel anytime, with no fee, and access lasts until the end of the paid month.</span></li>+ <li><b><span lang="pt-BR">Limite de uso de IA</span><span lang="en">An AI usage limit</span></b><span lang="pt-BR">No plano com a IA inclusa, cada Tucano tem um limite por mês e um por dia. Quando acaba, os agentes param de responder até renovar; o resto continua lá.</span><span lang="en">On the plan with the AI included, each Tucano has a monthly and a daily limit. When it runs out, the agents stop answering until it renews; everything else stays there.</span></li>+ <li><b><span lang="pt-BR">É um beta</span><span lang="en">It's a beta</span></b><span lang="pt-BR">Pode cair, mudar ou ter problemas. A gente faz backup, mas guarde em outro lugar o que for crítico.</span><span lang="en">It may go down, change or have problems. We keep backups, but keep anything critical somewhere else too.</span></li>+ <li><b><span lang="pt-BR">Uso justo</span><span lang="en">Fair use</span></b><span lang="pt-BR">Spam, abuso, conteúdo ilegal ou tentativa de burlar o limite encerram o acesso.</span><span lang="en">Spam, abuse, illegal content or trying to get around the limit ends the access.</span></li>+ <li><b><span lang="pt-BR">Seus dados são seus</span><span lang="en">Your data is yours</span></b><span lang="pt-BR">Se você sair, ou se o beta acabar, a gente avisa antes e você pode pedir uma cópia. Depois, o seu Tucano é apagado.</span><span lang="en">If you leave, or the beta ends, we'll tell you first and you can ask for a copy. Then your Tucano is deleted.</span></li>+ </ul>+ </div>+</section>++<section class="faq" id="perguntas">+ <div class="wrap grid">+ <div class="rv"><div class="eyebrow"><span lang="pt-BR">Perguntas</span><span lang="en">FAQ</span></div><h2 class="h2" style="margin-top:18px"><span lang="pt-BR">Antes de <em>entrar na lista.</em></span><span lang="en">Before you <em>join.</em></span></h2></div>+ <div class="qa rv" data-faq>+ <details open><summary><span lang="pt-BR">Qual a diferença pro Tucano grátis?</span><span lang="en">How is it different from the free Tucano?</span></summary><p><span lang="pt-BR">O Tucano grátis roda no seu computador e funciona enquanto ele está ligado; no iPhone, só no Wi-Fi de casa. No Tucano Pro, ele roda num servidor nosso, 24 horas, e você usa de qualquer lugar.</span><span lang="en">The free Tucano runs on your computer and works while it's on; on the iPhone, only on your home Wi-Fi. With Tucano Pro, it runs on our server, around the clock, and you use it from anywhere.</span></p></details>+ <details><summary><span lang="pt-BR">Posso usar a minha assinatura do Claude ou do ChatGPT?</span><span lang="en">Can I use my Claude or ChatGPT subscription?</span></summary><p><span lang="pt-BR">Pode. No plano "com a sua IA", você entra na sua conta pelo próprio Tucano: Claude Code, Codex, Gemini, Cursor, OpenCode, Pi ou Grok. O Tucano não vê a sua senha, e a assinatura é usada só no seu Tucano.</span><span lang="en">Yes. On the "with your AI" plan, you sign in to your account from within Tucano: Claude Code, Codex, Gemini, Cursor, OpenCode, Pi or Grok. Tucano never sees your password, and the subscription is used only in your Tucano.</span></p></details>+ <details><summary><span lang="pt-BR">Quanto custa?</span><span lang="en">How much does it cost?</span></summary><p><span lang="pt-BR">R$ 79/mês na nuvem com a sua IA, e R$ 169/mês com a IA inclusa. É o preço de acesso antecipado: quem entra agora mantém esse valor. Você tem 7 dias pra desistir com reembolso, e cancela quando quiser.</span><span lang="en">US$15/mo in the cloud with your AI, and US$32/mo with the AI included. It's the early-access price: whoever joins now keeps it. You have 7 days to cancel for a full refund, and you can cancel anytime.</span></p></details>+ <details><summary><span lang="pt-BR">Onde ficam os meus dados?</span><span lang="en">Where does my data live?</span></summary><p><span lang="pt-BR">Num servidor na Alemanha, num Tucano só seu, separado dos outros. O que você pede aos agentes vai pro provedor de IA pra gerar a resposta. Os detalhes estão na <a href="/privacidade/" data-en-href="/en/privacy/">política de privacidade</a>.</span><span lang="en">On a server in Germany, in a Tucano of your own, kept apart from the others. What you ask the agents goes to the AI provider to make the answer. The details are in the <a href="/privacidade/" data-en-href="/en/privacy/">privacy policy</a>.</span></p></details>+ <details><summary><span lang="pt-BR">Quando eu entro?</span><span lang="en">When do I get in?</span></summary><p><span lang="pt-BR">As vagas abrem aos poucos, na ordem da lista. Quando chegar a sua vez, o convite vai pro seu e-mail, de [email protected], com o link pra assinar. Pagou, o seu Tucano fica pronto em até 24 horas.</span><span lang="en">Spots open a few at a time, in waitlist order. When it's your turn, the invite goes to your email, from [email protected], with the link to subscribe. Once you pay, your Tucano is ready within 24 hours.</span></p></details>+ </div>+ </div>+</section>+</main>++<section class="end">+ <div class="wrap">+ <div class="top2">+ <h2 class="h2 rv"><span lang="pt-BR">Feche o notebook. <em>O time continua.</em></span><span lang="en">Close the laptop. <em>The team keeps going.</em></span></h2>+ <div class="acts rv" style="flex:1;max-width:520px"><form class="join" novalidate>+ <input type="email" name="email" autocomplete="email" aria-label="E-mail" required>+ <input type="text" name="website" tabindex="-1" autocomplete="off" aria-hidden="true" style="position:absolute;left:-10000px;width:1px;height:1px">+ <button type="submit"><span lang="pt-BR">Entrar na lista</span><span lang="en">Join the waitlist</span></button>+ <div class="ts"></div>+</form>+<p class="join-msg" hidden></p>+<p class="join-fine"><span lang="pt-BR">Acesso antecipado, pago e com vagas limitadas: quando chegar a sua vez, o convite traz o link pra assinar. 7 dias pra desistir com reembolso. Ao entrar, você concorda com os <a href="#termos">termos do beta</a> e a <a href="/privacidade/">privacidade</a>.</span><span lang="en">Paid early access, with limited spots: when it's your turn, the invite comes with the link to subscribe. 7 days to cancel for a full refund. By joining, you agree to the <a href="#termos">beta terms</a> and the <a href="/en/privacy/">privacy policy</a>.</span></p>+</div>+ </div>+ <div class="word" aria-hidden="true"><span class="big">tucano</span></div>+ <footer>+ <span><span lang="pt-BR">Feito no Brasil.</span><span lang="en">Made in Brazil.</span></span>+ <nav><a href="/" data-en-href="/en/">tucano.sh</a><a href="https://github.com/eduwxyz/tucano">GitHub</a><a href="https://x.com/tucanosh">X (@tucanosh)</a><a href="https://discord.gg/uQp4x7wUgT">Discord</a><a href="/suporte/" data-en-href="/en/support/"><span lang="pt-BR">Suporte</span><span lang="en">Support</span></a><a href="/privacidade/" data-en-href="/en/privacy/"><span lang="pt-BR">Privacidade</span><span lang="en">Privacy</span></a></nav>+ </footer>+ </div>+</section>++<script>+// The header shades once the page scrolls; sections rise into view; PT | EN remembers the choice.+;(() => {+ if (/[?&]shot/.test(location.search)) document.documentElement.classList.add('still')+ const hdr = document.getElementById('top')+ const onScroll = () => hdr.classList.toggle('scrolled', scrollY > 10)+ addEventListener('scroll', onScroll, { passive: true })+ onScroll()+ const io = new IntersectionObserver((es) => es.forEach((e) => e.isIntersecting && (e.target.classList.add('in'), io.unobserve(e.target))), { threshold: .12 })+ document.querySelectorAll('.rv').forEach((e) => io.observe(e))+ document.querySelectorAll('.lang a').forEach((a) => a.addEventListener('click', () => { try { localStorage.setItem('tucano-lang', a.hreflang) } catch {} }))+})()+</script>+<!-- SCRIPT:pro -->+</body>+</html>diff --git a/site/supabase/migrations/0001_waitlist.sql b/site/supabase/migrations/0001_waitlist.sqlnew file mode 100644index 0000000..449af03--- /dev/null+++ b/site/supabase/migrations/0001_waitlist.sql@@ -0,0 +1,30 @@+-- The Tucano Pro beta's waitlist (site/worker.js writes it, through /api/lista).+-- Only the server's secret key reads or writes it: row level security is on with no policy,+-- and the public roles have no grant, so the site's visitors can't read the list or write it+-- directly. Each email once (kept lowercase); signing up again changes nothing.+create table public.waitlist (+ id uuid primary key default gen_random_uuid(),+ email text not null unique check (email = lower(email) and email ~ '^[^@\s]+@[^@\s]+\.[^@\s]+$' and length(email) <= 254),+ name text not null check (length(name) between 1 and 120),+ use_case text check (length(use_case) <= 1000), -- what they want it for, in their words+ has_iphone boolean,+ lang text not null default 'pt' check (lang in ('pt', 'en')),+ source text check (length(source) <= 200), -- where they came from (?ref=, utm_source)+ consent_at timestamptz not null, -- agreed to the beta terms and the privacy policy+ created_at timestamptz not null default now(),+ -- The beta, by hand: who was invited, to which Tucano, and how it went.+ status text not null default 'waiting' check (status in ('waiting', 'invited', 'joined', 'declined', 'removed')),+ invited_at timestamptz,+ tucano text, -- the container's name (tucano-ctl)+ notes text+);++comment on table public.waitlist is 'Tucano Pro beta waitlist. Written by the site worker with the secret key; RLS on, no policies.';++alter table public.waitlist enable row level security;+revoke all on table public.waitlist from anon, authenticated;++create index waitlist_by_status on public.waitlist (status, created_at);++-- Supabase's helper that turns RLS on for new tables runs from an event trigger; nobody needs to call it over the API.+revoke execute on function public.rls_auto_enable() from anon, authenticated, public;diff --git a/site/supabase/migrations/0002_waitlist_email_only.sql b/site/supabase/migrations/0002_waitlist_email_only.sqlnew file mode 100644index 0000000..7f21c7a--- /dev/null+++ b/site/supabase/migrations/0002_waitlist_email_only.sql@@ -0,0 +1,4 @@+-- The form asks only for the email: the name becomes optional.+alter table public.waitlist alter column name drop not null;+alter table public.waitlist drop constraint if exists waitlist_name_check;+alter table public.waitlist add constraint waitlist_name_check check (name is null or length(name) between 1 and 120);diff --git a/site/worker.js b/site/worker.jsnew file mode 100644index 0000000..e9a3ae3--- /dev/null+++ b/site/worker.js@@ -0,0 +1,94 @@+// tucano.sh: the static pages (dist/, served as assets) and one route of code, /api/lista, where+// the Tucano Pro beta's waitlist form (pro.html) lands. It checks the anti-robot token (Cloudflare+// Turnstile), then saves the sign-up in Supabase (supabase/migrations/0001_waitlist.sql) with the+// project's secret key, which only this worker holds:+// npx wrangler secret put SUPABASE_SECRET_KEY+// npx wrangler secret put TURNSTILE_SECRET+// The same email twice is saved once, and both answers are the same "you're on the list": the+// form never tells anyone whether an address was already there.++const MAX_BODY = 8 * 1024+const EMAIL = /^[^@\s]+@[^@\s]+\.[^@\s]+$/++const json = (status, value) => new Response(JSON.stringify(value), { status, headers: { 'content-type': 'application/json; charset=utf-8', 'cache-control': 'no-store' } })+const words = (lang, pt, en) => (lang === 'en' ? en : pt)+const clip = (v, max) => (typeof v === 'string' ? v.replace(/[\u0000-\u001f\u007f]/g, ' ').trim().slice(0, max) : '')++// The anti-robot check, with Cloudflare: the token the widget gave this visitor.+async function human(token, ip, env) {+ if (!env.TURNSTILE_SECRET) return false+ const r = await fetch('https://challenges.cloudflare.com/turnstile/v0/siteverify', {+ method: 'POST',+ body: new URLSearchParams({ secret: env.TURNSTILE_SECRET, response: String(token ?? ''), ...(ip ? { remoteip: ip } : {}) }),+ })+ const out = await r.json().catch(() => ({}))+ return out.success === true+}++// One row in public.waitlist; a second sign-up with the same email changes nothing.+async function save(row, env) {+ const key = env.SUPABASE_SECRET_KEY+ if (!key || !env.SUPABASE_URL) throw new Error('no SUPABASE_SECRET_KEY or SUPABASE_URL')+ const r = await fetch(`${env.SUPABASE_URL}/rest/v1/waitlist?on_conflict=email`, {+ method: 'POST',+ headers: {+ apikey: key,+ // A legacy service_role key (a JWT) goes as a Bearer too; a new secret key (sb_secret_…) doesn't need it.+ ...(key.startsWith('eyJ') ? { authorization: `Bearer ${key}` } : {}),+ 'content-type': 'application/json',+ prefer: 'resolution=ignore-duplicates,return=minimal',+ },+ body: JSON.stringify(row),+ })+ if (!r.ok) throw new Error(`supabase ${r.status}: ${(await r.text()).slice(0, 200)}`)+}++export async function lista(request, env) {+ if (request.method !== 'POST') return json(405, { error: 'POST' })+ // Only from the site's own pages.+ const origin = request.headers.get('origin')+ if (origin && new URL(origin).host !== new URL(request.url).host) return json(403, { error: 'origin' })+ const text = await request.text()+ if (text.length > MAX_BODY) return json(413, { error: 'too large' })+ let b+ try {+ b = JSON.parse(text)+ } catch {+ return json(400, { error: 'json' })+ }+ const lang = b?.lang === 'en' ? 'en' : 'pt'+ // A robot fills the hidden field: it gets the same answer as a person, and nothing is saved.+ if (clip(b?.website, 200)) return json(200, { ok: true })+ const name = clip(b?.name, 120) // optional: the form asks only for the email+ const email = clip(b?.email, 254).toLowerCase()+ if (!EMAIL.test(email)) return json(400, { error: words(lang, 'Confira o seu e-mail.', 'Check your email.') })+ if (b?.consent !== true) return json(400, { error: words(lang, 'Pra entrar na lista, aceite os termos do beta e a política de privacidade.', 'To join, accept the beta terms and the privacy policy.') })+ if (!(await human(b?.turnstile, request.headers.get('cf-connecting-ip'), env)))+ return json(400, { error: words(lang, 'Não conseguimos confirmar que você não é um robô. Recarregue a página e tente de novo.', "We couldn't confirm you're not a robot. Reload the page and try again.") })+ try {+ await save(+ {+ email,+ name: name || null,+ use_case: clip(b?.use_case, 1000) || null,+ has_iphone: b?.has_iphone === 'yes' ? true : b?.has_iphone === 'no' ? false : null,+ lang,+ source: clip(b?.source, 200) || null,+ consent_at: new Date().toISOString(),+ },+ env+ )+ } catch (e) {+ console.error('waitlist:', e instanceof Error ? e.message : e)+ return json(502, { error: words(lang, 'Não deu pra salvar agora. Tente de novo em um minuto.', "Couldn't save it right now. Try again in a minute.") })+ }+ return json(200, { ok: true })+}++export default {+ async fetch(request, env) {+ const url = new URL(request.url)+ if (url.pathname === '/api/lista') return lista(request, env)+ return env.ASSETS.fetch(request)+ },+}diff --git a/site/worker.test.mjs b/site/worker.test.mjsnew file mode 100644index 0000000..982ebde--- /dev/null+++ b/site/worker.test.mjs@@ -0,0 +1,89 @@+// The waitlist route against a fake Turnstile and a fake Supabase: nothing leaves the machine.+// node --test site/+import assert from 'node:assert/strict'+import { beforeEach, test } from 'node:test'+import worker, { lista } from './worker.js'++const env = { SUPABASE_URL: 'https://db.example', SUPABASE_SECRET_KEY: 'sb_secret_test', TURNSTILE_SECRET: 'ts', ASSETS: { fetch: async () => new Response('page') } }+let calls, turnstileOk, supabaseStatus+beforeEach(() => {+ calls = []+ turnstileOk = true+ supabaseStatus = 201+ globalThis.fetch = async (url, init) => {+ calls.push({ url: String(url), init })+ if (String(url).includes('turnstile')) return Response.json({ success: turnstileOk })+ return new Response(supabaseStatus < 300 ? '' : 'boom', { status: supabaseStatus })+ }+})++const post = (body, headers = {}) =>+ lista(new Request('https://tucano.sh/api/lista', { method: 'POST', headers: { 'content-type': 'application/json', origin: 'https://tucano.sh', ...headers }, body: JSON.stringify(body) }), env)+const good = { name: ' Ana ', email: ' [email protected] ', use_case: 'clientes', has_iphone: 'yes', consent: true, lang: 'pt', source: 'x', turnstile: 'tok' }++test('a sign-up is checked by Turnstile and saved once per email, with the secret key', async () => {+ const r = await post(good)+ assert.equal(r.status, 200)+ assert.deepEqual(await r.json(), { ok: true })+ const [ts, db] = calls+ assert.match(ts.url, /turnstile/)+ assert.match(String(ts.init.body), /response=tok/)+ assert.equal(db.url, 'https://db.example/rest/v1/waitlist?on_conflict=email')+ assert.equal(db.init.headers.apikey, 'sb_secret_test')+ assert.equal(db.init.headers.authorization, undefined)+ assert.match(db.init.headers.prefer, /resolution=ignore-duplicates/)+ const row = JSON.parse(db.init.body)+ assert.equal(row.email, '[email protected]')+ assert.equal(row.name, 'Ana')+ assert.equal(row.has_iphone, true)+ assert.ok(row.consent_at)+})++test('no consent, no name or a bad email: refused in the page’s language, nothing saved', async () => {+ for (const [body, re] of [+ [{ ...good, consent: false }, /aceite os termos/],+ [{ ...good, email: 'nope' }, /e-mail/],+ [{ ...good, email: 'nope', lang: 'en' }, /Check your email/],+ ]) {+ const r = await post(body)+ assert.equal(r.status, 400)+ assert.match((await r.json()).error, re)+ }+ assert.equal(calls.length, 0)+})++test('a robot: Turnstile says no, or it filled the hidden field', async () => {+ turnstileOk = false+ assert.equal((await post(good)).status, 400)+ assert.equal(calls.filter((c) => c.url.includes('db.example')).length, 0)+ turnstileOk = true+ calls = []+ const r = await post({ ...good, website: 'http://spam' })+ assert.equal(r.status, 200) // the same answer a person gets+ assert.equal(calls.length, 0)+})++test('another site’s page, a GET, a huge body: refused', async () => {+ assert.equal((await post(good, { origin: 'https://evil.example' })).status, 403)+ assert.equal((await lista(new Request('https://tucano.sh/api/lista'), env)).status, 405)+ assert.equal((await post({ ...good, use_case: 'x'.repeat(9000) })).status, 413)+})++test('Supabase down: a message to try again, never a crash', async () => {+ supabaseStatus = 503+ const r = await post(good)+ assert.equal(r.status, 502)+ assert.match((await r.json()).error, /Tente de novo/)+})++test('only the email is needed', async () => {+ const r = await post({ email: '[email protected]', consent: true, turnstile: 'tok' })+ assert.equal(r.status, 200)+ const row = JSON.parse(calls.at(-1).init.body)+ assert.deepEqual([row.email, row.name, row.use_case, row.has_iphone, row.lang], ['[email protected]', null, null, null, 'pt'])+})++test('everything but /api/lista is the static site', async () => {+ const r = await worker.fetch(new Request('https://tucano.sh/pro/'), env)+ assert.equal(await r.text(), 'page')+})diff --git a/site/wrangler.jsonc b/site/wrangler.jsoncindex e7437df..a12afc6 100644--- a/site/wrangler.jsonc+++ b/site/wrangler.jsonc@@ -1,11 +1,15 @@-// The site is served by Cloudflare as static files (no Worker code runs):+// The site: the pages in dist/ (made by build.mjs) served as static files, plus worker.js for one+// route of code, /api/lista (the Tucano Pro waitlist). Everything else never reaches the worker.// cd site && npx wrangler deploy-// which first runs build.mjs to make dist/ (the Portuguese and English pages, the sitemap).+// which first runs build.mjs. The worker's secrets: SUPABASE_SECRET_KEY and TURNSTILE_SECRET+// (`npx wrangler secret put <name>`).{"name": "tucano-site","compatibility_date": "2026-10-01",+ "main": "worker.js","build": { "command": "node build.mjs" },- "assets": { "directory": "dist" },+ "assets": { "directory": "dist", "binding": "ASSETS", "run_worker_first": ["/api/*"] },+ "vars": { "SUPABASE_URL": "https://ykfspxqsoahrwrneqovc.supabase.co" },"routes": [{ "pattern": "tucano.sh", "custom_domain": true }]