/* Shared styles for the "Connect Claude / ChatGPT" pages (charterd.net/connect/…).
   Tokens mirror the light theme of the main page (Charterd Landing v2.dc.html, Indigo palette). */
:root{
  --bg:#ffffff; --bg-subtle:#f7f8fa; --bg-card:#ffffff; --bg-inset:#f1f2f6;
  --border:#e6e8ef; --border-strong:#d7dae3;
  --text:#101223; --text-2:#494f63; --text-3:#787e92;
  --accent:#3b3f9e; --accent-hover:#33378c; --on-accent:#ffffff;
  --accent-ink:#3b3f9e; --accent-soft:#eef0fb; --accent-border:#c9cdf0;
  --ok:#177245; --ok-soft:#e8f5ee;
  --header-bg:rgba(255,255,255,.82);
  --shadow:0 1px 2px rgba(16,18,35,.05),0 4px 16px rgba(16,18,35,.05);
  --shadow-lg:0 2px 6px rgba(16,18,35,.06),0 16px 48px rgba(16,18,35,.10);
  --font:'Geist',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit}
img{max-width:100%}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--accent-ink);outline-offset:2px;border-radius:6px}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
code,.mono{font-family:var(--mono);font-size:.92em}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:var(--header-bg);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.site-header .wrap{height:60px;display:flex;align-items:center;gap:24px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:600;font-size:16.5px;letter-spacing:-.01em}
.brand img{height:26px;width:auto}
.nav{display:flex;gap:4px;margin-left:8px}
.nav a{text-decoration:none;font-size:14px;color:var(--text-2);padding:7px 11px;border-radius:8px}
.nav a:hover{color:var(--text);background:var(--bg-inset)}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.link-quiet{text-decoration:none;white-space:nowrap;font-size:14px;font-weight:500;color:var(--text-2);padding:7px 13px;border-radius:8px}
.link-quiet:hover{color:var(--text);background:var(--bg-inset)}
.btn-sm{display:inline-flex;align-items:center;text-decoration:none;white-space:nowrap;font-size:14px;font-weight:500;color:var(--on-accent);background:var(--accent);padding:8px 15px;border-radius:8px}
.btn-sm:hover{background:var(--accent-hover)}
@media (max-width:900px){.nav{display:none}}
@media (max-width:440px){.btn-sm{display:none}}

