/* ──────────────────────────────────────────────────────────────
   Butter Agent — Subpage shell (about / help / contact / legal)
   Redesigned to match the app + new homepage: warm cream, butter
   yellow accent, white rounded cards, Manrope, mascot brand mark.
   Loads AFTER site.css, so it intentionally overrides it.
   ────────────────────────────────────────────────────────────── */

:root{
  --ink:#1C1B1F;
  --ink-2:#4A473B;
  --ink-3:#857F6C;
  --line:rgba(34,27,0,.10);
  --line-soft:rgba(34,27,0,.06);
  --page:#FBF6EA;
  --card:#FFFFFF;
  --olive:#685E31;
  --shadow:0 1px 2px rgba(34,27,0,.05), 0 14px 34px rgba(34,27,0,.07);
  --shadow-lg:0 30px 70px rgba(34,27,0,.14), 0 8px 22px rgba(34,27,0,.08);
}

.subpage-shell{ background:var(--page); color:var(--ink); }
.subpage-shell ::selection{ background:var(--butter); color:#211B00; }

/* ── Brand mark → mascot (works on every page; url is relative to this CSS) ── */
.brand{ display:flex; align-items:center; gap:11px; }
.brand-mark{
  width:38px; height:38px; border-radius:11px;
  background:radial-gradient(120% 120% at 38% 18%,#FFF3C6,#FFD06A 55%,#E89E2A);
  box-shadow:0 4px 12px rgba(242,177,43,.4), inset 0 1px 0 rgba(255,255,255,.6);
  display:grid; place-items:center; overflow:hidden;
  color:transparent; font-size:0;
}
.brand-mark::after{
  content:""; width:30px; height:30px;
  background:url(mascot.svg) center/contain no-repeat;
}
.brand-name{ display:flex; flex-direction:column; line-height:1; gap:3px; }
.brand-name strong{ font-size:16px; font-weight:800; letter-spacing:-.01em; color:var(--ink); white-space:nowrap; }
.brand-name small{
  font-size:10px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink-3); font-family:var(--font);
}

/* ── Subpage nav ── */
.sub-nav{
  position:sticky; top:0; z-index:50;
  background:rgba(251,246,234,.78);
  backdrop-filter:saturate(140%) blur(18px);
  -webkit-backdrop-filter:saturate(140%) blur(18px);
  border-bottom:1px solid var(--line-soft);
}
.sub-nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:72px; max-width:1100px; margin:0 auto; padding:0 32px;
}
@media (max-width:720px){ .sub-nav-inner{ padding:0 20px; } }
.sub-nav-links{ display:flex; align-items:center; gap:6px; }
.sub-nav-links a{
  font-size:14.5px; font-weight:600; color:var(--ink-2);
  padding:9px 14px; border-radius:999px; transition:color .15s ease, background .15s ease;
}
.sub-nav-links a:hover{ color:var(--ink); }
.sub-nav-links a.active{
  color:#211B00; background:var(--butter);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5);
}
@media (max-width:720px){ .sub-nav-links a.hide-sm{ display:none; } }

/* ── Page header ── */
.page-shell{ max-width:880px; margin:0 auto; padding:0 32px; }
@media (max-width:720px){ .page-shell{ padding:0 20px; } }

.page-head{
  padding:72px 0 44px;
  display:flex; flex-direction:column; gap:18px;
  border-bottom:1px solid var(--line-soft);
}
.page-head .breadcrumb{
  font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:var(--olive);
  display:flex; align-items:center; gap:10px;
}
.page-head .breadcrumb a{ color:inherit; }
.page-head .breadcrumb a:hover{ color:var(--butter-deep); }
.page-head .breadcrumb .sep{ opacity:.4; }
.page-head h1{
  font-size:clamp(38px,5.2vw,66px);
  font-weight:800;
  letter-spacing:-.035em;
  line-height:1.02;
  color:var(--ink);
  margin:0;
  text-wrap:balance;
}
.page-head h1 .stress{ position:relative; white-space:nowrap; font-weight:800; }
.page-head h1 .stress::after{
  content:""; position:absolute; left:-2px; right:-2px; bottom:.08em; height:.32em;
  background:var(--butter); border-radius:6px; z-index:-1; opacity:.85;
}
.page-head h1 em{ font-style:normal; color:var(--olive); }
.page-head p{
  font-size:17.5px; line-height:1.55; color:var(--ink-2);
  margin:0; max-width:56ch; text-wrap:pretty;
}
.page-head .meta{
  display:flex; gap:10px 22px; flex-wrap:wrap;
  font-size:13.5px; font-weight:600; color:var(--ink-2);
}
.page-head .meta b{ color:var(--ink); font-weight:800; }

