/* Sociano — shared site styles. Source of truth: designs/web/*.dc.html (claude.ai/design).
   Desktop layouts follow "Sociano Landing.dc.html"; mobile (≤720px) follows "Sociano Mobile.dc.html". */

/* ---------- Tokens ---------- */
:root {
  --cream: #F4EFE5;          /* page background */
  --cream-band: #FBF8F1;     /* desktop section band */
  --cream-band-mobile: #EDE7D9;
  --ink: #211F1A;
  --ink-soft: #201E19;
  --body: #56524A;
  --muted: #9a968c;
  --muted-warm: #918C81;
  --muted-cool: #6B675E;
  --sage: #5E7355;
  --sage-dark: #46583F;
  --sage-on-dark: #A7B596;
  --sage-tint: rgba(94, 115, 85, .12);
  --sage-tint-strong: rgba(94, 115, 85, .14);
  --rust: #B4543F;
  --rust-tint: rgba(180, 84, 63, .1);
  --hairline: rgba(33, 31, 26, .08);
  --hairline-strong: rgba(33, 31, 26, .12);
  --hairline-warm: rgba(32, 30, 25, .07);
  --card: #FFFFFF;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --brand: 'Bricolage Grotesque', var(--sans);
  --maxw: 1180px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* pre-font-swap fallback glyphs are wider; never allow horizontal scroll */
}
img { max-width: 100%; display: block; }
a { color: var(--sage-dark); text-decoration: none; }
a:hover { color: var(--sage); }

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .98;
  margin: 0;
  text-wrap: balance;
}
.display .accent { font-style: italic; color: var(--sage); }
h2.title, .title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.06;
  margin: 0;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}
.eyebrow--muted { color: var(--muted-cool); }
.eyebrow--rust { color: var(--rust); }
.lede { font-size: 19px; line-height: 1.55; color: var(--body); text-wrap: pretty; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.band { background: var(--cream-band); border-top: 1px solid var(--hairline); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 229, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; display: block;
}
.brand-name { font-family: var(--brand); font-weight: 700; font-size: 25px; letter-spacing: -.03em; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; color: var(--body); font-weight: 500; }
.nav-links > a { color: inherit; }
.nav-links > a:hover { color: var(--ink); }
.nav-links > a.active { color: var(--ink); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn-store, .btn-store-lg { display: inline-flex; }
.btn-store img { height: 40px; display: block; }
.btn-store-lg img { height: 52px; display: block; }
.btn-store:hover, .btn-store-lg:hover { opacity: .92; }
.btn-secondary {
  display: inline-flex; align-items: center;
  padding: 15px 24px; border-radius: 14px;
  border: 1px solid rgba(33, 31, 26, .16);
  font-weight: 600; font-size: 16px; color: var(--ink);
}
.btn-secondary:hover { color: var(--ink); background: rgba(33, 31, 26, .04); }

/* ---------- Cards & chips ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--hairline-warm);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(32, 30, 25, .05);
}
.card-lg { border-radius: 18px; padding: 28px; background: var(--cream-band); border: 1px solid var(--hairline); box-shadow: none; }
.icon-tile {
  width: 42px; height: 42px; border-radius: 12px; background: var(--sage-tint-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage); font-size: 20px; margin-bottom: 18px;
}
.chip {
  display: inline-flex; font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--sage-tint); padding: 6px 13px; border-radius: 999px;
}
.chip--removed { color: var(--muted); background: rgba(33, 31, 26, .05); text-decoration: line-through; }
.pill-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; padding: 8px 15px; border-radius: 999px;
}
.pill-note--rust { color: var(--rust); background: var(--rust-tint); }
.pill-note--sage { color: var(--sage-dark); background: var(--sage-tint); }

/* ---------- Dark CTA blocks ---------- */
.cta-dark {
  background: var(--ink); border-radius: 24px; padding: 78px 48px;
  text-align: center; color: var(--cream);
}
.cta-dark .title, .cta-dark h2 { color: var(--cream); }
.cta-dark .accent { color: var(--sage-on-dark); font-style: italic; }
.contact-strip {
  background: var(--ink); border-radius: 20px; padding: 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; color: var(--cream);
}
.contact-strip h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 6px; }
.contact-strip p { font-size: 15px; color: rgba(244, 239, 229, .7); margin: 0; }
.contact-strip .btn-invert {
  background: var(--cream); color: var(--ink);
  padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: 15px;
}

/* ---------- FAQ accordions ---------- */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.faq-group {
  background: var(--cream-band); border: 1px solid var(--hairline);
  border-radius: 20px; padding: 6px 30px;
}
.faq-group details { border-bottom: 1px solid rgba(33, 31, 26, .09); }
.faq-group details:last-child { border-bottom: none; }
.faq-group summary {
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px 2px; font-size: 18px; font-weight: 700;
}
.faq-group .faq-a { padding: 0 2px 24px; font-size: 16px; line-height: 1.6; color: var(--body); }
.faq-chev { transition: transform .22s ease; color: var(--sage); font-size: 13px; flex-shrink: 0; }
details[open] .faq-chev { transform: rotate(180deg); }

/* ---------- Article / legal text pages ---------- */
.doc-grid { display: grid; grid-template-columns: 240px 1fr; gap: 56px; }
.toc { align-self: start; position: sticky; top: 96px; }
.toc-label {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.toc-links { display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.toc-links a { color: var(--body); }
.doc-body { max-width: 640px; }
.doc-section { padding-bottom: 36px; border-bottom: 1px solid rgba(33, 31, 26, .1); margin-bottom: 36px; }
.doc-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.doc-section h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 14px; }
.doc-section p, .doc-section li { font-size: 17px; line-height: 1.65; color: var(--body); }
.doc-section p { margin: 0 0 14px; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section a { color: var(--sage); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--cream-band); border-top: 1px solid var(--hairline); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 64px 40px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-col-label {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.footer-links a { color: var(--body); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline);
  font-size: 14px; color: var(--muted); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--muted); }
.footer-simple {
  max-width: var(--maxw); margin: 0 auto; padding: 48px 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-simple-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.footer-simple-links a { color: var(--muted); }

/* ---------- Animations ---------- */
@keyframes socFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes socBuzz { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-4px); } }
.anim-float { animation: socFloat 6s ease-in-out infinite; }
.anim-buzz { animation: socBuzz 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .anim-float, .anim-buzz { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile (per Sociano Mobile.dc.html) ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .container { padding-left: 26px; padding-right: 26px; }
  .nav-inner { padding: 13px 20px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 22px; }
  .nav-links { gap: 18px; }
  .nav-links > a:not(.btn-store) { display: none; } /* mobile: brand + Get the app pill only */
  .btn-store img { height: 36px; }
  .display { font-size: 50px !important; }
  .title { font-size: 31px !important; }
  .lede { font-size: 16.5px; }
  .grid-2 { grid-template-columns: 1fr; }
  .band { background: var(--cream-band-mobile); border-top: 1px solid var(--hairline-warm); }
  .cta-dark { padding: 52px 28px; }
  .cta-dark .title, .cta-dark h2 { font-size: 37px !important; }
  .faq-group { padding: 2px 20px; }
  .faq-group summary { font-size: 16.5px; padding: 18px 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
