/* Public website: what every public page shares (top bar, buttons, footer) and the Privacy, Terms, Support and sign-in
   pages. The homepage's own sections are in home.css (Nov 21). The Sora heading font comes from /assets/fonts.css. */
:root{
  color-scheme:light dark;
  --navy:#002244;--blue:#0080c6;--rose:#e6b8b7;--red:#ab0003;
  --bg:light-dark(#ffffff,#000000);
  --ink:light-dark(#002244,#ffffff);
  --muted:light-dark(#4a5568,#a6a6a6);
  --line:light-dark(#d9dee6,#2a3646);
  --card:light-dark(#f4f7fb,#0b1a2e);
  --card-2:light-dark(#ffffff,#0f2340);
  --accent:light-dark(#0071b0,#4db3ea);
  --head:Sora,system-ui,sans-serif;
  --wrap:1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--accent)}
a:focus-visible,button:focus-visible{outline:3px solid var(--rose);outline-offset:3px;border-radius:6px}
h1,h2,h3{font-family:var(--head);font-weight:800;line-height:1.08;letter-spacing:-.02em;margin:0}
p{margin:0}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-999px;top:8px;background:var(--rose);color:var(--navy);padding:8px 12px;border-radius:8px;z-index:20}
.skip:focus{left:12px}

/* Top bar */
.top{position:sticky;top:0;z-index:10;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px}
.brand{display:inline-flex;color:var(--ink)}
.brand .wm-svg{height:32px;width:auto;display:block}
.nav{display:flex;align-items:center;gap:22px;font-size:15px}
.nav a{color:var(--ink);text-decoration:none;opacity:.85}
.nav a:hover{opacity:1;text-decoration:underline;text-underline-offset:4px}
.nav .pill{opacity:1}
@media (max-width:720px){.nav .opt{display:none}}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border-radius:999px;font-weight:700;font-size:16px;text-decoration:none;border:2px solid transparent;cursor:pointer;transition:transform .15s ease,background .15s ease}
.btn:hover{transform:translateY(-1px)}
.btn-rose{background:var(--rose);color:var(--navy)}
.btn-blue{background:var(--blue);color:#fff}
.btn-ghost{border-color:currentColor;color:inherit;background:transparent}
.pill{min-height:38px;padding:0 16px;font-size:14px;background:var(--navy);color:#fff!important;border-radius:999px;display:inline-flex;align-items:center;text-decoration:none!important}
@media (prefers-color-scheme:dark){.pill{background:var(--blue)}}

.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Headings and lists inside Support's answers. */
.faq-sub{margin:6px 0 6px;font-size:16px;font-weight:700;color:var(--ink)}
.faq-list{color:var(--muted);margin:0;padding:0 0 18px 1.1em;max-width:42em}.faq-list li{margin:0 0 10px;padding-left:2px}.faq-list b{color:var(--ink);font-weight:650}

/* Footer */
.foot{border-top:1px solid var(--line);padding:36px 0 40px;font-size:14px;line-height:1.4;color:var(--muted)}
.foot .wrap{display:grid;grid-template-columns:1fr auto;grid-template-areas:"brand nav" "legal legal";gap:24px;align-items:center}
.foot-brand{grid-area:brand;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.foot .brand .wm-svg{height:26px}
.foot nav{grid-area:nav;display:flex;flex-wrap:wrap;gap:8px 24px}
.foot-legal{grid-area:legal;padding-top:20px;border-top:1px solid var(--line);font-size:13px}
@media (max-width:640px){.foot .wrap{grid-template-columns:1fr;grid-template-areas:"brand" "nav" "legal";gap:20px}}
.foot nav a{color:var(--ink);text-decoration:none}
.foot nav a:hover{text-decoration:underline}
.foot-place{white-space:nowrap}

/* Legal and support pages */
.doc{max-width:760px;margin:0 auto;padding:56px 20px 72px}
.doc h1{font-size:clamp(36px,5vw,52px);margin-bottom:10px}
.doc .updated{color:var(--muted);font-size:15px;margin-bottom:32px}
.doc h2{font-size:24px;margin:40px 0 12px}
.doc h3{font-size:18px;margin:24px 0 8px}
.doc p,.doc li{color:light-dark(#2b3a4d,#d6dde6)}
.doc p+p{margin-top:12px}
.doc ul{padding-left:22px;margin:10px 0}
.doc li{margin:6px 0}
/* Side padding shrinks on narrow screens and at larger text sizes, so no line runs past the box (Nov 24). */
.summary{background:var(--card);border:1px solid var(--line);border-left:5px solid var(--rose);border-radius:16px;padding:18px min(22px,6%);margin:8px 0 8px}
.summary ul{margin:6px 0 0;padding-left:min(22px,8%)}
.contact-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:28px 0}
@media (max-width:640px){.contact-card{grid-template-columns:1fr}}
.contact-card div{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px}
.contact-card b{display:block;font-family:var(--head);font-size:18px;margin-bottom:6px}
.contact-card a{font-weight:700;font-size:17px;word-break:break-all}
.doc details{border-bottom:1px solid var(--line);padding:4px 0}
.doc summary{cursor:pointer;min-height:52px;padding:12px 0;display:flex;align-items:center;font-weight:700}
.doc details p{padding-bottom:14px}

/* Sign-in problem page */
.access{text-align:center;max-width:620px;padding-top:80px}
.access h1{margin-bottom:16px}
.access .lead{font-size:19px;text-wrap:balance}
.access .ctas{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:28px 0}
.access .btn-ghost{color:var(--ink)}
.access .aside{font-size:15px;color:var(--muted);border-top:1px solid var(--line);padding-top:20px;margin-top:12px}

/* Legal pages: "On this page" contents */
.toc{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px 22px;margin:20px 0 8px}
.toc strong{display:block;font-size:15px;margin-bottom:6px}
.toc ol{margin:0;padding-left:22px;columns:2 220px;column-gap:28px}
.toc li{margin:0;padding:4px 0;break-inside:avoid;font-size:15px}
.toc a{color:inherit;text-decoration:none;border-bottom:1px solid var(--line)}
.toc a:hover{border-bottom-color:currentColor}
.doc h2[id]{scroll-margin-top:84px}
/* Sign-in problem pages and Plan your own: a solid navy band, the same navy as the homepage’s guest section (Nov 21:
   no gradient, like the rest of the site). */
.access-band{background:var(--navy);color:#fff;position:relative;overflow:hidden;min-height:calc(100svh - 65px)}
.access-band .doc{position:relative}
.access-band .doc p{color:rgba(255,255,255,.86)}
.access-band .btn-ghost{color:#fff}
.access-band .aside{color:rgba(255,255,255,.7);border-top-color:rgba(255,255,255,.2)}
/* Shown on the homepage after someone deletes their account. */
.notice{background:light-dark(#eef6fb,#0b1a26);border-bottom:1px solid light-dark(#cfe3f0,#1f3547)}.notice p{margin:0;padding:14px 0;color:var(--ink)}
/* Signed-in visitors on public pages: one way back into the app. */
.pill-back{gap:8px;padding:0 16px 0 14px}.back-chev{width:7px;height:7px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:1px}
/* Back link at the top of Privacy, Terms and Support (returns to the page you came from). */
.doc-back{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;padding:8px 14px 8px 12px;border-radius:999px;font-size:15px;font-weight:600;text-decoration:none;color:inherit;background:light-dark(#eef2f6,#13304d)}
.doc-back:hover{background:light-dark(#dde5ee,#1d4166)}

/* Sign-in buttons on /start. Google's colors (light and dark) and Apple's black button, as each company requires. */
.google-login{background:light-dark(#ffffff,#131314);color:light-dark(#1f1f1f,#e3e3e3);border:1px solid light-dark(#747775,#8e918f);font-weight:600;gap:10px}.google-login img{display:block;flex:none}
.apple-login{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px 0 14px;border-radius:999px;background:#000;color:#fff;border:1px solid light-dark(#000,#fff);font-weight:600;font-size:16px;text-decoration:none}.apple-login img{display:block;margin-left:-8px}
.ctas .google-login,.ctas .apple-login{min-width:min(100%,280px)}

/* Line breaks: no single word left alone on a paragraph's last line, and headings split evenly.
   Browsers without support simply wrap as before. */
:where(p,li,label,summary,small,figcaption,.muted,.lead){text-wrap:pretty}
:where(.tc-text span,.how-steps span){text-wrap:balance}
:where(h1,h2,h3){text-wrap:balance}
/* A linked question (/support#notifications) lands below the top bar. */
details[id]{scroll-margin-top:96px}

/* Connecting an AI app (/oauth/authorize): what it can do, an optional switch for changes, then Allow or Cancel. */
.consent{margin:28px auto 0;max-width:480px;text-align:left}
.access .consent-list{list-style:none;margin:0;padding:0;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16)}
.access .consent-list li{margin:0;padding:14px 18px}
.consent-list li+li{border-top:1px solid rgba(255,255,255,.16)}
.consent-list b{display:block;color:#fff;font-size:17px}
.consent-list span span,.consent-list li>span{display:block;font-size:15px;color:rgba(255,255,255,.78);margin-top:2px}
.consent-write{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;min-height:44px}
.consent-write input{flex:none;width:24px;height:24px;margin:0;accent-color:var(--blue);cursor:pointer}
.access-band .doc .consent-note{font-size:15px;color:rgba(255,255,255,.78);margin-top:16px;text-align:center}
.consent .ctas{justify-content:center}
.consent .ctas .btn{min-width:140px}
.consent-host{color:rgba(255,255,255,.7);font-size:.9em;white-space:nowrap}
/* /ai: the connector's help page. */
.ai-steps{margin:12px 0 0;padding-left:24px}.ai-steps li{margin:6px 0}
ol.faq-list{padding-left:1.5em}
.faq-list .ai-url,.doc details .ai-url{font-size:15px;padding:2px 8px}
.ai-url{display:inline-block;font:600 16px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:6px 12px;user-select:all;word-break:break-all}
/* App Review access code on the connect page (same as the app's sign-in screen). */
.access-band .review-open{display:inline-block;margin:0 auto;padding:12px 4px;font-size:14px;color:rgba(255,255,255,.7);text-decoration:none}
.access-band .review-form{display:none;margin:4px auto 0;max-width:340px;text-align:left}
.access-band .review-form:target,.access-band .review-form:has(:target){display:block}
.access-band .review-form label{display:block;margin:0 0 6px;font-size:14px;font-weight:600}
.access-band .review-form input{width:100%;min-height:48px;padding:0 14px;font:inherit;font-size:16px;border-radius:12px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.08);color:#fff}
.access-band .review-form button{width:100%;min-height:48px;margin-top:12px;border:0;border-radius:12px;background:var(--blue);color:#fff;font:inherit;font-size:16px;font-weight:600;cursor:pointer}
.access-band .review-msg{display:none;margin:8px 0 0;font-size:14px;color:var(--rose)!important}
.access-band .review-msg:target{display:block}