/* ── Page body ── */
.page-body{ padding:56px 0 96px; }

/* eyebrow override (used on some subpages) */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font);
  font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--olive);
}
.eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:var(--butter-deep); box-shadow:0 0 0 4px rgba(242,177,43,.18); }

/* pill buttons (override site.css for subpages) */
.pill{
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
  height:46px; padding:0 20px; border-radius:999px;
  font-size:14.5px; font-weight:700; letter-spacing:.005em;
  border:1px solid var(--line); background:#fff; color:var(--ink);
  transition:transform .16s ease, box-shadow .18s ease, background .18s ease;
}
.pill:hover{ transform:translateY(-2px); box-shadow:var(--shadow); }
.pill.sm{ height:38px; padding:0 16px; font-size:13.5px; }
.pill.lg{ height:54px; padding:0 26px; font-size:15px; }
.pill svg{ width:16px; height:16px; }
.pill.primary{
  background:linear-gradient(180deg,#FFE292,#FFCB4E);
  color:#211B00; border-color:rgba(180,120,0,.25);
  box-shadow:0 10px 24px rgba(242,177,43,.35), inset 0 1px 0 rgba(255,255,255,.6);
}
.pill.primary:hover{ box-shadow:0 16px 32px rgba(242,177,43,.45), inset 0 1px 0 rgba(255,255,255,.6); }
.pill.ghost{ background:rgba(255,255,255,.7); border-color:var(--line); }

/* Notice banner (legal) */
.notice{
  background:#fff;
  border:1px solid var(--line-soft);
  border-left:4px solid var(--butter-deep);
  border-radius:18px;
  padding:18px 22px;
  font-size:14.5px; line-height:1.6; color:var(--ink-2);
  margin:32px 0 48px;
  box-shadow:var(--shadow);
}
.notice strong{ color:var(--ink); font-weight:700; }

/* ── Legal article ── */
.legal{
  display:flex; flex-direction:column; gap:52px;
  font-size:15.5px; line-height:1.75; color:var(--ink-2);
}
.legal section{ display:flex; flex-direction:column; gap:12px; }
.legal h2{
  font-size:23px; font-weight:800; letter-spacing:-.02em; color:var(--ink);
  margin:0; padding-left:18px; position:relative;
}
.legal h2::before{
  content:''; position:absolute; left:0; top:.5em;
  width:8px; height:8px; border-radius:50%; background:var(--butter-deep);
}
.legal h3{ font-size:15px; font-weight:700; color:var(--ink); margin:16px 0 4px; }
.legal p{ margin:0; }
.legal strong{ color:var(--ink); font-weight:700; }
.legal a{
  color:var(--olive); text-decoration:underline;
  text-decoration-color:rgba(104,94,49,.3); text-underline-offset:3px; text-decoration-thickness:1px;
}
.legal a:hover{ text-decoration-color:var(--olive); }
.legal ul{ list-style:none; padding:0; margin:4px 0 0; display:flex; flex-direction:column; gap:8px; }
.legal ul li{ padding-left:20px; position:relative; }
.legal ul li::before{ content:''; position:absolute; left:4px; top:.78em; width:7px; height:2px; border-radius:2px; background:var(--butter-deep); }
.legal .upper{ font-size:13px; letter-spacing:.04em; text-transform:uppercase; color:var(--ink); font-weight:700; line-height:1.7; }

/* ── Table of contents (sticky) ── */
.legal-layout{ display:grid; grid-template-columns:200px minmax(0,1fr); gap:64px; align-items:start; }
@media (max-width:880px){ .legal-layout{ grid-template-columns:1fr; gap:32px; } .legal-toc{ display:none; } }
.legal-toc{ position:sticky; top:96px; }
.legal-toc h4{
  font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink-3); margin:0 0 14px;
}
.legal-toc ol{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; counter-reset:toc; }
.legal-toc li{ counter-increment:toc; }
.legal-toc a{
  display:flex; align-items:baseline; gap:10px;
  font-size:13.5px; font-weight:600; color:var(--ink-2);
  padding:5px 10px; border-radius:9px; line-height:1.4;
  transition:background .15s ease, color .15s ease;
}
.legal-toc a::before{
  content:counter(toc,decimal-leading-zero);
  font-family:var(--mono); font-size:10.5px; color:var(--butter-deep); letter-spacing:.06em;
}
.legal-toc a:hover{ color:var(--ink); background:rgba(255,216,116,.18); }