/* ---------- hero ---------- */
.hero{border-bottom:1px solid var(--border);background:var(--bg) url('/uploads/charterd-hero-background-light.png') right top/cover no-repeat}
.hero .wrap{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:56px;align-items:center;padding-top:72px;padding-bottom:72px}
.hero h1{margin:0 0 18px;font-size:clamp(34px,4.6vw,52px);line-height:1.06;letter-spacing:-.03em;font-weight:700;text-wrap:balance}
.lead{margin:0 0 28px;font-size:18px;line-height:1.6;color:var(--text-2);max-width:34em;text-wrap:pretty}
.cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.btn{display:inline-flex;align-items:center;gap:10px;font-family:inherit;font-size:16px;font-weight:550;line-height:1.2;text-decoration:none;color:var(--on-accent);background:var(--accent);border:0;border-radius:10px;padding:14px 20px;cursor:pointer;box-shadow:0 1px 2px rgba(16,18,35,.12),0 6px 18px rgba(59,63,158,.22)}
.btn:hover{background:var(--accent-hover)}
.btn svg{flex:none}
.cta-note{margin:14px 0 0;font-size:14px;line-height:1.55;color:var(--text-3);max-width:36em}
.cta-note.is-done{color:var(--ok)}
.cta-note.is-error{color:#9f1d1d}
.aside-note{margin:22px 0 0;padding:14px 16px;border-left:3px solid var(--accent-border);background:rgba(238,240,251,.6);border-radius:0 10px 10px 0;font-size:14.5px;line-height:1.55;color:var(--text-2);max-width:36em}
.aside-note a{color:var(--accent-ink);font-weight:500;text-underline-offset:3px}
.aside-note strong{color:var(--text);font-weight:600}

/* ---------- the connection card (route between the two apps) ---------- */
.conn{background:var(--bg-card);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-lg);padding:26px 26px 22px}
.route{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:0 14px;margin:2px 0 24px}
.stop{display:flex;align-items:center;gap:10px;min-width:0}
.stop:last-child{flex-direction:row-reverse;text-align:right}
.stop-dot{flex:none;width:14px;height:14px;border-radius:50%;border:2px solid var(--accent);background:var(--bg-card)}
.stop:last-child .stop-dot{background:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.stop-name{display:block;font-size:15px;font-weight:600;line-height:1.25}
.stop-role{display:block;font-size:12.5px;color:var(--text-3);line-height:1.3}
.route-line{position:relative;height:22px}
.route-line::before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1.5px dashed #a9aee6}
.route-host{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-family:var(--mono);font-size:11.5px;color:var(--text-3);background:var(--bg-card);padding:0 8px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.fields{margin:0;display:flex;flex-direction:column;gap:14px}
.field dt{font-size:13px;font-weight:500;color:var(--text-3);margin:0 0 6px}
.field dt .opt{font-weight:400}
.field dd{margin:0;display:flex;align-items:stretch;gap:8px}
.value{flex:1;min-width:0;display:flex;align-items:center;padding:9px 12px;border:1px solid var(--border);border-radius:9px;background:var(--bg-subtle);font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.value.mono{font-family:var(--mono);font-size:14px}
.copy{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:84px;font-family:inherit;font-size:13.5px;font-weight:500;color:var(--text-2);background:var(--bg-card);border:1px solid var(--border-strong);border-radius:9px;padding:0 12px;cursor:pointer}
.copy:hover{color:var(--text);background:var(--bg-inset)}
.copy[data-state="done"]{color:var(--ok);border-color:#b9dcc8;background:var(--ok-soft)}
.copy .i-done{display:none}
.copy[data-state="done"] .i-copy{display:none}
.copy[data-state="done"] .i-done{display:inline}
.conn-note{margin:18px 0 0;padding-top:16px;border-top:1px solid var(--border);font-size:13.5px;line-height:1.55;color:var(--text-3)}

/* ---------- sections ---------- */
.section{padding:64px 0;border-bottom:1px solid var(--border)}
.section.alt{background:var(--bg-subtle)}
.section h2{margin:0 0 10px;font-size:clamp(24px,2.8vw,30px);line-height:1.15;letter-spacing:-.02em;font-weight:700;text-wrap:balance}
.section .intro{margin:0 0 32px;font-size:16.5px;line-height:1.6;color:var(--text-2);max-width:40em;text-wrap:pretty}
.split{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:56px;align-items:start}
.split .intro{margin-bottom:0}

/* steps: stops on a route */
.steps{list-style:none;margin:0;padding:0;max-width:720px;counter-reset:step}
.steps li{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);gap:0 18px;padding-bottom:30px;counter-increment:step}
.steps li:last-child{padding-bottom:0}
.steps li::before{content:counter(step);grid-row:1 / span 2;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:600;color:var(--accent-ink);background:var(--bg-card);border:1.5px solid var(--accent);position:relative;z-index:1}
.steps li:not(:last-child)::after{content:"";position:absolute;left:17px;top:40px;bottom:4px;border-left:1.5px dashed var(--accent-border)}
.steps h3{margin:5px 0 4px;font-size:17px;line-height:1.35;font-weight:600}
.steps p{margin:0;font-size:15.5px;line-height:1.6;color:var(--text-2)}
.ui{font-weight:600;color:var(--text)}

/* permissions */
.perms{list-style:none;margin:0;padding:0;border-top:1px solid var(--border)}
.perm{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:4px 14px;padding:16px 0;border-bottom:1px solid var(--border)}
.tick{grid-row:1 / span 2;margin-top:3px;width:18px;height:18px;border-radius:5px;border:1.5px solid var(--border-strong);background:var(--bg-card);display:flex;align-items:center;justify-content:center}
.tick svg{display:none}
.perm.on .tick{background:var(--accent);border-color:var(--accent)}
.perm.on .tick svg{display:block}
.perm-name{font-size:15.5px;font-weight:600;line-height:1.4}
.perm-state{font-size:13px;color:var(--text-3);white-space:nowrap;align-self:start;margin-top:2px}
.perm.on .perm-state{color:var(--accent-ink);font-weight:500}
.perm-desc{grid-column:2 / span 2;margin:0;font-size:14.5px;line-height:1.55;color:var(--text-2)}
.guards{list-style:none;margin:24px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.guards li{display:flex;gap:10px;font-size:14.5px;line-height:1.55;color:var(--text-2)}
.guards svg{flex:none;margin-top:3px}

/* what you need */
.needs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--border);border-radius:14px;background:var(--bg-card);overflow:hidden}
.need{padding:26px 28px}
.need + .need{border-left:1px solid var(--border)}
.need h3{margin:0 0 12px;font-size:16.5px;font-weight:600}
.need ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.need li{position:relative;padding-left:20px;font-size:15px;line-height:1.55;color:var(--text-2)}
.need li::before{content:"";position:absolute;left:2px;top:.62em;width:7px;height:7px;border-radius:50%;border:1.5px solid var(--accent)}

/* example prompts */
.prompts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.prompts li{background:var(--bg-card);border:1px solid var(--border);border-radius:12px 12px 12px 4px;padding:13px 16px;font-size:15.5px;line-height:1.5}
.prompts .needs-perm{display:block;margin-top:6px;font-size:13px;color:var(--text-3)}

/* other apps */
.others{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
.others h3{margin:0 0 8px;font-size:17px;font-weight:600}
.others p{margin:0 0 12px;font-size:15.5px;line-height:1.6;color:var(--text-2)}
.cmd{display:flex;align-items:stretch;gap:8px;margin:0 0 12px}
.cmd pre{flex:1;min-width:0;margin:0;padding:11px 14px;border-radius:9px;background:#14162a;color:#e7e9f6;font-family:var(--mono);font-size:13.5px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}

/* troubleshooting */
.faq{max-width:760px;border-top:1px solid var(--border)}
.faq details{border-bottom:1px solid var(--border)}
.faq summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;font-size:16px;font-weight:600;line-height:1.4}
.faq summary::-webkit-details-marker{display:none}
.faq summary svg{flex:none;color:var(--text-3);transition:transform .2s ease}
.faq details[open] summary svg{transform:rotate(180deg)}
.faq details p{margin:-4px 0 18px;font-size:15.5px;line-height:1.6;color:var(--text-2);max-width:42em}

/* switch to the other app */
.other-app{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;padding:26px 28px;border:1px solid var(--accent-border);border-radius:14px;background:var(--accent-soft)}
.other-app p{margin:0;font-size:16px;line-height:1.5;color:var(--text-2);max-width:40em}
.other-app strong{color:var(--text);font-weight:600}
.btn-quiet{display:inline-flex;align-items:center;gap:8px;text-decoration:none;white-space:nowrap;font-size:15px;font-weight:500;color:var(--accent-ink);background:var(--bg-card);border:1px solid var(--accent-border);border-radius:9px;padding:10px 16px}
.btn-quiet:hover{border-color:var(--accent);color:var(--accent-hover)}

/* ---------- footer ---------- */
.site-footer{background:var(--bg-subtle)}
.site-footer .wrap{padding-top:48px;padding-bottom:36px}
.foot-top{display:flex;flex-wrap:wrap;gap:32px 64px;justify-content:space-between;margin-bottom:36px}
.foot-brand{max-width:280px}
.foot-brand span{display:flex;align-items:center;gap:10px;font-weight:600;font-size:15px;margin-bottom:10px}
.foot-brand img{height:22px;width:auto}
.foot-brand p{margin:0;font-size:13px;line-height:1.6;color:var(--text-3)}
.foot-nav{display:flex;flex-wrap:wrap;gap:32px 56px}
.foot-col{display:flex;flex-direction:column;gap:9px}
/* Same column headings as the main page's footer. */
.foot-col span{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-3)}
.foot-col a{text-decoration:none;white-space:nowrap;font-size:13.5px;color:var(--text-2)}
.foot-col a:hover{color:var(--text)}
.foot-col a[aria-current="page"]{color:var(--accent-ink);font-weight:500}
.copyright{margin:0;padding-top:20px;border-top:1px solid var(--border);font-size:12.5px;color:var(--text-3)}

/* ---------- small screens ---------- */
@media (max-width:960px){
  .hero .wrap{grid-template-columns:minmax(0,1fr);gap:40px;padding-top:48px;padding-bottom:56px}
  .split{grid-template-columns:minmax(0,1fr);gap:28px}
}
@media (max-width:720px){
  .section{padding:48px 0}
  .needs{grid-template-columns:minmax(0,1fr)}
  .need + .need{border-left:0;border-top:1px solid var(--border)}
  .prompts,.others{grid-template-columns:minmax(0,1fr)}
  .others{gap:32px}
  .perm{grid-template-columns:22px minmax(0,1fr)}
  .perm-state{grid-column:2;grid-row:2;margin:0}
  .perm-desc{grid-column:2}
  .tick{grid-row:1 / span 3}
}
@media (max-width:480px){
  .wrap{padding:0 16px}
  .lead{font-size:17px}
  .btn{width:100%;justify-content:center}
  .conn{padding:20px 16px 18px;border-radius:14px}
  .need{padding:22px 18px}
  .other-app{padding:22px 18px}
  .route-host{display:none}
  .value{padding:9px 10px}
  .value.mono{font-size:13px}
  .copy{min-width:70px;min-height:40px;padding:0 10px}
}
@media (prefers-reduced-motion:reduce){.faq summary svg{transition:none}}
