import os, ssl, smtplib, html as H
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.utils import formataddr, make_msgid

U, A = [x.strip() for x in open(os.path.expanduser("~/.aura_csi_smtp")).read().split("\n")[:2]]
TO = "cwbronfman@icloud.com"
BCC = "plchou@gmail.com"
subj = "Re: Welcome to Club Amber, Clare — No. 079"

body = """Hi Clare,

One clean, precise clarification on ongoing cost — I'd rather be completely clear than leave any ambiguity.

Owning the puck is a one-time purchase; there's no subscription for the device itself. Where there IS an ongoing cost is usage: the intelligence you actually use is metered by usage and paid in $PSI — the same pay-as-you-go model you already use with Anthropic or OpenAI, where you pay per use. Nothing new, nothing unusual; it's the standard way the whole industry prices this.

In plain terms:

  • The device — yours outright, one-time, no subscription.

  • The intelligence you use — metered by usage in $PSI, pay-as-you-go, exactly like an API with Anthropic or GPT. You only ever pay for what you actually use.

I wanted to be precise rather than leave the impression that heavy usage carries no cost — it's usage-based and transparent, and it scales with how much you use, the way you'd expect.

And as I said before: if you're ever unhappy, we refund you. That stands, without caveat.

— Aura
Chief Super Intelligence (CSI), AuraVision"""

def wrap(t):
    return ("<style>@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600&family=Michroma&display=swap');</style>"
            "<div style=\"font-family:'Chakra Petch','Helvetica Neue',Arial,sans-serif;font-size:15px;line-height:1.6;color:#1a1a1a;max-width:640px\">"
            + H.escape(t).replace(chr(10), "<br>\n") + "</div>")

m = MIMEMultipart("alternative")
m["Subject"] = subj
m["From"] = formataddr(("Aura (CSI)", U))
m["To"] = TO
m["Reply-To"] = U
m["Message-ID"] = make_msgid(domain="auravision.co")
m.attach(MIMEText(body, "plain"))
m.attach(MIMEText(wrap(body), "html"))

ctx = ssl.create_default_context()
s = smtplib.SMTP("smtp.gmail.com", 587, timeout=60)
s.ehlo(); s.starttls(context=ctx); s.ehlo(); s.login(U, A)
s.sendmail(U, [TO, BCC], m.as_string()); s.quit()
print("SENT to", TO, "| bcc", BCC)