/* ── About — cards ── */
.about-card{
  background:var(--card);
  border:1px solid var(--line-soft);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:30px;
  display:flex; flex-direction:column; gap:16px;
}
.about-card .label{
  font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--olive);
}
.about-card h2{ font-size:23px; font-weight:800; letter-spacing:-.02em; color:var(--ink); margin:0; line-height:1.2; }
.about-card p{ margin:0; font-size:15.5px; line-height:1.65; color:var(--ink-2); }
.about-grid{ display:grid; grid-template-columns:1.4fr 1fr; gap:16px; }
@media (max-width:720px){ .about-grid{ grid-template-columns:1fr; } }
.about-grid .about-card.dark{ background:#211B00; border-color:#211B00; box-shadow:var(--shadow-lg); }
.about-grid .about-card.dark .label{ color:var(--butter); }
.about-grid .about-card.dark h2{ color:#F8F2D8; }
.about-grid .about-card.dark p{ color:rgba(248,242,216,.78); }
.about-grid .about-card.dark em{ color:var(--butter); font-style:normal; }
.about-grid .about-card.butter{
  background:radial-gradient(120% 140% at 18% 12%,#FFE9A8,#FFD06A 60%,#F2B12B);
  border-color:rgba(180,120,0,.2);
}
.about-grid .about-card.butter .label{ color:#6b5410; }
.about-grid .about-card.butter h2,
.about-grid .about-card.butter p{ color:#211B00; }
.about-grid .about-card.butter p{ opacity:.85; }
.about-stat{ font-family:var(--mono); font-size:32px; letter-spacing:-.02em; color:var(--ink); font-weight:600; }
.about-version{
  display:inline-flex; align-items:center; gap:10px;
  padding:9px 15px; border-radius:999px;
  border:1px solid var(--line); background:#fff;
  font-size:13px; font-weight:600; color:var(--ink-2);
}
.about-version .dot{ width:8px; height:8px; border-radius:50%; background:var(--butter-deep); box-shadow:0 0 0 4px rgba(242,177,43,.18); }

/* ── Help — FAQ + topics ── */
.topic-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
@media (max-width:720px){ .topic-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .topic-grid{ grid-template-columns:1fr; } }
.topic{
  background:var(--card); border:1px solid var(--line-soft); border-radius:22px;
  padding:24px; display:flex; flex-direction:column; gap:12px; text-align:left;
  box-shadow:0 1px 2px rgba(34,27,0,.04);
  transition:transform .2s ease, box-shadow .2s ease;
}
.topic:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.topic .icon{
  width:46px; height:46px; border-radius:13px;
  background:linear-gradient(180deg,#FFE9A8,#FFD06A);
  color:#5b4a12; display:grid; place-items:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}
.topic .icon svg{ width:22px; height:22px; }
.topic h3{ font-size:16px; font-weight:800; letter-spacing:-.01em; margin:0; color:var(--ink); }
.topic p{ font-size:13.5px; line-height:1.55; color:var(--ink-2); margin:0; }

.faq{ display:flex; flex-direction:column; border-top:1px solid var(--line-soft); }
.faq details{ border-bottom:1px solid var(--line-soft); padding:22px 4px; }
.faq details[open] summary{ color:var(--ink); }
.faq summary{
  list-style:none; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  font-size:17.5px; font-weight:700; letter-spacing:-.01em; color:var(--ink);
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{
  content:'+'; font-family:var(--mono); font-size:22px; font-weight:400; color:var(--butter-deep);
  transition:transform .2s ease;
}
.faq details[open] summary::after{ content:'–'; }
.faq .answer{ margin-top:14px; font-size:15px; line-height:1.7; color:var(--ink-2); max-width:64ch; }
.faq .answer a{ color:var(--olive); text-decoration:underline; text-underline-offset:3px; }

/* ── Contact — form ── */
.contact-grid{ display:grid; grid-template-columns:1fr 1.4fr; gap:48px; align-items:start; }
@media (max-width:880px){ .contact-grid{ grid-template-columns:1fr; gap:32px; } }
.contact-aside{ display:flex; flex-direction:column; gap:14px; position:sticky; top:96px; }
.contact-channel{
  background:var(--card); border-radius:22px; border:1px solid var(--line-soft);
  padding:22px; display:flex; flex-direction:column; gap:10px; box-shadow:0 1px 2px rgba(34,27,0,.04);
}
.contact-channel .label{ font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--olive); }
.contact-channel .value{ font-size:17px; font-weight:700; letter-spacing:-.01em; color:var(--ink); }
.contact-channel .meta{ font-size:13px; color:var(--ink-2); }
.contact-channel.butter{
  background:radial-gradient(120% 140% at 18% 12%,#FFE9A8,#FFD06A 60%,#F2B12B);
  border-color:rgba(180,120,0,.2);
}
.contact-channel.butter .label{ color:#6b5410; }
.contact-channel.butter .value{ color:#211B00; }
.contact-channel.butter .meta{ color:#5a4700; }

.form{
  background:var(--card); border-radius:24px; border:1px solid var(--line-soft);
  padding:32px; display:flex; flex-direction:column; gap:22px; box-shadow:var(--shadow);
}
@media (max-width:720px){ .form{ padding:24px; } }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:540px){ .form-row{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:8px; }
.field label{
  font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-2);
  display:flex; justify-content:space-between; align-items:baseline; font-family:var(--font);
}
.field label .req{ color:var(--butter-deep); font-weight:700; letter-spacing:0; }
.field label .opt{ color:var(--ink-3); font-size:10px; }
.field input, .field textarea, .field select{
  font:inherit; font-size:15px;
  background:#FCFBF7; border:1px solid var(--line); border-radius:14px;
  padding:14px 16px; color:var(--ink); outline:none; width:100%; font-family:inherit;
  transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field textarea{ resize:vertical; min-height:140px; line-height:1.55; }
.field input::placeholder, .field textarea::placeholder{ color:var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus{
  border-color:var(--butter-deep); background:#fff;
  box-shadow:0 0 0 4px rgba(255,216,116,.35);
}
.field .help{ font-size:12px; color:var(--ink-3); }

.topic-pills{ display:flex; flex-wrap:wrap; gap:8px; }
.topic-pills input{ display:none; }
.topic-pills label{
  display:inline-flex; align-items:center; gap:6px;
  height:38px; padding:0 14px; border-radius:999px;
  background:#FCFBF7; border:1px solid var(--line);
  font-size:13px; font-weight:600; color:var(--ink-2);
  cursor:pointer; font-family:inherit; letter-spacing:normal; text-transform:none;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.topic-pills input:checked + label{
  background:var(--butter); color:#211B00;
  border-color:rgba(180,120,0,.25); font-weight:700;
}
.topic-pills label:hover{ color:var(--ink); }

.form-foot{
  display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
  padding-top:8px; border-top:1px solid var(--line-soft);
}
.form-foot .legal{ font-size:12px; color:var(--ink-3); line-height:1.55; max-width:36ch; display:block; }
.form-foot .legal a{ color:var(--olive); text-decoration:underline; }
.submit-btn{
  display:inline-flex; align-items:center; gap:8px;
  height:50px; padding:0 26px; border-radius:999px;
  background:linear-gradient(180deg,#FFE292,#FFCB4E);
  color:#211B00; border:1px solid rgba(180,120,0,.25);
  font-size:14.5px; font-weight:700; letter-spacing:.005em; cursor:pointer;
  box-shadow:0 10px 24px rgba(242,177,43,.35), inset 0 1px 0 rgba(255,255,255,.6);
  font-family:inherit; transition:transform .16s ease, box-shadow .18s ease;
}
.submit-btn:hover{ transform:translateY(-2px); box-shadow:0 16px 32px rgba(242,177,43,.45), inset 0 1px 0 rgba(255,255,255,.6); }
.submit-btn:disabled{ opacity:.6; cursor:not-allowed; transform:none; }

.form-success{
  background:radial-gradient(120% 140% at 18% 12%,#FFE9A8,#FFD06A 60%,#F2B12B);
  border-radius:24px; padding:44px 32px; display:none;
  flex-direction:column; gap:12px; text-align:center; align-items:center;
  box-shadow:var(--shadow-lg);
}
.form-success.show{ display:flex; }
.form-success .check{
  width:58px; height:58px; border-radius:50%;
  background:#211B00; color:var(--butter); display:grid; place-items:center;
}
.form-success h3{ font-size:26px; font-weight:800; letter-spacing:-.02em; color:#211B00; margin:0; }
.form-success p{ font-size:15px; color:#3a2e00; opacity:.85; max-width:42ch; margin:0; line-height:1.55; }
.form-success p a{ color:#211B00; }

/* ── Nav download CTA (matches homepage) ── */
.sub-nav-cta{ display:flex; align-items:center; gap:12px; }
.sub-nav-cta .pill{ height:40px; padding:0 17px; font-size:13.5px; }
@media (max-width:560px){ .sub-nav-cta .pill span.lbl{ display:none; } }

/* ── Rich site footer (matches homepage 4-column footer) ── */
.site-footer{ background:#211B00; color:rgba(248,242,216,.7); padding:72px 0 36px; }
.site-footer-inner{ max-width:1100px; margin:0 auto; padding:0 32px; }
@media (max-width:720px){ .site-footer-inner{ padding:0 20px; } }
.site-footer .footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:40px; }
@media (max-width:780px){ .site-footer .footer-grid{ grid-template-columns:1fr 1fr; } .site-footer .footer-brand{ grid-column:1/-1; } }
@media (max-width:480px){ .site-footer .footer-grid{ grid-template-columns:1fr; gap:32px; } }
.site-footer .brand-name strong{ color:#F8F2D8; }
.site-footer .brand-name small{ color:rgba(248,242,216,.5); }
.site-footer .footer-brand p{ font-size:14.5px; line-height:1.6; color:rgba(248,242,216,.65); margin:18px 0 22px; max-width:34ch; }
.site-footer .footer-brand .pill{ display:inline-flex; }
.site-footer h5{ font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:rgba(248,242,216,.45); margin:0 0 16px; }
.site-footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px; }
.site-footer ul a{ font-size:14.5px; font-weight:600; color:rgba(248,242,216,.8); transition:color .15s ease; }
.site-footer ul a:hover{ color:var(--butter); }
.site-footer .footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px; margin-top:56px; padding-top:24px; border-top:1px solid rgba(248,242,216,.12); font-size:13px; color:rgba(248,242,216,.5); }
.site-footer .footer-bottom-links a{ color:rgba(248,242,216,.6); margin-left:20px; }
.site-footer .footer-bottom-links a:hover{ color:var(--butter); }

/* ── Legacy subpage footer (kept for safety) ── */
.sub-footer{
  background:#211B00; color:rgba(248,242,216,.7);
  padding:56px 0 36px; border-radius:40px 40px 0 0; margin-top:72px;
}
.sub-footer-inner{
  max-width:1100px; margin:0 auto; padding:0 32px;
  display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap;
}
@media (max-width:720px){ .sub-footer-inner{ padding:0 20px; } }
.sub-footer .brand-name strong{ color:#F8F2D8; }
.sub-footer .brand-name small{ color:rgba(248,242,216,.5); }
.sub-footer .marketing-footer-legal{
  display:flex; gap:20px;
  font-size:13px; font-weight:600; letter-spacing:.02em;
}
.sub-footer a{ color:rgba(248,242,216,.78); transition:color .15s ease; }
.sub-footer a:hover{ color:var(--butter); }
.sub-footer .copy{ font-size:13px; color:rgba(248,242,216,.45); }
